hof 19.14.9 → 20.0.0-beta.11
Sign up to get free protection for your applications and to get access to all the features.
- package/.nyc_output/e2fdc3eb-4fd2-47e0-a392-fe5f665776a4.json +1 -0
- package/.nyc_output/processinfo/e2fdc3eb-4fd2-47e0-a392-fe5f665776a4.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -0
- package/.vscode/settings.json +6 -0
- package/components/date/index.js +3 -1
- package/components/date/templates/date.html +15 -12
- package/controller/controller.js +39 -0
- package/frontend/govuk-template/build/config.js +2 -2
- package/frontend/govuk-template/build/govuk_template.html +104 -0
- package/frontend/govuk-template/build/index.js +2 -2
- package/frontend/govuk-template/govuk_template_generated.html +104 -0
- package/frontend/govuk-template/index.js +4 -4
- package/frontend/template-mixins/mixins/template-mixins.js +20 -9
- package/frontend/template-mixins/partials/forms/checkbox-group.html +38 -0
- package/frontend/template-mixins/partials/forms/checkbox.html +4 -4
- package/frontend/template-mixins/partials/forms/input-submit.html +1 -1
- package/frontend/template-mixins/partials/forms/input-text-date.html +37 -0
- package/frontend/template-mixins/partials/forms/input-text-group.html +12 -9
- package/frontend/template-mixins/partials/forms/option-group.html +33 -26
- package/frontend/template-mixins/partials/forms/select.html +10 -5
- package/frontend/template-mixins/partials/forms/textarea-group.html +15 -6
- package/frontend/template-mixins/partials/mixins/panel.html +3 -4
- package/frontend/template-partials/views/accessibility.html +4 -4
- package/frontend/template-partials/views/cookies.html +1 -1
- package/frontend/template-partials/views/layout.html +22 -22
- package/frontend/template-partials/views/partials/back.html +1 -1
- package/frontend/template-partials/views/partials/bullet-list.html +1 -1
- package/frontend/template-partials/views/partials/confirmation-alert.html +4 -3
- package/frontend/template-partials/views/partials/continue.html +1 -1
- package/frontend/template-partials/views/partials/cookie-banner.html +27 -24
- package/frontend/template-partials/views/partials/cookie-settings-radio.html +6 -6
- package/frontend/template-partials/views/partials/external-link.html +1 -1
- package/frontend/template-partials/views/partials/form.html +1 -1
- package/frontend/template-partials/views/partials/maincontent-left.html +4 -4
- package/frontend/template-partials/views/partials/navigation.html +7 -6
- package/frontend/template-partials/views/partials/session-cookies-table.html +6 -6
- package/frontend/template-partials/views/partials/table.html +7 -7
- package/frontend/template-partials/views/partials/validation-list.html +2 -2
- package/frontend/template-partials/views/partials/validation-summary.html +14 -13
- package/frontend/template-partials/views/session-timeout.html +1 -1
- package/frontend/themes/gov-uk/client-js/cookieSettings.js +1 -1
- package/frontend/themes/gov-uk/client-js/govuk-cookies.js +121 -0
- package/frontend/themes/gov-uk/client-js/index.js +6 -1
- package/frontend/themes/gov-uk/client-js/skip-to-main.js +19 -0
- package/frontend/themes/gov-uk/styles/_cookie-banner.scss +51 -1
- package/frontend/themes/gov-uk/styles/govuk.scss +4 -0
- package/frontend/themes/gov-uk/styles/modules/_validation.scss +3 -3
- package/frontend/toolkit/assets/javascript/character-count.js +4 -4
- package/frontend/toolkit/assets/stylesheets/modules/_validation.scss +3 -3
- package/index.js +5 -0
- package/lib/settings.js +18 -2
- package/middleware/rate-limiter.js +1 -0
- package/package.json +3 -2
- package/sandbox/.env +1 -0
- package/sandbox/apps/sandbox/fields.js +23 -11
- package/sandbox/apps/sandbox/translations/en/default.json +203 -0
- package/sandbox/apps/sandbox/translations/src/en/fields.json +9 -6
- package/sandbox/apps/sandbox/translations/src/en/journey.json +4 -1
- package/sandbox/apps/sandbox/translations/src/en/pages.json +2 -29
- package/sandbox/apps/sandbox/translations/src/en/validation.json +1 -1
- package/sandbox/assets/js/index.js +1 -1
- package/sandbox/assets/scss/app.scss +17 -16
- package/sandbox/package.json +4 -1
- package/sandbox/public/css/app.css +9389 -0
- package/sandbox/public/images/icons/icon-caret-left.png +0 -0
- package/sandbox/public/images/icons/icon-complete.png +0 -0
- package/sandbox/public/images/icons/icon-cross-remove-sign.png +0 -0
- package/sandbox/public/js/bundle.js +35658 -0
- package/sandbox/yarn.lock +767 -0
- package/frontend/govuk-template/govuk_template.html +0 -109
- package/frontend/themes/gov-uk/views/partials/form.html +0 -9
- package/frontend/themes/gov-uk/views/partials/forms/option-group.html +0 -28
- package/frontend/themes/gov-uk/views/partials/mixins/panel.html +0 -3
- package/frontend/themes/gov-uk/views/partials/validation-summary.html +0 -24
- package/sandbox/apps/sandbox/views/confirmation.html +0 -15
@@ -0,0 +1,37 @@
|
|
1
|
+
<div class="govuk-date-input__item">
|
2
|
+
<div id="{{id}}-group" class="{{#formGroupClassName}} {{formGroupClassName}}{{/formGroupClassName}}">
|
3
|
+
<label for="{{id}}" class="{{labelClassName}}">
|
4
|
+
<span class="label-text">{{{label}}}</span>
|
5
|
+
</label>
|
6
|
+
{{#hint}}<span {{$hintId}}id="{{hintId}}" {{/hintId}}class="govuk-hint">{{hint}}</span>{{/hint}}
|
7
|
+
{{#renderChild}}{{/renderChild}}
|
8
|
+
{{#attributes}}
|
9
|
+
{{#prefix}}
|
10
|
+
<div class="govuk-input__prefix" aria-hidden="true">{{prefix}}</div>
|
11
|
+
{{/prefix}}
|
12
|
+
{{/attributes}}
|
13
|
+
<input
|
14
|
+
type="{{type}}"
|
15
|
+
name="{{id}}"
|
16
|
+
id="{{id}}"
|
17
|
+
class="govuk-input{{#className}} {{className}}{{/className}}{{#error}} invalid-input{{/error}}"
|
18
|
+
aria-required="{{required}}"
|
19
|
+
{{#value}} value="{{value}}"{{/value}}
|
20
|
+
{{#min}} min="{{min}}"{{/min}}
|
21
|
+
{{#max}} max="{{max}}"{{/max}}
|
22
|
+
{{#maxlength}} maxlength="{{maxlength}}"{{/maxlength}}
|
23
|
+
{{#pattern}} pattern="{{pattern}}"{{/pattern}}
|
24
|
+
{{#hintId}} aria-describedby="{{hintId}}"{{/hintId}}
|
25
|
+
{{#error}} aria-invalid="true"{{/error}}
|
26
|
+
{{#autocomplete}} autocomplete="{{autocomplete}}"{{/autocomplete}}
|
27
|
+
{{#attributes}}
|
28
|
+
{{attribute}}="{{value}}"
|
29
|
+
{{/attributes}}
|
30
|
+
>
|
31
|
+
{{#attributes}}
|
32
|
+
{{#suffix}}
|
33
|
+
<div class="govuk-input__prefix" aria-hidden="true">{{suffix}}</div>
|
34
|
+
{{/suffix}}
|
35
|
+
{{/attributes}}
|
36
|
+
</div>
|
37
|
+
</div>
|
@@ -1,11 +1,15 @@
|
|
1
|
-
<div id="{{id}}-group" class="
|
2
|
-
<label for="{{id}}" class="{{labelClassName}}">
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
</
|
1
|
+
<div id="{{id}}-group" class="{{#compound}} form-group-compound{{/compound}}{{#formGroupClassName}}{{formGroupClassName}}{{/formGroupClassName}}{{#error}} govuk-form-group--error{{/error}}">
|
2
|
+
{{#isPageHeading}}<h1 class="govuk-label-wrapper">{{/isPageHeading}}<label for="{{id}}" class="{{labelClassName}}">
|
3
|
+
{{{label}}}
|
4
|
+
</label>
|
5
|
+
{{#isPageHeading}}</h1>{{/isPageHeading}}
|
6
|
+
{{#hint}}<span {{$hintId}}id="{{hintId}}" {{/hintId}}class="govuk-hint">{{hint}}</span>{{/hint}}
|
7
|
+
{{#error}}
|
8
|
+
<p class="govuk-error-message">
|
9
|
+
<span class="govuk-visually-hidden">Error:</span> {{error.message}}
|
10
|
+
</p>
|
11
|
+
{{/error}}
|
7
12
|
{{#renderChild}}{{/renderChild}}
|
8
|
-
<div class="govuk-input__wrapper">
|
9
13
|
{{#attributes}}
|
10
14
|
{{#prefix}}
|
11
15
|
<div class="govuk-input__prefix" aria-hidden="true">{{prefix}}</div>
|
@@ -15,7 +19,7 @@
|
|
15
19
|
type="{{type}}"
|
16
20
|
name="{{id}}"
|
17
21
|
id="{{id}}"
|
18
|
-
class="
|
22
|
+
class="{{^className}}govuk-input{{/className}}{{#className}}{{className}}{{/className}}{{#error}} invalid-input{{/error}}"
|
19
23
|
aria-required="{{required}}"
|
20
24
|
{{#value}} value="{{value}}"{{/value}}
|
21
25
|
{{#min}} min="{{min}}"{{/min}}
|
@@ -34,5 +38,4 @@
|
|
34
38
|
<div class="govuk-input__prefix" aria-hidden="true">{{suffix}}</div>
|
35
39
|
{{/suffix}}
|
36
40
|
{{/attributes}}
|
37
|
-
</div>
|
38
41
|
</div>
|
@@ -1,27 +1,34 @@
|
|
1
|
-
<div id="{{key}}-group" class="form-group{{#className}} {{className}} {{/className}}{{#formGroupClassName}} {{formGroupClassName}}{{/formGroupClassName}}{{#error}}
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
1
|
+
<div id="{{key}}-group" class="govuk-form-group{{#className}} {{className}} {{/className}}{{#formGroupClassName}} {{formGroupClassName}}{{/formGroupClassName}}{{#error}} govuk-form-group--error{{/error}}">
|
2
|
+
<fieldset class="govuk-fieldset" {{#hint}} aria-describedby="{{key}}-hint"{{/hint}}>
|
3
|
+
<legend class="govuk-fieldset__legend {{#isPageHeading}}govuk-fieldset__legend--l{{/isPageHeading}}{{#legendClassName}} {{legendClassName}}{{/legendClassName}}">
|
4
|
+
{{#isPageHeading}}<h1 class="govuk-fieldset__heading">{{/isPageHeading}}
|
5
|
+
{{legend}}
|
6
|
+
{{#isPageHeading}}</h1>{{/isPageHeading}}
|
7
|
+
</legend>
|
8
|
+
{{#hint}}<div id="{{key}}-hint" class="govuk-hint">{{hint}}</div>{{/hint}}
|
9
|
+
{{#error}}<p id="{{key}}-error" class="govuk-error-message"><span class="govuk-visually-hidden">Error:</span> {{error.message}}</p>{{/error}}
|
10
|
+
{{{detail}}}
|
11
|
+
<div class="govuk-radios" data-module="govuk-radios">
|
12
|
+
{{#options}}
|
13
|
+
<div class="govuk-radios__item">
|
14
|
+
<input
|
15
|
+
class="govuk-radios__input"
|
16
|
+
type="{{type}}"
|
17
|
+
name="{{key}}"
|
18
|
+
id="{{key}}-{{value}}"
|
19
|
+
value="{{value}}"
|
20
|
+
{{#toggle}} data-toggle="{{toggle}}"{{/toggle}}
|
21
|
+
{{#selected}} checked="checked"{{/selected}}
|
22
|
+
{{^error}}{{#optionHint}} aria-describedby="{{key}}-{{value}}-hint"{{/optionHint}}{{^optionHint}}{{#hint}} aria-describedby="{{key}}-hint"{{/hint}}{{/optionHint}}{{/error}}
|
23
|
+
{{#error}} aria-describedby="{{key}}-error" aria-invalid="true"{{/error}}
|
24
|
+
>
|
25
|
+
<label class="govuk-label govuk-radios__label" for="{{key}}-{{value}}">
|
26
|
+
{{{label}}}
|
27
|
+
{{#optionHint}}<div id="{{key}}-{{value}}-item-hint" class="govuk-hint govuk-radios__hint">{{optionHint}}</div>{{/optionHint}}
|
28
|
+
</label>
|
29
|
+
</div>
|
30
|
+
{{#renderChild}}{{/renderChild}}
|
31
|
+
{{/options}}
|
32
|
+
</div>
|
33
|
+
</fieldset>
|
27
34
|
</div>
|
@@ -1,10 +1,15 @@
|
|
1
|
-
<div id="{{id}}-group" class="
|
2
|
-
<label for="{{id}}" class="{{labelClassName}}">
|
1
|
+
<div id="{{id}}-group" class="{{#compound}} form-group-compound{{/compound}}{{#formGroupClassName}} {{formGroupClassName}}{{/formGroupClassName}}{{#error}} govuk-form-group--error{{/error}}">
|
2
|
+
{{#isPageHeading}}<h1 class="govuk-label-wrapper">{{/isPageHeading}}<label for="{{id}}" class="{{labelClassName}}{{#isPageHeading}}govuk-label--l{{/isPageHeading}}">
|
3
3
|
{{{label}}}
|
4
|
-
{{#hint}}<span {{$hintId}}id="{{hintId}}" {{/hintId}}class="
|
5
|
-
{{#error}}
|
4
|
+
{{#hint}}<span {{$hintId}}id="{{hintId}}" {{/hintId}}class="govuk-hint">{{hint}}</span>{{/hint}}
|
5
|
+
{{#error}}
|
6
|
+
<p class="govuk-error-message">
|
7
|
+
<span class="govuk-visually-hidden">Error:</span> {{error.message}}
|
8
|
+
</p>
|
9
|
+
{{/error}}
|
6
10
|
</label>
|
7
|
-
|
11
|
+
{{#isPageHeading}}</h1>{{/isPageHeading}}
|
12
|
+
<select id="{{id}}" class="govuk-select{{#className}} {{className}}{{/className}}{{#error}} invalid-input{{/error}}" name="{{id}}" aria-required="{{required}}">
|
8
13
|
{{#options}}
|
9
14
|
<option value="{{value}}" {{#selected}}selected{{/selected}}>{{label}}</option>
|
10
15
|
{{/options}}
|
@@ -1,14 +1,22 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
{{#maxlength}}
|
2
|
+
<div class="govuk-character-count" data-module="govuk-character-count" data-maxlength="{{maxlength}}">
|
3
|
+
{{/maxlength}}
|
4
|
+
<div id="{{id}}-group" class="{{#compound}}form-group-compound {{/compound}}{{#formGroupClassName}}{{formGroupClassName}}{{/formGroupClassName}}{{#error}} govuk-form-group--error{{/error}}">
|
5
|
+
{{#isPageHeading}}<h1 class="govuk-label-wrapper">{{/isPageHeading}}<label for="{{id}}" class="{{labelClassName}}">
|
3
6
|
{{{label}}}
|
4
|
-
{{#
|
5
|
-
|
7
|
+
{{#error}}
|
8
|
+
<p id="{{id}}-error" class="govuk-error-message">
|
9
|
+
<span id="{{id}}-error" class="govuk-visually-hidden">Error:</span>{{error.message}}
|
10
|
+
</p>
|
11
|
+
{{/error}}
|
6
12
|
</label>
|
13
|
+
{{#isPageHeading}}</h1>{{/isPageHeading}}
|
14
|
+
{{#hint}}<div {{$hintId}}id="{{hintId}}" {{/hintId}}class="govuk-hint">{{hint}}</div>{{/hint}}
|
7
15
|
{{#renderChild}}{{/renderChild}}
|
8
16
|
<textarea
|
9
17
|
name="{{id}}"
|
10
18
|
id="{{id}}"
|
11
|
-
class="
|
19
|
+
class="govuk-textarea{{#className}} {{className}}{{/className}} {{#maxlength}}maxlength{{/maxlength}}{{#error}} invalid-input{{/error}}"
|
12
20
|
aria-required="{{required}}"
|
13
21
|
{{#maxlength}} maxlength="{{maxlength}}"{{/maxlength}}
|
14
22
|
{{#attributes}}
|
@@ -19,5 +27,6 @@
|
|
19
27
|
{{^error}}{{^hintId}}{{#maxlength}} aria-describedby="{{id}}-maxlength-hint"{{/maxlength}}{{/hintId}}{{/error}}
|
20
28
|
{{#error}} aria-invalid="true" aria-describedby="{{id}}-error"{{/error}}
|
21
29
|
>{{value}}</textarea>
|
22
|
-
{{#maxlength}}<
|
30
|
+
{{#maxlength}}<div id="{{id}}-maxlength-hint" class="govuk-character-count__message" aria-live="polite">You have {{maxlength}} characters remaining</div>{{/maxlength}}
|
23
31
|
</div>
|
32
|
+
{{#maxlength}}</div>{{/maxlength}}
|
@@ -1,5 +1,4 @@
|
|
1
|
-
<div id="{{toggle}}-panel" class="
|
2
|
-
|
3
|
-
|
4
|
-
</div>
|
1
|
+
<div id="{{toggle}}-panel" class="{{#radioOption}}govuk-radios__conditional govuk-radios__conditional--hidden{{/radioOption}}
|
2
|
+
{{^radioOption}}govuk-checkboxes__conditional govuk-checkboxes__conditional--hidden{{/radioOption}}">
|
3
|
+
{{#renderMixin}}{{/renderMixin}}
|
5
4
|
</div>
|
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
{{$content}}
|
10
10
|
<p class="govuk-body">{{#t}}accessibility.intro-p2{{/t}}</p>
|
11
|
-
<ul class="list
|
11
|
+
<ul class="govuk-list">
|
12
12
|
<li>{{#t}}accessibility.intro-p2-li1{{/t}}</li>
|
13
13
|
<li>{{#t}}accessibility.intro-p2-li2{{/t}}</li>
|
14
14
|
<li>{{#t}}accessibility.intro-p2-li3{{/t}}</li>
|
@@ -18,13 +18,13 @@
|
|
18
18
|
<p class="govuk-body">{{#t}}accessibility.intro-p3-pre-link{{/t}} <a href="https://mcmw.abilitynet.org.uk/">{{#t}}accessibility.intro-p3-link{{/t}}</a> {{#t}}accessibility.intro-p3-post-link{{/t}}</p>
|
19
19
|
<h2 class="govuk-heading-m">{{#t}}accessibility.how-accessible-header{{/t}}</h2>
|
20
20
|
<p class="govuk-body">{{#t}}accessibility.how-accessible-p1{{/t}}</p>
|
21
|
-
<ul class="list
|
21
|
+
<ul class="govuk-list">
|
22
22
|
<li>{{#t}}accessibility.how-accessible-p1-li1{{/t}}</li>
|
23
23
|
<li>{{#t}}accessibility.how-accessible-p1-li2{{/t}}</li>
|
24
24
|
</ul>
|
25
25
|
<h2 class="govuk-heading-m">{{#t}}accessibility.reporting-header{{/t}}</h2>
|
26
26
|
<p class="govuk-body">{{#t}}accessibility.reporting-p1{{/t}}</p>
|
27
|
-
<ul class="list
|
27
|
+
<ul class="govuk-list">
|
28
28
|
<li>{{#t}}accessibility.reporting-p1-li1-pre-link{{/t}} <a href="mailto:{{#t}}accessibility.contact-email-accessibility{{/t}}">{{#t}}accessibility.contact-email-accessibility{{/t}}</a></li>
|
29
29
|
</ul>
|
30
30
|
<p class="govuk-body">
|
@@ -40,7 +40,7 @@
|
|
40
40
|
<h2 class="govuk-heading-m">{{#t}}accessibility.non-accessible-header{{/t}}</h2>
|
41
41
|
<p class="govuk-body">{{#t}}accessibility.non-accessible-p1{{/t}}</p>
|
42
42
|
<h3 class="govuk-heading-m">{{#t}}accessibility.non-compliance-header{{/t}}</h3>
|
43
|
-
<ul class="list
|
43
|
+
<ul class="govuk-list">
|
44
44
|
<li>{{#t}}accessibility.non-compliance-li1{{/t}}</li>
|
45
45
|
</ul>
|
46
46
|
<h3 class="govuk-heading-m">{{#t}}accessibility.disproportionate-burden-header{{/t}}</h3>
|
@@ -5,25 +5,32 @@
|
|
5
5
|
{{$pageTitle}}
|
6
6
|
{{#errorlist.length}}{{#t}}errorlist.prefix{{/t}}{{/errorlist.length}}{{$header}}{{/header}} – GOV.UK
|
7
7
|
{{/pageTitle}}
|
8
|
-
{{$
|
8
|
+
{{$bodyStart}}
|
9
|
+
<a href="#{{#skipToMain}}{{skipToMain}}{{/skipToMain}}{{^skipToMain}}main-content{{/skipToMain}}" class="govuk-skip-link" id="skip-to-main">Skip to main content</a>
|
10
|
+
{{/bodyStart}}
|
11
|
+
{{$headerClass}}govuk-header{{/headerClass}}
|
9
12
|
{{$insideHeader}}{{/insideHeader}}
|
10
13
|
{{$main}}
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
14
|
+
<div class="govuk-width-container ">
|
15
|
+
{{#feedbackUrl}}
|
16
|
+
<div class="govuk-phase-banner">
|
17
|
+
<p class="govuk-phase-banner__content">
|
18
|
+
<strong class="govuk-tag govuk-phase-banner__content__tag">{{#t}}journey.phase{{/t}}</strong>
|
19
|
+
<span class="govuk-phase-banner__text">This is a new service – your <a href="{{feedbackUrl}}{{^feedbackUrl}}https://eforms.homeoffice.gov.uk/outreach/feedback.ofml{{/feedbackUrl}}" class="govuk-link" id="feedback-link" target="_blank">feedback</a> will help us to improve it.</span>
|
20
|
+
</p>
|
21
|
+
</div>
|
22
|
+
{{/feedbackUrl}}
|
18
23
|
<span id="step">
|
19
24
|
{{> partials-back}} <span>{{$step}}{{/step}}</span>
|
20
25
|
</span>
|
21
|
-
|
22
|
-
|
23
|
-
|
26
|
+
<main class="govuk-main-wrapper govuk-main-wrapper--auto-spacing" id="main-content" role="main">
|
27
|
+
<div class="govuk-grid-row" id="gov-grid-row-content">
|
28
|
+
{{> partials-maincontent-left}}
|
29
|
+
</div>
|
30
|
+
</main>
|
24
31
|
{{> partials-continue}}
|
25
32
|
<script type="text/javascript" src="{{assetPath}}/js/bundle.js"></script>
|
26
|
-
|
33
|
+
</div>
|
27
34
|
{{/main}}
|
28
35
|
{{$cookieMessage}}
|
29
36
|
{{#gaTagId}}
|
@@ -37,16 +44,9 @@
|
|
37
44
|
{{/gaTagId}}
|
38
45
|
{{/cookieMessage}}
|
39
46
|
{{$footerSupportLinks}}
|
40
|
-
<
|
41
|
-
|
42
|
-
|
43
|
-
{{/footerSupportLinks}}
|
44
|
-
{{^footerSupportLinks}}
|
45
|
-
<li><a href="/cookies">{{#t}}base.cookies{{/t}}</a></li>
|
46
|
-
<li><a href="/terms-and-conditions">{{#t}}base.terms{{/t}}</a></li>
|
47
|
-
<li><a href="/accessibility">{{#t}}base.accessibility{{/t}}</a></li>
|
48
|
-
{{/footerSupportLinks}}
|
49
|
-
</ul>
|
47
|
+
<li class="govuk-footer__inline-list-item"><a class="govuk-footer__link" href="/cookies">{{#t}}base.cookies{{/t}}</a></li>
|
48
|
+
<li class="govuk-footer__inline-list-item"><a class="govuk-footer__link" href="/accessibility">{{#t}}base.accessibility{{/t}}</a></li>
|
49
|
+
<li class="govuk-footer__inline-list-item"><a class="govuk-footer__link" href="/terms-and-conditions">{{#t}}base.terms{{/t}}</a></li>
|
50
50
|
{{/footerSupportLinks}}
|
51
51
|
{{$bodyEnd}}
|
52
52
|
{{> partials-gatag}}
|
@@ -1,5 +1,6 @@
|
|
1
|
-
<div class="
|
2
|
-
<
|
3
|
-
|
1
|
+
<div class="govuk-panel govuk-panel--confirmation" role="alert">
|
2
|
+
<h1 govuk-panel__title>{{#t}}journey.confirmation.message{{/t}}</h1>
|
3
|
+
<div class="govuk-panel__body">
|
4
|
+
{{#t}}journey.confirmation.details{{/t}}
|
4
5
|
</div>
|
5
6
|
</div>
|
@@ -1,26 +1,29 @@
|
|
1
|
-
<div id="cookie-banner"
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
1
|
+
<div id="cookie-banner" class="govuk-cookie-banner gem-c-cookie-banner govuk-clearfix">
|
2
|
+
<div class="gem-c-cookie-banner__message govuk-cookie-banner__message govuk-width-container">
|
3
|
+
<div id="cookie-banner-info" class="govuk-grid-row">
|
4
|
+
<div class="govuk-grid-column-two-thirds">
|
5
|
+
<h2 class="govuk-cookie-banner__heading govuk-heading-m">Cookies on {{#appName}}{{appName}}{{/appName}}{{^appName}}this service{{/appName}}</h2>
|
6
|
+
<div class="govuk-cookie-banner__content">
|
7
|
+
<p class="govuk-body">We use some essential cookies to make this website work.</p>
|
8
|
+
<p class="govuk-body">We'd like to set additional cookies to understand how you use GOV.UK, remember your settings and improve government services.</p>
|
9
|
+
<p class="govuk-body">We also use cookies set by other sites to help us deliver content from their services.</p>
|
10
|
+
</div>
|
11
|
+
</div>
|
12
|
+
</div>
|
13
|
+
<div id="cookie-banner-actions" class="govuk-button-group">
|
14
|
+
<button id="accept-cookies-button" class="gem-c-button govuk-button" type="submit" data-module="gem-track-click" data-accept-cookies="true" data-track-category="cookieBanner" data-track-action="Cookie banner accepted" data-cookie-types="all">Accept additional cookies</button>
|
15
|
+
|
16
|
+
<button id="reject-cookies-button" class="gem-c-button govuk-button" type="submit" data-module="gem-track-click" data-reject-cookies="true" data-track-category="cookieBanner" data-track-action="Cookie banner rejected">Reject additional cookies</button>
|
17
|
+
|
18
|
+
<a class="govuk-link" href="/cookies">View cookies</a>
|
19
|
+
</div>
|
20
|
+
</div>
|
21
|
+
<div class="gem-c-cookie-banner__confirmation govuk-width-container" tabindex="0" hidden="" id="cookie-banner-submitted" >
|
22
|
+
<p class="gem-c-cookie-banner__confirmation-message" role="alert">
|
23
|
+
Your cookie preferences have been saved. You can <a class="govuk-link" data-module="gem-track-click" data-track-category="cookieBanner" data-track-action="Cookie banner settings clicked from confirmation" href="/student-help/cookies">change your cookie settings</a> at any time.
|
13
24
|
</p>
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
<a href="/cookies" class="js-enabled">View cookies</a>
|
19
|
-
<!--Non-javascript fallback content-->
|
20
|
-
<a href="/cookies" role="button" class="button js-disabled">Set cookie preferences</a>
|
21
|
-
</div>
|
22
|
-
<div id="cookie-banner-submitted" tabindex="-1">
|
23
|
-
<p>Your cookie preferences have been saved. You can <a href="/cookies">change your cookie settings</a> at any time.</p>
|
24
|
-
<button id="hide-cookie-banner" class="button" type="button" aria-label="Hide cookie banner">Hide</button>
|
25
|
-
</div>
|
25
|
+
<div class="govuk-button-group">
|
26
|
+
<button class="gem-c-cookie-banner__hide-button govuk-button" id="hide-cookie-banner">Hide this message</button>
|
27
|
+
</div>
|
28
|
+
</div>
|
26
29
|
</div>
|
@@ -1,8 +1,8 @@
|
|
1
|
-
<div class="
|
2
|
-
<input id="radio-1" type="radio" name="radio-group" value="Use cookies that measure my website use">
|
3
|
-
<label for="radio-1">Use cookies that measure my website use</label>
|
1
|
+
<div class="govuk-radios__item">
|
2
|
+
<input class="govuk-radios__input" id="radio-1" type="radio" name="radio-group" value="Use cookies that measure my website use">
|
3
|
+
<label class="govuk-label govuk-radios__label" for="radio-1">Use cookies that measure my website use</label>
|
4
4
|
</div>
|
5
|
-
<div class="
|
6
|
-
<input id="radio-2" type="radio" name="radio-group" value="Do not use cookies that measure my website use">
|
7
|
-
<label for="radio-2">Do not use cookies that measure my website use</label>
|
5
|
+
<div class="govuk-radios__item">
|
6
|
+
<input class="govuk-radios__input" id="radio-2" type="radio" name="radio-group" value="Do not use cookies that measure my website use">
|
7
|
+
<label class="govuk-label govuk-radios__label" for="radio-2">Do not use cookies that measure my website use</label>
|
8
8
|
</div>
|
@@ -1 +1 @@
|
|
1
|
-
<p>{{before}}<a href="{{href}}" rel="external">{{link}}</a>{{after}}</p>
|
1
|
+
<p class="govuk-body">{{before}}<a class="govuk-link" href="{{href}}" rel="external">{{link}}</a>{{after}}</p>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<form action="" method="POST" {{$encoding}}{{/encoding}} autocomplete="off" novalidate="true" spellcheck="false">
|
2
2
|
{{$intro}}
|
3
|
-
{{#intro}}<
|
3
|
+
{{#intro}}<span class="govuk-hint" >{{intro}}</span>{{/intro}}
|
4
4
|
{{/intro}}
|
5
5
|
{{$form}}{{/form}}
|
6
6
|
{{#csrf-token}}
|
@@ -1,10 +1,10 @@
|
|
1
1
|
{{$content-outer}}
|
2
2
|
{{$preloader}}{{/preloader}}
|
3
|
-
<div class="column-two-thirds">
|
3
|
+
<div class="govuk-grid-column-two-thirds">
|
4
4
|
{{$validationSummary}}{{/validationSummary}}
|
5
|
-
<
|
6
|
-
|
7
|
-
|
5
|
+
{{#captionHeading}}<span class="govuk-caption-l">{{captionHeading}}</span>{{/captionHeading}}
|
6
|
+
{{#header}}<h1 class="govuk-heading-xl">{{header}}</h1>{{/header}}
|
7
|
+
{{#subHeading}}<div id="page-header" class="govuk-heading-l">{{subHeading}}</div>{{/subHeading}}
|
8
8
|
{{$content}}{{/content}}
|
9
9
|
</div>
|
10
10
|
{{/content-outer}}
|
@@ -1,7 +1,8 @@
|
|
1
|
-
<div class="
|
2
|
-
|
3
|
-
<
|
4
|
-
|
5
|
-
|
6
|
-
|
1
|
+
<div class="govuk-header__content">
|
2
|
+
{{#startPageRedirectUrl}}
|
3
|
+
<a href="{{startPageRedirectUrl}}" class="govuk-header__link govuk-header__link--service-name" id="proposition-name">{{$journeyHeader}}{{/journeyHeader}}</a>
|
4
|
+
{{/startPageRedirectUrl}}
|
5
|
+
{{^startPageRedirectUrl}}
|
6
|
+
<a href="{{baseUrl}}" class="govuk-header__link govuk-header__link--service-name" id="proposition-name">{{$journeyHeader}}{{/journeyHeader}}</a>
|
7
|
+
{{/startPageRedirectUrl}}
|
7
8
|
</div>
|
@@ -1,15 +1,15 @@
|
|
1
|
-
<table>
|
2
|
-
<thead>
|
3
|
-
<tr>
|
1
|
+
<table class="govuk-table">
|
2
|
+
<thead class="govuk-table__head">
|
3
|
+
<tr class="govuk-table__row">
|
4
4
|
{{#headers}}
|
5
|
-
<th>{{.}}</th>
|
5
|
+
<th scope="col" class="govuk-table__header app-custom-class">{{.}}</th>
|
6
6
|
{{/headers}}
|
7
7
|
</tr>
|
8
8
|
</thead>
|
9
9
|
<tbody>
|
10
|
-
<tr>
|
10
|
+
<tr class="govuk-table__row">
|
11
11
|
{{#cookieName}}
|
12
|
-
<td>{{cookieName}}</td>
|
12
|
+
<td scope="row" class="govuk-table__header">{{cookieName}}</td>
|
13
13
|
{{/cookieName}}
|
14
14
|
{{^cookieName}}
|
15
15
|
<td>{{defaultCookieName}}</td>
|
@@ -1,16 +1,16 @@
|
|
1
|
-
<table>
|
2
|
-
<thead>
|
3
|
-
<tr>
|
1
|
+
<table class="govuk-table">
|
2
|
+
<thead class="govuk-table__head">
|
3
|
+
<tr class="govuk-table__row">
|
4
4
|
{{#headers}}
|
5
|
-
<th>{{.}}</th>
|
5
|
+
<th scope="col" class="govuk-table__header app-custom-class">{{.}}</th>
|
6
6
|
{{/headers}}
|
7
7
|
</tr>
|
8
8
|
</thead>
|
9
|
-
<tbody>
|
9
|
+
<tbody class="govuk-table__body">
|
10
10
|
{{#rows}}
|
11
|
-
<tr>
|
11
|
+
<tr class="govuk-table__row">
|
12
12
|
{{#.}}
|
13
|
-
<td>{{.}}</td>
|
13
|
+
<td class="govuk-table__cell">{{.}}</td>
|
14
14
|
{{/.}}
|
15
15
|
</tr>
|
16
16
|
{{/rows}}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
<ul>
|
2
|
-
{{$validation-list}}{{/validation-list}}
|
1
|
+
<ul class="govuk-list govuk-error-summary__list">
|
2
|
+
{{$validation-list}}{{/validation-list}}
|
3
3
|
</ul>
|
@@ -1,24 +1,25 @@
|
|
1
1
|
{{#errorlist.length}}
|
2
|
-
<div class="
|
2
|
+
<div class="govuk-error-summary" aria-labelledby="error-summary-title" data-module="govuk-error-summary" role="alert" tabindex="-1">
|
3
3
|
{{$errorlist-title}}
|
4
4
|
|
5
5
|
{{#errorLength.single}}
|
6
|
-
<h2 id="error-summary-title">{{#t}}errorlist.title.single{{/t}}</h2>
|
6
|
+
<h2 class="govuk-error-summary__title" id="error-summary-title">{{#t}}errorlist.title.single{{/t}}</h2>
|
7
7
|
{{/errorLength.single}}
|
8
8
|
{{#errorLength.multiple}}
|
9
|
-
<h2 id="error-summary-title">{{#t}}errorlist.title.multiple{{/t}}</h2>
|
9
|
+
<h2 class="govuk-error-summary__title" id="error-summary-title">{{#t}}errorlist.title.multiple{{/t}}</h2>
|
10
10
|
{{/errorLength.multiple}}
|
11
11
|
|
12
12
|
{{/errorlist-title}}
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
13
|
+
<div class="govuk-error-summary__body">
|
14
|
+
{{<partials-validation-list}}
|
15
|
+
{{$validation-list}}
|
16
|
+
{{#errorlist}}
|
17
|
+
{{#message}}
|
18
|
+
<li><a href="#{{errorLinkId}}">{{ message }}</a></li>
|
19
|
+
{{/message}}
|
20
|
+
{{/errorlist}}
|
21
|
+
{{/validation-list}}
|
22
|
+
{{/partials-validation-list}}
|
23
|
+
</div>
|
23
24
|
</div>
|
24
25
|
{{/errorlist.length}}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{{<error}}
|
2
2
|
{{$content}}
|
3
3
|
<p>{{{content.message}}}</p>
|
4
|
-
<a href="{{startLink}}" class="button" role="button">{{#t}}buttons.start-again{{/t}}</a>
|
4
|
+
<a href="{{startLink}}" class="govuk-button" role="button">{{#t}}buttons.start-again{{/t}}</a>
|
5
5
|
{{/content}}
|
6
6
|
{{/error}}
|
@@ -35,7 +35,7 @@ function showCookieBannerSubmitted() {
|
|
35
35
|
document.getElementById('cookie-banner-info').style.display = 'none';
|
36
36
|
document.getElementById('cookie-banner-actions').style.display = 'none';
|
37
37
|
var cookieBannerSubmitted = document.getElementById('cookie-banner-submitted');
|
38
|
-
cookieBannerSubmitted.style.display = '
|
38
|
+
cookieBannerSubmitted.style.display = 'block';
|
39
39
|
cookieBannerSubmitted.focus();
|
40
40
|
}
|
41
41
|
|