view sat_templates/templates/default/input/form.html @ 330:b85b72f44f01

bulma (input/xmlui): add `list-item` class so it can be targeted easily
author Goffi <goffi@goffi.org>
date Fri, 04 Jun 2021 18:20:40 +0200
parents e9f0a4215e46
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 %}