mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-06 11:23:48 -05:00
Added a link to cancel letters from the letter notification pages if the letter is still able to be cancelled. Clicking on this link will show a confirmation box, and will then cancel the letter if the user confirms.
17 lines
740 B
HTML
17 lines
740 B
HTML
{% from "components/banner.html" import banner %}
|
|
{% with messages = get_flashed_messages(with_categories=true) %}
|
|
{% if messages %}
|
|
{% for category, message in messages %}
|
|
<div class="bottom-gutter">
|
|
{{ banner(
|
|
message if message is string else message[0],
|
|
'default' if ((category == 'default') or (category == 'default_with_tick')) else 'dangerous',
|
|
delete_button="Yes, {}".format(category) if category in ['cancel', 'delete', 'suspend', 'resume', 'remove', 'revoke this API key'] else None,
|
|
with_tick=True if category == 'default_with_tick' else False,
|
|
context=message[1] if message is not string
|
|
)}}
|
|
</div>
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endwith %}
|