mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 13:39:41 -04:00
Add the new alert button to previous alerts page
Feels like it should behave the same way as the current alerts page.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
{% from 'components/ajax-block.html' import ajax_block %}
|
||||
{% from "components/button/macro.njk" import govukButton %}
|
||||
|
||||
{% extends "withnav_template.html" %}
|
||||
|
||||
@@ -12,4 +13,15 @@
|
||||
|
||||
{% include('views/broadcast/partials/dashboard-table.html') %}
|
||||
|
||||
{% if current_user.has_permissions('send_messages') %}
|
||||
<div class="js-stick-at-bottom-when-scrolling">
|
||||
{{ govukButton({
|
||||
"element": "a",
|
||||
"text": "New alert",
|
||||
"href": url_for('.new_broadcast', service_id=current_service.id),
|
||||
"classes": "govuk-button--secondary"
|
||||
}) }}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user