annotate sat_templates/templates/bulma/input/field.html @ 413:0190a0d32909 default tip

Forum: Major redesign of forums: Forums have been redesigned. They follow the new general design with 2 or 3 panels, allowing to have directly a forum if one is found/set up, and a panel on the left to search/discover other ones. Categories have been rewritten to be usable with pubsub relationships, a XEP-0277 type node is used for topics, and each item has a comments node for the threads. The thread view is set in `forum/show_messages.html` template. It has a header with a search box and a button to (un)subscribe. Items are displayed with the same macros as for the blog items. Below a room is set for editor, tags and attachments. rel 463
author Goffi <goffi@goffi.org>
date Fri, 05 Sep 2025 21:54:09 +0200
parents 58c4c1664421
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
230
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
1 {# macros to create form fields #}
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
2
413
0190a0d32909 Forum: Major redesign of forums:
Goffi <goffi@goffi.org>
parents: 367
diff changeset
3 {% macro field(type, name, label="", value=none, class="", control_class="", help="", required=false, icon_left=none, icon_right=none, in_group=false, attrs=none, delete_button=false) %}
230
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
4 {# generic field
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
5 "class" keyword can be used to add classes
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
6 additional kwargs will be passed as attributes #}
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
7
304
cdf88211b86b bulma (input/field): `field` macro now has `control_class` and `in_group` attributes:
Goffi <goffi@goffi.org>
parents: 296
diff changeset
8 {% if not in_group %}
cdf88211b86b bulma (input/field): `field` macro now has `control_class` and `in_group` attributes:
Goffi <goffi@goffi.org>
parents: 296
diff changeset
9 <div class="field form_input {{class}}">
cdf88211b86b bulma (input/field): `field` macro now has `control_class` and `in_group` attributes:
Goffi <goffi@goffi.org>
parents: 296
diff changeset
10 {% endif %}
230
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
11 {% set cur_id = name|next_gidx %}
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
12 {% if label %}
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
13 <label for="{{cur_id}}" class="label">{{label}}</label>
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
14 {% endif %}
413
0190a0d32909 Forum: Major redesign of forums:
Goffi <goffi@goffi.org>
parents: 367
diff changeset
15 <div class="control{% if icon_left %} has-icons-left{% endif %}{% if icon_right or delete_button %} has-icons-right{% endif %} {{control_class}}">
269
edefc1f25219 bulma (input/field): fixed use of `attrs` in `field`, added args, replaced use of `kwargs`
Goffi <goffi@goffi.org>
parents: 259
diff changeset
16 <input id="{{cur_id}}" class="input" type="{{type}}" name="{{name}}" {{"required" if required}}{{{'value': value}|xmlattr}}{{(attrs or {})|xmlattr}}>
230
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
17 {% if icon_left %}
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
18 <span class="icon is-left">
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
19 {# we use <i> with font from CSS instead of SVG, because using directly SVG doesn't play way with Bulma's control #}
413
0190a0d32909 Forum: Major redesign of forums:
Goffi <goffi@goffi.org>
parents: 367
diff changeset
20 <i class="{{icon_left}}"></i>
230
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
21 </span>
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
22 {% endif %}
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
23 {% if icon_right %}
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
24 <span class="icon is-right">
413
0190a0d32909 Forum: Major redesign of forums:
Goffi <goffi@goffi.org>
parents: 367
diff changeset
25 <i class="{{icon_right}}"></i>
0190a0d32909 Forum: Major redesign of forums:
Goffi <goffi@goffi.org>
parents: 367
diff changeset
26 </span>
0190a0d32909 Forum: Major redesign of forums:
Goffi <goffi@goffi.org>
parents: 367
diff changeset
27 {% endif %}
0190a0d32909 Forum: Major redesign of forums:
Goffi <goffi@goffi.org>
parents: 367
diff changeset
28 {% if delete_button %}
0190a0d32909 Forum: Major redesign of forums:
Goffi <goffi@goffi.org>
parents: 367
diff changeset
29 <span class="icon is-right action_delete">
0190a0d32909 Forum: Major redesign of forums:
Goffi <goffi@goffi.org>
parents: 367
diff changeset
30 <a role="button" class="delete is-small" aria-label="Delete"></a>
230
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
31 </span>
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
32 {% endif %}
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
33 </div>
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
34 {% if help %}
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
35 <p class="help">{{help}}</p>
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
36 {% endif %}
296
fbea1b9a558f bulma: new search box, used in blog for now
Goffi <goffi@goffi.org>
parents: 269
diff changeset
37 {% if caller %}
fbea1b9a558f bulma: new search box, used in blog for now
Goffi <goffi@goffi.org>
parents: 269
diff changeset
38 {{ caller() }}
fbea1b9a558f bulma: new search box, used in blog for now
Goffi <goffi@goffi.org>
parents: 269
diff changeset
39 {% endif %}
304
cdf88211b86b bulma (input/field): `field` macro now has `control_class` and `in_group` attributes:
Goffi <goffi@goffi.org>
parents: 296
diff changeset
40 {% if not in_group %}
cdf88211b86b bulma (input/field): `field` macro now has `control_class` and `in_group` attributes:
Goffi <goffi@goffi.org>
parents: 296
diff changeset
41 </div>
cdf88211b86b bulma (input/field): `field` macro now has `control_class` and `in_group` attributes:
Goffi <goffi@goffi.org>
parents: 296
diff changeset
42 {% endif %}
230
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
43 {% endmacro %}
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
44
304
cdf88211b86b bulma (input/field): `field` macro now has `control_class` and `in_group` attributes:
Goffi <goffi@goffi.org>
parents: 296
diff changeset
45 {% macro select(name, options_list, selected=none, required=false, multiple=false, class="") %}
230
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
46 {# selection of elements with <select>
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
47
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
48 @param name: name of the field
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
49 @param options_list(list[str, str]): list of name, label of options
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
50 @param selected(none, list): list of select elements
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
51 @param required(bool): true this field is required
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
52 @param multiple(bool): true is multiple selection is possible
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
53 #}
269
edefc1f25219 bulma (input/field): fixed use of `attrs` in `field`, added args, replaced use of `kwargs`
Goffi <goffi@goffi.org>
parents: 259
diff changeset
54 <select name="{{name}}" class="form_input {{class}}" {{"required" if required}}>
230
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
55 {% for value, label in options_list %}
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
56 <option value="{{value}}" {{'selected' if selected and value in selected}}>{{label}}</option>
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
57 {% endfor %}
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
58 </select>
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
59 {% endmacro %}
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
60
304
cdf88211b86b bulma (input/field): `field` macro now has `control_class` and `in_group` attributes:
Goffi <goffi@goffi.org>
parents: 296
diff changeset
61 {% macro choices(name, choices_list, checked=none, class="") %}
269
edefc1f25219 bulma (input/field): fixed use of `attrs` in `field`, added args, replaced use of `kwargs`
Goffi <goffi@goffi.org>
parents: 259
diff changeset
62 <div class="control {{class}}">
230
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
63 {% for choice, label in choices_list %}
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
64 <label class="radio" for="{{name|cur_gidx}}">
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
65 <input id="{{name|next_gidx}}" type="radio" name="{{name}}" value="{{choice}}"{{" checked" if checked==choice}}> {{label}}
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
66 </label>
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
67 {% endfor %}
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
68 </div>
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
69 {% endmacro %}
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
70
305
552daa830d42 bulma (input/field): `int` macro has new attributes:
Goffi <goffi@goffi.org>
parents: 304
diff changeset
71 {% macro int(name, label="", init=0, class="", control_class="", placeholder=none, min=none, max=none, step=none, in_group=false) %}
552daa830d42 bulma (input/field): `int` macro has new attributes:
Goffi <goffi@goffi.org>
parents: 304
diff changeset
72 {{ field("number", name=name, label=label, value=init, class=class, control_class=control_class, in_group=in_group, attrs={"min": min, "max": max, "step": step, "placeholder": placeholder}) }}
230
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
73 {% endmacro %}
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
74
349
2e548a9830c6 (bulma) input/field: fix `name` attribute + add `required` to checkbox
Goffi <goffi@goffi.org>
parents: 317
diff changeset
75 {% macro checkbox(name, label="", checked=false, required=false) %}
230
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
76 {% set cur_id = name|next_gidx %}
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
77 <label for="{{cur_id}}" class="label checkbox">{{label}}</label>
349
2e548a9830c6 (bulma) input/field: fix `name` attribute + add `required` to checkbox
Goffi <goffi@goffi.org>
parents: 317
diff changeset
78 <input {{ {"id": cur_id, "name": name}|xmlattr }} type="checkbox" {% if checked %}checked=checked{% endif %} {{"required" if required}}>
230
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
79 {% endmacro %}
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
80
316
81689d346cf6 bulma (input/field): added `help` argument to `text` macro
Goffi <goffi@goffi.org>
parents: 307
diff changeset
81 {% 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) %}
81689d346cf6 bulma (input/field): added `help` argument to `text` macro
Goffi <goffi@goffi.org>
parents: 307
diff changeset
82 {{ 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) }}
230
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
83 {% endmacro %}
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
84
413
0190a0d32909 Forum: Major redesign of forums:
Goffi <goffi@goffi.org>
parents: 367
diff changeset
85 {% macro search(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, delete_button=false) %}
0190a0d32909 Forum: Major redesign of forums:
Goffi <goffi@goffi.org>
parents: 367
diff changeset
86 {{ field("search", 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, delete_button=delete_button, caller=caller) }}
367
58c4c1664421 bulma (input/field): add `search` field
Goffi <goffi@goffi.org>
parents: 350
diff changeset
87 {% endmacro %}
58c4c1664421 bulma (input/field): add `search` field
Goffi <goffi@goffi.org>
parents: 350
diff changeset
88
269
edefc1f25219 bulma (input/field): fixed use of `attrs` in `field`, added args, replaced use of `kwargs`
Goffi <goffi@goffi.org>
parents: 259
diff changeset
89 {% macro password(name, label="", value=none, required=false, minlength=none, icon_left=none, icon_right=none) %}
edefc1f25219 bulma (input/field): fixed use of `attrs` in `field`, added args, replaced use of `kwargs`
Goffi <goffi@goffi.org>
parents: 259
diff changeset
90 {{ field("password", name=name, label=label, value=value, required=required, icon_left=icon_left, icon_right=icon_right, attrs={'minlength': minlength}) }}
230
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
91 {% endmacro %}
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
92
350
1de6a0ecd529 (bulma) input/field: add `placeholder` attribute
Goffi <goffi@goffi.org>
parents: 349
diff changeset
93 {% macro email(name, label="", required=false, value=none, placeholder=none, icon_left=none, icon_right=none) %}
1de6a0ecd529 (bulma) input/field: add `placeholder` attribute
Goffi <goffi@goffi.org>
parents: 349
diff changeset
94 {{ field("email", name=name, label=label, value=value, required=required, icon_left=icon_left, icon_right=icon_right, attrs={'placeholder': placeholder}) }}
230
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
95 {% endmacro %}
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
96
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
97 {% macro date(name, label="", required=false) %}
249
60bf3e45d7b2 bulma (input/field): don't use kwargs anymore:
Goffi <goffi@goffi.org>
parents: 230
diff changeset
98 {{ field("date", name=name, label=label, required=required) }}
230
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
99 {% endmacro %}
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
100
249
60bf3e45d7b2 bulma (input/field): don't use kwargs anymore:
Goffi <goffi@goffi.org>
parents: 230
diff changeset
101 {% macro url(name, label="", class="", placeholder=none, required=false, title=none, pattern=none) %}
60bf3e45d7b2 bulma (input/field): don't use kwargs anymore:
Goffi <goffi@goffi.org>
parents: 230
diff changeset
102 {{ field("url", name=name, label=label, required=required, attrs={'placeholder': placeholder, 'title': title, 'pattern': pattern}) }}
230
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
103 {% endmacro %}
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
104
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
105 {% macro file(name, label="", required=false) %}
249
60bf3e45d7b2 bulma (input/field): don't use kwargs anymore:
Goffi <goffi@goffi.org>
parents: 230
diff changeset
106 {{ field("file", name=name, label=label, required=required) }}
230
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
107 {% endmacro %}
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
108
304
cdf88211b86b bulma (input/field): `field` macro now has `control_class` and `in_group` attributes:
Goffi <goffi@goffi.org>
parents: 296
diff changeset
109 {% macro textarea(name, label="", rows=none, cols=50, placeholder="", help="", required=false) %}
230
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
110 <div class="field form_input">
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
111 {% set cur_id = name|next_gidx %}
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
112 {% if label %}
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
113 <label for="{{cur_id}}" class="label">{{label}}</label>
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
114 {% endif %}
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
115 <textarea id="{{cur_id}}" name="{{name}}" {{ {"rows": rows, "cols": cols}|xmlattr }} placeholder="{{placeholder}}" {{"required" if required}} class="textarea"></textarea>
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
116 {% if help %}
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
117 <p class="help">{{help}}</p>
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
118 {% endif %}
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
119 </div>
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
120 {% endmacro %}
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
121
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
122 {% macro meta(name, value) %}
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
123 <input type="hidden" name="{{name}}" value="{{value}}">
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
124 {% endmacro %}
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
125
317
ae903ca0ed66 bulma (input/field): color can now be specified for `submit` button
Goffi <goffi@goffi.org>
parents: 316
diff changeset
126 {% macro submit(text=_("Send"), id=none, class="", icon=none, attrs=none, color="is-primary") %}
230
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
127 {# submit button
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
128
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
129 @param text(str): label of the button
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
130 @param id(none, str): id of the element
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
131 #}
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
132 <div class="control {{class}}">
317
ae903ca0ed66 bulma (input/field): color can now be specified for `submit` button
Goffi <goffi@goffi.org>
parents: 316
diff changeset
133 <button{{ {'id': id}|xmlattr }} class="button {{color}} form_submit {{class}}" type="submit"{{(attrs or {})|xmlattr}}>
307
605bce1df126 bulma (input/field): icon can now be specified with `submit` macro
Goffi <goffi@goffi.org>
parents: 306
diff changeset
134 {{text}}
605bce1df126 bulma (input/field): icon can now be specified with `submit` macro
Goffi <goffi@goffi.org>
parents: 306
diff changeset
135 {% if icon %}
605bce1df126 bulma (input/field): icon can now be specified with `submit` macro
Goffi <goffi@goffi.org>
parents: 306
diff changeset
136 <span class="icon is-small">
605bce1df126 bulma (input/field): icon can now be specified with `submit` macro
Goffi <goffi@goffi.org>
parents: 306
diff changeset
137 <i class="icon-{{icon}}"></i>
605bce1df126 bulma (input/field): icon can now be specified with `submit` macro
Goffi <goffi@goffi.org>
parents: 306
diff changeset
138 </span>
605bce1df126 bulma (input/field): icon can now be specified with `submit` macro
Goffi <goffi@goffi.org>
parents: 306
diff changeset
139 {% endif %}
605bce1df126 bulma (input/field): icon can now be specified with `submit` macro
Goffi <goffi@goffi.org>
parents: 306
diff changeset
140 </button>
230
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
141 </div>
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
142 {% endmacro %}