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:
Chris Hill-Scott
2021-01-18 16:46:13 +00:00
parent 99b7d8a66f
commit 8f2dc72881
2 changed files with 26 additions and 1 deletions

View File

@@ -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 %}