Files
notifications-admin/app/templates/flash_messages.html
Nicholas Staples f3689cc113 Functionality added and all tests working.
Update correct use of permissions form.
2016-03-23 10:56:14 +00:00

14 lines
535 B
HTML

{% from "components/banner.html" import banner %}
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
{% for category, message in messages %}
{{ banner(
message,
'default' if ((category == 'default') or (category == 'default_with_tick')) else 'dangerous',
delete_button="Yes, {}".format(category) if category in ['delete', 'remove'] else None,
with_tick=True if category == 'default_with_tick' else False
)}}
{% endfor %}
{% endif %}
{% endwith %}