comparison 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
comparison
equal deleted inserted replaced
349:2e548a9830c6 350:1de6a0ecd529
79 79
80 {% macro password(name, label="", value=none, required=false, minlength=none, icon_left=none, icon_right=none) %} 80 {% macro password(name, label="", value=none, required=false, minlength=none, icon_left=none, icon_right=none) %}
81 {{ field("password", name=name, label=label, value=value, required=required, icon_left=icon_left, icon_right=icon_right, attrs={'minlength': minlength}) }} 81 {{ field("password", name=name, label=label, value=value, required=required, icon_left=icon_left, icon_right=icon_right, attrs={'minlength': minlength}) }}
82 {% endmacro %} 82 {% endmacro %}
83 83
84 {% macro email(name, label="", required=false, value=none, icon_left=none, icon_right=none) %} 84 {% macro email(name, label="", required=false, value=none, placeholder=none, icon_left=none, icon_right=none) %}
85 {{ field("email", name=name, label=label, value=value, required=required, icon_left=icon_left, icon_right=icon_right) }} 85 {{ field("email", name=name, label=label, value=value, required=required, icon_left=icon_left, icon_right=icon_right, attrs={'placeholder': placeholder}) }}
86 {% endmacro %} 86 {% endmacro %}
87 87
88 {% macro date(name, label="", required=false) %} 88 {% macro date(name, label="", required=false) %}
89 {{ field("date", name=name, label=label, required=required) }} 89 {{ field("date", name=name, label=label, required=required) }}
90 {% endmacro %} 90 {% endmacro %}