hof 20.0.0-beta.24 → 20.0.0-beta.27
Sign up to get free protection for your applications and to get access to all the features.
- package/components/notify/notify.js +2 -2
- package/frontend/template-mixins/mixins/template-mixins.js +1 -0
- package/frontend/template-mixins/partials/forms/input-text-group.html +3 -1
- package/frontend/template-partials/views/layout.html +1 -1
- package/package.json +1 -1
- package/.nyc_output/e2fdc3eb-4fd2-47e0-a392-fe5f665776a4.json +0 -1
- package/.nyc_output/processinfo/e2fdc3eb-4fd2-47e0-a392-fe5f665776a4.json +0 -1
- package/.nyc_output/processinfo/index.json +0 -1
- package/.vscode/settings.json +0 -6
- package/sandbox/.env +0 -1
@@ -1,6 +1,6 @@
|
|
1
1
|
'use strict';
|
2
2
|
const NotifyClient = require('notifications-node-client').NotifyClient;
|
3
|
-
const
|
3
|
+
const {v4: uuidv4} = require('uuid');
|
4
4
|
|
5
5
|
module.exports = class Notify {
|
6
6
|
constructor(opts) {
|
@@ -11,7 +11,7 @@ module.exports = class Notify {
|
|
11
11
|
}
|
12
12
|
|
13
13
|
send(email) {
|
14
|
-
const reference =
|
14
|
+
const reference = uuidv4();
|
15
15
|
|
16
16
|
return this.notifyClient.sendEmail(this.notifyTemplate, email.recipient, {
|
17
17
|
personalisation: {
|
@@ -215,6 +215,7 @@ module.exports = function (options) {
|
|
215
215
|
child: field.child,
|
216
216
|
isPageHeading: field.isPageHeading,
|
217
217
|
attributes: field.attributes,
|
218
|
+
isPrefixOrSuffix: _.map(field.attributes, item => {if (item.prefix || item.suffix !== undefined) return true;}),
|
218
219
|
renderChild: renderChild.bind(this)
|
219
220
|
});
|
220
221
|
}
|
@@ -10,6 +10,7 @@
|
|
10
10
|
</p>
|
11
11
|
{{/error}}
|
12
12
|
{{#renderChild}}{{/renderChild}}
|
13
|
+
{{#isPrefixOrSuffix}}<div class="govuk-input__wrapper">{{/isPrefixOrSuffix}}
|
13
14
|
{{#attributes}}
|
14
15
|
{{#prefix}}
|
15
16
|
<div class="govuk-input__prefix" aria-hidden="true">{{prefix}}</div>
|
@@ -35,7 +36,8 @@
|
|
35
36
|
>
|
36
37
|
{{#attributes}}
|
37
38
|
{{#suffix}}
|
38
|
-
<div class="govuk-
|
39
|
+
<div class="govuk-input__suffix" aria-hidden="true">{{suffix}}</div>
|
39
40
|
{{/suffix}}
|
40
41
|
{{/attributes}}
|
42
|
+
{{#isPrefixOrSuffix}}</div>{{/isPrefixOrSuffix}}
|
41
43
|
</div>
|
@@ -46,7 +46,7 @@
|
|
46
46
|
{{$footerSupportLinks}}
|
47
47
|
<ul>
|
48
48
|
{{#footerSupportLinks}}
|
49
|
-
<li><a href="{{path}}">{{#t}}{{property}}{{/t}}</a></li>
|
49
|
+
<li class="govuk-footer__inline-list-item"><a href="{{path}}">{{#t}}{{property}}{{/t}}</a></li>
|
50
50
|
{{/footerSupportLinks}}
|
51
51
|
{{^footerSupportLinks}}
|
52
52
|
<li class="govuk-footer__inline-list-item"><a class="govuk-footer__link" href="/cookies">{{#t}}base.cookies{{/t}}</a></li>
|