Mercurial > libervia-templates
view default/input/form.html @ 102:7108731be0b9
blog/articles: don't set content in title block if embedded, to avoid exception with missing parent title
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 22 Jan 2018 08:46:07 +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 %}