# HG changeset patch # User Goffi # Date 1596294091 -7200 # Node ID a18374320194290eed9e62df0ca7700700e34681 # Parent 5e51ce9376ed3524554708c5ddefa4b3f214b3af bulma (components/common, input/field, input/form): use `xmlattr` for `id` diff -r 5e51ce9376ed -r a18374320194 sat_templates/templates/bulma/components/common.html --- a/sat_templates/templates/bulma/components/common.html Sat Aug 01 17:01:31 2020 +0200 +++ b/sat_templates/templates/bulma/components/common.html Sat Aug 01 17:01:31 2020 +0200 @@ -35,6 +35,6 @@ {% endmacro %} -{% macro action_button(url, label=_("create"), icon="plus-circled", class="is-primary is-rounded") %} -  {{label}} +{% macro action_button(url, label=_("create"), icon="plus-circled", class="is-primary is-rounded", id=none) %} +  {{label}} {% endmacro %} diff -r 5e51ce9376ed -r a18374320194 sat_templates/templates/bulma/input/field.html --- a/sat_templates/templates/bulma/input/field.html Sat Aug 01 17:01:31 2020 +0200 +++ b/sat_templates/templates/bulma/input/field.html Sat Aug 01 17:01:31 2020 +0200 @@ -114,6 +114,6 @@ @param id(none, str): id of the element #}
- + {{text}}
{% endmacro %} diff -r 5e51ce9376ed -r a18374320194 sat_templates/templates/bulma/input/form.html --- a/sat_templates/templates/bulma/input/form.html Sat Aug 01 17:01:31 2020 +0200 +++ b/sat_templates/templates/bulma/input/form.html Sat Aug 01 17:01:31 2020 +0200 @@ -1,5 +1,5 @@ -{% macro form(action='', class='') %} -
+{% macro form(action='', class=none, id=none) %} + {% if csrf_token is defined %} {% endif %}