aboutsummaryrefslogtreecommitdiff
path: root/src/Enmarcha.Backend/Views/Shared/_BackofficeLayout.cshtml
diff options
context:
space:
mode:
Diffstat (limited to 'src/Enmarcha.Backend/Views/Shared/_BackofficeLayout.cshtml')
-rw-r--r--src/Enmarcha.Backend/Views/Shared/_BackofficeLayout.cshtml50
1 files changed, 50 insertions, 0 deletions
diff --git a/src/Enmarcha.Backend/Views/Shared/_BackofficeLayout.cshtml b/src/Enmarcha.Backend/Views/Shared/_BackofficeLayout.cshtml
new file mode 100644
index 0000000..382499e
--- /dev/null
+++ b/src/Enmarcha.Backend/Views/Shared/_BackofficeLayout.cshtml
@@ -0,0 +1,50 @@
+<!DOCTYPE html>
+<html lang="es">
+<head>
+ <meta charset="utf-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
+ <title>@ViewData["Title"] — Backoffice</title>
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" />
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css" />
+ @RenderSection("Head", required: false)
+</head>
+<body class="bg-light">
+ <nav class="navbar navbar-expand-lg navbar-dark bg-dark">
+ <div class="container-fluid">
+ <a class="navbar-brand fw-semibold" href="/backoffice">
+ <i class="bi bi-bus-front me-1"></i> Backoffice
+ </a>
+ <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarMain">
+ <span class="navbar-toggler-icon"></span>
+ </button>
+ <div class="collapse navbar-collapse" id="navbarMain">
+ <ul class="navbar-nav me-auto mb-2 mb-lg-0">
+ <li class="nav-item">
+ <a class="nav-link" href="/backoffice/alerts">
+ <i class="bi bi-exclamation-triangle me-1"></i> Alertas
+ </a>
+ </li>
+ </ul>
+ <div class="d-flex align-items-center gap-3">
+ <span class="text-light small">
+ <i class="bi bi-person-circle me-1"></i>
+ @(User.Identity!.Name ?? User.FindFirst("name")?.Value ?? "Usuario")
+ </span>
+ <form action="/backoffice/auth/logout" method="post" class="m-0">
+ @Html.AntiForgeryToken()
+ <button type="submit" class="btn btn-outline-light btn-sm">
+ <i class="bi bi-box-arrow-right me-1"></i> Salir
+ </button>
+ </form>
+ </div>
+ </div>
+ </div>
+ </nav>
+
+ <main class="container py-4">
+ @RenderBody()
+ </main>
+
+ <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
+</body>
+</html>