templates/macros: Allow embeddings into post_form

master
Felix Stupp 2 years ago
parent a03f31222c
commit 120a42476a
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -103,6 +103,9 @@
{% macro post_form(uri, key, val, text, fragment="") %}
<form class="form-single-button" method="POST" action="{{ uri }}">
{{ hidden_redirect_back(fragment=fragment) }}
{% if caller is defined %}
{{ caller() }}
{% endif %}
<button name="{{ key }}" value="{{ val }}">{{ text }}</button>
</form>
{% endmacro %}

Loading…
Cancel
Save