43 lines
1.8 KiB
Plaintext
43 lines
1.8 KiB
Plaintext
@model Watcher.ViewModels.AddServerViewModel
|
|
@{
|
|
ViewData["Title"] = "Neuen Server hinzufügen";
|
|
}
|
|
|
|
<div class="max-w-2xl mx-auto mt-10 bg-white rounded-2xl shadow-md p-8">
|
|
<h1 class="text-2xl font-bold text-gray-800 mb-6">Neuen Server hinzufügen</h1>
|
|
|
|
<form asp-action="AddServer" method="post" class="space-y-5">
|
|
<div>
|
|
<label asp-for="Name" class="block text-sm font-medium text-gray-700">Name</label>
|
|
<input asp-for="Name" class="mt-1 block w-full border-gray-300 rounded-md shadow-sm focus:ring-blue-500 focus:border-blue-500" />
|
|
<span asp-validation-for="Name" class="text-red-500 text-sm" />
|
|
</div>
|
|
|
|
<div>
|
|
<label asp-for="IPAddress" class="block text-sm font-medium text-gray-700">IP-Adresse</label>
|
|
<input asp-for="IPAddress" class="mt-1 block w-full border-gray-300 rounded-md shadow-sm focus:ring-blue-500 focus:border-blue-500" />
|
|
<span asp-validation-for="IPAddress" class="text-red-500 text-sm" />
|
|
</div>
|
|
|
|
<div>
|
|
<label asp-for="Type" class="block text-sm font-medium text-gray-700">Typ</label>
|
|
<select asp-for="Type" class="mt-1 block w-full border-gray-300 rounded-md shadow-sm focus:ring-blue-500 focus:border-blue-500">
|
|
<option>VPS</option>
|
|
<option>VM</option>
|
|
<option>Standalone</option>
|
|
</select>
|
|
</div>
|
|
|
|
<div class="flex justify-end">
|
|
<a asp-action="Overview" class="mr-3 inline-block px-4 py-2 text-gray-600 hover:text-blue-600">Abbrechen</a>
|
|
<button type="submit" class="px-5 py-2 bg-blue-600 text-white font-semibold rounded hover:bg-blue-700">
|
|
Speichern
|
|
</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
@section Scripts {
|
|
<partial name="_ValidationScriptsPartial" />
|
|
}
|