CRUD-Operation für Server implementiert
This commit is contained in:
31
Watcher/Views/Server/EditServer.cshtml
Normal file
31
Watcher/Views/Server/EditServer.cshtml
Normal 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>
|
Reference in New Issue
Block a user