comparison sat_templates/templates/bulma/input/field.html @ 306:206a98e3d06b

bulma (input/field): add `control_class` and `in_group` to `text` macro
author Goffi <goffi@goffi.org>
date Sat, 27 Feb 2021 20:50:52 +0100
parents 552daa830d42
children 605bce1df126
comparison
equal deleted inserted replaced
305:552daa830d42 306:206a98e3d06b
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='', placeholder=none, required=false, pattern=none, title=none, autocomplete=none, icon_left=none, icon_right=none) %} 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) %}
77 {{ field("text", name=name, label=label, value=value, class=class, required=required, icon_left=icon_left, icon_right=icon_right, attrs={'placeholder': placeholder, 'pattern': pattern, 'title': title, 'autocomplete': autocomplete}, caller=caller) }} 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) }}
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 %}