view default/input/form.html @ 76:ead4db120515

components/common: profile is now always set, so we just test if it evaluate to True to know if a user is logged
author Goffi <goffi@goffi.org>
date Wed, 13 Dec 2017 00:41:42 +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 %}