Files
notifications-admin/app/templates/views/broadcast/dashboard.html
Chris Hill-Scott 74243a88fb Remove prompt from dashboard
It’s no longer true to say that you need a template to create an alert.
The grey button should be the primary call to action on this page
instead.
2021-01-18 17:09:01 +00:00

32 lines
801 B
HTML

{% from 'components/ajax-block.html' import ajax_block %}
{% from "components/button/macro.njk" import govukButton %}
{% extends "withnav_template.html" %}
{% block service_page_title %}
Current alerts
{% endblock %}
{% block maincolumn_content %}
<h1 class="heading-medium">Current alerts</h1>
{{ ajax_block(
partials,
url_for('.broadcast_dashboard_updates', service_id=current_service.id),
'current_broadcasts'
) }}
{% 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 %}