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

40 lines
1.3 KiB
HTML
Raw Normal View History

2016-01-14 09:44:06 +00:00
{% macro page_footer(
button_text=None,
button_name=None,
button_value=None,
2016-01-14 09:44:06 +00:00
destructive=False,
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",
centered_button=False
2016-01-14 09:44:06 +00:00
) %}
<div class="page-footer {% if centered_button %}page-footer-centered-button{% endif %}">
2016-01-07 20:11:22 +00:00
{% if button_text %}
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
<button
type="submit"
class="button{% if destructive %}-destructive{% endif %}"
{% if button_name %}name="{{ button_name }}"{% endif %}
{% if button_value %}value="{{ button_value }}"{% endif %}
>
{{- button_text -}}
</button>
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 %}
2019-01-14 13:34:23 +00:00
{% macro sticky_page_footer(button_text=None) %}
<div class="js-stick-at-bottom-when-scrolling">
{{ page_footer(button_text) }}
</div>
{% endmacro %}