From 977da682c32917032104ed07a780ef683c7f7d04 Mon Sep 17 00:00:00 2001 From: Neil Mills Date: Mon, 6 Jan 2025 14:26:11 +0000 Subject: [PATCH] MAN-150 add arrange appointment button --- server/routes/appointments.ts | 5 +++++ server/views/pages/appointments.njk | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/server/routes/appointments.ts b/server/routes/appointments.ts index a3ec17b7..d5f85107 100644 --- a/server/routes/appointments.ts +++ b/server/routes/appointments.ts @@ -40,6 +40,11 @@ export default function scheduleRoutes(router: Router, { hmppsAuthClient }: Serv }) }) + post('/case/:crn/appointments', async (req, res, next) => { + const { crn } = req.params + res.redirect(`/case/${crn}/arrange-appointment/type`) + }) + get('/case/:crn/appointments/appointment/:contactId', async (req, res, _next) => { const { crn } = req.params const { contactId } = req.params diff --git a/server/views/pages/appointments.njk b/server/views/pages/appointments.njk index f47662f3..9de8990e 100644 --- a/server/views/pages/appointments.njk +++ b/server/views/pages/appointments.njk @@ -138,11 +138,12 @@ {% block headerActions %}
- - - + +
{% endblock %}