Mercurial > libervia-templates
comparison default/input/form.html @ 52:87680eed9e25
input(field, form): improved classes + new email field
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 27 Oct 2017 18:54:01 +0200 |
parents | eb9a42fca6c8 |
children |
comparison
equal
deleted
inserted
replaced
51:102356338118 | 52:87680eed9e25 |
---|---|
1 {% macro form(action='') %} | 1 {% macro form(action='', class='') %} |
2 <form method="post" action="{{action}}"> | 2 <form method="post" action="{{action}}" {{ {'class': class}|xmlattr }}> |
3 {% if csrf_token is defined %} | 3 {% if csrf_token is defined %} |
4 <input type="hidden" name="csrf_token" value="{{csrf_token}}"> | 4 <input type="hidden" name="csrf_token" value="{{csrf_token}}"> |
5 {% endif %} | 5 {% endif %} |
6 {{ caller() }} | 6 {{ caller() }} |
7 </form> | 7 </form> |