Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dl/hto 5951 pro forma screens #29

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,44 @@ module.exports = function (folderForViews, urlPrefix, router) {
res.redirect(`/${urlPrefix}/equipment-and-adaptations/employer-contribution`)
} else if (cost === '2500') {
res.redirect(`/${urlPrefix}/equipment-and-adaptations/too-much-claimed`)
} else if (checked){
} else if (checked) {
res.redirect(`/${urlPrefix}/equipment-and-adaptations/check-your-answers`)
} else {
res.redirect(`/${urlPrefix}/equipment-and-adaptations/providing-evidence`)
}
})

router.post('/equipment-and-adaptations/grant-information', function (req, res) {
res.redirect(`/${urlPrefix}/equipment-and-adaptations/claiming-for-pro-forma`)
})

router.post('/equipment-and-adaptations/claiming-for-pro-forma', function (req, res) {
const proForma = req.session.data['proForma']

if (proForma == 'yes') {
res.redirect(`/${urlPrefix}/equipment-and-adaptations/pro-forma-confirmation`)
} else {
res.redirect(`/${urlPrefix}/equipment-and-adaptations/single-payee-confirmation`)
}
})

router.post('/equipment-and-adaptations/pro-forma-confirmation', function (req, res) {
const proFormaConfirmation = req.session.data['proFormaConfirmation']

if (proFormaConfirmation == 'yes') {
res.redirect(`/${urlPrefix}/equipment-and-adaptations/before-you-continue`)
} else {
res.redirect(`/${urlPrefix}/equipment-and-adaptations/single-payee-confirmation`)
}
})

router.post('/equipment-and-adaptations/single-payee-confirmation', function (req, res) {
const singlePayeeConfirmation = req.session.data['singlePayeeConfirmation']

if (singlePayeeConfirmation == 'yes') {
res.redirect(`/${urlPrefix}/equipment-and-adaptations/before-you-continue`)
} else {
res.redirect(`/${urlPrefix}/portal-screens/contact-atw`)
}
})
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{% extends "layout.html" %}

{% block pageTitle %}
Claim money back from Access to Work
{% endblock %}

{% block beforeContent %}
{{ govukPhaseBanner({
tag: {
text: "alpha"
},
html: 'This is a new service – your <a class="govuk-link" href="/alpha/feedback-page">feedback</a> will help us to
improve it.'
}) }}


<div class="govuk-breadcrumbs">
<ol class="govuk-breadcrumbs__list">
<li class="govuk-breadcrumbs__list-item">
<a class="govuk-breadcrumbs__link" href="../portal.html">Home</a>
</li>
<li class="govuk-breadcrumbs__list-item">
<a class="govuk-breadcrumbs__link" href="special-aids-and-equipment.html">Specialist equipment</a>
</li>
</ol>
</div>
{% endblock %}

{% block content %}
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<form action="#" method="post" class="form">
{% from "govuk/components/radios/macro.njk" import govukRadios %}

{{ govukRadios({
classes: "govuk-radios--inline",
name: "proForma",
fieldset: {
legend: {
text: "Are you claiming with pro-forma invoices?",
isPageHeading: true,
classes: "govuk-fieldset__legend--l"
}
},
hint: {
text: "You will only be able to claim for equipment where you have pro-forma invoices"
},
items: [
{
value: "yes",
text: "Yes"
},
{
value: "no",
text: "No"
}
]
}) }}

{% from "govuk/components/button/macro.njk" import govukButton %}

{{ govukButton({
text: "Continue"
}) }}

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


{% endblock %}
128 changes: 64 additions & 64 deletions app/views/alpha/equipment-and-adaptations/grant-information.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,70 +8,70 @@


<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">

<form action="before-you-continue" method="post" class="form">

<h1 class="govuk-heading-l">About your grant</h1>

<p>If your needs change, you need to <a href="../portal-screens/contact-atw">contact us</a>.</p>

<h2 class="govuk-heading-m">Support from 5 March 2021 to 5 March 2024</h2>

<dl class="govuk-summary-list">
<div class="govuk-summary-list__row">
<dt class="govuk-summary-list__key">
Cost of support
</dt>
<dd class="govuk-summary-list__value">
£2089.98 - Hearing aid <br>
£102.00 - Keyboard <br>
£474.00 - Magnifier and speech software <br>
</dd>
</div>
<div class="govuk-summary-list__row">
<dt class="govuk-summary-list__key">
Total cost of support
</dt>
<dd class="govuk-summary-list__value">
£2665.98
</dd>
</div>
<div class="govuk-summary-list__row">
<dt class="govuk-summary-list__key">
Total amount you or your employer have agreed to contribute
</dt>
<dd class="govuk-summary-list__value">
£266.59
</dd>
</div>
<div class="govuk-summary-list__row">
<dt class="govuk-summary-list__key">
Total amount Access to Work will contribute
</dt>
<dd class="govuk-summary-list__value">
£2399.39
</dd>
</div>
<div class="govuk-summary-list__row">
<dt class="govuk-summary-list__key">
Amount of grant left
</dt>
<dd class="govuk-summary-list__value">
£2089.98
</dd>
</div>
</dl>

