File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -110,6 +110,7 @@ export const en = {
110110 batch : {
111111 new : {
112112 label : 'Add a new batch' ,
113+ ariaLabel : 'Add a new %s batch' ,
113114 title : 'Add batch' ,
114115 confirm : 'Add batch' ,
115116 success : 'Batch {{batch.id}} added'
Original file line number Diff line number Diff line change 1111
1212 {% for vaccine in vaccines %}
1313 {% call card ({
14- feature : true ,
1514 heading : vaccine .brandWithType ,
1615 headingSize : " m" ,
1716 href : vaccine .uri
2322 })
2423 }) }}
2524
26- {{ button ({
25+ {{ actionLink ({
2726 text : __ (" batch.new.label" ),
2827 href : vaccine .uri + " /batches/new" ,
29- variant : " secondary"
28+ attributes : {
29+ " aria-label" : __ (" batch.new.ariaLabel" , vaccine .brandWithType )
30+ }
3031 }) }}
3132
3233 {% set batchRows = [] %}
Original file line number Diff line number Diff line change 11{% extends " _layouts/default.njk" %}
22
3- {% set title = vaccine .brandWithName %}
3+ {% set title = vaccine .brandWithType %}
44{% set paths = { back : " /vaccines" } %}
55
66{% block content %}
7- <div class =" nhsuk-u-width-three-quarters" >
8- {{ super () }}
7+ {{ super () }}
98
10- {{ appHeading ({
11- title : title
12- }) }}
9+ {{ appHeading ({
10+ title : title
11+ }) }}
1312
14- {{ summaryList ({
15- card : {
16- heading : vaccine .brand ,
17- headingSize : " m" ,
18- actions : {
19- items : [
20- {
21- text : __ (" vaccine.show.delete" ),
22- href : vaccine .uri + " /delete"
23- }
24- ]
25- }
26- },
27- rows : summaryRows (vaccine , {
28- manufacturer : {},
29- snomed : {},
30- type : {},
31- method : {},
32- dose : {},
33- healthQuestions : {},
34- preScreenQuestions : {},
35- sideEffects : {}
36- })
37- }) }}
38- </div >
13+ {{ summaryList ({
14+ card : {
15+ heading : __ (" vaccine.show.summary" ),
16+ headingSize : " m" ,
17+ actions : {
18+ items : [
19+ {
20+ text : __ (" vaccine.show.delete" ),
21+ href : vaccine .uri + " /delete"
22+ }
23+ ]
24+ }
25+ },
26+ rows : summaryRows (vaccine , {
27+ type : {},
28+ brand : {},
29+ manufacturer : {},
30+ snomed : {},
31+ method : {},
32+ dose : {},
33+ healthQuestions : {},
34+ sideEffects : {}
35+ })
36+ }) }}
3937{% endblock %}
You can’t perform that action at this time.
0 commit comments