Mercurial > libervia-templates
diff sat_templates/templates/bulma/input/field.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 | 60bf3e45d7b2 |
children | edefc1f25219 |
line wrap: on
line diff
--- 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 #} <div class="control {{class}}"> - <button {{ 'id="{id}"'.format(id=id)|safe if id }} class="button is-primary form_submit {{kwargs.pop('class', '')}}" type="submit">{{text}}</button> + <button{{ {'id': id}|xmlattr }} class="button is-primary form_submit {{kwargs.pop('class', '')}}" type="submit">{{text}}</button> </div> {% endmacro %}