Skip to content

Commit

Permalink
changes for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
mtomas-ch committed Dec 17, 2024
1 parent 3b8186b commit 4640d1b
Show file tree
Hide file tree
Showing 12 changed files with 82 additions and 138 deletions.
4 changes: 2 additions & 2 deletions app/routes/v2-routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -470,14 +470,14 @@ router.post('/v2/select-documents', function (req, res) {


// ******* select-documents-2 javascript ********************************
router.get('/v2/select-documents', function (req, res) {
router.get('/v2/select-documents-2', function (req, res) {
// Set URl
res.render('v2/select-documents-2', {
currentUrl: req.originalUrl
})
})

router.post('/v2/select-documents', function (req, res) {
router.post('/v2/select-documents-2', function (req, res) {
res.redirect('/v2/check-answers')
})

Expand Down
12 changes: 12 additions & 0 deletions app/views/layouts/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,15 @@
#}

{% extends "govuk-prototype-kit/layouts/govuk-branded.njk" %}


{% block header %}
{{ govukHeader({
homepageUrl: "/",
classes: "govuk-header--full-width-border"
}) }}
{{ govukServiceNavigation({
serviceName: serviceName,
serviceUrl: "/"
}) }}
{% endblock %}
50 changes: 4 additions & 46 deletions app/views/v2/check-answers.html
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ <h2 class="govuk-heading-m">Address you want to remove</h2>
Home address
</dt>
<dd class="govuk-summary-list__value">
20 Old Street<br>Parkland<br>Townville<br>England<br>XX2 ZZ4
10 Old Street<br>Parkland<br>Townville<br>England<br>XX1 ZZ2
</dd>
<dd class="govuk-summary-list__actions">
<a class="govuk-link govuk-link--no-visited-state" href="address-lookup">Change<span class="govuk-visually-hidden"> licence type</span></a>
Expand All @@ -195,7 +195,7 @@ <h2 class="govuk-heading-m">Replacement address</h2>
Replacement address
</dt>
<dd class="govuk-summary-list__value">
20 Old Street<br>Parkland<br>Townville<br>England<br>XX2 ZZ4
20 New Street<br>Parkland<br>Townville<br>England<br>XX3 WW8
</dd>
<dd class="govuk-summary-list__actions">
<a class="govuk-link govuk-link--no-visited-state" href="replacement-address-lookup">Change<span class="govuk-visually-hidden"> licence type</span></a>
Expand All @@ -212,50 +212,8 @@ <h2 class="govuk-heading-m">Documents selected</h2>
</dt>
<dd class="govuk-summary-list__value">
<ul class="govuk-list">
<li>Confirmation statement</li>
<li>16 September 2024</li>
</ul>
</dd>
<dd class="govuk-summary-list__actions">
<a class="govuk-link govuk-link--no-visited-state" href="select-documents">Change<span class="govuk-visually-hidden"> previous application number</span></a>
</dd>
</div>
<div class="govuk-summary-list__row">
<dt class="govuk-summary-list__key">
AA
</dt>
<dd class="govuk-summary-list__value">
<ul class="govuk-list">
<li>Total exemption full accounts</li>
<li>4 March 2024</li>
</ul>
</dd>
<dd class="govuk-summary-list__actions">
<a class="govuk-link govuk-link--no-visited-state" href="select-documents">Change<span class="govuk-visually-hidden"> previous application number</span></a>
</dd>
</div>
<div class="govuk-summary-list__row">
<dt class="govuk-summary-list__key">
CS01
</dt>
<dd class="govuk-summary-list__value">
<ul class="govuk-list">
<li>Confirmation statement</li>
<li>10 September 2023</li>
</ul>
</dd>
<dd class="govuk-summary-list__actions">
<a class=" govuk-link--no-visited-state" href="select-documents">Change<span class="govuk-visually-hidden"> previous application number</span></a>
</dd>
</div>
<div class="govuk-summary-list__row">
<dt class="govuk-summary-list__key">
AA
</dt>
<dd class="govuk-summary-list__value">
<ul class="govuk-list">
<li>Total exemption full accounts</li>
<li>11 March 2023</li>
<li>Incorporation</li>
<li>08 Feb 2022</li>
</ul>
</dd>
<dd class="govuk-summary-list__actions">
Expand Down
14 changes: 1 addition & 13 deletions app/views/v2/payment-one.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,7 @@
</thead>
<tbody class="govuk-table__body">
<tr class="govuk-table__row">
<th scope="row" class="govuk-table__header govuk-!-font-weight-regular">Confirmation statement</th>
<td class="govuk-table__cell">£XX</td>
</tr>
<tr class="govuk-table__row">
<th scope="row" class="govuk-table__header govuk-!-font-weight-regular">Total exemption full account</th>
<td class="govuk-table__cell">£XX</td>
</tr>
<tr class="govuk-table__row">
<th scope="row" class="govuk-table__header govuk-!-font-weight-regular">Confirmation statement</th>
<td class="govuk-table__cell">£XX</td>
</tr>
<tr class="govuk-table__row">
<th scope="row" class="govuk-table__header govuk-!-font-weight-regular">Total exemption full account</th>
<th scope="row" class="govuk-table__header govuk-!-font-weight-regular">Incorporation</th>
<td class="govuk-table__cell">£XX</td>
</tr>
</tbody>
Expand Down
4 changes: 2 additions & 2 deletions app/views/v2/payment-three.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ <h1 class="govuk-heading-xl">Confirm your payment</h1>
<div class="grey-box">
<h2 class="govuk-heading-m">Payment summary</h2>

<p class="govuk-body">Application to remove personal details from 4 Companies House public documents</p>
<p class="govuk-body">Application to remove personal details from 1 Companies House public document</p>
<ul class="govuk-list">
<li>Total amount:</li>
<li><h2 class="govuk-heading-l">£xx.xx</h2></li>
Expand All @@ -36,7 +36,7 @@ <h2 class="govuk-heading-m">Payment summary</h2>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header govuk-!-font-weight-regular govuk-!-padding-bottom-3 govuk-!-padding-top-3 govuk-!-width-one-third">Billing address:</th>
<td class="govuk-table__cell govuk-!-font-weight-bold">20 Old Street, Parkland, Townville, England, XX2 ZZ4</td>
<td class="govuk-table__cell govuk-!-font-weight-bold">20 New Street, Parkland, Townville, England, XX3 WW8</td>
</tr>
</tbody>
</table>
Expand Down
6 changes: 3 additions & 3 deletions app/views/v2/payment-two.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ <h1 class="govuk-heading-l">Enter card details </h1>
<div class="grey-box">
<h2 class="govuk-heading-m">Payment summary</h2>

<p class="govuk-body">Application to remove personal details from 4 Companies House public documents</p>
<p class="govuk-body">Application to remove personal details from 1 Companies House public document</p>
<ul class="govuk-list">
<li>Total amount:</li>
<li><h2 class="govuk-heading-l">£xx.xx</h2></li>
Expand Down Expand Up @@ -87,7 +87,7 @@ <h2 class="govuk-heading-m govuk-!-padding-top-5">Billing address</h2>
<label class="govuk-label govuk-!-margin-top-5">
Address line 1
</label>
<input class="govuk-input govuk-!-width-two-thirds" name="address-1" type="text" value="20 Old Street">
<input class="govuk-input govuk-!-width-two-thirds" name="address-1" type="text" value="20 New Street">
</div>

<div class="govuk-form-group">
Expand Down Expand Up @@ -115,7 +115,7 @@ <h2 class="govuk-heading-m govuk-!-padding-top-5">Billing address</h2>
<label class="govuk-label">
Postcode
</label>
<input class="govuk-input govuk-!-width-one-quarter" name="address-postcode" type="text" value="XX2 ZZ4">
<input class="govuk-input govuk-!-width-one-quarter" name="address-postcode" type="text" value="XX3 WW8">
</div>

<hr>
Expand Down
2 changes: 1 addition & 1 deletion app/views/v2/replacement-address-confirm.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

<h1 class="govuk-heading-l">Confirm the replacement address</h1>

<p class="govuk-body">20 Old Street<br>Parkland<br>Townville<br>England<br>XX2 ZZ4</p>
<p class="govuk-body">20 New Street<br>Parkland<br>Townville<br>England<br>XX3 WW8</p>

<p class="govuk-body govuk-!-margin-bottom-9"><a href="replacement-address-lookup.html" class="govuk-link govuk-link--no-visited-state">Change</a></p>

Expand Down
42 changes: 0 additions & 42 deletions app/views/v2/select-documents-2.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,48 +37,6 @@ <h1 class="govuk-heading-l">Select documents</h1>
</tr>
</thead>
<tbody class="govuk-table__body">
<tr class="govuk-table__row" name="statement">
<td class="govuk-table__cell">
<div class="govuk-checkboxes__item govuk-checkboxes--small moj-multi-select__checkbox">
<input type="checkbox" class="govuk-checkboxes__input" name="doc_select" id="document6" value="document6">
<label class="govuk-label govuk-checkboxes__label" for="document6">
<span class="govuk-visually-hidden">Confirmation statement</span>
</label>
</div>
</td>
</td>
<td class="govuk-table__cell">08 Mar 2022</td>
<td class="govuk-table__cell">CS01</td>
<td class="govuk-table__cell"><b>Confirmation statement</b> made on 22 February 2022 with updates</td>
</tr>
<tr class="govuk-table__row" name="officers">
<td class="govuk-table__cell">
<div class="govuk-checkboxes__item govuk-checkboxes--small moj-multi-select__checkbox">
<input type="checkbox" class="govuk-checkboxes__input" name="doc_select" id="document7" value="document7">
<label class="govuk-label govuk-checkboxes__label" for="document7">
<span class="govuk-visually-hidden">Notification</span>
</label>
</div>
</td>
</td>
<td class="govuk-table__cell">07 Mar 2022</td>
<td class="govuk-table__cell">PSC01</td>
<td class="govuk-table__cell"><b>Notification</b> of Adam Cool as a person with significant control on 1 February 2022</td>
</tr>
<tr class="govuk-table__row" name="accounts">
<td class="govuk-table__cell">
<div class="govuk-checkboxes__item govuk-checkboxes--small moj-multi-select__checkbox">
<input type="checkbox" class="govuk-checkboxes__input" name="doc_select" id="document8" value="document8">
<label class="govuk-label govuk-checkboxes__label" for="document8">
<span class="govuk-visually-hidden">Registered office address changed</span>
</label>
</div>
</td>
</td>
<td class="govuk-table__cell">08 Feb 2022</td>
<td class="govuk-table__cell">AD01</td>
<td class="govuk-table__cell"><b>Registered office address changed</b> from Big Shop 34 New Street Parkland Townville England XX1 ZZ2 to Big Shop 10 Old Street Parkland Townville England XX1 ZZ2 on 8 February 2022</td>
</tr>
<tr class="govuk-table__row" name="officers">
<td class="govuk-table__cell">
<div class="govuk-checkboxes__item govuk-checkboxes--small moj-multi-select__checkbox">
Expand Down
68 changes: 48 additions & 20 deletions app/views/v2/select-documents.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ <h1 class="govuk-heading-l">Select documents</h1>
</td>
<td class="govuk-table__cell">27 Mar 2024</td>
<td class="govuk-table__cell">PSC04</td>
<td class="govuk-table__cell"><b>Change</b> of details for Mr Smith as a person with significant control on 26 March 2024</td>
<td class="govuk-table__cell"><b>Change</b> of details for Paul Smith as a person with significant control on 26 March 2024</td>
</tr>
<tr class="govuk-table__row" name="officers">
<td class="govuk-table__cell">
Expand All @@ -87,7 +87,7 @@ <h1 class="govuk-heading-l">Select documents</h1>
</td>
<td class="govuk-table__cell">26 Mar 20243</td>
<td class="govuk-table__cell">PSC07</td>
<td class="govuk-table__cell"><b>Cessation</b> of Bob Robinson as a person with significant control on 1 February 2024</td>
<td class="govuk-table__cell"><b>Cessation</b> of Lisa Smith as a person with significant control on 1 February 2024</td>
</tr>
<tr class="govuk-table__row" name="officers">
<td class="govuk-table__cell">
Expand All @@ -101,7 +101,7 @@ <h1 class="govuk-heading-l">Select documents</h1>
</td>
<td class="govuk-table__cell">26 Mar 2024</td>
<td class="govuk-table__cell">TM01</td>
<td class="govuk-table__cell"><b>Termination of appointment</b> of Bob Robinson as a director on 1 February 2024</td>
<td class="govuk-table__cell"><b>Termination of appointment</b> of Daniel Adam Chehade as a director on 1 February 2024</td>
</tr>
<tr class="govuk-table__row" name="accounts">
<td class="govuk-table__cell">
Expand Down Expand Up @@ -157,7 +157,7 @@ <h1 class="govuk-heading-l">Select documents</h1>
</td>
<td class="govuk-table__cell">08 Feb 2023</td>
<td class="govuk-table__cell">AD01</td>
<td class="govuk-table__cell"><b>Registered office address changed</b> from Big Shop 10 Old Street Parkland Townville England XX1 ZZ2 to Big Shop 20 Old Street Parkland Townville England XX2 ZZ4 on 8 February 2023</td>
<td class="govuk-table__cell"><b>Registered office address changed</b> from Big Shop 108 Pin Lane Parkland Townville England XX1 ZZ2 to Big Shop 25 Old Street Parkland Townville England XX2 ZZ4 on 8 February 2023</td>
</tr>
<tr class="govuk-table__row" name="officers">
<td class="govuk-table__cell">
Expand Down Expand Up @@ -185,21 +185,7 @@ <h1 class="govuk-heading-l">Select documents</h1>
</td>
<td class="govuk-table__cell">26 Mar 2023</td>
<td class="govuk-table__cell">PSC04</td>
<td class="govuk-table__cell"><b>Change</b> of details for Mr Smith as a person with significant control on 26 March 2024</td>
</tr>
<tr class="govuk-table__row" name="officers">
<td class="govuk-table__cell">
<div class="govuk-checkboxes__item govuk-checkboxes--small moj-multi-select__checkbox">
<input type="checkbox" class="govuk-checkboxes__input" name="doc_select" id="document3" value="document3">
<label class="govuk-label govuk-checkboxes__label" for="document3">
<span class="govuk-visually-hidden">Cessation</span>
</label>
</div>
</td>
</td>
<td class="govuk-table__cell">26 Mar 2023</td>
<td class="govuk-table__cell">PSC07</td>
<td class="govuk-table__cell"><b>Cessation</b> of Bob Robinson as a person with significant control on 1 February 2024</td>
<td class="govuk-table__cell"><b>Change</b> of details for Gary Robinson as a person with significant control on 26 March 2024</td>
</tr>
<tr class="govuk-table__row" name="officers">
<td class="govuk-table__cell">
Expand All @@ -213,7 +199,7 @@ <h1 class="govuk-heading-l">Select documents</h1>
</td>
<td class="govuk-table__cell">26 Mar 2023</td>
<td class="govuk-table__cell">TM01</td>
<td class="govuk-table__cell"><b>Termination of appointment</b> of Bob Robinson as a director on 1 February 2023</td>
<td class="govuk-table__cell"><b>Termination of appointment</b> of Mary Robinson as a director on 1 February 2023</td>
</tr>
<tr class="govuk-table__row" name="accounts">
<td class="govuk-table__cell">
Expand All @@ -229,6 +215,48 @@ <h1 class="govuk-heading-l">Select documents</h1>
<td class="govuk-table__cell">AA</td>
<td class="govuk-table__cell"><b>Micro company accounts</b> made up to 28 February 2022</td>
</tr>
<tr class="govuk-table__row" name="statement">
<td class="govuk-table__cell">
<div class="govuk-checkboxes__item govuk-checkboxes--small moj-multi-select__checkbox">
<input type="checkbox" class="govuk-checkboxes__input" name="doc_select" id="document6" value="document6">
<label class="govuk-label govuk-checkboxes__label" for="document6">
<span class="govuk-visually-hidden">Confirmation statement</span>
</label>
</div>
</td>
</td>
<td class="govuk-table__cell">08 Mar 2022</td>
<td class="govuk-table__cell">CS01</td>
<td class="govuk-table__cell"><b>Confirmation statement</b> made on 22 February 2022 with updates</td>
</tr>
<tr class="govuk-table__row" name="officers">
<td class="govuk-table__cell">
<div class="govuk-checkboxes__item govuk-checkboxes--small moj-multi-select__checkbox">
<input type="checkbox" class="govuk-checkboxes__input" name="doc_select" id="document7" value="document7">
<label class="govuk-label govuk-checkboxes__label" for="document7">
<span class="govuk-visually-hidden">Notification</span>
</label>
</div>
</td>
</td>
<td class="govuk-table__cell">07 Mar 2022</td>
<td class="govuk-table__cell">PSC01</td>
<td class="govuk-table__cell"><b>Notification</b> of Gary Robinson as a person with significant control on 1 February 2022</td>
</tr>
<tr class="govuk-table__row" name="accounts">
<td class="govuk-table__cell">
<div class="govuk-checkboxes__item govuk-checkboxes--small moj-multi-select__checkbox">
<input type="checkbox" class="govuk-checkboxes__input" name="doc_select" id="document8" value="document8">
<label class="govuk-label govuk-checkboxes__label" for="document8">
<span class="govuk-visually-hidden">Registered office address changed</span>
</label>
</div>
</td>
</td>
<td class="govuk-table__cell">08 Feb 2022</td>
<td class="govuk-table__cell">AD01</td>
<td class="govuk-table__cell"><b>Registered office address changed</b> from Big Shop 34 New Street Parkland Townville England XX1 ZZ2 to Big Shop 108 Pin Lane Parkland Townville England Y23 Q12 on 8 February 2022</td>
</tr>
</tbody>
</table>

Expand Down
2 changes: 1 addition & 1 deletion app/views/v2/success.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ <h1 class="govuk-panel__title">
</div>
</div>

<p class="govuk-body">We've sent a confirmation email to <strong>example@email.com</strong>.</p>
<p class="govuk-body">We've sent a confirmation email to <strong>{{ data['contactEmail'] }}</strong>.</p>

<p class="govuk-body">We'll email you within X weeks to let you know if your application has been accepted or rejected, or if we need more information.

Expand Down
Loading

0 comments on commit 4640d1b

Please sign in to comment.