From 910bff1fe9f624da5a0d6263c51d65cf5a4c56b8 Mon Sep 17 00:00:00 2001 From: Adam Silver Date: Thu, 26 Jul 2018 16:05:56 +0100 Subject: [PATCH] Check page shows list for hearing flow --- app/routes/fr.js | 4 + app/views/app/case/fr/decision/check.html | 100 ++++++++++++++++++ .../app/case/fr/decision/confirmation.html | 2 +- .../app/case/fr/decision/hearing-details.html | 9 +- 4 files changed, 111 insertions(+), 4 deletions(-) diff --git a/app/routes/fr.js b/app/routes/fr.js index 1675fcc0..053ee8c3 100644 --- a/app/routes/fr.js +++ b/app/routes/fr.js @@ -226,6 +226,10 @@ router.get('/app/cases/:id/fr/check', (req, res) => { reasons: [] }; + if(req.session.data.decision === 'List for hearing') { + pageObject.backLink.href = `/app/cases/${_case.id}/fr/hearing-details` + } + if(req.session.data.reject) { req.session.data.reject.forEach((item) => { if(item == 'not enough') { diff --git a/app/views/app/case/fr/decision/check.html b/app/views/app/case/fr/decision/check.html index 91c2a1b2..6d6abfbb 100644 --- a/app/views/app/case/fr/decision/check.html +++ b/app/views/app/case/fr/decision/check.html @@ -41,6 +41,105 @@

Check your decision

+ {% if data.reason %} +
+ +
Reason for hearing
+ +
+ {{data.reason}} +
+ +
+ Change hearing details +
+
+ {% endif %} + {% if data.duration %} +
+ +
Hearing duration (minutes)
+ +
+ {{data.duration}} +
+ +
+ Change hearing details +
+
+ {% endif %} + {% if data['minimum-notice-needed'] %} +
+ +
Minimum duration needed (working days)
+ +
+ {{data['minimum-notice-needed']}} +
+ +
+ Change hearing details +
+
+ {% endif %} + + {% if data['latest-listing-date-day'] %} +
+ +
Latest date this can be listed
+ +
+ {{data['latest-listing-date-day']}}/{{data['latest-listing-date-month']}}/{{data['latest-listing-date-year']}} +
+ +
+ Change hearing details +
+
+ {% endif %} + {% if data['listed-for-you'] %} +
+ +
Do you want it to be listed for you?
+ +
+ {{data['listed-for-you']}} +
+ +
+ Change hearing details +
+
+ {% endif %} + {% if data['transfer'] %} +
+ +
Do you want the hearing to be transferred to another court?
+ +
+ {{data['transfer']}} +
+ +
+ Change hearing details +
+
+ {% endif %} + {% if data['name-of-court'] %} +
+ +
Name of court
+ +
+ {{data['name-of-court']}} +
+ +
+ Change hearing details +
+
+ {% endif %} {% if reasons.length %}
@@ -67,6 +166,7 @@

Check your decision

{% endif %} + {% if data['information-needed'] %}
diff --git a/app/views/app/case/fr/decision/confirmation.html b/app/views/app/case/fr/decision/confirmation.html index 8a68adaf..8e552ec2 100644 --- a/app/views/app/case/fr/decision/confirmation.html +++ b/app/views/app/case/fr/decision/confirmation.html @@ -24,7 +24,7 @@

What happens next

{% elseif data.decision == 'Ask for more information' %}

Your request for more information has been sent to the parties.

{% elseif data.decision == 'List for hearing' %} -

TBD

+

Your request has been sent to a court administrator who will list the case for hearing.

{% elseif data.decision == 'Reject consent order' %}

Your decision has been sent to a court administrator who will seal the consent order and send it out to the parties.

{% endif %} diff --git a/app/views/app/case/fr/decision/hearing-details.html b/app/views/app/case/fr/decision/hearing-details.html index 4a658c45..02d9dc35 100644 --- a/app/views/app/case/fr/decision/hearing-details.html +++ b/app/views/app/case/fr/decision/hearing-details.html @@ -76,13 +76,16 @@

Hearing details

}, items: [ { - name: "day" + name: "day", + value: data['latest-listing-date-day'] }, { - name: "month" + name: "month", + value: data['latest-listing-date-month'] }, { - name: "year" + name: "year", + value: data['latest-listing-date-year'] } ] }) }}