comparison sat_templates/templates/bulma/input/form.html @ 296:fbea1b9a558f

bulma: new search box, used in blog for now
author Goffi <goffi@goffi.org>
date Thu, 10 Dec 2020 11:29:04 +0100
parents a18374320194
children
comparison
equal deleted inserted replaced
295:1de599c5a68f 296:fbea1b9a558f
1 {% macro form(action='', class=none, id=none) %} 1 {% macro form(action='', class=none, id=none, method="post", use_csrf_token=true) %}
2 <form method="post" action="{{action}}" {{ {'id': id, 'class': class}|xmlattr }} {{kwargs|xmlattr}} > 2 <form method="{{method}}" action="{{action}}" {{ {'id': id, 'class': class}|xmlattr }} {{kwargs|xmlattr}} >
3 {% if csrf_token is defined %} 3 {% if csrf_token is defined and use_csrf_token %}
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>
8 {% endmacro %} 8 {% endmacro %}