Skip to content

Commit

Permalink
Added playback of values for editing total values for business example
Browse files Browse the repository at this point in the history
  • Loading branch information
saedwards committed Jun 6, 2018
1 parent 9195988 commit 786a779
Show file tree
Hide file tree
Showing 39 changed files with 56 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,7 @@ <h1 class="question__title saturn">
JSON.stringify($('#text-input2').val()));
});
});

$('#text-input1').val(JSON.parse(sessionStorage.getItem('computer-devices-aquisitions')) || '');
$('#text-input2').val(JSON.parse(sessionStorage.getItem('computer-devices-disposals')) || '');
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -119,5 +119,8 @@ <h1 class="question__title saturn">
sessionStorage.setItem('computer-software-disposals',
JSON.stringify($('#text-input2').val()));
});

$('#text-input1').val(JSON.parse(sessionStorage.getItem('computer-software-aquisitions')) || '');
$('#text-input2').val(JSON.parse(sessionStorage.getItem('computer-software-disposals')) || '');
});
</script>
3 changes: 3 additions & 0 deletions _prototypes/totals/v3-business/databases.html
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,7 @@ <h1 class="question__title saturn">
JSON.stringify($('#text-input2').val()));
});
});

$('#text-input1').val(JSON.parse(sessionStorage.getItem('databases-aquisitions')) || '');
$('#text-input2').val(JSON.parse(sessionStorage.getItem('databases-disposals')) || '');
</script>
12 changes: 6 additions & 6 deletions _prototypes/totals/v3-business/disposals-summary.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ <h1 class="question__title saturn">
</div>
<div class="grid__col col-4@xs col-2@m">
<div class="summary__link mars">
<a href="#edit">Change <span class="u-vh">your answer for: What are the dates of the sales period you are reporting for?. The current value is: 01 January 2015 to 02 February 2017</span></a>
<a href="../index">Change <span class="u-vh">your answer for: What are the dates of the sales period you are reporting for?. The current value is: 01 January 2015 to 02 February 2017</span></a>
</div>
</div>
</div>
Expand All @@ -76,7 +76,7 @@ <h1 class="question__title saturn">
</div>
<div class="grid__col col-4@xs col-2@m">
<div class="summary__link mars">
<a href="#edit">Change <span class="u-vh">your answer for: What are the dates of the sales period you are reporting for?. The current value is: 01 January 2015 to 02 February 2017</span></a>
<a href="../computer-peripheral-devices">Change <span class="u-vh">your answer for: What are the dates of the sales period you are reporting for?. The current value is: 01 January 2015 to 02 February 2017</span></a>
</div>
</div>
</div>
Expand All @@ -91,7 +91,7 @@ <h1 class="question__title saturn">
</div>
<div class="grid__col col-4@xs col-2@m">
<div class="summary__link mars">
<a href="#edit">Change <span class="u-vh">your answer for: What are the dates of the sales period you are reporting for?. The current value is: 01 January 2015 to 02 February 2017</span></a>
<a href="../computer-software-programs">Change <span class="u-vh">your answer for: What are the dates of the sales period you are reporting for?. The current value is: 01 January 2015 to 02 February 2017</span></a>
</div>
</div>
</div>
Expand All @@ -106,7 +106,7 @@ <h1 class="question__title saturn">
</div>
<div class="grid__col col-4@xs col-2@m">
<div class="summary__link mars">
<a href="#edit">Change <span class="u-vh">your answer for: What are the dates of the sales period you are reporting for?. The current value is: 01 January 2015 to 02 February 2017</span></a>
<a href="../databases">Change <span class="u-vh">your answer for: What are the dates of the sales period you are reporting for?. The current value is: 01 January 2015 to 02 February 2017</span></a>
</div>
</div>
</div>
Expand All @@ -121,7 +121,7 @@ <h1 class="question__title saturn">
</div>
<div class="grid__col col-4@xs col-2@m">
<div class="summary__link mars">
<a href="#edit">Change <span class="u-vh">your answer for: What are the dates of the sales period you are reporting for?. The current value is: 01 January 2015 to 02 February 2017</span></a>
<a href="../telecommunications">Change <span class="u-vh">your answer for: What are the dates of the sales period you are reporting for?. The current value is: 01 January 2015 to 02 February 2017</span></a>
</div>
</div>
</div>
Expand All @@ -136,7 +136,7 @@ <h1 class="question__title saturn">
</div>
<div class="grid__col col-4@xs col-2@m">
<div class="summary__link mars">
<a href="#edit">Change <span class="u-vh">your answer for: What are the dates of the sales period you are reporting for?. The current value is: 01 January 2015 to 02 February 2017</span></a>
<a href="../other-machinery-equipment">Change <span class="u-vh">your answer for: What are the dates of the sales period you are reporting for?. The current value is: 01 January 2015 to 02 February 2017</span></a>
</div>
</div>
</div>
Expand Down
3 changes: 3 additions & 0 deletions _prototypes/totals/v3-business/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -125,5 +125,8 @@ <h1 class="question__title saturn">
sessionStorage.setItem('transport-equipment-disposals',
JSON.stringify($('#text-input2').val()));
});

$('#text-input1').val(JSON.parse(sessionStorage.getItem('transport-equipment-aquisitions')) || '');
$('#text-input2').val(JSON.parse(sessionStorage.getItem('transport-equipment-disposals')) || '');
});
</script>
3 changes: 3 additions & 0 deletions _prototypes/totals/v3-business/other-machinery-equipment.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,7 @@ <h1 class="question__title saturn">
JSON.stringify($('#text-input2').val()));
});
});

$('#text-input1').val(JSON.parse(sessionStorage.getItem('other-machinery-aquisitions')) || '');
$('#text-input2').val(JSON.parse(sessionStorage.getItem('other-machinery-disposals')) || '');
</script>
3 changes: 3 additions & 0 deletions _prototypes/totals/v3-business/telecommunications.html
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,7 @@ <h1 class="question__title saturn">
JSON.stringify($('#text-input2').val()));
});
});

$('#text-input1').val(JSON.parse(sessionStorage.getItem('telecommunications-aquisitions')) || '');
$('#text-input2').val(JSON.parse(sessionStorage.getItem('telecommunications-disposals')) || '');
</script>
2 changes: 1 addition & 1 deletion img/sprite.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion s/img/icons/census-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion s/img/icons/icons--caret-bottom.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion s/img/icons/icons--caret-left.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion s/img/icons/icons--caret-right.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion s/img/icons/icons--caret-top.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion s/img/icons/icons--check.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion s/img/icons/icons--chevron-bottom.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion s/img/icons/icons--chevron-down.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion s/img/icons/icons--chevron-left.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion s/img/icons/icons--chevron-right.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion s/img/icons/icons--chevron-top.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion s/img/icons/icons--circle-check.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion s/img/icons/icons--circle-x.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion s/img/icons/icons--download-white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion s/img/icons/icons--download.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion s/img/icons/icons--external-link.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion s/img/icons/icons--guidance-white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 786a779

Please sign in to comment.