Skip to content

Commit

Permalink
split add change address pages in rh fulfilment flows
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbarnes9 committed May 29, 2020
1 parent 98989ee commit 9614a22
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 8 deletions.
10 changes: 3 additions & 7 deletions _prototypes/end-to-end/address-correction.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,8 @@
<div class="group">
<div class="block">
<section class="section">
<h1 class="u-fs-xl">Add or change an address</h1>
<h1 class="u-fs-xl">Making changes to an address</h1>

<!--<p>In this sub section, we’re going to
ask you questions about <span class="js-person-name"></span>.
</p>-->
<p>If you can’t find your address, it may not be registered on our system.
</p>
<p>If a significant part of your address has changed, for example, a house separated into flats, we need to register the new address on our system.
</p>
<p>To register your address, we need you to get in touch. You can call us free on 0800 141 2021 or <a href="#">choose another way to contact us</a>.
Expand All @@ -55,9 +50,10 @@ <h1 class="u-fs-xl">Add or change an address</h1>
urlParams = new URLSearchParams(window.location.search),
previousPage = urlParams.get('previous');
currentJourney = urlParams.get('current-journey');
currentPage = 'address-register';

function updateAllLinks() {
$('.js-previous-link').attr('href', '../' + previousPage + '?' + 'previous=' + previousPage + '&' + 'current-journey=' + currentJourney);
$('.js-previous-link').attr('href', '../' + previousPage + '?' + 'previous=' + currentPage + '&' + 'current-journey=' + currentJourney);
}

$(updateAllLinks);
Expand Down
60 changes: 60 additions & 0 deletions _prototypes/end-to-end/address-register.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
---
title: Version 1
project: End to end prototype
globalcss: false
layout: eq-default-extras
footer: census-transactional
assetPrefixUrl: https://sdc-global-design-patterns.netlify.com
hideSaveLater: true
logoUrl: ../home
---

<link rel="stylesheet" href="../style.css"/>
<div class="page__subheader">
<div class="container">
<a class="js-previous-link" href="../hub">Previous</a>
</div>
</div>

<div class="page__container container">
<div class="grid grid--reverse">
<div class="grid__col col-4@m">
<!--{% include navigation.html
items=site.data.your-household-v6.yourHouseholdV4_navigationItemsPersonalDetails
nav-title-id="section-individual" %}-->
</div>
<div class="grid__col col-8@l">
<main role="main" id="main" class="page__main">
<div class="group">
<div class="block">
<section class="section">
<h1 class="u-fs-xl">Register an address</h1>

<p>If you can’t find your address, it may not be registered on our system.
</p>
<p>To register your address, we need you to get in touch. You can call us free on 0800 141 2021 or <a href="#">choose another way to contact us</a>.
</p>

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

<script src='/js/compiled/end-to-end/bundle.js'></script>

<script>
storageAPI = window.ONS.storage,
urlParams = new URLSearchParams(window.location.search),
previousPage = urlParams.get('previous'),
currentJourney = urlParams.get('current-journey'),
currentPage = 'address-register';

function updateAllLinks() {
$('.js-previous-link').attr('href', '../' + previousPage + '?' + 'previous=' + currentPage + '&' + 'current-journey=' + currentJourney);
}

$(updateAllLinks);
</script>
2 changes: 1 addition & 1 deletion _prototypes/end-to-end/uac-request-address.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
$('.js-link').click(function(e) {
e.preventDefault();

window.location = '../address-correction/?' + 'previous=' + 'uac-request-address' + '&' + 'current-journey=' + currentJourney;
window.location = '../address-register/?' + 'previous=' + 'uac-request-address' + '&' + 'current-journey=' + currentJourney;
});

function updateHelp() {
Expand Down

0 comments on commit 9614a22

Please sign in to comment.