view default/input/form.html @ 79:0ecc1ea955e5

[mq]: js_en_cours
author Goffi <goffi@goffi.org>
date Wed, 03 Jan 2018 00:35:04 +0100
parents 87680eed9e25
children
line wrap: on
line source

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