-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathform-checklist.html
More file actions
34 lines (34 loc) · 1.25 KB
/
form-checklist.html
File metadata and controls
34 lines (34 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<!-- <pat-checklist> -->
<fieldset
{% include patterns/form-field-auto-save-attributes %}
class="
{% include patterns/form-field-auto-save-classes %}
group
{{ include.class }}">
{% if include.label %}
<legend>{%- include patterns/i18n sentinel=false id=include.label -%}</legend>
{% endif %}
<div
class="pat-checklist">
{{ layout.checklist_all_day}}
|
{{ include.source}}
|
{%- assign this_checklist = include.source -%}
|
{{ this_checklist }}
{% for item in include.source %}
<label>
{%- if item.label contains _ -%}
{%- include patterns/i18n id=item.label -%}
{% else %}
{{ item.label }}
{% endif %}
<input
name="{{ item.label | remove: 'label_' | slugify }}"
type="checkbox">
</label>
{% endfor %}
</div>
</fieldset>
<!-- </pat-checklist> -->