view default/input/form.html @ 53:dfef430a26ef

input(xmlui): added a macro to generate a table from list of XMLUI items + many improvments in item generation (see docstrings)
author Goffi <goffi@goffi.org>
date Fri, 27 Oct 2017 18:55:25 +0200
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 %}