Files
notifications-admin/app/templates/components/page-footer.html
T

29 lines
1.0 KiB
HTML
Raw Normal View History

2016-01-14 09:44:06 +00:00
{% macro page_footer(
button_text=None,
destructive=False,
back_link=False,
back_link_text="Back",
2016-02-05 09:55:27 +00:00
secondary_link=False,
secondary_link_text=None,
2016-01-14 09:44:06 +00:00
delete_link=False,
delete_link_text="delete"
2016-01-14 09:44:06 +00:00
) %}
2016-01-07 20:11:22 +00:00
<div class="page-footer">
{% if button_text %}
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
<button type="submit" class="button{% if destructive %}-destructive{% endif %}">{{ button_text }}</button>
2016-01-07 20:11:22 +00:00
{% endif %}
{% if back_link %}
2016-01-14 09:44:06 +00:00
<a class="page-footer-back-link" href="{{ back_link }}">{{ back_link_text }}</a>
2016-01-07 20:11:22 +00:00
{% endif %}
2016-02-22 12:16:19 +00:00
{% if delete_link %}
<span class="page-footer-delete-link {% if not button_text %}page-footer-delete-link-without-button{% endif %}">
2016-02-22 12:16:19 +00:00
<a href="{{ delete_link }}">{{ delete_link_text }}</a>
</span>
{% endif %}
2016-02-05 09:55:27 +00:00
{% if secondary_link and secondary_link_text %}
<a class="page-footer-secondary-link" href="{{ secondary_link }}">{{ secondary_link_text }}</a>
{% endif %}
2016-01-07 20:11:22 +00:00
</div>
{% endmacro %}