mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 10:53:28 -05:00
This commit adds two new sections to the dashboard 1. A banner telling you about trial mode, including a count of how many messages you have left today, which is a restriction of trial mode 2. Panels with counts of how many emails and text messages have been sent in a day, plus the failure rates for each It does **not**: - link through to any further information about what trial mode is (coming later) - link through to pages for the failure rates (coming later) - change the ‘recent jobs’ section to ‘recent notifications’
19 lines
754 B
HTML
19 lines
754 B
HTML
{% macro banner(body, type=None, with_tick=False, delete_button=None, subhead=None) %}
|
|
<div class='banner{% if type %}-{{ type }}{% endif %}{% if with_tick %}-with-tick{% endif %}'>
|
|
{% if subhead -%}
|
|
{{ subhead }} 
|
|
{%- endif -%}
|
|
{{ body }}
|
|
{% if delete_button %}
|
|
<form method='post'>
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|
|
<input type="submit" class="button" name="delete" value="{{ delete_button }}" />
|
|
</form>
|
|
{% endif %}
|
|
</div>
|
|
{% endmacro %}
|
|
|
|
{% macro banner_wrapper(type=None, with_tick=False, delete_button=None, subhead=None) %}
|
|
{{ banner(caller()|safe, type=type, with_tick=with_tick, delete_button=delete_button, subhead=subhead) }}
|
|
{% endmacro %}
|