comparison sat_templates/templates/bulma/input/field.html @ 316:81689d346cf6

bulma (input/field): added `help` argument to `text` macro
author Goffi <goffi@goffi.org>
date Thu, 29 Apr 2021 15:52:04 +0200
parents 605bce1df126
children ae903ca0ed66
comparison
equal deleted inserted replaced
315:f7ffdd1aed4c 316:81689d346cf6
71 {% set cur_id = name|next_gidx %} 71 {% set cur_id = name|next_gidx %}
72 <label for="{{cur_id}}" class="label checkbox">{{label}}</label> 72 <label for="{{cur_id}}" class="label checkbox">{{label}}</label>
73 <input id="{{cur_id}}" type="checkbox" {% if checked %}checked=checked{% endif %}> 73 <input id="{{cur_id}}" type="checkbox" {% if checked %}checked=checked{% endif %}>
74 {% endmacro %} 74 {% endmacro %}
75 75
76 {% macro text(name, label="", value=none, class="", control_class="", placeholder=none, required=false, pattern=none, title=none, autocomplete=none, icon_left=none, icon_right=none, in_group=false) %} 76 {% macro text(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) %}
77 {{ field("text", name=name, label=label, value=value, class=class, control_class=control_class, 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) }} 77 {{ 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) }}
78 {% endmacro %} 78 {% endmacro %}
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 %}