File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020 {% set sessionActivityRows = sessionActivityRows | push (sessionActivityRow (" record" )) %}
2121{% endif %}
2222
23- {{ summaryList ({
24- card : {
23+ {% if sessionActivityRows . length > 0 or session . isCompleted %}
24+ {% call card ( {
2525 heading : __ (" session.activity.label" ),
2626 headingLevel : 3
27- },
28- rows : sessionActivityRows | removeLastSummaryBorder
29- }) if sessionActivityRows .length > 0 }}
27+ }) %}
28+ {{ summaryList ({
29+ rows : sessionActivityRows | removeLastSummaryBorder
30+ }) if sessionActivityRows .length > 0 }}
31+
32+ {{ actionLink ({
33+ text : __ (" session.inviteToClinic.label" ),
34+ href : session .uri + " /invite-to-clinic" ,
35+ variant : " secondary"
36+ }) if session .isCompleted }}
37+ {% endcall %}
38+ {% endif %}
39+
Original file line number Diff line number Diff line change 2424 {% include " session/_session-activity-summary.njk" %}
2525 {% endif %}
2626
27- {{ summaryList ({
28- card : {
29- heading : __ (" session.summary" ),
30- headingLevel : 3
31- },
32- rows : summaryRows (session , {
33- location : {},
34- school_id : {},
35- status : {},
36- patients : {},
37- programmes : {},
38- yearGroups : {},
39- consentWindow : {},
40- consentForms : {},
41- mmrConsent : {}
42- })
43- }) }}
44-
45- {{ appButtonGroup ({
46- buttons : [
47- {
27+ {% call card ({
28+ heading : __ (" session.summary" ),
29+ headingLevel : 3,
30+ actions : {
31+ items : [{
4832 text : __ (" session.schedule.title" ) if session .isUnplanned else __ (" session.edit.title" ),
49- href : session .uri + " /edit" ,
50- variant : " secondary"
51- },
52- {
53- text : __ (" session.inviteToClinic.label" ),
54- href : session .uri + " /invite-to-clinic" ,
55- variant : " secondary"
56- } if session .isCompleted
57- ],
58- links : [{
33+ href : session .uri + " /edit"
34+ }]
35+ }
36+ }) %}
37+ {{ summaryList ({
38+ rows : summaryRows (session , {
39+ location : {},
40+ school_id : {},
41+ status : {},
42+ patients : {},
43+ programmes : {},
44+ yearGroups : {},
45+ consentWindow : {},
46+ consentForms : {},
47+ mmrConsent : {}
48+ })
49+ }) }}
50+
51+ {{ actionLink ({
5952 text : __ (" session.offline.title" ),
6053 href : session .uri + " /offline"
61- }] if session .isPlanned or session .isActive
62- }) } }
54+ }) if session .isPlanned or session .isActive }}
55+ {% endcall % }
6356{% endblock %}
You can’t perform that action at this time.
0 commit comments