Skip to content

Commit 72b35f8

Browse files
committed
Form help extension
1 parent 88dcf1d commit 72b35f8

File tree

2 files changed

+23
-17
lines changed

2 files changed

+23
-17
lines changed

form-component.html

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
id=item.id %}
3939
{% if item.help %}
4040
{% include patterns/form-help.html
41-
content=item.help %}
41+
content=item.help more=item.help_more %}
4242
{% endif %}
4343
</fieldset>
4444
{% endif %}
@@ -114,7 +114,7 @@
114114

115115
{% if item.help %}
116116
{% include patterns/form-help.html
117-
content=item.help %}
117+
content=item.help more=item.help_more %}
118118
{% endif %}
119119

120120
{% include patterns/form-message.html message=item.message %}
@@ -147,7 +147,7 @@
147147
<br />
148148
{% if item.help %}
149149
{% include patterns/form-help.html
150-
content=item.help %}
150+
content=item.help more=item.help_more %}
151151
{% endif %}
152152
{% endif %}
153153

@@ -177,7 +177,7 @@
177177

178178
{% if item.help %}
179179
{% include patterns/form-help.html
180-
content=item.help %}
180+
content=item.help more=item.help_more %}
181181
{% endif %}
182182

183183
{% include patterns/form-message.html message=item.message %}
@@ -205,7 +205,7 @@
205205
{% include patterns/form-has-changes.html %}
206206
{% if item.help %}
207207
{% include patterns/form-help.html
208-
content=item.help %}
208+
content=item.help more=item.help_more %}
209209
{% endif %}
210210
{% include patterns/form-message.html message=item.message %}
211211
</label>
@@ -241,7 +241,7 @@
241241

242242
{% if item.help %}
243243
{% include patterns/form-help.html
244-
content=item.help %}
244+
content=item.help more=item.help_more %}
245245
{% endif %}
246246

247247
{% include patterns/form-has-changes.html %}
@@ -275,7 +275,7 @@
275275

276276
{% if item.help %}
277277
{% include patterns/form-help.html
278-
content=item.help %}
278+
content=item.help more=item.help_more %}
279279
{% endif %}
280280

281281
{% include patterns/form-has-changes.html %}
@@ -301,7 +301,7 @@
301301
</span>
302302
{% if item.help %}
303303
{% include patterns/form-help.html
304-
content=item.help %}
304+
content=item.help more=item.help_more %}
305305
{% endif %}
306306
</fieldset>
307307
<br />
@@ -323,7 +323,7 @@
323323

324324
{% if item.help %}
325325
{% include patterns/form-help.html
326-
content=item.help %}
326+
content=item.help more=item.help_more %}
327327
{% endif %}
328328

329329
{% include patterns/form-has-changes.html %}
@@ -346,7 +346,7 @@
346346

347347
{% if item.help %}
348348
{% include patterns/form-help.html
349-
content=item.help %}
349+
content=item.help more=item.help_more %}
350350
{% endif %}
351351

352352
{% include patterns/form-has-changes.html %}
@@ -382,7 +382,7 @@
382382

383383
{% if item.help %}
384384
{% include patterns/form-help.html
385-
content=item.help %}
385+
content=item.help more=item.help_more %}
386386
{% endif %}
387387

388388
{% include patterns/form-has-changes.html %}
@@ -419,7 +419,7 @@
419419

420420
{% if item.help %}
421421
{% include patterns/form-help.html
422-
content=item.help %}
422+
content=item.help more=item.help_more %}
423423
{% endif %}
424424

425425
{% include patterns/form-has-changes.html %}
@@ -443,7 +443,7 @@
443443

444444
{% if item.help %}
445445
{% include patterns/form-help.html
446-
content=item.help %}
446+
content=item.help more=item.help_more %}
447447
{% endif %}
448448

449449
<br {% if item.depends %}class="pat-depends"{% endif %} {% if item.depends %}data-pat-depends="{{ item.depends }}; transition: slide"{% endif %} />
@@ -464,7 +464,7 @@
464464

465465
{% if item.help %}
466466
{% include patterns/form-help.html
467-
content=item.help %}
467+
content=item.help more=item.help_more %}
468468
{% endif %}
469469

470470
{% include patterns/form-has-changes.html %}
@@ -616,7 +616,7 @@
616616

617617
{% if item.help %}
618618
{% include patterns/form-help.html
619-
content=item.help %}
619+
content=item.help more=item.help_more %}
620620
{% endif %}
621621

622622
{% include patterns/form-has-changes.html %}
@@ -668,7 +668,7 @@
668668
<br />
669669
{% if item.help %}
670670
{% include patterns/form-help.html
671-
content=item.help %}
671+
content=item.help more=item.help_more %}
672672
{% endif %}
673673
{% endif %}
674674

@@ -708,7 +708,7 @@
708708
{% endif %}
709709
{% if item.help %}
710710
{% include patterns/form-help.html
711-
content=item.help %}
711+
content=item.help more=item.help_more %}
712712
{% endif %}
713713
{% include patterns/form-has-changes.html %}
714714
</label>

form-help.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,10 @@
33
data-pat-tooltip="class: info; trigger: click; source: content; position-list: {{ include.position-list | default: 'tl' }}">
44
{% assign this_label = include.content %}
55
{% include patterns/i18n id=this_label %}
6+
{%- if include.more -%}
7+
<a
8+
data-pat-inject="history: record"
9+
href="{{ include.more }}"
10+
class="pat-inject close-panel read-more small pat-button">{%- include patterns/i18n id="patterns.label_read_more_ell" -%}</a>
11+
{%- endif -%}
612
</dfn>

0 commit comments

Comments
 (0)