@govuk-one-login/frontend-ui 1.3.7 → 1.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{% if MAY_2025_REBRAND_ENABLED %}
|
|
2
|
-
{% set govukRebrand = true %}
|
|
2
|
+
{% set govukRebrand = true %}
|
|
3
3
|
{% endif %}
|
|
4
4
|
|
|
5
5
|
{% extends "govuk/template.njk" %}
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
{% block head %}
|
|
22
22
|
{# Dynatrace RUM snippet #}
|
|
23
23
|
{% if dynatraceRumUrl %}
|
|
24
|
-
|
|
24
|
+
<script src='{{ dynatraceRumUrl }}' crossorigin="anonymous" nonce='{{ cspNonce }}'></script>
|
|
25
25
|
{% endif %}
|
|
26
26
|
|
|
27
27
|
<link href="/public/stylesheets/application.css" rel="stylesheet">
|
|
@@ -43,57 +43,57 @@
|
|
|
43
43
|
{%- endblock %}
|
|
44
44
|
|
|
45
45
|
{% block bodyStart %}
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
{% block cookieBanner %}
|
|
47
|
+
{{ frontendUiCookieBanner({
|
|
48
48
|
translations: translations.translation.cookieBanner
|
|
49
49
|
}
|
|
50
50
|
)}}
|
|
51
51
|
|
|
52
|
+
{%endblock%}
|
|
53
|
+
{% endblock %}
|
|
52
54
|
|
|
53
|
-
|
|
54
|
-
{% endblock %}
|
|
55
|
-
|
|
56
|
-
{% block header %}
|
|
55
|
+
{% block header %}
|
|
57
56
|
{{ frontendUiHeader({
|
|
58
57
|
translations: translations.translation.header,
|
|
59
58
|
homepageUrl: "https://www.gov.uk",
|
|
60
59
|
signOutLink: logoutUrl
|
|
61
60
|
}) }}
|
|
62
|
-
{% endblock %}
|
|
61
|
+
{% endblock %}
|
|
63
62
|
|
|
64
|
-
{% block main %}
|
|
65
|
-
|
|
66
|
-
|
|
63
|
+
{% block main %}
|
|
64
|
+
<div class="govuk-width-container {{ containerClasses }}">
|
|
65
|
+
{{ frontendUiPhaseBanner({
|
|
67
66
|
translations: translations.translation.phaseBanner,
|
|
68
67
|
url: currentUrl,
|
|
69
68
|
contactUrl: contactUsUrl
|
|
70
69
|
}) }}
|
|
71
70
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
71
|
+
{% block beforeContent %}{% endblock %}
|
|
72
|
+
{% if showLanguageToggle %}
|
|
73
|
+
{{ frontendUiLanguageSelect({
|
|
75
74
|
translations: translations.translation.languageSelect,
|
|
76
75
|
url: currentUrl,
|
|
77
76
|
activeLanguage: htmlLang
|
|
78
77
|
}) }}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
78
|
+
{% endif %}
|
|
79
|
+
{% if showBack %}
|
|
80
|
+
{{ govukBackLink({
|
|
82
81
|
text: "general.govuk.backLink" | translate,
|
|
83
82
|
href: hrefBack
|
|
84
83
|
}) }}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
84
|
+
{% endif %}
|
|
85
|
+
<main class="govuk-main-wrapper {{ mainClasses }}" id="main-content"{% if currentLanguage %} lang="{{ currentLanguage }}"{% endif %}>
|
|
86
|
+
<div class="govuk-grid-row">
|
|
87
|
+
<div class="govuk-grid-column-two-thirds {{ rowClasses }}">
|
|
88
|
+
{% if (displayBanner) %}
|
|
89
|
+
{{ govukNotificationBanner({
|
|
90
90
|
html: bannerMessage,
|
|
91
91
|
type: bannerType
|
|
92
92
|
}) }}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
93
|
+
{% endif %}
|
|
94
|
+
|
|
95
|
+
{% if errorState %}
|
|
96
|
+
{{ govukErrorSummary({
|
|
97
97
|
titleText: errorTitle | default('Error Summary'),
|
|
98
98
|
errorList: [
|
|
99
99
|
{
|
|
@@ -102,51 +102,53 @@
|
|
|
102
102
|
}
|
|
103
103
|
]
|
|
104
104
|
}) }}
|
|
105
|
-
|
|
106
|
-
|
|
105
|
+
{% endif %}
|
|
106
|
+
{% block content %}{% endblock %}
|
|
107
|
+
</div>
|
|
107
108
|
</div>
|
|
108
|
-
</
|
|
109
|
-
</
|
|
110
|
-
|
|
111
|
-
{% endblock %}
|
|
109
|
+
</main>
|
|
110
|
+
</div>
|
|
111
|
+
{% endblock %}
|
|
112
112
|
|
|
113
|
-
{% block footer %}
|
|
114
|
-
|
|
113
|
+
{% block footer %}
|
|
114
|
+
{{ frontendUiFooter({
|
|
115
115
|
translations: translations.translation.footer
|
|
116
116
|
}) }}
|
|
117
|
-
{% endblock %}
|
|
118
|
-
|
|
119
|
-
{% block bodyEnd %}
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
117
|
+
{% endblock %}
|
|
118
|
+
|
|
119
|
+
{% block bodyEnd %}
|
|
120
|
+
{% block scripts %}{% endblock %}
|
|
121
|
+
<script nonce='{{ cspNonce }}' src="/public/javascripts/application.js"></script>
|
|
122
|
+
<script type="module" nonce='{{ cspNonce }}' src="/public/javascripts/govuk-frontend.min.js"></script>
|
|
123
|
+
<script type="module" nonce='{{ cspNonce }}'>
|
|
124
|
+
import {initAll} from '/public/javascripts/govuk-frontend.min.js'
|
|
125
|
+
initAll()
|
|
126
|
+
</script>
|
|
127
|
+
{% if useDeviceIntelligence %}
|
|
128
|
+
<script type="module" nonce='{{ cspNonce }}' src="/public/javascripts/fingerprint.js"></script>
|
|
129
|
+
<script type="module" nonce='{{ cspNonce }}'>
|
|
130
|
+
import {setFingerprintCookie} from "/public/javascripts/fingerprint.js";
|
|
131
|
+
setFingerprintCookie('{{ serviceDomain }}')
|
|
132
|
+
</script>
|
|
133
|
+
{% endif %}
|
|
134
|
+
<script nonce='{{ cspNonce }}'>
|
|
135
|
+
window.DI = window.DI || {};
|
|
136
|
+
window.DI.httpStatusCode = {{ statusCode | d(200) }};
|
|
137
|
+
window.DI.journeyState = "{{ googleTagManagerPageId }}";
|
|
138
|
+
window
|
|
139
|
+
.DI
|
|
140
|
+
.appInit({
|
|
141
|
+
ga4ContainerId: "{{ ga4ContainerId }}",
|
|
142
|
+
uaContainerId: "{{ uaContainerId }}"
|
|
143
|
+
}, {
|
|
144
|
+
enableGa4Tracking: {{isGa4Enabled}},
|
|
145
|
+
enableUaTracking: {{isUaEnabled}},
|
|
146
|
+
cookieDomain: "{{analyticsCookieDomain}}"
|
|
147
|
+
});
|
|
148
|
+
</script>
|
|
149
|
+
{{ ga4OnPageLoad({
|
|
148
150
|
cspNonce: cspNonce,
|
|
149
151
|
isPageDynamic: isPageDynamic,
|
|
150
152
|
englishPageTitle: pageTitleKey | translateToEnglish }) }}
|
|
151
153
|
|
|
152
|
-
{% endblock %}
|
|
154
|
+
{% endblock %}
|