Server und Container Overview+Add Seite erstellt und an Datenbank angeschlossen
This commit is contained in:
42
Watcher/Views/Server/AddServer.cshtml
Normal file
42
Watcher/Views/Server/AddServer.cshtml
Normal file
@@ -0,0 +1,42 @@
|
||||
@using Watcher.ViewModels
|
||||
|
||||
@model AddServerViewModel
|
||||
@{
|
||||
ViewData["Title"] = "Neuen Server hinzufügen";
|
||||
}
|
||||
|
||||
<h1 class="text-2xl font-bold mb-4">Neuen Server hinzufügen</h1>
|
||||
|
||||
<form asp-action="Add" method="post" class="space-y-4 max-w-xl">
|
||||
<div>
|
||||
<label asp-for="Name" class="block font-medium">Name</label>
|
||||
<input asp-for="Name" class="w-full border rounded px-3 py-2" />
|
||||
<span asp-validation-for="Name" class="text-red-600 text-sm"></span>
|
||||
</div>
|
||||
<div>
|
||||
<label asp-for="Hostname" class="block font-medium">Hostname</label>
|
||||
<input asp-for="Hostname" class="w-full border rounded px-3 py-2" />
|
||||
</div>
|
||||
<div>
|
||||
<label asp-for="IPAddress" class="block font-medium">IP-Adresse</label>
|
||||
<input asp-for="IPAddress" class="w-full border rounded px-3 py-2" />
|
||||
</div>
|
||||
<div>
|
||||
<label asp-for="Status" class="block font-medium">Status</label>
|
||||
<input asp-for="Status" class="w-full border rounded px-3 py-2" />
|
||||
</div>
|
||||
<div>
|
||||
<label asp-for="Type" class="block font-medium">Typ</label>
|
||||
<select asp-for="Type" class="w-full border rounded px-3 py-2">
|
||||
<option>VPS</option>
|
||||
<option>VM</option>
|
||||
<option>Container</option>
|
||||
<option>Physisch</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="flex items-center">
|
||||
<input asp-for="IsOnline" class="mr-2" type="checkbox" />
|
||||
<label asp-for="IsOnline">Online?</label>
|
||||
</div>
|
||||
<button type="submit" class="bg-blue-600 text-white px-4 py-2 rounded hover:bg-blue-700">Speichern</button>
|
||||
</form>
|
Reference in New Issue
Block a user