Skip to content

Commit 129f037

Browse files
Add provider onto clinic list page
Added to fit in line with the prototype after snagging session
1 parent 745d7f0 commit 129f037

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

manage_breast_screening/clinics/jinja2/clinics/index.jinja

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,14 @@
55
{% from 'components/secondary-navigation/macro.jinja' import app_secondary_navigation %}
66

77
{% block page_content %}
8-
<h1>{{ presenter.heading }}</h1>
8+
<h1>
9+
<span class="nhsuk-caption-l">
10+
{{ provider_name }}
11+
</span>
12+
{{
13+
presenter.heading
14+
}}
15+
</h1>
916

1017
{% set ns = namespace() %}
1118
{% set ns.secondaryNavItems = [] %}

manage_breast_screening/clinics/views.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ def clinic_list(request, filter="today"):
1818
return render(
1919
request,
2020
"clinics/index.jinja",
21-
context={"presenter": presenter, "page_title": presenter.heading},
21+
context={
22+
"presenter": presenter,
23+
"page_title": presenter.heading,
24+
"provider_name": provider.name,
25+
},
2226
)
2327

2428

manage_breast_screening/tests/system/clinical/test_clinic_show_page.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ def and_there_are_appointments(self):
115115
def and_i_am_on_the_clinic_list(self):
116116
self.page.goto(self.live_server_url + reverse("clinics:index"))
117117
self.assert_page_title_contains("Today’s clinics")
118+
heading = self.page.get_by_role("heading", level=1)
119+
expect(heading).to_contain_text(self.current_provider.name)
118120

119121
def and_i_am_on_the_clinic_show_page(self):
120122
self.page.goto(

0 commit comments

Comments
 (0)