54 lines
2.1 KiB
Plaintext
54 lines
2.1 KiB
Plaintext
@model Watcher.ViewModels.AddServerViewModel
|
|
@{
|
|
ViewData["Title"] = "Neuen Server hinzufügen";
|
|
}
|
|
|
|
<head>
|
|
<link rel="stylesheet" href="~/css/main.css" />
|
|
</head>
|
|
|
|
<div class="container mt-5" style="max-width: 700px;">
|
|
<div class="card shadow rounded-3 p-4">
|
|
<h1 class="mb-4 text-primary-emphasis">
|
|
<i class="bi bi-plus-circle me-2"></i>Neuen Server hinzufügen
|
|
</h1>
|
|
|
|
<form asp-action="AddServer" asp-controller="Server" method="post">
|
|
@Html.AntiForgeryToken()
|
|
<div class="mb-3">
|
|
<label asp-for="Name" class="form-label"><i class="bi bi-terminal me-1"></i>Servername</label>
|
|
<input asp-for="Name" class="form-control" placeholder="z.B. Webserver-01" />
|
|
<span asp-validation-for="Name" class="text-danger small"></span>
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label asp-for="IPAddress" class="form-label"><i class="bi bi-globe me-1"></i>IP-Adresse</label>
|
|
<input asp-for="IPAddress" class="form-control" placeholder="z.B. 192.168.1.10" />
|
|
<span asp-validation-for="IPAddress" class="text-danger small"></span>
|
|
</div>
|
|
|
|
<div class="mb-4">
|
|
<label asp-for="Type" class="form-label"><i class="bi bi-hdd-network me-1"></i>Typ</label>
|
|
<select asp-for="Type" class="form-select">
|
|
<option>VPS</option>
|
|
<option>VM</option>
|
|
<option>Standalone</option>
|
|
</select>
|
|
</div>
|
|
|
|
<div class="d-flex justify-content-end">
|
|
<a asp-action="Overview" asp-controller="Server" class="btn btn-outline-secondary me-2">
|
|
<i class="bi bi-x-circle me-1"></i>Abbrechen
|
|
</a>
|
|
<button type="submit" class="btn btn-primary">
|
|
<i class="bi bi-save me-1"></i>Speichern
|
|
</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
@section Scripts {
|
|
<partial name="_ValidationScriptsPartial" />
|
|
}
|