<p>You must claim for specialist equipment within 9 months of the purchase date.</p>

<button type="submit" class="govuk-button" data-module="govuk-button">
Continue
</button>

</form>

</div>
<div class="govuk-grid-column-two-thirds">

<form action="#" method="post" class="form">

<h1 class="govuk-heading-l">About your grant</h1>

<p>If your needs change, you need to <a href="../portal-screens/contact-atw">contact us</a>.</p>

<h2 class="govuk-heading-m">Support from 5 March 2021 to 5 March 2024</h2>

<dl class="govuk-summary-list">
<div class="govuk-summary-list__row">
<dt class="govuk-summary-list__key">
Cost of support
</dt>
<dd class="govuk-summary-list__value">
£2089.98 - Hearing aid <br>
£102.00 - Keyboard <br>
£474.00 - Magnifier and speech software <br>
</dd>
</div>
<div class="govuk-summary-list__row">
<dt class="govuk-summary-list__key">
Total cost of support
</dt>
<dd class="govuk-summary-list__value">
£2665.98
</dd>
</div>
<div class="govuk-summary-list__row">
<dt class="govuk-summary-list__key">
Total amount you or your employer have agreed to contribute
</dt>
<dd class="govuk-summary-list__value">
£266.59
</dd>
</div>
<div class="govuk-summary-list__row">
<dt class="govuk-summary-list__key">
Total amount Access to Work will contribute
</dt>
<dd class="govuk-summary-list__value">
£2399.39
</dd>
</div>
<div class="govuk-summary-list__row">
<dt class="govuk-summary-list__key">
Amount of grant left
</dt>
<dd class="govuk-summary-list__value">
£2089.98
</dd>
</div>
</dl>

<p>You must claim for specialist equipment within 9 months of the purchase date.</p>

<button type="submit" class="govuk-button" data-module="govuk-button">
Continue
</button>

</form>

</div>
</div>


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

{% block pageTitle %}
Claim money back from Access to Work
{% endblock %}

{% block beforeContent %}
{{ govukPhaseBanner({
tag: {
text: "alpha"
},
html: 'This is a new service – your <a class="govuk-link" href="/alpha/feedback-page">feedback</a> will help us to
improve it.'
}) }}


<div class="govuk-breadcrumbs">
<ol class="govuk-breadcrumbs__list">
<li class="govuk-breadcrumbs__list-item">
<a class="govuk-breadcrumbs__link" href="../portal.html">Home</a>
</li>
<li class="govuk-breadcrumbs__list-item">
<a class="govuk-breadcrumbs__link" href="special-aids-and-equipment.html">Specialist equipment</a>
</li>
</ol>
</div>
{% endblock %}

{% block content %}
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<form action="#" method="post" class="form">
{% from "govuk/components/radios/macro.njk" import govukRadios %}

{{ govukRadios({
classes: "govuk-radios--inline",
name: "proFormaConfirmation",
fieldset: {
legend: {
text: "Do you have pro-forma invoices for all the equipment you are claiming for?",
isPageHeading: true,
classes: "govuk-fieldset__legend--l"
}
},
items: [
{
value: "yes",
text: "Yes"
},
{
value: "no",
text: "No"
}
]
}) }}

{% from "govuk/components/button/macro.njk" import govukButton %}

{{ govukButton({
text: "Continue"
}) }}

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


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

{% block pageTitle %}
Claim money back from Access to Work
{% endblock %}

{% block beforeContent %}
{{ govukPhaseBanner({
tag: {
text: "alpha"
},
html: 'This is a new service – your <a class="govuk-link" href="/alpha/feedback-page">feedback</a> will help us to
improve it.'
}) }}


<div class="govuk-breadcrumbs">
<ol class="govuk-breadcrumbs__list">
<li class="govuk-breadcrumbs__list-item">
<a class="govuk-breadcrumbs__link" href="../portal.html">Home</a>
</li>
<li class="govuk-breadcrumbs__list-item">
<a class="govuk-breadcrumbs__link" href="special-aids-and-equipment.html">Specialist equipment</a>
</li>
</ol>
</div>
{% endblock %}

{% block content %}
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<form action="#" method="post" class="form">
{% from "govuk/components/radios/macro.njk" import govukRadios %}

{{ govukRadios({
classes: "govuk-radios--inline",
name: "singlePayee",
fieldset: {
legend: {
text: "You will only be able to claim for equipment with the same payee",
isPageHeading: true,
classes: "govuk-fieldset__legend--l"
}
},
items: [
{
value: "yes",
text: "Yes"
},
{
value: "no",
text: "No"
}
]
}) }}

{% from "govuk/components/button/macro.njk" import govukButton %}

{{ govukButton({
text: "Continue"
}) }}


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


{% endblock %}
Loading