Skip to content

Commit 9b95642

Browse files
Rename to worthing and misc cleanup
1 parent 615d250 commit 9b95642

File tree

7 files changed

+39
-28
lines changed

7 files changed

+39
-28
lines changed

app/assets/sass/components/_secondary-navigation.scss

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
$govuk-spacing1: 5px;
2+
$govuk-spacing2: 10px;
3+
$govuk-spacing3: 15px;
4+
$govuk-spacing4: 20px;
5+
6+
17
.app-secondary-navigation {
28
@include nhsuk-responsive-margin(4, "bottom");
39
}
@@ -7,12 +13,12 @@
713
}
814

915
.app-secondary-navigation__list-item--current {
10-
border-bottom-width: nhsuk-spacing(1);
16+
border-bottom-width: $govuk-sacing1;
1117
}
1218

1319
.app-secondary-navigation__link {
14-
padding-left: nhsuk-spacing(3);
15-
padding-right: nhsuk-spacing(3);
20+
padding-left: $govuk-spacing3;
21+
padding-right: $govuk-spacing3;
1622
}
1723

1824
// --------
@@ -56,14 +62,14 @@
5662
box-sizing: border-box;
5763
display: block;
5864
float: left;
59-
margin-right: nhsuk-spacing(4);
60-
padding-bottom: nhsuk-spacing(2);
61-
padding-top: nhsuk-spacing(2);
65+
margin-right: $govuk-spacing4;
66+
padding-bottom: $govuk-spacing2;
67+
padding-top: $govuk-spacing2;
6268
position: relative;
6369

6470
// More generous padding beneath items on wider screens
6571
@include mq($from: tablet) {
66-
padding-bottom: nhsuk-spacing(3);
72+
padding-bottom: $govuk-spacing3;
6773
}
6874
}
6975

@@ -76,11 +82,11 @@
7682

7783
.app-secondary-navigation__list-item--current {
7884
border-bottom: $nhsuk-border-width solid $color_nhsuk-blue;
79-
padding-bottom: nhsuk-spacing(1);
85+
padding-bottom: $govuk-sacing1;
8086

8187
// More generous padding beneath items on wider screens
8288
@include mq($from: tablet) {
83-
padding-bottom: nhsuk-spacing(2);
89+
padding-bottom: $govuk-spacing2;
8490
}
8591
}
8692

app/data/breast-screening-units.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ const generateId = require('../lib/utils/id-generator');
44
module.exports = [
55
{
66
id: "m5ekcxvu", // Must be hardcoded so it matches generated data
7-
name: "Oxford Breast Imaging Centre",
7+
name: "West Sussex BSS",
88
address: {
9-
line1: "Surgery and Diagnostics Centre",
10-
line2: "Churchill Hospital",
11-
line3: "Old Road",
9+
line1: "Breast Screening Unit",
10+
line2: "Worthing Hospital",
11+
line3: "Lyndhurst Rd",
1212
line4: "Headington",
13-
city: "Oxford",
14-
postcode: "OX3 7LE"
13+
city: "Worthing",
14+
postcode: "BN11 2DH"
1515
},
1616
phoneNumber: "01865235621",
17-
abbreviation: "OXF",
17+
abbreviation: "WSB",
1818
serviceTypes: ['screening', 'assessment'], // Can do both
1919
// Default operating hours for the BSU
2020
sessionPatterns: [
@@ -37,16 +37,16 @@ module.exports = [
3737
locations: [
3838
{
3939
id: "duif1ywp", // Must be hardcoded so it matches generated data
40-
name: "Churchill Hospital breast unit",
40+
name: "West Sussex BSS",
4141
type: "hospital",
4242
isMainSite: true,
4343
address: {
44-
line1: "Surgery and Diagnostics Centre",
45-
line2: "Churchill Hospital",
46-
line3: "Old Road",
44+
line1: "Breast Screening Unit",
45+
line2: "Worthing Hospital",
46+
line3: "Lyndhurst Rd",
4747
line4: "Headington",
48-
city: "Oxford",
49-
postcode: "OX3 7LE"
48+
city: "Worthing",
49+
postcode: "BN11 2DH"
5050
}
5151
},
5252
// {

app/data/users.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ module.exports = [
55
role: "mamographer",
66
77
id: "ae7537b3-aed1-4620-87fd-9dc5b5bdc8cb",
8-
breastScreeningUnit: "f66f2a7d-99a8-4793-8371-3d075e1a7c54"
8+
breastScreeningUnit: "m5ekcxvu"
99
}
1010
]

app/lib/utils/clinics.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ const getTodaysClinics = (clinics) => {
2121
*/
2222
const getClinicEvents = (events, clinicId) => {
2323
if (!events || !clinicId) return [];
24-
console.log(`Looking for events with clinicId: ${clinicId}`);
25-
console.log(`Found ${events.filter(e => e.clinicId === clinicId).length} events`);
24+
// console.log(`Looking for events with clinicId: ${clinicId}`);
25+
// console.log(`Found ${events.filter(e => e.clinicId === clinicId).length} events`);
2626
return events.filter(e => e.clinicId === clinicId);
2727
};
2828

app/views/clinics/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ <h1>{{pageHeading}}</h1>
5858
<th scope="col">Location</th>
5959
<th scope="col">Date</th>
6060
<th scope="col">Service type</th>
61-
<th scope="col" class="nhsuk-table__cell--numeric">Status</th>
61+
<th scope="col">Status</th>
6262
<th scope="col" class="nhsuk-table__cell--numeric">Participants</th>
6363
</tr>
6464
</thead>

app/views/clinics/show.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,9 @@ <h2 class="nhsuk-heading-m">Details</h2>
9696
<dt class="nhsuk-summary-list__key">Location</dt>
9797
<dd class="nhsuk-summary-list__value">
9898
{{ unit.name }}<br>
99-
{{ unit.address | replace("\n", "<br>") | safe }}
99+
{% for item, line in unit.address %}
100+
{{ line }}{% if not loop.last %}<br>{% endif %}
101+
{% endfor %}
100102
</dd>
101103
</div>
102104

app/views/participants/show.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,10 @@ <h2 class="nhsuk-heading-m">Personal details</h2>
107107
</div>
108108
</dl>
109109

110-
<h2 class="nhsuk-heading-m">Medical information</h2>
110+
{% if participant.medicalInformation.riskFactors | length or participant.currentHealthInformation.medications | length %}
111+
<h2 class="nhsuk-heading-m">Medical information</h2>
112+
{% endif %}
113+
111114

112115
<dl class="nhsuk-summary-list">
113116
{% if participant.medicalInformation.riskFactors.length > 0 %}

0 commit comments

Comments
 (0)