@moduk/frontend 1.0.0 → 1.0.2
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.
- package/dist/lib/nunjucks/moduk/components/accordion/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/accordion/__examples__/with-summary-lines.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/accordion/macro.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/back-link/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/back-link/macro.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/breadcrumbs/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/breadcrumbs/macro.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/button/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/button/__examples__/disabled.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/button/__examples__/group-link.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/button/__examples__/grouping.njk +4 -4
- package/dist/lib/nunjucks/moduk/components/button/__examples__/prevent-double-click.njk +1 -2
- package/dist/lib/nunjucks/moduk/components/button/__examples__/secondary.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/button/__examples__/start.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/button/__examples__/warning.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/button/macro.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/character-count/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/character-count/__examples__/not-as-page-heading.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/character-count/__examples__/with-error-message.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/character-count/__examples__/with-threshold.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/character-count/__examples__/word-count.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/character-count/macro.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/checkboxes/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/checkboxes/__examples__/not-as-page-heading.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/checkboxes/__examples__/small.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/checkboxes/__examples__/with-conditional-reveal.njk +9 -9
- package/dist/lib/nunjucks/moduk/components/checkboxes/__examples__/with-error-message.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/checkboxes/__examples__/with-item-hint.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/checkboxes/__examples__/with-none-option.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/checkboxes/macro.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/cookie-banner/__examples__/accepted.njk +4 -4
- package/dist/lib/nunjucks/moduk/components/cookie-banner/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/cookie-banner/__examples__/rejected.njk +4 -5
- package/dist/lib/nunjucks/moduk/components/cookie-banner/macro.njk +3 -3
- package/dist/lib/nunjucks/moduk/components/date-input/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/date-input/__examples__/not-as-page-heading.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/date-input/__examples__/with-date-part-error.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/date-input/__examples__/with-whole-date-error.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/date-input/macro.njk +3 -3
- package/dist/lib/nunjucks/moduk/components/details/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/details/__examples__/open.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/error-message/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/error-message/macro.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/error-summary/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/error-summary/__examples__/with-error-linked-to-checkbox.njk +4 -4
- package/dist/lib/nunjucks/moduk/components/error-summary/__examples__/with-error-linked-to-date-part.njk +3 -3
- package/dist/lib/nunjucks/moduk/components/error-summary/macro.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/fieldset/__examples__/default.njk +8 -8
- package/dist/lib/nunjucks/moduk/components/file-upload/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/file-upload/__examples__/with-error.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/file-upload/macro.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/footer/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/footer/__examples__/with-links.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/footer/__examples__/with-secondary-navigation-and-links.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/footer/__examples__/with-secondary-navigation.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/footer/macro.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/header/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/header/__examples__/with-service-name-and-navigation.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/header/__examples__/with-service-name-and-no-service-url.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/header/__examples__/with-service-name.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/header/macro.njk +30 -31
- package/dist/lib/nunjucks/moduk/components/input/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/input/__examples__/not-as-page-heading.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/input/__examples__/with-error.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/input/__examples__/with-fixed-width.njk +15 -15
- package/dist/lib/nunjucks/moduk/components/input/__examples__/with-fluid-width.njk +8 -8
- package/dist/lib/nunjucks/moduk/components/input/__examples__/with-hint.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/input/__examples__/with-numeric.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/input/__examples__/with-prefix-and-suffix-error.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/input/__examples__/with-prefix-and-suffix.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/input/__examples__/with-prefix.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/input/__examples__/with-suffix.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/input/macro.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/inset-text/__examples__/default.njk +3 -3
- package/dist/lib/nunjucks/moduk/components/inset-text/macro.njk +1 -1
- package/dist/lib/nunjucks/moduk/components/notification-banner/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/notification-banner/__examples__/success.njk +3 -3
- package/dist/lib/nunjucks/moduk/components/notification-banner/__examples__/with-html.njk +3 -3
- package/dist/lib/nunjucks/moduk/components/notification-banner/macro.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/pagination/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/pagination/__examples__/on-the-first-page.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/pagination/__examples__/on-the-last-page.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/pagination/__examples__/with-ellipses.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/pagination/__examples__/with-link-labels.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/pagination/__examples__/with-next-and-previous-only.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/pagination/macro.njk +3 -3
- package/dist/lib/nunjucks/moduk/components/panel/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/phase-banner/__examples__/beta.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/phase-banner/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/phase-banner/__examples__/with-tag-override.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/phase-banner/__examples__/with-text.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/phase-banner/macro.njk +3 -4
- package/dist/lib/nunjucks/moduk/components/radios/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/radios/__examples__/inline.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/radios/__examples__/not-as-page-heading.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/radios/__examples__/small.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/radios/__examples__/with-conditional-reveal.njk +9 -9
- package/dist/lib/nunjucks/moduk/components/radios/__examples__/with-divider-option.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/radios/__examples__/with-error-message.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/radios/__examples__/with-item-hint.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/radios/macro.njk +3 -3
- package/dist/lib/nunjucks/moduk/components/select/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/select/__examples__/with-hint.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/select/macro.njk +3 -3
- package/dist/lib/nunjucks/moduk/components/skip-link/__examples__/default.njk +2 -3
- package/dist/lib/nunjucks/moduk/components/skip-link/macro.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/summary-list/__examples__/cards-with-action.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/summary-list/__examples__/cards.njk +3 -3
- package/dist/lib/nunjucks/moduk/components/summary-list/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/summary-list/__examples__/with-no-actions.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/summary-list/__examples__/with-no-border.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/summary-list/macro.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/table/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/table/__examples__/with-comparative-numbers.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/table/__examples__/with-customised-column-widths.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/table/__examples__/with-large-caption.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/table/macro.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/tabs/__examples__/default.njk +7 -7
- package/dist/lib/nunjucks/moduk/components/tabs/macro.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/tag/__examples__/blue.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/tag/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/tag/__examples__/green.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/tag/__examples__/grey.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/tag/__examples__/orange.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/tag/__examples__/pink.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/tag/__examples__/purple.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/tag/__examples__/red.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/tag/__examples__/turquoise.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/tag/__examples__/yellow.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/tag/macro.njk +3 -3
- package/dist/lib/nunjucks/moduk/components/textarea/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/textarea/__examples__/not-as-page-heading.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/textarea/__examples__/with-custom-height.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/textarea/__examples__/with-error.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/textarea/macro.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/warning-text/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/warning-text/macro.njk +2 -2
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{% from "moduk/components/accordion/macro.njk" import modukAccordion
|
|
1
|
+
{% from "moduk/components/accordion/macro.njk" import modukAccordion -%}
|
|
2
2
|
|
|
3
3
|
{{ modukAccordion({
|
|
4
4
|
id: "accordion-with-summary-sections",
|
|
@@ -119,4 +119,4 @@
|
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
]
|
|
122
|
-
}) }}
|
|
122
|
+
}) -}}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
{% from "moduk/components/button/macro.njk" import modukButton
|
|
1
|
+
{% from "moduk/components/button/macro.njk" import modukButton -%}
|
|
2
2
|
|
|
3
3
|
<div class="govuk-button-group">
|
|
4
4
|
{{ modukButton({
|
|
5
5
|
text: "Continue"
|
|
6
|
-
}) }}
|
|
6
|
+
}) -}}
|
|
7
7
|
|
|
8
8
|
<a class="govuk-link" href="#">Cancel</a>
|
|
9
9
|
</div>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
{% from "moduk/components/button/macro.njk" import modukButton
|
|
1
|
+
{% from "moduk/components/button/macro.njk" import modukButton -%}
|
|
2
2
|
|
|
3
3
|
<div class="govuk-button-group">
|
|
4
4
|
{{ modukButton({
|
|
5
5
|
text: "Save and continue"
|
|
6
|
-
}) }}
|
|
6
|
+
}) -}}
|
|
7
7
|
|
|
8
|
-
{{ modukButton({
|
|
8
|
+
{{- modukButton({
|
|
9
9
|
text: "Save as draft",
|
|
10
10
|
classes: "govuk-button--secondary"
|
|
11
|
-
}) }}
|
|
11
|
+
}) -}}
|
|
12
12
|
</div>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{% from "moduk/components/character-count/macro.njk" import modukCharacterCount
|
|
1
|
+
{% from "moduk/components/character-count/macro.njk" import modukCharacterCount -%}
|
|
2
2
|
|
|
3
3
|
{{ modukCharacterCount({
|
|
4
4
|
name: "with-hint",
|
|
@@ -12,4 +12,4 @@
|
|
|
12
12
|
hint: {
|
|
13
13
|
text: "This will be shown on the public page for the event, below the event title"
|
|
14
14
|
}
|
|
15
|
-
}) }}
|
|
15
|
+
}) -}}
|
package/dist/lib/nunjucks/moduk/components/character-count/__examples__/not-as-page-heading.njk
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{% from "moduk/components/character-count/macro.njk" import modukCharacterCount
|
|
1
|
+
{% from "moduk/components/character-count/macro.njk" import modukCharacterCount -%}
|
|
2
2
|
|
|
3
3
|
{{ modukCharacterCount({
|
|
4
4
|
name: "not-as-page-heading",
|
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
label: {
|
|
8
8
|
text: "Describe the nature of your event"
|
|
9
9
|
}
|
|
10
|
-
}) }}
|
|
10
|
+
}) -}}
|
package/dist/lib/nunjucks/moduk/components/character-count/__examples__/with-error-message.njk
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{% from "moduk/components/character-count/macro.njk" import modukCharacterCount
|
|
1
|
+
{% from "moduk/components/character-count/macro.njk" import modukCharacterCount -%}
|
|
2
2
|
|
|
3
3
|
{{ modukCharacterCount({
|
|
4
4
|
id: "exceeding-characters",
|
|
@@ -13,4 +13,4 @@
|
|
|
13
13
|
errorMessage: {
|
|
14
14
|
text: "Job description must be 350 characters or less"
|
|
15
15
|
}
|
|
16
|
-
}) }}
|
|
16
|
+
}) -}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{% from "moduk/components/character-count/macro.njk" import modukCharacterCount
|
|
1
|
+
{% from "moduk/components/character-count/macro.njk" import modukCharacterCount -%}
|
|
2
2
|
|
|
3
3
|
{{ modukCharacterCount({
|
|
4
4
|
name: "threshold",
|
|
@@ -11,4 +11,4 @@
|
|
|
11
11
|
classes: "govuk-label--l",
|
|
12
12
|
isPageHeading: true
|
|
13
13
|
}
|
|
14
|
-
}) }}
|
|
14
|
+
}) -}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{% from "moduk/components/character-count/macro.njk" import modukCharacterCount
|
|
1
|
+
{% from "moduk/components/character-count/macro.njk" import modukCharacterCount -%}
|
|
2
2
|
|
|
3
3
|
{{ modukCharacterCount({
|
|
4
4
|
name: "word-count",
|
|
@@ -9,4 +9,4 @@
|
|
|
9
9
|
classes: "govuk-label--l",
|
|
10
10
|
isPageHeading: true
|
|
11
11
|
}
|
|
12
|
-
}) }}
|
|
12
|
+
}) -}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{% from "moduk/components/checkboxes/macro.njk" import modukCheckboxes
|
|
1
|
+
{% from "moduk/components/checkboxes/macro.njk" import modukCheckboxes -%}
|
|
2
2
|
|
|
3
3
|
{{ modukCheckboxes({
|
|
4
4
|
name: "technologies-default",
|
|
@@ -34,4 +34,4 @@
|
|
|
34
34
|
text: "Another technology"
|
|
35
35
|
}
|
|
36
36
|
]
|
|
37
|
-
}) }}
|
|
37
|
+
}) -}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{% from "moduk/components/checkboxes/macro.njk" import modukCheckboxes
|
|
1
|
+
{% from "moduk/components/checkboxes/macro.njk" import modukCheckboxes -%}
|
|
2
2
|
|
|
3
3
|
{{ modukCheckboxes({
|
|
4
4
|
name: "technologies-not-as-page-heading",
|
|
@@ -32,4 +32,4 @@
|
|
|
32
32
|
text: "Another technology"
|
|
33
33
|
}
|
|
34
34
|
]
|
|
35
|
-
}) }}
|
|
35
|
+
}) -}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{% from "moduk/components/checkboxes/macro.njk" import modukCheckboxes
|
|
1
|
+
{% from "moduk/components/checkboxes/macro.njk" import modukCheckboxes -%}
|
|
2
2
|
|
|
3
3
|
{{ modukCheckboxes({
|
|
4
4
|
name: "organisation-small",
|
|
@@ -28,4 +28,4 @@
|
|
|
28
28
|
text: "Strategic Command"
|
|
29
29
|
}
|
|
30
30
|
]
|
|
31
|
-
}) }}
|
|
31
|
+
}) -}}
|
package/dist/lib/nunjucks/moduk/components/checkboxes/__examples__/with-conditional-reveal.njk
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
{% from "moduk/components/checkboxes/macro.njk" import modukCheckboxes
|
|
2
|
-
{% from "moduk/components/input/macro.njk" import modukInput
|
|
1
|
+
{% from "moduk/components/checkboxes/macro.njk" import modukCheckboxes -%}
|
|
2
|
+
{% from "moduk/components/input/macro.njk" import modukInput -%}
|
|
3
3
|
|
|
4
4
|
{% set emailHtml %}
|
|
5
|
-
{{ modukInput({
|
|
5
|
+
{{- modukInput({
|
|
6
6
|
id: "contact-by-email",
|
|
7
7
|
name: "contact-by-email",
|
|
8
8
|
type: "email",
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
label: {
|
|
13
13
|
text: "Email address"
|
|
14
14
|
}
|
|
15
|
-
}) }}
|
|
15
|
+
}) -}}
|
|
16
16
|
{% endset -%}
|
|
17
17
|
|
|
18
18
|
{% set phoneHtml %}
|
|
19
|
-
{{ modukInput({
|
|
19
|
+
{{- modukInput({
|
|
20
20
|
id: "contact-by-phone",
|
|
21
21
|
name: "contact-by-phone",
|
|
22
22
|
type: "tel",
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
label: {
|
|
26
26
|
text: "Phone number"
|
|
27
27
|
}
|
|
28
|
-
}) }}
|
|
28
|
+
}) -}}
|
|
29
29
|
{% endset -%}
|
|
30
30
|
|
|
31
31
|
{% set textHtml %}
|
|
32
|
-
{{ modukInput({
|
|
32
|
+
{{- modukInput({
|
|
33
33
|
id: "contact-by-text",
|
|
34
34
|
name: "contact-by-text",
|
|
35
35
|
type: "tel",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
label: {
|
|
39
39
|
text: "Mobile phone number"
|
|
40
40
|
}
|
|
41
|
-
}) }}
|
|
41
|
+
}) -}}
|
|
42
42
|
{% endset -%}
|
|
43
43
|
|
|
44
44
|
{{ modukCheckboxes({
|
|
@@ -77,4 +77,4 @@
|
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
]
|
|
80
|
-
}) }}
|
|
80
|
+
}) -}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{% from "moduk/components/checkboxes/macro.njk" import modukCheckboxes
|
|
1
|
+
{% from "moduk/components/checkboxes/macro.njk" import modukCheckboxes -%}
|
|
2
2
|
|
|
3
3
|
{{ modukCheckboxes({
|
|
4
4
|
name: "technologies-with-error-message",
|
|
@@ -37,4 +37,4 @@
|
|
|
37
37
|
text: "Another technology"
|
|
38
38
|
}
|
|
39
39
|
]
|
|
40
|
-
}) }}
|
|
40
|
+
}) -}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{% from "moduk/components/checkboxes/macro.njk" import modukCheckboxes
|
|
1
|
+
{% from "moduk/components/checkboxes/macro.njk" import modukCheckboxes -%}
|
|
2
2
|
|
|
3
3
|
{{ modukCheckboxes({
|
|
4
4
|
name: "technologies-with-item-hint",
|
|
@@ -37,4 +37,4 @@
|
|
|
37
37
|
text: "Another technology"
|
|
38
38
|
}
|
|
39
39
|
]
|
|
40
|
-
}) }}
|
|
40
|
+
}) -}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{% from "moduk/components/checkboxes/macro.njk" import modukCheckboxes
|
|
1
|
+
{% from "moduk/components/checkboxes/macro.njk" import modukCheckboxes -%}
|
|
2
2
|
|
|
3
3
|
{{ modukCheckboxes({
|
|
4
4
|
name: "technologies-with-none-option",
|
|
@@ -38,4 +38,4 @@
|
|
|
38
38
|
behaviour: "exclusive"
|
|
39
39
|
}
|
|
40
40
|
]
|
|
41
|
-
}) }}
|
|
41
|
+
}) -}}
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
{% set html %}
|
|
4
4
|
<p class="govuk-body">We use some essential cookies to make this service work.</p>
|
|
5
5
|
<p class="govuk-body">We’d also like to use analytics cookies so we can understand how you use the service and make improvements.</p>
|
|
6
|
-
{% endset
|
|
6
|
+
{% endset -%}
|
|
7
7
|
|
|
8
|
-
{
|
|
8
|
+
{%- set acceptHtml %}
|
|
9
9
|
<p class="govuk-body">You’ve accepted analytics cookies. You can <a class="govuk-link" href="#">change your cookie settings</a> at any time.</p>
|
|
10
|
-
{% endset
|
|
10
|
+
{% endset -%}
|
|
11
11
|
|
|
12
12
|
{{ modukCookieBanner({
|
|
13
13
|
ariaLabel: "Cookies on the Defence Service Manual",
|
|
@@ -44,4 +44,4 @@
|
|
|
44
44
|
]
|
|
45
45
|
}
|
|
46
46
|
]
|
|
47
|
-
}) }}
|
|
47
|
+
}) -}}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
{% set html %}
|
|
4
4
|
<p class="govuk-body">We use some essential cookies to make this service work.</p>
|
|
5
5
|
<p class="govuk-body">We’d also like to use analytics cookies so we can understand how you use the service and make improvements.</p>
|
|
6
|
-
{% endset
|
|
6
|
+
{% endset -%}
|
|
7
7
|
|
|
8
8
|
{{ modukCookieBanner({
|
|
9
9
|
ariaLabel: "Cookies on the Defence Service Manual",
|
|
@@ -31,4 +31,4 @@
|
|
|
31
31
|
]
|
|
32
32
|
}
|
|
33
33
|
]
|
|
34
|
-
}) }}
|
|
34
|
+
}) -}}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
{%- from "moduk/components/cookie-banner/macro.njk" import modukCookieBanner -%}
|
|
2
2
|
|
|
3
|
-
{
|
|
3
|
+
{%- set html %}
|
|
4
4
|
<p class="govuk-body">We use some essential cookies to make this service work.</p>
|
|
5
5
|
<p class="govuk-body">We’d also like to use analytics cookies so we can understand how you use the service and make improvements.</p>
|
|
6
|
-
{% endset
|
|
6
|
+
{% endset -%}
|
|
7
7
|
|
|
8
8
|
{% set rejectHtml %}
|
|
9
9
|
<p class="govuk-body">You’ve rejected analytics cookies. You can <a class="govuk-link" href="#">change your cookie settings</a> at any time.</p>
|
|
10
|
-
{% endset
|
|
11
|
-
|
|
10
|
+
{% endset -%}
|
|
12
11
|
|
|
13
12
|
{{ modukCookieBanner({
|
|
14
13
|
ariaLabel: "Cookies on the Defence Service Manual",
|
|
@@ -45,4 +44,4 @@
|
|
|
45
44
|
]
|
|
46
45
|
}
|
|
47
46
|
]
|
|
48
|
-
}) }}
|
|
47
|
+
}) -}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
{
|
|
1
|
+
{%- from "govuk/components/cookie-banner/macro.njk" import govukCookieBanner %}
|
|
2
2
|
|
|
3
|
-
{
|
|
3
|
+
{%- macro modukCookieBanner(params) -%}
|
|
4
4
|
{{ govukCookieBanner(params) }}
|
|
5
|
-
{
|
|
5
|
+
{%- endmacro %}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{% from "moduk/components/date-input/macro.njk" import modukDateInput
|
|
1
|
+
{% from "moduk/components/date-input/macro.njk" import modukDateInput -%}
|
|
2
2
|
|
|
3
3
|
{{ modukDateInput({
|
|
4
4
|
id: "contract-start-date-default",
|
|
@@ -13,4 +13,4 @@
|
|
|
13
13
|
hint: {
|
|
14
14
|
text: "For example, 27 3 2023"
|
|
15
15
|
}
|
|
16
|
-
}) }}
|
|
16
|
+
}) -}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{% from "moduk/components/date-input/macro.njk" import modukDateInput
|
|
1
|
+
{% from "moduk/components/date-input/macro.njk" import modukDateInput -%}
|
|
2
2
|
|
|
3
3
|
{{ modukDateInput({
|
|
4
4
|
id: "contract-start-date-not-as-heading",
|
|
@@ -11,4 +11,4 @@
|
|
|
11
11
|
hint: {
|
|
12
12
|
text: "For example, 27 3 2023"
|
|
13
13
|
}
|
|
14
|
-
}) }}
|
|
14
|
+
}) -}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{% from "moduk/components/date-input/macro.njk" import modukDateInput
|
|
1
|
+
{% from "moduk/components/date-input/macro.njk" import modukDateInput -%}
|
|
2
2
|
|
|
3
3
|
{{ modukDateInput({
|
|
4
4
|
id: "contract-start-date-with-part-error",
|
|
@@ -32,4 +32,4 @@
|
|
|
32
32
|
name: "year"
|
|
33
33
|
}
|
|
34
34
|
]
|
|
35
|
-
}) }}
|
|
35
|
+
}) -}}
|
package/dist/lib/nunjucks/moduk/components/date-input/__examples__/with-whole-date-error.njk
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{% from "moduk/components/date-input/macro.njk" import modukDateInput
|
|
1
|
+
{% from "moduk/components/date-input/macro.njk" import modukDateInput -%}
|
|
2
2
|
|
|
3
3
|
{{ modukDateInput({
|
|
4
4
|
id: "contract-start-date-with-whole-error",
|
|
@@ -33,4 +33,4 @@
|
|
|
33
33
|
value: "2001"
|
|
34
34
|
}
|
|
35
35
|
]
|
|
36
|
-
}) }}
|
|
36
|
+
}) -}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
{% from "govuk/components/date-input/macro.njk" import govukDateInput
|
|
1
|
+
{% from "govuk/components/date-input/macro.njk" import govukDateInput -%}
|
|
2
2
|
|
|
3
|
-
{% macro modukDateInput(params)
|
|
3
|
+
{% macro modukDateInput(params) -%}
|
|
4
4
|
{{ govukDateInput(params) }}
|
|
5
|
-
{
|
|
5
|
+
{%- endmacro %}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
{% from "moduk/components/details/macro.njk" import modukDetails
|
|
1
|
+
{% from "moduk/components/details/macro.njk" import modukDetails -%}
|
|
2
2
|
|
|
3
3
|
{{ modukDetails({
|
|
4
4
|
summaryText: "Help with organisation",
|
|
5
5
|
text: "We need to know the organisation you work for so we can forward your request to the correct team."
|
|
6
|
-
}) }}
|
|
6
|
+
}) -}}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
{% from "moduk/components/details/macro.njk" import modukDetails
|
|
1
|
+
{% from "moduk/components/details/macro.njk" import modukDetails -%}
|
|
2
2
|
|
|
3
3
|
{{ modukDetails({
|
|
4
4
|
summaryText: "Help with organisation",
|
|
5
5
|
text: "We need to know the organisation you work for so we can forward your request to the correct team.",
|
|
6
6
|
open: true
|
|
7
|
-
}) }}
|
|
7
|
+
}) -}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{% from "moduk/components/error-summary/macro.njk" import modukErrorSummary
|
|
1
|
+
{% from "moduk/components/error-summary/macro.njk" import modukErrorSummary -%}
|
|
2
2
|
|
|
3
3
|
{{ modukErrorSummary({
|
|
4
4
|
titleText: "There is a problem",
|
|
@@ -13,4 +13,4 @@
|
|
|
13
13
|
href: "#full-name-input"
|
|
14
14
|
}
|
|
15
15
|
]
|
|
16
|
-
}) }}
|
|
16
|
+
}) -}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
{% from "moduk/components/error-summary/macro.njk" import modukErrorSummary
|
|
2
|
-
{% from "moduk/components/checkboxes/macro.njk" import modukCheckboxes
|
|
1
|
+
{% from "moduk/components/error-summary/macro.njk" import modukErrorSummary -%}
|
|
2
|
+
{% from "moduk/components/checkboxes/macro.njk" import modukCheckboxes -%}
|
|
3
3
|
|
|
4
4
|
<div>
|
|
5
5
|
{{ modukErrorSummary({
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
href: "#technologies"
|
|
11
11
|
}
|
|
12
12
|
]
|
|
13
|
-
}) }}
|
|
13
|
+
}) -}}
|
|
14
14
|
|
|
15
15
|
{{ modukCheckboxes({
|
|
16
16
|
name: "technologies",
|
|
@@ -49,6 +49,6 @@
|
|
|
49
49
|
text: "Another technology"
|
|
50
50
|
}
|
|
51
51
|
]
|
|
52
|
-
}) }}
|
|
52
|
+
}) -}}
|
|
53
53
|
|
|
54
54
|
</div>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
{% from "moduk/components/error-summary/macro.njk" import modukErrorSummary
|
|
2
|
-
{% from "moduk/components/date-input/macro.njk" import modukDateInput
|
|
1
|
+
{% from "moduk/components/error-summary/macro.njk" import modukErrorSummary -%}
|
|
2
|
+
{% from "moduk/components/date-input/macro.njk" import modukDateInput -%}
|
|
3
3
|
|
|
4
4
|
<div>
|
|
5
5
|
{{ modukErrorSummary({
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
href: "#incorect-date-format-year"
|
|
11
11
|
}
|
|
12
12
|
]
|
|
13
|
-
}) }}
|
|
13
|
+
}) -}}
|
|
14
14
|
|
|
15
15
|
{{ modukDateInput({
|
|
16
16
|
id: "incorect-date-format",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{% from "govuk/components/error-summary/macro.njk" import govukErrorSummary %}
|
|
2
2
|
|
|
3
|
-
{% macro modukErrorSummary(params)
|
|
3
|
+
{% macro modukErrorSummary(params) -%}
|
|
4
4
|
{% if caller -%}
|
|
5
5
|
{% call govukErrorSummary(params) -%}
|
|
6
6
|
{{ caller() }}
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
{%- else -%}
|
|
9
9
|
{{ govukErrorSummary(params) }}
|
|
10
10
|
{%- endif %}
|
|
11
|
-
{
|
|
11
|
+
{%- endmacro %}
|