Mercurial > libervia-templates
view sat_templates/templates/bulma/input/form.html @ 237:caa3767707fb
base/base.html: expose CSRF token to script + fixed script content
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 19 Jun 2020 17:57:01 +0200 |
parents | 0e69b5843c2f |
children | a18374320194 |
line wrap: on
line source
{% macro form(action='', class='') %} <form method="post" action="{{action}}" {{ {'class': class}|xmlattr }} {{kwargs|xmlattr}} > {% if csrf_token is defined %} <input type="hidden" name="csrf_token" value="{{csrf_token}}"> {% endif %} {{ caller() }} </form> {% endmacro %}