Skip to content

Commit

Permalink
Notification of a new claim or expected repeat claim complete with dy…
Browse files Browse the repository at this point in the history
…namic values and change option with pre-selected radios depending on session value
  • Loading branch information
ricky saunders committed Sep 24, 2023
1 parent 814226c commit 651233e
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 1 deletion.
8 changes: 8 additions & 0 deletions app/routes/routes-v1.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ router.post(version +'/ukef-tiles', function(req, res) {
res.redirect(version +'/facility-search-result')
}
});

router.post(version +'/facility-search-for-facility', function(req, res) {
{
res.redirect(version +'/facility-search-result')
Expand All @@ -49,6 +50,13 @@ router.post(version +'/are-you-sure-create-new-claim', function(req, res) {
}
});

/*1-pre-examinsation section*/

router.post(version +'/1-pre-examination/notification-new-or-expected-claim', function(req, res) {
{
res.redirect(version +'/facility-card-list')
}
});


}
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{% extends "layout.html" %}

{% block main %}
{% block beforeContent %}
<div class="govuk-width-container">
<nav class="govuk-!-display-none-print">
{{govukBackLink({
text: "Back",
"href": "javascript: window.history.go(-1)"
})}}
<a href="ukef-tiles.html" class="govuk-link govuk-link--no-visited-state govuk-!-margin-top-3 govuk-!-margin-bottom-3 float-right">
</a>
</nav>
{% endblock %}
<div class="govuk-grid-row">
<div class="govuk-grid-column-full">

<h1 class="govuk-heading-xl govuk-!-margin-bottom-4" style="margin-left:10px;">

Is there an notification of a new claim or is it an expected repeat claim?

</h1><br />
</div>
<div class="govuk-grid-column-two-thirds">
<form method="post">
<div class="govuk-form-group">
<fieldset class="govuk-fieldset" aria-describedby="changed-name-hint">
<legend class="govuk-fieldset__legend govuk-fieldset__legend--l">
<h1 class="govuk-fieldset__heading">
</h1>
</legend>

<div class="govuk-radios" data-module="govuk-radios">
<div class="govuk-radios__item">
<input class="govuk-radios__input" id="changed-name" name="claimNotificationorExpectedRepeat" {% if data.claimNotificationorExpectedRepeat=='Notification of a new claim'%} checked='checked' {% endif %} type="radio" value="Notification of a new claim">
<label class="govuk-label govuk-radios__label" for="changed-name">
Notification of a new claim
</label>
</div>
<div class="govuk-radios__item">
<input class="govuk-radios__input" id="changed-name-2" name="claimNotificationorExpectedRepeat" {% if data.claimNotificationorExpectedRepeat=='Expected repeat claim'%} checked='checked' {% endif %} type="radio" value="Expected repeat claim">
<label class="govuk-label govuk-radios__label" for="changed-name-2">
An expected repeat claim
</label>
</div>
</div>
</fieldset>
</div>
<button class="govuk-button" data-module="govuk-button">
Confirm
</button>

<!-- <input type="hidden" name="cancelClaimCreation" value="false">-->
</form>
</div>
</div>
</div>
{% endblock %}
12 changes: 11 additions & 1 deletion app/views/v1/facility-card-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,18 @@ <h2 class="govuk-summary-card__title">Receipt of claim pre-examination</h2>
Notification of a new claim or expected repeat claim
</dt>
<dd class="govuk-summary-list__value">
<span> <a class="" href="#">Add details</a></span>
<span>

{% if data.claimNotificationorExpectedRepeat %}
{{data.claimNotificationorExpectedRepeat}}

</dd>
<dd class="govuk-summary-list__value" style="float:right;"><a href="1-pre-examination/notification-new-or-expected-claim">Change details</a>
{% else %}
<a class="" href="1-pre-examination/notification-new-or-expected-claim">Add details</a> </span>
{% endif %}
</dd>

<dd class="govuk-summary-list__value" style="float:right;">
</dd>
</div>
Expand Down

0 comments on commit 651233e

Please sign in to comment.