Mercurial > libervia-templates
changeset 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 | aa30f8c20ae5 |
files | sat_templates/templates/bulma/input/field.html |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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) %}