rote fixes

This commit is contained in:
2025-08-22 08:06:41 +02:00
parent 4cd6db6a79
commit 21e9c1cde2
4 changed files with 12 additions and 5 deletions

View File

@@ -41,3 +41,9 @@ jobs:
- name: Push image
run: docker push git.triggermeelmo.com/daniel-hbn/watcher/watcher:v0.1.0
- name: Tag image
run: docker tag watcher:v0.1.0 git.triggermeelmo.com/daniel-hbn/watcher/watcher:latest
- name: Push image
run: docker push git.triggermeelmo.com/daniel-hbn/watcher/watcher:latest

View File

@@ -36,7 +36,8 @@ public class ServerController : Controller
return View();
}
[HttpPost("AddServerP")]
[HttpPost("AddServer")]
[ValidateAntiForgeryToken]
public async Task<IActionResult> AddServer(AddServerViewModel vm)
{
if (!ModelState.IsValid)

View File

@@ -9,7 +9,7 @@
<i class="bi bi-plus-circle me-2"></i>Neuen Server hinzufügen
</h1>
<form asp-action="AddServerP" method="post" novalidate>
<form asp-action="AddServer" asp-controller="Server" method="post">
<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" />
@@ -32,7 +32,7 @@
</div>
<div class="d-flex justify-content-end">
<a asp-action="Overview" class="btn btn-outline-secondary me-2">
<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">

View File

@@ -51,7 +51,7 @@
<i class="bi bi-box-fill me-1"></i> Container
</a>
<form asp-action="Delete" asp-route-id="@s.Id" method="post"
<form asp-action="Delete" asp-controller="Server" asp-route-id="@s.Id" method="post"
onsubmit="return confirm('Diesen Server wirklich löschen?');" class="m-0">
<button type="submit" class="btn btn-outline-danger">
<i class="bi bi-trash me-1"></i> Löschen