mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 10:53:28 -05:00
- remove black border from banner - make banners have internal columns - make nav 2/3rd width, 19px text and more spaced out - only show the ‘restricted mode’ banner where it’s needed - rename ‘restricted mode’ to ‘trial mode’
25 lines
724 B
HTML
25 lines
724 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 %}
|
|
<div class="grid-row">
|
|
<div class="column-one-third">
|
|
{{ subhead }}
|
|
</div>
|
|
<div class="column-two-thirds">
|
|
{% endif %}
|
|
|
|
{{ body }}
|
|
|
|
{% if subhead %}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% 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 %}
|