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

12 lines
523 B
HTML
Raw Normal View History

{% macro page_footer(button_text=None, back_link=False, back_link_text="Back", destructive=False) %}
<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 back_link %}
<a class="page-footer-back-link" role="button" href="{{ back_link }}">{{ back_link_text }}</a>
{% endif %}
</div>
{% endmacro %}