Mercurial > libervia-templates
view default/input/form.html @ 38:f371bc50ea45
blog/articles: added context when importing comment, so csrf_token is transmited to the macro.
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 11 Jul 2017 07:47:18 +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 %}