Mercurial > libervia-templates
view default/input/form.html @ 96:94b5806b9e2f
blog/item: various improvments:
- title and publication date are now clickable if HTTP link of item is set
- show labels (aka tags/categories)
- text only content in body is urlized
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 19 Jan 2018 18:19:57 +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 %}