Skip to content
This repository was archived by the owner on Apr 26, 2021. It is now read-only.

Commit

Permalink
Check page shows list for hearing flow
Browse files Browse the repository at this point in the history
  • Loading branch information
adamsilver committed Jul 26, 2018
1 parent 53f0a1e commit 910bff1
Show file tree
Hide file tree
Showing 4 changed files with 111 additions and 4 deletions.
4 changes: 4 additions & 0 deletions app/routes/fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down
100 changes: 100 additions & 0 deletions app/views/app/case/fr/decision/check.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,105 @@ <h1 class="govuk-heading-xl">Check your decision</h1>
</dd>

</div>
{% if data.reason %}
<div class="app-check-your-answers__contents">

<dt class="app-check-your-answers__question">Reason for hearing</dt>

<dd class="app-check-your-answers__answer">
{{data.reason}}
</dd>

<dd class="app-check-your-answers__change">
<a href="/app/cases/{{_case.id}}/fr/hearing-details">Change <span class="govuk-visually-hidden">hearing details</span></a>
</dd>
</div>
{% endif %}
{% if data.duration %}
<div class="app-check-your-answers__contents">

<dt class="app-check-your-answers__question">Hearing duration (minutes)</dt>

<dd class="app-check-your-answers__answer">
{{data.duration}}
</dd>

<dd class="app-check-your-answers__change">
<a href="/app/cases/{{_case.id}}/fr/hearing-details">Change <span class="govuk-visually-hidden">hearing details</span></a>
</dd>
</div>
{% endif %}
{% if data['minimum-notice-needed'] %}
<div class="app-check-your-answers__contents">

<dt class="app-check-your-answers__question">Minimum duration needed (working days)</dt>

<dd class="app-check-your-answers__answer">
{{data['minimum-notice-needed']}}
</dd>

<dd class="app-check-your-answers__change">
<a href="/app/cases/{{_case.id}}/fr/hearing-details">Change <span class="govuk-visually-hidden">hearing details</span></a>
</dd>
</div>
{% endif %}

{% if data['latest-listing-date-day'] %}
<div class="app-check-your-answers__contents">

<dt class="app-check-your-answers__question">Latest date this can be listed</dt>

<dd class="app-check-your-answers__answer">
{{data['latest-listing-date-day']}}/{{data['latest-listing-date-month']}}/{{data['latest-listing-date-year']}}
</dd>

<dd class="app-check-your-answers__change">
<a href="/app/cases/{{_case.id}}/fr/hearing-details">Change <span class="govuk-visually-hidden">hearing details</span></a>
</dd>
</div>
{% endif %}
{% if data['listed-for-you'] %}
<div class="app-check-your-answers__contents">

<dt class="app-check-your-answers__question">Do you want it to be listed for you?</dt>

<dd class="app-check-your-answers__answer">
{{data['listed-for-you']}}
</dd>

<dd class="app-check-your-answers__change">
<a href="/app/cases/{{_case.id}}/fr/hearing-details">Change <span class="govuk-visually-hidden">hearing details</span></a>
</dd>
</div>
{% endif %}
{% if data['transfer'] %}
<div class="app-check-your-answers__contents">

<dt class="app-check-your-answers__question">Do you want the hearing to be transferred to another court?</dt>

<dd class="app-check-your-answers__answer">
{{data['transfer']}}
</dd>

<dd class="app-check-your-answers__change">
<a href="/app/cases/{{_case.id}}/fr/hearing-details">Change <span class="govuk-visually-hidden">hearing details</span></a>
</dd>
</div>
{% endif %}
{% if data['name-of-court'] %}
<div class="app-check-your-answers__contents">

<dt class="app-check-your-answers__question">Name of court</dt>

<dd class="app-check-your-answers__answer">
{{data['name-of-court']}}
</dd>

<dd class="app-check-your-answers__change">
<a href="/app/cases/{{_case.id}}/fr/hearing-details">Change <span class="govuk-visually-hidden">hearing details</span></a>
</dd>
</div>
{% endif %}
{% if reasons.length %}
<div class="app-check-your-answers__contents">

Expand All @@ -67,6 +166,7 @@ <h1 class="govuk-heading-xl">Check your decision</h1>

</div>
{% endif %}

{% if data['information-needed'] %}
<div class="app-check-your-answers__contents">

Expand Down
2 changes: 1 addition & 1 deletion app/views/app/case/fr/decision/confirmation.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ <h2 class="govuk-heading-m">What happens next</h2>
{% elseif data.decision == 'Ask for more information' %}
<p>Your request for more information has been sent to the parties.</p>
{% elseif data.decision == 'List for hearing' %}
<p>TBD</p>
<p>Your request has been sent to a court administrator who will list the case for hearing.</p>
{% elseif data.decision == 'Reject consent order' %}
<p>Your decision has been sent to a court administrator who will seal the consent order and send it out to the parties.</p>
{% endif %}
Expand Down
9 changes: 6 additions & 3 deletions app/views/app/case/fr/decision/hearing-details.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,16 @@ <h1 class="govuk-heading-l">Hearing details</h1>
},
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']
}
]
}) }}
Expand Down

0 comments on commit 910bff1

Please sign in to comment.