@model Watcher.ViewModels.EditServerViewModel

@{
    ViewData["Title"] = "Server bearbeiten";
}

<h2>Server bearbeiten</h2>

<form asp-action="EditServer" asp-controller="Server" method="post">
    @Html.AntiForgeryToken()
    <input type="hidden" asp-for="Id" />

    <div class="mb-3">
        <label asp-for="Name"></label>
        <input asp-for="Name" class="form-control" />
        <span asp-validation-for="Name" class="text-danger"></span>
    </div>

    <div class="mb-3">
        <label asp-for="IPAddress"></label>
        <input asp-for="IPAddress" class="form-control" />
        <span asp-validation-for="IPAddress" class="text-danger"></span>
    </div>

    <div class="mb-3">
        <label asp-for="Type"></label>
        <input asp-for="Type" class="form-control" />
        <span asp-validation-for="Type" class="text-danger"></span>
    </div>

    <button type="submit" class="btn btn-primary mt-3">Speichern</button>
    <a asp-action="Overview" class="btn btn-secondary mt-3">Abbrechen</a>
</form>