Mercurial > libervia-templates
diff sat_templates/templates/bulma/input/field.html @ 367:58c4c1664421
bulma (input/field): add `search` field
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 06 Jul 2023 11:37:08 +0200 |
parents | 1de6a0ecd529 |
children |
line wrap: on
line diff
--- a/sat_templates/templates/bulma/input/field.html Wed Jun 28 10:40:53 2023 +0200 +++ b/sat_templates/templates/bulma/input/field.html Thu Jul 06 11:37:08 2023 +0200 @@ -77,6 +77,10 @@ {{ field("text", name=name, label=label, value=value, class=class, control_class=control_class, help=help, required=required, icon_left=icon_left, icon_right=icon_right, attrs={'placeholder': placeholder, 'pattern': pattern, 'title': title, 'autocomplete': autocomplete}, in_group=in_group, caller=caller) }} {% endmacro %} +{% macro search(name, label="", value=none, class="", control_class="", placeholder=none, help="", required=false, pattern=none, title=none, autocomplete=none, icon_left=none, icon_right=none, in_group=false) %} + {{ field("search", name=name, label=label, value=value, class=class, control_class=control_class, help=help, required=required, icon_left=icon_left, icon_right=icon_right, attrs={'placeholder': placeholder, 'pattern': pattern, 'title': title, 'autocomplete': autocomplete}, in_group=in_group, caller=caller) }} +{% endmacro %} + {% macro password(name, label="", value=none, required=false, minlength=none, icon_left=none, icon_right=none) %} {{ field("password", name=name, label=label, value=value, required=required, icon_left=icon_left, icon_right=icon_right, attrs={'minlength': minlength}) }} {% endmacro %}