mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 10:53:28 -05:00
This commit brings back the ‘link under the green button’ bit of the page footer component. Previous it had been changed to be a grey button. But there are use cases for both, maybe even simultaneously.
29 lines
957 B
HTML
29 lines
957 B
HTML
{% macro page_footer(
|
|
button_text=None,
|
|
destructive=False,
|
|
back_link=False,
|
|
back_link_text="Back",
|
|
secondary_link=False,
|
|
secondary_link_text=None,
|
|
delete_link=False,
|
|
delete_link_text="delete"
|
|
) %}
|
|
<div class="page-footer">
|
|
{% if button_text %}
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|
|
<input type="submit" class="button{% if destructive %}-destructive{% endif %}" value="{{ button_text }}" />
|
|
{% endif %}
|
|
{% if delete_link %}
|
|
<span class="page-footer-delete-link">
|
|
or <a href="{{ delete_link }}">{{ delete_link_text }}</a>
|
|
</span>
|
|
{% endif %}
|
|
{% if back_link %}
|
|
<a class="page-footer-back-link" href="{{ back_link }}">{{ back_link_text }}</a>
|
|
{% endif %}
|
|
{% if secondary_link and secondary_link_text %}
|
|
<a class="page-footer-secondary-link" href="{{ secondary_link }}">{{ secondary_link_text }}</a>
|
|
{% endif %}
|
|
</div>
|
|
{% endmacro %}
|