1
+ {% if include.ui_content %}
2
+ {% assign ui_data_path = include.ui_content %}
3
+ {% else %}
4
+ {% assign ui_data_path = site.ui_data_path %}
5
+ {% endif %}
6
+
7
+ {% if include.src contains 'layout.' %}
8
+ {% capture src %}{{ include.src | remove: 'layout.' }}{% endcapture %}
9
+ {% elsif include.src contains 'page.' %}
10
+ {% capture src %}{{ include.src | remove: 'page.' }}{% endcapture %}
11
+ {% else %}
12
+ {% capture src %}{{ include.src }}{% endcapture %}
13
+ {% endif %}
14
+
15
+ < div
16
+ class ="
17
+ form-panel
18
+ {% if include.collapsible %}pat-collapsible {{ include.collapsible }}{% endif %}
19
+ section
20
+ {{ include.class }} "
21
+ data-pat-collapsible ="
22
+ store: local; self;
23
+ {%- if include.help_url -%}trigger: {{ page.title | slugify }}-{{ title_nr }}-form-panel-title{%- endif -%}
24
+ {% if include.scroll-offset %}scroll-offset: {{ include.scroll-offset }}{% endif %} "
25
+ id ="{{ page.title | slugify }}-{{ title_nr }} ">
26
+ {% assign title_nr = 1 %}
27
+ < div
28
+ class ="form-panel-title-group ">
29
+ < h3
30
+ id ="{{ page.title | slugify }}-{{ title_nr }}-form-panel-title "
31
+ class ="
32
+ {% if item.depends %}pat-depends{% endif %}
33
+ form-panel-title "
34
+ {% if item.depends %}data-pat-depends ="{{ item.depends }}; transition: slide " {% endif %} >
35
+ {% include patterns/i18n id=include.title %}
36
+ </ h3 >
37
+ {%- if include.help_url -%}
38
+ < div
39
+ class ="buttons ">
40
+ < a
41
+ class ="
42
+ pat-inject
43
+ icon
44
+ help
45
+ {%- if include.switch -%}pat-switch{%- endif -%}
46
+ {{ include.classes }} "
47
+ {%- if include.help_switch -%}
48
+ data-pat-switch ="{{ include.help_switch }} "
49
+ {%- endif -%}
50
+ {%- if include.help_inject -%}
51
+ data-pat-inject ="{{ include.help_inject }} "
52
+ {%- endif -%}
53
+ data-pat-inject ="
54
+ history: record;
55
+ {%- if include.scroll -%}scroll: #{{ include.scroll }};{%- endif -%} "
56
+ href ="{{ include.help_url }} "> {%- include patterns/i18n id="label_help" -%}</ a >
57
+ </ div >
58
+ {%- endif -%}
59
+ </ div >
60
+ < fieldset
61
+ class ="
62
+ panel-content
63
+ {% if include.layout == 'horizontal' %}horizontal{% else %}vertical{% endif %} ">
64
+ {% if include.src contains 'layout.' %}
65
+ {% for item in layout[src] %}
66
+ {% include patterns/form-component.html %}
67
+ {% endfor %}
68
+ {% elsif include.src contains 'page.' %}
69
+ {% for item in page[src] %}
70
+ {% include patterns/form-component.html %}
71
+ {% endfor %}
72
+ {% else %}
73
+ {% for item in site.data[src] %}
74
+ {% include patterns/form-component.html %}
75
+ {% endfor %}
76
+ {% endif %}
77
+ </ fieldset >
78
+ </ div >
0 commit comments