comparison sat_templates/templates/bulma/input/field.html @ 296:fbea1b9a558f

bulma: new search box, used in blog for now
author Goffi <goffi@goffi.org>
date Thu, 10 Dec 2020 11:29:04 +0100
parents edefc1f25219
children cdf88211b86b
comparison
equal deleted inserted replaced
295:1de599c5a68f 296:fbea1b9a558f
24 </span> 24 </span>
25 {% endif %} 25 {% endif %}
26 </div> 26 </div>
27 {% if help %} 27 {% if help %}
28 <p class="help">{{help}}</p> 28 <p class="help">{{help}}</p>
29 {% endif %}
30 {% if caller %}
31 {{ caller() }}
29 {% endif %} 32 {% endif %}
30 </div> 33 </div>
31 {% endmacro %} 34 {% endmacro %}
32 35
33 {% macro select(name, options_list, selected=none, required=false, multiple=false, class='') %} 36 {% macro select(name, options_list, selected=none, required=false, multiple=false, class='') %}
65 <label for="{{cur_id}}" class="label checkbox">{{label}}</label> 68 <label for="{{cur_id}}" class="label checkbox">{{label}}</label>
66 <input id="{{cur_id}}" type="checkbox" {% if checked %}checked=checked{% endif %}> 69 <input id="{{cur_id}}" type="checkbox" {% if checked %}checked=checked{% endif %}>
67 {% endmacro %} 70 {% endmacro %}
68 71
69 {% macro text(name, label="", value=none, class='', placeholder=none, required=false, pattern=none, title=none, autocomplete=none, icon_left=none, icon_right=none) %} 72 {% macro text(name, label="", value=none, class='', placeholder=none, required=false, pattern=none, title=none, autocomplete=none, icon_left=none, icon_right=none) %}
70 {{ 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}) }} 73 {{ 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) }}
71 {% endmacro %} 74 {% endmacro %}
72 75
73 {% macro password(name, label="", value=none, required=false, minlength=none, icon_left=none, icon_right=none) %} 76 {% macro password(name, label="", value=none, required=false, minlength=none, icon_left=none, icon_right=none) %}
74 {{ field("password", name=name, label=label, value=value, required=required, icon_left=icon_left, icon_right=icon_right, attrs={'minlength': minlength}) }} 77 {{ field("password", name=name, label=label, value=value, required=required, icon_left=icon_left, icon_right=icon_right, attrs={'minlength': minlength}) }}
75 {% endmacro %} 78 {% endmacro %}