Mercurial > libervia-templates
diff sat_templates/templates/bulma/components/common.html @ 259:a18374320194
bulma (components/common, input/field, input/form): use `xmlattr` for `id`
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 01 Aug 2020 17:01:31 +0200 |
parents | 0e4a2e0da438 |
children | 1743fd741fed |
line wrap: on
line diff
--- 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 @@ </nav> {% endmacro %} -{% macro action_button(url, label=_("create"), icon="plus-circled", class="is-primary is-rounded") %} - <a class="button {{class}}" {{ {"href":url} | xmlattr }}><i class="icon-{{icon}}"></i> {{label}}</a> +{% macro action_button(url, label=_("create"), icon="plus-circled", class="is-primary is-rounded", id=none) %} + <a class="button {{class}}" {{ {"href":url, "id": id} | xmlattr }}><i class="icon-{{icon}}"></i> {{label}}</a> {% endmacro %}