Mercurial > libervia-templates
diff sat_templates/templates/bulma/input/field.html @ 350:1de6a0ecd529
(bulma) input/field: add `placeholder` attribute
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 30 Nov 2021 17:25:55 +0100 |
parents | 2e548a9830c6 |
children | 58c4c1664421 |
line wrap: on
line diff
--- a/sat_templates/templates/bulma/input/field.html Tue Nov 30 17:25:35 2021 +0100 +++ b/sat_templates/templates/bulma/input/field.html Tue Nov 30 17:25:55 2021 +0100 @@ -81,8 +81,8 @@ {{ field("password", name=name, label=label, value=value, required=required, icon_left=icon_left, icon_right=icon_right, attrs={'minlength': minlength}) }} {% endmacro %} -{% macro email(name, label="", required=false, value=none, icon_left=none, icon_right=none) %} - {{ field("email", name=name, label=label, value=value, required=required, icon_left=icon_left, icon_right=icon_right) }} +{% macro email(name, label="", required=false, value=none, placeholder=none, icon_left=none, icon_right=none) %} + {{ field("email", name=name, label=label, value=value, required=required, icon_left=icon_left, icon_right=icon_right, attrs={'placeholder': placeholder}) }} {% endmacro %} {% macro date(name, label="", required=false) %}