Mercurial > libervia-templates
annotate sat_templates/templates/default/input/form.html @ 402:2bbcb7da56bc default tip
bulma: use Font-Awesome instead of Fontello + start of major redesign:
- Font-Awesome is now used instead of Fontello, following change in Libervia Media.
- This is a beginning of a major redesign of the web templates/web frontend. This
currently breaks a lot of thing.
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 26 Oct 2024 22:53:26 +0200 |
parents | e9f0a4215e46 |
children |
rev | line source |
---|---|
52
87680eed9e25
input(field, form): improved classes + new email field
Goffi <goffi@goffi.org>
parents:
37
diff
changeset
|
1 {% macro form(action='', class='') %} |
153
b84d20af0ed3
macros (field, form, textbox): general improvments:
Goffi <goffi@goffi.org>
parents:
147
diff
changeset
|
2 <form method="post" action="{{action}}" {{ {'class': class}|xmlattr }} {{kwargs|xmlattr}} > |
37
eb9a42fca6c8
input/form: added csrf_token hidden field if it is defined, and import form with context to get this variable
Goffi <goffi@goffi.org>
parents:
10
diff
changeset
|
3 {% if csrf_token is defined %} |
eb9a42fca6c8
input/form: added csrf_token hidden field if it is defined, and import form with context to get this variable
Goffi <goffi@goffi.org>
parents:
10
diff
changeset
|
4 <input type="hidden" name="csrf_token" value="{{csrf_token}}"> |
eb9a42fca6c8
input/form: added csrf_token hidden field if it is defined, and import form with context to get this variable
Goffi <goffi@goffi.org>
parents:
10
diff
changeset
|
5 {% endif %} |
10
8b5615a1bf3d
articles, input: use new embedding mechanism in articles + new macros to build forms and inputs
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
6 {{ caller() }} |
8b5615a1bf3d
articles, input: use new embedding mechanism in articles + new macros to build forms and inputs
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
7 </form> |
8b5615a1bf3d
articles, input: use new embedding mechanism in articles + new macros to build forms and inputs
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
8 {% endmacro %} |