CRUD-Operation für Server implementiert

This commit is contained in:
2025-06-15 14:20:21 +02:00
parent f362dc9e3a
commit 1f1a1fddbd
10 changed files with 507 additions and 74 deletions

View File

@@ -0,0 +1,31 @@
@model Watcher.ViewModels.EditServerViewModel;
@{
ViewData["Title"] = "Server bearbeiten";
}
<h2>Server bearbeiten</h2>
<form asp-action="EditServer" method="post">
@Html.AntiForgeryToken()
<div class="mb-3">
<label asp-for="Name"></label>
<input asp-for="Name" class="form-control" />
</div>
<div class="mb-3">
<label asp-for="IPAddress"></label>
<input asp-for="IPAddress" class="form-control" />
</div>
</div>
<div class="mb-3">
<label asp-for="Type"></label>
<input asp-for="Type" class="form-control" />
</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>