diff --git a/app/views/clinics/clinic-detail.html b/app/views/clinics/clinic-detail.html index 07b1e9f..dc4324a 100644 --- a/app/views/clinics/clinic-detail.html +++ b/app/views/clinics/clinic-detail.html @@ -1,6 +1,6 @@ {% extends 'layout.html' %} -{% set pageName = "Calendar view" %} +{% set pageName = "Clinics" %} {% from "_includes/primary-navigation.html" import primaryNavigation %} {% block header %} @@ -8,305 +8,136 @@ {% endblock %} {% block beforeContent %} -{{ breadcrumb({ - items: [ - { - href: "#", - text: "Home" - }, - { - href: "/clinics/", - text: "Clinics" - } - ] -}) }} + {% endblock %} {% block content %}
-
+

- HWO-NNN-standard-20260501 - Worthing C2C test 1 + Clinic + Chichester - St Richards

+

+ Alpha van
+ St Richard’s Hospital, Chichester +

-
- -
-
-
-
-
- Unit and location -
-
- Home base HWO-static-1
- Worthing Worthing Hospital -
-
-
-
- Clinic timeframe -
-
- 1 day -
-
-
+
+
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
September 2026
MondayTuesdayWednesdayThursdayFridaySaturdaySunday
- No data - - - 1 - 42 available
of 45 -
-
- - 2 - 0 available
of 50 -
-
- - 3 - - - - 4 - - - - 5 - - - - 6 - -
- - 7 - - - - 8 - - - - 9 - - - - 10 - - - - 11 - - - - 12 - - - - 13 - -
- - 14 - - - - 15 - - - - 16 - - - - 17 - - - - 18 - - - - 19 - - - - 20 - -
- - 21 - - - - 22 - - - - 23 - - - - 24 - - - - 25 - - - - 26 - - - - 27 - -
- - 28 - - - - 29 - - - - 30 - - - No data - - No data - - No data - - No data -
- +
+

Schedules

