diff options
| author | Ariel Costas Guerrero <ariel@costas.dev> | 2026-03-19 18:56:34 +0100 |
|---|---|---|
| committer | Ariel Costas Guerrero <ariel@costas.dev> | 2026-03-19 18:56:34 +0100 |
| commit | bee85bf92aab84087798ffa9f3f16336acef2fce (patch) | |
| tree | 4fc8e2907e6618940cd9bdeb3da1a81172aab459 /src/Enmarcha.Backend/Views/Backoffice/Index.cshtml | |
| parent | fed5d57b9e5d3df7c34bccb7a120bfa274b2039a (diff) | |
Basic backoffice for alert management
Diffstat (limited to 'src/Enmarcha.Backend/Views/Backoffice/Index.cshtml')
| -rw-r--r-- | src/Enmarcha.Backend/Views/Backoffice/Index.cshtml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/Enmarcha.Backend/Views/Backoffice/Index.cshtml b/src/Enmarcha.Backend/Views/Backoffice/Index.cshtml new file mode 100644 index 0000000..fc31fb4 --- /dev/null +++ b/src/Enmarcha.Backend/Views/Backoffice/Index.cshtml @@ -0,0 +1,27 @@ +@{ + ViewData["Title"] = "Dashboard"; + var name = User.Identity!.Name ?? User.FindFirst("name")?.Value ?? "Usuario"; + var alertCount = (int)(ViewData["AlertCount"] ?? 0); +} + +<h1 class="h3 mb-4">Hola, @name 👋</h1> + +<div class="row g-3"> + <div class="col-sm-6 col-lg-3"> + <div class="card text-bg-warning shadow-sm h-100"> + <div class="card-body"> + <div class="d-flex justify-content-between align-items-start"> + <div> + <h6 class="card-subtitle mb-1 text-dark opacity-75">Alertas de servicio</h6> + <p class="display-5 fw-bold mb-0">@alertCount</p> + </div> + <i class="bi bi-exclamation-triangle-fill fs-1 opacity-25"></i> + </div> + <a href="/backoffice/alerts" class="btn btn-dark btn-sm mt-3"> + Gestionar <i class="bi bi-arrow-right ms-1"></i> + </a> + </div> + </div> + </div> +</div> + |
