2016-02-02 13:38:39 +00:00
|
|
|
{% macro banner(body, type=None, with_tick=False, delete_button=None, subhead=None) %}
|
2016-01-22 10:57:49 +00:00
|
|
|
<div class='banner{% if type %}-{{ type }}{% endif %}{% if with_tick %}-with-tick{% endif %}'>
|
2016-02-02 13:38:39 +00:00
|
|
|
{% if subhead %}
|
|
|
|
|
<div class="grid-row">
|
|
|
|
|
<div class="column-one-third">
|
|
|
|
|
{{ subhead }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="column-two-thirds">
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
2016-01-11 11:27:42 +00:00
|
|
|
{{ body }}
|
2016-02-02 13:38:39 +00:00
|
|
|
|
|
|
|
|
{% if subhead %}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
2016-01-26 16:20:57 +00:00
|
|
|
{% 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 %}
|
2016-01-11 11:27:42 +00:00
|
|
|
</div>
|
2015-12-17 14:05:35 +00:00
|
|
|
{% endmacro %}
|