+ {{ button({ + text: "Create a new schedule", + href: "#", + classes: "nhsuk-button--secondary" + }) }} +
-
-
- {% call details({ - summaryHtml: '

Batches associated with this clinic

' - }) %} - {% set batch_1 %} - - Worthing C2C batch test 1
-
- HWO-standard-20260821 - {% endset %} - {% set batch_1_progress %} -
- 2 of 40 appointed - {% endset %} + + + + + + + + + + + + + + + + + + + + + + + + +
+ Clinic + + Unit and location + + Current schedules + + Current capacity +
+ Chichester - St Richards
+ HWO-NNN-standard-20260501 +
+ Alpha van
+ St Richard’s Hospital, Chichester +
+ 31 August 2026 to 9 October 2026 + + 1500 slots available
+ of which 150 held +
+ Chichester - St Richards
+ HWO-NNN-standard-20260501 +
+ Alpha van
+ St Richard’s Hospital, Chichester +
+ No active schedules + + 1500 slots available
+ of which 150 held +
+ + + - {{ table({ - firstCellIsHeader: false, - head: [ - { - text: "Batch" - }, - { - text: "Type" - }, - { - text: "Progress" - } - ], - rows: [ - [ - { - html: batch_1 - }, - { - text: "Standard" - }, - { - html: batch_1_progress - } - ] - ] - }) }} - {% endcall %}
+ {% endblock %} diff --git a/app/views/clinics/index.html b/app/views/clinics/index.html index a670700..b7bdbb2 100644 --- a/app/views/clinics/index.html +++ b/app/views/clinics/index.html @@ -16,7 +16,7 @@ {% for item in [ { href: '/clinics/', label: 'Active clinics', selected: 'true' }, { href: '#', label: 'Archived clinics' }, - { href: '/sessions/templating-01-listing', label: 'Session templates' } + { href: '/sessions/templating-01-listing', label: 'Manage session templates' } ] %} {% set secondaryNavItems = secondaryNavItems | push({ text: item.label | safe, @@ -45,7 +45,83 @@

Active clinics

- {% include "_includes/clinics/clinic-listing-table.html"%} + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Clinic + + Unit and location + + Current schedules + + Current capacity +
+ Chichester - St Richards
+ HWO-NNN-standard-20260501 +
+ Alpha van
+ St Richard’s Hospital, Chichester +
+ 31 August 2026 to 9 October 2026 + + 1500 slots available
+ of which 150 held +
+ Chichester - St Richards
+ HWO-NNN-standard-20260501 +
+ Alpha van
+ St Richard’s Hospital, Chichester +
+ No active schedules + + 1500 slots available
+ of which 150 held +
+ + + + +
diff --git a/app/views/clinics/00-create-day-clinic.html b/app/views/clinics/z-older-versions/00-create-day-clinic.html similarity index 100% rename from app/views/clinics/00-create-day-clinic.html rename to app/views/clinics/z-older-versions/00-create-day-clinic.html diff --git a/app/views/clinics/01-set-date-and-time.html b/app/views/clinics/z-older-versions/01-set-date-and-time.html similarity index 100% rename from app/views/clinics/01-set-date-and-time.html rename to app/views/clinics/z-older-versions/01-set-date-and-time.html diff --git a/app/views/clinics/02-organise-slots.html b/app/views/clinics/z-older-versions/02-organise-slots.html similarity index 100% rename from app/views/clinics/02-organise-slots.html rename to app/views/clinics/z-older-versions/02-organise-slots.html diff --git a/app/views/clinics/03-publish-clinic.html b/app/views/clinics/z-older-versions/03-publish-clinic.html similarity index 100% rename from app/views/clinics/03-publish-clinic.html rename to app/views/clinics/z-older-versions/03-publish-clinic.html diff --git a/app/views/clinics/z-older-versions/clinic-detail.html b/app/views/clinics/z-older-versions/clinic-detail.html new file mode 100644 index 0000000..07b1e9f --- /dev/null +++ b/app/views/clinics/z-older-versions/clinic-detail.html @@ -0,0 +1,312 @@ +{% extends 'layout.html' %} + +{% set pageName = "Calendar view" %} + +{% from "_includes/primary-navigation.html" import primaryNavigation %} +{% block header %} + {{ primaryNavigation("Clinics", serviceName) }} +{% endblock %} + +{% block beforeContent %} +{{ breadcrumb({ + items: [ + { + href: "#", + text: "Home" + }, + { + href: "/clinics/", + text: "Clinics" + } + ] +}) }} +{% endblock %} + +{% block content %} + +
+
+

+ HWO-NNN-standard-20260501 + Worthing C2C test 1 +

+
+
+ +
+
+
+
+
+ Unit and location +
+
+ Home base HWO-static-1
+ Worthing Worthing Hospital +
+
+
+
+ Clinic timeframe +
+
+ 1 day +
+
+
+
+
+ + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
September 2026
MondayTuesdayWednesdayThursdayFridaySaturdaySunday
+ No data + + + 1 + 42 available
of 45 +
+
+ + 2 + 0 available
of 50 +
+
+ + 3 + + + + 4 + + + + 5 + + + + 6 + +
+ + 7 + + + + 8 + + + + 9 + + + + 10 + + + + 11 + + + + 12 + + + + 13 + +
+ + 14 + + + + 15 + + + + 16 + + + + 17 + + + + 18 + + + + 19 + + + + 20 + +
+ + 21 + + + + 22 + + + + 23 + + + + 24 + + + + 25 + + + + 26 + + + + 27 + +
+ + 28 + + + + 29 + + + + 30 + + + No data + + No data + + No data + + No data +
+ +
+
+ +
+ +
+
+ {% call details({ + summaryHtml: '

Batches associated with this clinic

' + }) %} + + {% set batch_1 %} + + Worthing C2C batch test 1
+
+ HWO-standard-20260821 + {% endset %} + {% set batch_1_progress %} +
+ 2 of 40 appointed + {% endset %} + + {{ table({ + firstCellIsHeader: false, + head: [ + { + text: "Batch" + }, + { + text: "Type" + }, + { + text: "Progress" + } + ], + rows: [ + [ + { + html: batch_1 + }, + { + text: "Standard" + }, + { + html: batch_1_progress + } + ] + ] + }) }} + + {% endcall %} +
+
+{% endblock %} diff --git a/app/views/clinics/z-older-versions/index.html b/app/views/clinics/z-older-versions/index.html new file mode 100644 index 0000000..a670700 --- /dev/null +++ b/app/views/clinics/z-older-versions/index.html @@ -0,0 +1,52 @@ +{% extends 'layout.html' %} + +{% set pageName = "Clinics" %} + +{% from "_includes/primary-navigation.html" import primaryNavigation %} +{% block header %} + {{ primaryNavigation("Clinics", serviceName) }} +{% endblock %} + +{% block beforeContent %}{% endblock %} + +{% block content %} + + {% set secondaryNavItems = [] %} + + {% for item in [ + { href: '/clinics/', label: 'Active clinics', selected: 'true' }, + { href: '#', label: 'Archived clinics' }, + { href: '/sessions/templating-01-listing', label: 'Session templates' } + ] %} + {% set secondaryNavItems = secondaryNavItems | push({ + text: item.label | safe, + href: item.href | trim, + current: true if item.selected == 'true' + }) %} + {% endfor %} + + {{ appSecondaryNavigation({ + visuallyHiddenTitle: "Secondary menu", + items: secondaryNavItems + }) }} + +
+
+
+

Active clinics

+ {{ button({ + text: "Create a new clinic", + href: "00-create-day-clinic", + classes: "nhsuk-button--secondary" + }) }} +
+
+
+ +
+
+ {% include "_includes/clinics/clinic-listing-table.html"%} +
+
+ +{% endblock %} diff --git a/app/views/clinics/templating-01-set-times.html b/app/views/clinics/z-older-versions/templating-01-set-times.html similarity index 100% rename from app/views/clinics/templating-01-set-times.html rename to app/views/clinics/z-older-versions/templating-01-set-times.html diff --git a/app/views/index.html b/app/views/index.html index e4b8108..c03bb3c 100755 --- a/app/views/index.html +++ b/app/views/index.html @@ -47,7 +47,10 @@

August 2026

Clinics with schedules ideation

  1. - Create a new clinic + Create a new clinic (containers) +
  2. +
  3. + Create a new clinic (transaction)

Appointments and active clinics

@@ -73,14 +76,19 @@

July 2026

Template listing -

May–June 2026

+

+ May–June 2026 + + superceded + +

Clinics: first run

  1. - Clinic listing + Clinic listing
  2. - Clinic detail + Clinic detail