-
Notifications
You must be signed in to change notification settings - Fork 131
Expand file tree
/
Copy pathall.njk
More file actions
1058 lines (997 loc) · 29.8 KB
/
all.njk
File metadata and controls
1058 lines (997 loc) · 29.8 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{% extends 'layouts/page.njk' %}
{% set title = 'Components' %}
{% block header %}
{{ header({
search: true,
navigation: {
items: [
{
href: "https://www.nhs.uk/conditions",
text: "Health A to Z"
},
{
href: 'https://www.nhs.uk/live-well/',
text: 'Live Well'
},
{
href: 'https://www.nhs.uk/conditions/social-care-and-support/',
text: 'Care and support'
},
{
href: 'https://www.nhs.uk/news/',
text: 'Health news'
},
{
href: 'https://www.nhs.uk/service-search',
text: 'Services near you'
}
]
}
}) }}
{% endblock %}
{% block beforeContent %}
{{ breadcrumb({
items: [
{
text: "Home",
href: "#"
},
{
text: "Health A to Z",
href: "#"
}
]
}) }}
{% endblock %}
{% block content %}
<div class="nhsuk-grid-row">
<div class="nhsuk-grid-column-two-thirds">
<h1>Components</h1>
{{ contentsList({
items: [
{
href: "#",
text: "What is AMD?",
current: "true"
},
{
href: "#",
text: "Symptoms"
},
{
href: "#",
text: "Getting diagnosed"
}
,
{
href: "#",
text: "Treatments"
}
,
{
href: "#",
text: "Living with AMD"
}
]
}) }}
</div>
</div>
<ul class="nhsuk-grid-row nhsuk-card-group">
<li class="nhsuk-grid-column-one-half nhsuk-card-group__item">
{{ card({
"href": "#",
"clickable": "true",
"heading": "Introduction to care and support",
"headingClasses": "nhsuk-heading-m",
"description": "A quick guide for people who have care and support needs and their carers."
}) }}
</li>
<li class="nhsuk-grid-column-one-half nhsuk-card-group__item">
{{ card({
"href": "#",
"clickable": "true",
"heading": "Help from social services and charities",
"headingClasses": "nhsuk-heading-m",
"description": "Includes helplines, needs assessments, advocacy and reporting abuse."
}) }}
</li>
<li class="nhsuk-grid-column-one-half nhsuk-card-group__item">
{{ card({
"href": "#",
"clickable": "true",
"heading": "Money, work and benefits",
"headingClasses": "nhsuk-heading-m",
"description": "How to pay for care and support, and where you can get help with costs."
}) }}
</li>
<li class="nhsuk-grid-column-one-half nhsuk-card-group__item">
{{ card({
"href": "#",
"clickable": "true",
"heading": "Care after a hospital stay",
"headingClasses": "nhsuk-heading-m",
"description": "Includes hospital discharge and care and support afterwards."
}) }}
</li>
</ul>
<ul class="nhsuk-grid-row nhsuk-card-group">
<li class="nhsuk-grid-column-one-third nhsuk-card-group__item">
{{ card({
"href": "#",
"clickable": "true",
"heading": "5 steps to mental wellbeing",
"headingClasses": "nhsuk-heading-m",
"description": "Practical advice to help you feel mentally and emotionally better."
}) }}
</li>
<li class="nhsuk-grid-column-one-third nhsuk-card-group__item">
{{ card({
"href": "#",
"clickable": "true",
"heading": "Healthy weight",
"headingClasses": "nhsuk-heading-m",
"description": "Check your BMI using our healthy weight calculator and find out if you're a healthy weight."
}) }}
</li>
<li class="nhsuk-grid-column-one-third nhsuk-card-group__item">
{{ card({
"href": "#",
"clickable": "true",
"heading": "Exercise",
"headingClasses": "nhsuk-heading-m",
"description": "Programmes, workouts and tips to get you moving and improve your fitness and wellbeing."
}) }}
</li>
</ul>
<ul class="nhsuk-grid-row nhsuk-card-group">
<li class="nhsuk-grid-column-one-quarter nhsuk-card-group__item">
{{ card({
"clickable": "true",
"headingHtml": '<p class="nhsuk-heading-xl nhsuk-u-font-size-64 nhsuk-u-margin-bottom-1">91 <span class="nhsuk-u-visually-hidden">Applicants</span></p><a href="#" class="nhsuk-card__link nhsuk-u-font-weight-normal nhsuk-u-font-size-19 nhsuk-link--no-visited-state">Applicants</a>'
}) }}
</li>
<li class="nhsuk-grid-column-one-quarter nhsuk-card-group__item">
{{ card({
"clickable": "true",
"headingHtml": '<p class="nhsuk-heading-xl nhsuk-u-font-size-64 nhsuk-u-margin-bottom-1">23 <span class="nhsuk-u-visually-hidden">Jobs</span></p><a href="#" class="nhsuk-card__link nhsuk-u-font-weight-normal nhsuk-u-font-size-19 nhsuk-link--no-visited-state">Jobs</a>'
}) }}
</li>
<li class="nhsuk-grid-column-one-quarter nhsuk-card-group__item">
{{ card({
"clickable": "true",
"headingHtml": '<p class="nhsuk-heading-xl nhsuk-u-font-size-64 nhsuk-u-margin-bottom-1">8 <span class="nhsuk-u-visually-hidden">Services</span></p><a href="#" class="nhsuk-card__link nhsuk-u-font-weight-normal nhsuk-u-font-size-19 nhsuk-link--no-visited-state">Services</a>'
}) }}
</li>
<li class="nhsuk-grid-column-one-quarter nhsuk-card-group__item">
{{ card({
"clickable": "true",
"headingHtml": '<p class="nhsuk-heading-xl nhsuk-u-font-size-64 nhsuk-u-margin-bottom-1">33 <span class="nhsuk-u-visually-hidden">Messages</span></p><a href="#" class="nhsuk-card__link nhsuk-u-font-weight-normal nhsuk-u-font-size-19 nhsuk-link--no-visited-state">Messages</a>'
}) }}
</li>
</ul>
<div class="nhsuk-grid-row">
<div class="nhsuk-grid-column-two-thirds">
{% call card({
"heading": "If you need help now, but it's not an emergency",
"headingLevel": "3"
}) %}
<p class="nhsuk-card__description">Go to <a href="#">NHS 111 online</a> or <a href="#">call 111</a>.</p>
{% endcall %}
{{ card({
"href": "#",
"clickable": "true",
"heading": "Introduction to care and support",
"headingClasses": "nhsuk-heading-m",
"description": "A quick guide for people who have care and support needs and their carers."
}) }}
{{ card({
"imgURL": "https://assets.nhs.uk/prod/images/A_0218_exercise-main_FKW1X7.width-690.jpg",
"href": "#",
"clickable": "true",
"heading": "Exercise",
"headingClasses": "nhsuk-heading-m",
"description": "Programmes, workouts and tips to get you moving and improve your fitness and wellbeing."
}) }}
{{ card({
"feature": "true",
"heading": "Feature card heading",
"headingClasses": "nhsuk-heading-m",
"description": "Feature card description"
}) }}
<p>The single-direction margin declarations have been changed to the bottom. All text elements use margin-bottom (24px desktop, 16px mobile).</p>
<h2>Heading level two</h2>
<p>Body paragraph. If you have a high temperature or do not feel well enough to do your normal activities, try to stay at home and avoid contact with other people until you feel better.</p>
<h3>Heading level three</h3>
<p>Body paragraph. Do not use other cough and cold medicines if you're also taking paracetamol and ibuprofen tablets as you may take more medicine than you should.</p>
<h4>Heading level four</h4>
<p>Body paragraph. You can buy nasal sprays without a prescription, but they should not be used for more than a week as this can make your symptoms worse.</p>
<p>A second paragraph of text with a <a href="#">text link</a> inside, to show you what one looks like.</p>
<h2>Heading level two</h2>
<p>Body paragraph. There's little evidence that supplements such as vitamin C, echinacea or garlic prevent colds or help you get better more quickly.</p>
{% call insetText() %}
<p>If you drive you must tell the <a href="https://www.gov.uk/contact-the-dvla" title="External website">DVLA</a> about your vertigo. Visit the GOV.UK website for more information on <a href="https://www.gov.uk/dizziness-and-driving" title="External website">driving with vertigo</a></p>
{% endcall %}
{{ warningCallout({
"heading": "Important",
"text": "For safety, tell your doctor or pharmacist if you're taking any other medicines, including herbal medicines, vitamins or supplements."
}) }}
{{ warningCallout({
"heading": "School, nursery or work",
"text": "Stay away from school, nursery or work until all the spots have crusted over. This is usually 5 days after the spots first appeared."
}) }}
{% call card({
"heading": "Speak to a GP if:",
"headingLevel": 3,
"type": "non-urgent"
}) %}
<ul>
<li>you're not sure it's chickenpox</li>
<li>the skin around the blisters is red, hot or painful (signs of infection)</li>
<li>your child is <a href="https://www.nhs.uk/conditions/dehydration">dehydrated</a></li>
<li>you're concerned about your child or they get worse</li>
</ul>
<p>Tell the receptionist you think it's chickenpox before going in. They may recommend a special appointment time if other patients are at risk.</p>
{% endcall %}
{% call card({
"heading": "Ask for an urgent GP appointment if:",
"headingLevel": 3,
"type": "urgent"
}) %}
<ul>
<li>you're an adult and have chickenpox</li>
<li>you're pregnant and haven't had chickenpox before and you've been near someone with it</li>
<li>you have a weakened immune system and you've been near someone with chickenpox</li>
<li>you think your newborn baby has chickenpox</li>
</ul>
<p>In these situations, your GP can prescribe medicine to prevent complications. You need to take it within 24 hours of the spots coming out.</p>
{% endcall %}
{% call card({
"heading": "Call 999 if you have sudden chest pain that:",
"headingLevel": 3,
"type": "emergency"
}) %}
<ul>
<li>spreads to your arms, back, neck or jaw</li>
<li>makes your chest feel tight or heavy</li>
<li>also started with shortness of breath, sweating and feeling or being sick</li>
</ul>
<p>You could be having a heart attack. Call 999 immediately as you need immediate treatment in hospital.</p>
{% endcall %}
{{ image({
"alt": "Picture of allergic conjunctivitis",
"src": "https://assets.nhs.uk/prod/images/ABF9YH_GDGeL2X.2e16d0ba.fill-320x213.jpg",
"caption": "Itchy, red, watering eyes"
}) }}
{{ image({
"alt": "Picture of allergic conjunctivitis",
"src": "https://assets.nhs.uk/prod/images/ABF9YH_GDGeL2X.2e16d0ba.fill-320x213.jpg",
"caption": "Itchy, red, watering eyes"
}) }}
{{ actionLink({
"text": "Find your nearest A&E",
"href": "#"
}) }}
{% call details({
"summaryText": "Where can I find my NHS number?"
}) %}
<p>An NHS number is a 10 digit number, like 485 777 3456.</p>
<p>You can find your NHS number on any document sent to you by the NHS. This may include:</p>
<ul>
<li>prescriptions</li>
<li>test results</li>
<li>hospital referral letters</li>
<li>appointment letters</li>
<li>your NHS medical card</li>
</ul>
<p>Ask your GP practice for help if you can't find your NHS number.</p>
{% endcall %}
{% call details({
"summaryText": "Opening times",
"classes": "nhsuk-expander"
}) %}
{{ table({
firstCellIsHeader: true,
head: [
{
text: "Day of the week"
},
{
text: "Opening hours"
}
],
rows: [
[
{
text: "Monday"
},
{
text: "9am to 6pm"
}
],
[
{
text: "Tuesday"
},
{
text: "9am to 6pm"
}
],
[
{
text: "Wednesday"
},
{
text: "9am to 6pm"
}
],
[
{
text: "Thursday"
},
{
text: "9am to 6pm"
}
],
[
{
text: "Friday"
},
{
text: "9am to 6pm"
}
],
[
{
text: "Saturday"
},
{
text: "9am to 1pm"
}
],
[
{
text: "Sunday"
},
{
text: "Closed"
}
]
]
}) }}
{% endcall %}
<div class="nhsuk-expander-group">
{% call details({
"summaryText": "How to measure your blood glucose levels",
"classes": "nhsuk-expander"
}) %}
<p>Testing your blood at home is quick and easy, although it can be uncomfortable. It does get better.</p>
<p>You would have been given:</p>
<ul>
<li>a blood glucose metre</li>
<li>small needles called lancets</li>
<li>a plastic pen to hold the lancest</li>
<li>small test strips</li>
</ul>
{% endcall %}
{% call details({
"summaryText": "When to check your blood glucose level",
"classes": "nhsuk-expander"
}) %}
<p>Try to check your blood:</p>
<ul>
<li>before meals</li>
<li>2 to 3 hours after meals</li>
<li>before, during (take a break) and after exercise</li>
</ul>
<p>This helps you understand your blood glucose levels and how they're affected by meals and exercise. It should help you have more stable blood glucose levels.</p>
{% endcall %}
</div>
{{ pagination({
"previousUrl": "/section/treatments",
"previousPage": "Treatments",
"nextUrl": "/section/symptoms",
"nextPage": "Symptoms"
}) }}
{{ list({
"title": "Do",
"type": "tick",
"items": [
{
"item": "cover blisters that are likely to burst with a soft plaster or dressing"
},
{
"item": "wash your hands before touching a burst blister"
},
{
"item": "allow the fluid in a burst blister to drain before covering it with a plaster or dressing"
}
]
}) }}
{{ list({
"title": "Don't",
"type": "cross",
"items": [
{
"item": "burst a blister yourself"
},
{
"item": "peel the skin off a burst blister"
},
{
"item": "pick at the edges of the remaining skin"
},
{
"item": "wear the shoes or use the equipment that caused your blister until it heals"
}
]
}) }}
{{ table({
panel: false,
heading: "Skin symptoms and possible causes",
caption: "Skin symptoms and possible causes",
firstCellIsHeader: false,
head: [
{
text: "Skin symptoms"
},
{
text: "Possible cause"
}
],
rows: [
[
{
text: "Blisters on lips or around the mouth"
},
{
text: "cold sores"
}
],
[
{
text: "Itchy, dry, cracked, sore"
},
{
text: "eczema"
}
],
[
{
text: "Itchy blisters"
},
{
text: "shingles, chickenpox"
}
]
]
}) }}
{{ table({
panel: true,
heading: "Skin symptoms and possible causes",
caption: "Skin symptoms and possible causes",
firstCellIsHeader: false,
head: [
{
text: "Skin symptoms"
},
{
text: "Possible cause"
}
],
rows: [
[
{
text: "Blisters on lips or around the mouth"
},
{
text: "cold sores"
}
],
[
{
text: "Itchy, dry, cracked, sore"
},
{
text: "eczema"
}
],
[
{
text: "Itchy blisters"
},
{
text: "shingles, chickenpox"
}
]
]
}) }}
{{ summaryList({
rows: [
{
key: {
text: "Name"
},
value: {
text: "Sarah Philips"
},
actions: {
items: [
{
href: "#",
text: "Change",
visuallyHiddenText: "name"
}
]
}
},
{
key: {
text: "Date of birth"
},
value: {
text: "5 January 1978"
},
actions: {
items: [
{
href: "#",
text: "Change",
visuallyHiddenText: "date of birth"
}
]
}
},
{
key: {
text: "Contact information"
},
value: {
html: "72 Guild Street<br>London<br>SE23 6FH"
},
actions: {
items: [
{
href: "#",
text: "Change",
visuallyHiddenText: "contact information"
}
]
}
},
{
classes: "nhsuk-summary-list__row--no-border",
key: {
text: "Contact details"
},
value: {
html: '<p>07700 900457</p><p>sarah.philips@example.com</p>'
},
actions: {
items: [
{
href: "#",
text: "Add",
visuallyHiddenText: "new contact details"
},
{
href: "#",
text: "Change",
visuallyHiddenText: "contact details"
}
]
}
}
]
}) }}
{{ summaryList({
classes: "nhsuk-summary-list--no-border",
rows: [
{
key: {
text: "Name"
},
value: {
text: "Sarah Philips"
}
},
{
key: {
text: "Date of birth"
},
value: {
text: "5 January 1978"
}
},
{
key: {
text: "Contact information"
},
value: {
html: "72 Guild Street<br>London<br>SE23 6FH"
}
},
{
key: {
text: "Contact details"
},
value: {
html: '<p>07700 900457</p><p>sarah.philips@example.com</p>'
}
}
]
}) }}
{{ table({
head: [
{
text: "Class name",
classes: "nhsuk-u-width-two-thirds"
},
{
text: "Tag",
classes: "nhsuk-u-width-one-third"
}
],
rows: [
[
{
text: "nhsuk-tag"
},
{
html: tag({
text: "Active"
}) | safe
}
],
[
{
text: "nhsuk-tag--white"
},
{
html: tag({
text: "Started",
classes: "nhsuk-tag--white"
}) | safe
}
],
[
{
text: "nhsuk-tag--grey"
},
{
html: tag({
text: "Not started",
classes: "nhsuk-tag--grey"
}) | safe
}
],
[
{
text: "nhsuk-tag--green"
},
{
html: tag({
text: "New",
classes: "nhsuk-tag--green"
}) | safe
}
],
[
{
text: "nhsuk-tag--aqua-green"
},
{
html: tag({
text: "Active",
classes: "nhsuk-tag--aqua-green"
}) | safe
}
],
[
{
text: "nhsuk-tag--blue"
},
{
html: tag({
text: "Pending",
classes: "nhsuk-tag--blue"
}) | safe
}
],
[
{
text: "nhsuk-tag--purple"
},
{
html: tag({
text: "Received",
classes: "nhsuk-tag--purple"
}) | safe
}
],
[
{
text: "nhsuk-tag--pink"
},
{
html: tag({
text: "Sent",
classes: "nhsuk-tag--pink"
}) | safe
}
],
[
{
text: "nhsuk-tag--red"
},
{
html: tag({
text: "Rejected",
classes: "nhsuk-tag--red"
}) | safe
}
],
[
{
text: "nhsuk-tag--orange"
},
{
html: tag({
text: "Declined",
classes: "nhsuk-tag--orange"
}) | safe
}
],
[
{
text: "nhsuk-tag--yellow"
},
{
html: tag({
text: "Delayed",
classes: "nhsuk-tag--yellow"
}) | safe
}
]
]
}) }}
{{ input({
"label": {
"text": "NHS number"
},
"id": "input-example",
"classes": "nhsuk-input--width-20",
"name": "test-name"
}) }}
{{ input({
"label": {
"text": "NHS number"
},
"hint": {
"text": "It's a 10-digit number that's on any letter the NHS has sent you, for example, 485 777 3456"
},
"id": "input-with-error-message",
"classes": "nhsuk-input--width-20",
"name": "test-name-3",
"errorMessage": {
"text": "Error message goes here"
}
}) }}
<form method="post" novalidate>
{{ checkboxes({
"idPrefix": "nationality",
"name": "nationality",
"fieldset": {
"legend": {
"text": "What is your nationality?"
}
},
"hint": {
"text": "If you have more than 1 nationality, select all options that are relevant to you"
},
"values": ["british"],
"items": [
{
"value": "british",
"text": "British"
},
{
"value": "irish",
"text": "Irish"
},
{
"value": "other",
"text": "citizen of another country"
}
]
}) }}
</form>
{{ radios({
"idPrefix": "example",
"name": "example",
"fieldset": {
"legend": {
"text": "Have you changed your name?"
}
},
"hint": {
"text": "This includes changing your last name or spelling your name differently"
},
"value": "no",
"items": [
{
"value": "yes",
"text": "Yes"
},
{
"value": "no",
"text": "No"
}
]
}) }}
{{ dateInput({
"id": "dob",
"namePrefix": "dob",
"fieldset": {
"legend": {
"text": "What is your date of birth?"
}
},
"hint": {
"text": "For example, 31 3 1980"
},
"items": [
{
"name": "day",
"classes": "nhsuk-input--width-2"
},
{
"name": "month",
"classes": "nhsuk-input--width-2"
},
{
"name": "year",
"classes": "nhsuk-input--width-4"
}
]
}) }}
{{ textarea({
"name": "more-detail-textarea",
"id": "more-detail-textarea",
"label": {
"text": "Can you provide more detail?"
},
"hint": {
"text": "Do not include personal information, like your name, date of birth or NHS number"
}
}) }}
{{ characterCount({
"name": "more-detail-character-count",
"id": "more-detail-character-count",
"maxlength": 200,
"label": {
"text": "Can you provide more detail?"
},
"hint": {
"text": "Do not include personal information, like your name, date of birth or NHS number"
}
}) }}
{{ select({
"id": "sort",
"name": "sort",
"label": {
"text": "Sort by"
},
"value": "updated",
"items": [
{
"value": "published",
"text": "Recently published"
},
{
"value": "updated",
"text": "Recently updated"
},
{
"value": "views",
"text": "Most views"
},
{
"value": "comments",
"text": "Most comments"
}
]
}) }}
<div class="nhsuk-button-group">
{{ button({
"text": "Save and continue"
}) }}
{{ button({
"text": "Yes, delete this vaccine",
"classes": "nhsuk-button--warning"
}) }}
{{ button({
"text": "Continue",
"classes": "nhsuk-button--login"
}) }}
{{ button({
"text": "Find my location",
"classes": "nhsuk-button--secondary"
}) }}
</div>
{{ backLink() }}
{% set tabOneContent %}
<h2>Tab one content</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
{% endset -%}
{% set tabTwoContent %}
<h2>Tab two content</h2>
<p>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt.</p>
{% endset -%}
{% set tabThreeContent %}
<h2>Tab three content</h2>
<p>Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?</p>
{% endset -%}
{{ tabs({
items: [
{
label: "Tab one",
id: "tab-one",
panel: {
html: tabOneContent