File tree Expand file tree Collapse file tree 4 files changed +82
-0
lines changed
components/appointment-status-bar Expand file tree Collapse file tree 4 files changed +82
-0
lines changed Original file line number Diff line number Diff line change @@ -80,3 +80,44 @@ a[href="#"] {
8080 }
8181 }
8282}
83+
84+ .app-status-bar {
85+ background-color : #00386e ;
86+ color : #ffffff ;
87+ padding : 8px 0 ;
88+ border-bottom : 1px solid #d8dde0 ;
89+ }
90+
91+ .app-status-bar a {
92+ color : #ffffff ;
93+ }
94+ .app-status-bar a :hover , .app-status-bar a :active {
95+ color : #ffffff ;
96+ }
97+ .app-status-bar a :focus {
98+ color : #212b32 ;
99+ }
100+
101+ .app-status-bar__row {
102+ display : flex ;
103+ flex-wrap : wrap ;
104+ gap : 24px ;
105+ align-items : center ;
106+ }
107+
108+ .app-status-bar__row + .app-status-bar__row {
109+ margin-top : 8px ;
110+ padding-top : 8px ;
111+ border-top : 1px solid rgba (255 , 255 , 255 , 0.2 );
112+ }
113+
114+ .app-status-bar__item {
115+ display : flex ;
116+ gap : 8px ;
117+ align-items : center ;
118+ }
119+
120+ .app-status-bar__key {
121+ font-weight : 600 !important ;
122+ opacity : 0.9 ;
123+ }
Original file line number Diff line number Diff line change 1+ {% macro appointment_status_bar (presented_appointment ) %}
2+ {% - include 'components/appointment-status-bar/template.jinja' -%}
3+ {% endmacro %}
Original file line number Diff line number Diff line change 1+ {% from 'nhsuk/components/tag/macro.jinja' import tag %}
2+
3+ {% if presented_appointment .active %}
4+ <div class =" app-status-bar undefined app-status-bar--rows-2" >
5+ <div class =" nhsuk-width-container" >
6+ <div class =" app-status-bar__row" >
7+ <div class =" app-status-bar__item" >
8+ <span class =" app-status-bar__key" >Appointment:</span >
9+ <span >{{ presented_appointment.clinic_slot.slot_time_and_clinic_date }}</span >
10+ </div >
11+ <div class =" app-status-bar__item" >
12+ {{ tag({
13+ "text": presented_appointment.current_status.text,
14+ "classes": presented_appointment.current_status.classes
15+ }) }}
16+ </div >
17+ </div >
18+ <div class =" app-status-bar__row" >
19+ <div class =" app-status-bar__item" >
20+ <strong >{{ presented_appointment.participant.full_name }}</strong >
21+ </div >
22+ <div class =" app-status-bar__item" >
23+ <span class =" app-status-bar__key" >DOB:</span >
24+ <span >{{ presented_appointment.participant.date_of_birth }} ({{ presented_appointment.participant.age }})</span >
25+ </div >
26+ <div class =" app-status-bar__item" >
27+ <span class =" app-status-bar__key" >NHS:</span >
28+ <span >{{ presented_appointment.participant.nhs_number }}</span >
29+ </div >
30+ </div >
31+ </div >
32+ </div >
33+ {% endif %}
Original file line number Diff line number Diff line change 11{% from 'nhsuk/components/header/macro.jinja' import header %}
22{% from "notification-banner/macro.jinja" import notificationBanner %}
3+ {% from 'components/appointment-status-bar/macro.jinja' import appointment_status_bar %}
34
45{% set assetPath = STATIC_URL ~ "/assets" %}
56{% extends "nhsuk/template.jinja" %}
3334 ]
3435 }
3536 }) }}
37+
38+ {{
39+ appointment_status_bar(presented_appointment)
40+ }}
3641{% endblock %}
3742
3843{% block content %}
You can’t perform that action at this time.
0 commit comments