view sat_templates/default/input/form.html @ 163:33f67228686a

Added tag 0.7.0a2 for changeset 001c9855e747
author Goffi <goffi@goffi.org>
date Sun, 15 Jul 2018 08:57:56 +0200
parents b84d20af0ed3
children
line wrap: on
line source

{% macro form(action='', class='') %}
<form method="post" action="{{action}}" {{ {'class': class}|xmlattr }} {{kwargs|xmlattr}} >
    {% if csrf_token is defined %}
        <input type="hidden" name="csrf_token" value="{{csrf_token}}">
    {% endif %}
    {{ caller() }}
</form>
{% endmacro %}