view default/input/form.html @ 51:102356338118

input(comment): new macro comment_or_login: this macro allow to comment if a session is started, else redirect to login/registration page
author Goffi <goffi@goffi.org>
date Fri, 27 Oct 2017 18:52:34 +0200
parents eb9a42fca6c8
children 87680eed9e25
line wrap: on
line source

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