diff options
Diffstat (limited to 'src/Enmarcha.Backend/Views/Alerts')
| -rw-r--r-- | src/Enmarcha.Backend/Views/Alerts/Edit.cshtml | 4 | ||||
| -rw-r--r-- | src/Enmarcha.Backend/Views/Alerts/Index.cshtml | 14 |
2 files changed, 17 insertions, 1 deletions
diff --git a/src/Enmarcha.Backend/Views/Alerts/Edit.cshtml b/src/Enmarcha.Backend/Views/Alerts/Edit.cshtml index 57e853d..63852d7 100644 --- a/src/Enmarcha.Backend/Views/Alerts/Edit.cshtml +++ b/src/Enmarcha.Backend/Views/Alerts/Edit.cshtml @@ -57,6 +57,8 @@ </a> </div> +<div asp-validation-summary="ModelOnly" class="alert alert-danger"></div> + <form action="@formAction" method="post" novalidate> @Html.AntiForgeryToken() @if (!isCreate) @@ -407,7 +409,7 @@ } for (const a of agencies) el.appendChild(makeTransitItem(a.selector, () => `<i class="bi bi-building me-2"></i><span class="flex-grow-1">${escHtml(a.name)}</span>` + - `<code class="text-muted small">${escHtml(a.feedId)}</code>` + `<code class="text-muted small">${escHtml(a.agencyGtfsId)}</code>` )); } diff --git a/src/Enmarcha.Backend/Views/Alerts/Index.cshtml b/src/Enmarcha.Backend/Views/Alerts/Index.cshtml index d541ccc..114f3a5 100644 --- a/src/Enmarcha.Backend/Views/Alerts/Index.cshtml +++ b/src/Enmarcha.Backend/Views/Alerts/Index.cshtml @@ -5,6 +5,14 @@ ViewData["Title"] = "Alertas de servicio"; } +@if (TempData["SuccessMessage"] is string successMsg) +{ + <div class="alert alert-success alert-dismissible fade show d-flex align-items-center gap-2 mb-4" role="alert"> + <i class="bi bi-check-circle-fill"></i> @successMsg + <button type="button" class="btn-close ms-auto" data-bs-dismiss="alert"></button> + </div> +} + <div class="d-flex justify-content-between align-items-center mb-4"> <h1 class="h3 mb-0"> <i class="bi bi-exclamation-triangle me-2 text-warning"></i>Alertas de servicio @@ -66,6 +74,12 @@ else title="Editar"> <i class="bi bi-pencil"></i> </a> + <form action="/backoffice/alerts/@alert.Id/push" method="post" class="d-inline ms-1"> + @Html.AntiForgeryToken() + <button type="submit" class="btn btn-sm btn-outline-primary" title="Enviar notificación push"> + <i class="bi bi-bell"></i> + </button> + </form> <a href="/backoffice/alerts/@alert.Id/delete" class="btn btn-sm btn-outline-danger ms-1" title="Eliminar"> |
