Skip to content

Commit

Permalink
authorise
Browse files Browse the repository at this point in the history
  • Loading branch information
ricky saunders committed Dec 1, 2023
1 parent fe9530a commit d8350a5
Show file tree
Hide file tree
Showing 6 changed files with 533 additions and 4 deletions.
6 changes: 6 additions & 0 deletions app/routes/routes-v6.js
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,12 @@ router.post(version +'/3-Authorise/claim-details', function(req, res) {
res.redirect(version +'/3-Authorise/claim-details-confirm')
}
});
router.post(version +'/3-Authorise/claim-details-confirm', function(req, res) {
{

res.redirect(version +'/3-Authorise/primary-exam')
}
});



Expand Down
194 changes: 194 additions & 0 deletions app/views/v6/3-Authorise/auth-claim.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,194 @@
{% extends "layout.html" %}

{% block pageTitle %}
Claims and recoveries
{% endblock %}


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

{% block content %}

<h1 class="govuk-heading-l">
Claims awaiting authorisation
</h1>

<!--start-->


<div class="govuk-tabs" data-module="govuk-tabs">
<h2 class="govuk-tabs__title">
Contents
</h2>
<ul class="govuk-tabs__list">
<li class="govuk-tabs__list-item govuk-tabs__list-item--selected">
<a class="govuk-tabs__tab" href="#current-claims1">
My work allocation
</a>
</li>
<li class="govuk-tabs__list-item">
<a class="govuk-tabs__tab" href="#past-claims1">
My teams work allocation
</a>
</li>


</ul>
<div class="govuk-tabs__panel" id="current-claims1">
<h2 class="govuk-heading-l">My work items</h2>
<table class="govuk-table">
<thead class="govuk-table__head">
<tr class="govuk-table__row">
<th scope="col" class="govuk-table__header">Claim ID</th>
<th scope="col" class="govuk-table__header">
<div class="tooltip">Claim amount
<span class="tooltiptext">This is the amount being claimed by the claimant</span>
</div></th>
<th scope="col" class="govuk-table__header">
<div class="tooltip">Claim due date
<span class="tooltiptext">The date by which the claim is due to be paid</span>
</div>
</th>





<th scope="col" class="govuk-table__header"></th>
</tr>
</thead>
<tbody class="govuk-table__body">
<tr class="govuk-table__row">
<td class="govuk-table__cell"><a href="claim-details-auth">C123456</a></td>
<td class="govuk-table__cell">£30,000</td>
<td class="govuk-table__cell">3 Jan 2024</td>
<td class="govuk-table__cell">
<strong class="govuk-tag govuk-tag--blue app-task-list__tag">
Awaiting authorisation
</strong>
</td>
</tr>
<tr class="govuk-table__row">
<td class="govuk-table__cell"><a href="claim-details-auth">C553632</a></td>
<td class="govuk-table__cell">£10,000</td>
<td class="govuk-table__cell">2 Feb 2024</td>
<td class="govuk-table__cell">
<strong class="govuk-tag govuk-tag--yellow app-task-list__tag">
Awaiting authorisation
</strong>
</td>
</tr>
</tbody>
</table>
<div class="govuk-button-group">

