Mercurial > libervia-templates
comparison 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 |
comparison
equal
deleted
inserted
replaced
258:5e51ce9376ed | 259:a18374320194 |
---|---|
33 </div> | 33 </div> |
34 </div> | 34 </div> |
35 </nav> | 35 </nav> |
36 {% endmacro %} | 36 {% endmacro %} |
37 | 37 |
38 {% macro action_button(url, label=_("create"), icon="plus-circled", class="is-primary is-rounded") %} | 38 {% macro action_button(url, label=_("create"), icon="plus-circled", class="is-primary is-rounded", id=none) %} |
39 <a class="button {{class}}" {{ {"href":url} | xmlattr }}><i class="icon-{{icon}}"></i> {{label}}</a> | 39 <a class="button {{class}}" {{ {"href":url, "id": id} | xmlattr }}><i class="icon-{{icon}}"></i> {{label}}</a> |
40 {% endmacro %} | 40 {% endmacro %} |