Mercurial > libervia-templates
diff 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 |
line wrap: on
line diff
--- a/default/input/form.html Fri Oct 27 18:52:34 2017 +0200 +++ b/default/input/form.html Fri Oct 27 18:54:01 2017 +0200 @@ -1,5 +1,5 @@ -{% macro form(action='') %} -<form method="post" action="{{action}}"> +{% 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 %}