<a href="../ukef-tiles">
<button class="govuk-button govuk-button--secondary" data-module="govuk-button" type="submit">
Back
</button>
</a>
</div>
</div>
<div class="govuk-tabs__panel govuk-tabs__panel--hidden" id="past-claims1">
<h2 class="govuk-heading-l">All work items</h2>
<table class="govuk-table">
<thead class="govuk-table__head">
<tr class="govuk-table__row">
<th scope="col" class="govuk-table__header">Claim ID</th>
<th scope="col" class="govuk-table__header">
<div class="tooltip">Claim amount
<span class="tooltiptext">This is the amount being claimed by the claimant</span>
</div>
</th>
<th scope="col" class="govuk-table__header">
<div class="tooltip">Claim due date
<span class="tooltiptext">The date by which the claim was due to be paid</span>
</div>
</th>
<th scope="col" class="govuk-table__header">
<div class="tooltip">Allocated to
<span class="tooltiptext">This is who the work item is currently allocated to</span>
</div>
</th>
</tr>
</thead>
<tbody class="govuk-table__body">
<tr class="govuk-table__row">
<td class="govuk-table__cell"><a href="#">C123456</a></td>
<td class="govuk-table__cell">£30,000</td>
<td class="govuk-table__cell">3 Jan 2024</td>
<td class="govuk-table__cell">Steven Smith
<strong class="govuk-tag govuk-tag--blue app-task-list__tag">
Awaiting authorisation
</strong>
</td>
</tr>
<tr class="govuk-table__row">
<td class="govuk-table__cell"><a href="#">C553632</a></td>
<td class="govuk-table__cell">£10,000</td>
<td class="govuk-table__cell">2 Feb 2024</td>
<td class="govuk-table__cell">Steven Smith
<strong class="govuk-tag govuk-tag--yellow app-task-list__tag">
Awaiting authorisation
</strong>
</td>
</tr>
<tr class="govuk-table__row">
<td class="govuk-table__cell"><a href="#">C553632</a></td>
<td class="govuk-table__cell">£1,100,000</td>
<td class="govuk-table__cell">14 Jan 2024</td>
<td class="govuk-table__cell">Rajesh Damodaran
<strong class="govuk-tag govuk-tag--yellow app-task-list__tag">
Awaiting authorisation
</strong>
</td>
</tr>
<tr class="govuk-table__row">
<td class="govuk-table__cell"><a href="#">C787828</a></td>
<td class="govuk-table__cell">£760,000</td>
<td class="govuk-table__cell">19 Dec 2023</td>
<td class="govuk-table__cell">Julie Bellingham
<strong class="govuk-tag govuk-tag--yellow app-task-list__tag">
Awaiting authorisation
</strong>
</td>
</tr>
<tr class="govuk-table__row">
<td class="govuk-table__cell"><a href="#">C203948</a></td>
<td class="govuk-table__cell">£928,000</td>
<td class="govuk-table__cell">12 Dec 2023</td>
<td class="govuk-table__cell">Leona McEntee
<strong class="govuk-tag govuk-tag--blue app-task-list__tag">
Awaiting authorisation
</strong>
</td>
</tr>
</tbody>
</table>
<div class="govuk-button-group">

<a href="../ukef-tiles">
<button class="govuk-button govuk-button--secondary" data-module="govuk-button" type="submit">
Back
</button>
</a>
</div>
</div>
</div>







{% endblock %}
64 changes: 64 additions & 0 deletions app/views/v6/3-Authorise/claim-details-auth-confirm.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{% extends "layout.html" %}
{% block pageTitle %}
Claims and recoveries
{% endblock %}


{% block beforeContent %}
<nav class="govuk-!-display-none-print">
{{govukBackLink({
text: "Back",
"href": "javascript: window.history.go(-1)"
})}}

</nav>
{% endblock %}

{% block content %}
<form id="form" method="post" action="">
<div class="govuk-width-container">
<main class="govuk-main-wrapper govuk-main-wrapper--l" id="main-content" role="main">
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<div class="govuk-panel govuk-panel--confirmation">
<h1 class="govuk-panel__title">

{% if data.authClaim =='yes' %}
The claim has been successfully authorised
{% else %}
The claim has not been authorised
{% endif %}
</h1>
<div class="govuk-panel__body">
Claim ID: <br><strong>12341037-CL1</strong>
</div>
</div>

<h2 class="govuk-heading-m">What happens next</h2>
<p class="govuk-body">

{% if data.authClaim =='yes' %}
The claim will now be forwarded to payments
{% else %}
The claim will be returned to the claim handler for further action.
{% endif %}
</p>
<p class="govuk-body">
You can now either <a href="3-Authorise/primary-exam">authorise another claim</a> or return to <a href="../ukef-tiles">view further options</a>.
</p>
<form id="form" method="post">
<div class="govuk-button-group">
<button class="govuk-button" data-module="govuk-button">
Back to claims awaiting authorisation
</button>

</div>
</form>
</div>

</div>
</main>
</div>


{% endblock %}
Loading

0 comments on commit d8350a5

Please sign in to comment.