@ons/design-system 62.0.1 → 62.1.0

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.
Files changed (212) hide show
  1. package/README.md +0 -63
  2. package/components/access-code/example-access-code-error.njk +87 -0
  3. package/components/access-code/example-access-code.njk +63 -0
  4. package/components/accordion/example-accordion-open.njk +126 -0
  5. package/components/accordion/example-accordion.njk +25 -0
  6. package/components/address-input/example-address-input-editable.njk +52 -0
  7. package/components/address-input/example-address-input-manual.njk +23 -0
  8. package/components/address-input/example-address-input.njk +40 -0
  9. package/components/autosuggest/example-autosuggest-country-multiple.njk +30 -0
  10. package/components/autosuggest/example-autosuggest-country.njk +29 -0
  11. package/components/back-link/example-back-link.njk +17 -0
  12. package/components/breadcrumbs/example-breadcrumbs-single.njk +13 -0
  13. package/components/breadcrumbs/example-breadcrumbs.njk +17 -0
  14. package/components/button/_button.scss +5 -3
  15. package/components/button/example-button-custom.njk +20 -0
  16. package/components/button/example-button-disabled.njk +7 -0
  17. package/components/button/example-button-download.njk +9 -0
  18. package/components/button/example-button-ghost.njk +15 -0
  19. package/components/button/example-button-group.njk +16 -0
  20. package/components/button/example-button-link.njk +7 -0
  21. package/components/button/example-button-loader.njk +9 -0
  22. package/components/button/example-button-new-window.njk +12 -0
  23. package/components/button/example-button-print.njk +8 -0
  24. package/components/button/example-button-secondary-small.njk +8 -0
  25. package/components/button/example-button-secondary.njk +8 -0
  26. package/components/button/example-button-small.njk +8 -0
  27. package/components/button/example-button-timer.njk +9 -0
  28. package/components/button/example-button.njk +6 -0
  29. package/components/call-to-action/example-call-to-action-default.njk +14 -0
  30. package/components/card/example-card-set-with-images.njk +41 -0
  31. package/components/card/example-card-set-with-lists.njk +68 -0
  32. package/components/card/example-card-set.njk +38 -0
  33. package/components/card/example-card.njk +9 -0
  34. package/components/checkboxes/example-checkboxes-disabled.njk +34 -0
  35. package/components/checkboxes/example-checkboxes-error.njk +60 -0
  36. package/components/checkboxes/example-checkboxes-with-descriptions.njk +71 -0
  37. package/components/checkboxes/example-checkboxes-with-hidden-label.njk +177 -0
  38. package/components/checkboxes/example-checkboxes-with-revealed-checkboxes.njk +86 -0
  39. package/components/checkboxes/example-checkboxes-with-revealed-radios.njk +69 -0
  40. package/components/checkboxes/example-checkboxes-with-revealed-select.njk +71 -0
  41. package/components/checkboxes/example-checkboxes-with-revealed-text-input.njk +59 -0
  42. package/components/checkboxes/example-checkboxes-with-select-all-button.njk +51 -0
  43. package/components/checkboxes/example-checkboxes-with-visible-text-input.njk +61 -0
  44. package/components/checkboxes/example-checkboxes-without-border.njk +33 -0
  45. package/components/checkboxes/example-checkboxes.njk +46 -0
  46. package/components/content-pagination/example-content-pagination.njk +20 -0
  47. package/components/cookies-banner/_macro.njk +4 -4
  48. package/components/cookies-banner/_macro.spec.js +41 -1
  49. package/components/cookies-banner/example-cookies-banner-cymraeg.njk +9 -0
  50. package/components/cookies-banner/example-cookies-banner.njk +7 -0
  51. package/components/date-input/example-date-input-error.njk +62 -0
  52. package/components/date-input/example-date-input.njk +36 -0
  53. package/components/details/example-details-with-saved-state.njk +10 -0
  54. package/components/details/example-details-with-warning.njk +19 -0
  55. package/components/details/example-details.njk +9 -0
  56. package/components/document-list/example-document-list-article-featured.njk +31 -0
  57. package/components/document-list/example-document-list-articles.njk +60 -0
  58. package/components/document-list/example-document-list-downloads.njk +59 -0
  59. package/components/document-list/example-document-list-search-result-featured.njk +19 -0
  60. package/components/document-list/example-document-list-search-results.njk +67 -0
  61. package/components/duration/example-duration-error.njk +30 -0
  62. package/components/duration/example-duration.njk +35 -0
  63. package/components/duration/examples-duration-error-for-single-field.njk +31 -0
  64. package/components/external-link/example-external-link.njk +8 -0
  65. package/components/feedback/example-feedback-call-to-action.njk +14 -0
  66. package/components/footer/example-footer-cymraeg.njk +54 -0
  67. package/components/footer/example-footer-default.njk +7 -0
  68. package/components/footer/example-footer-transactional.njk +62 -0
  69. package/components/footer/example-footer-warning.njk +32 -0
  70. package/components/footer/example-footer-with-alternative-organisation.njk +124 -0
  71. package/components/footer/example-footer-with-coat-of-arms.njk +32 -0
  72. package/components/footer/example-footer-with-copyright.njk +35 -0
  73. package/components/footer/example-footer.njk +85 -0
  74. package/components/header/_header.scss +2 -2
  75. package/components/header/_macro.spec.js +97 -0
  76. package/components/header/example-header-default.njk +12 -0
  77. package/components/header/example-header-external-for-survey-with-description.njk +20 -0
  78. package/components/header/example-header-external-for-surveys.njk +33 -0
  79. package/components/header/example-header-external-welsh.njk +29 -0
  80. package/components/header/example-header-external-with-navigation.njk +42 -0
  81. package/components/header/example-header-external-with-service-links.njk +35 -0
  82. package/components/header/example-header-external-with-sub-navigation.njk +132 -0
  83. package/components/header/example-header-internal.njk +32 -0
  84. package/components/header/example-header-neutral-for-multicoloured-logo.njk +59 -0
  85. package/components/hero/example-hero-dark.njk +15 -0
  86. package/components/hero/example-hero-default.njk +14 -0
  87. package/components/images/example-images-for-regular-screens.njk +8 -0
  88. package/components/images/example-images-for-retina-screens.njk +10 -0
  89. package/components/input/example-input-email.njk +12 -0
  90. package/components/input/example-input-number-prefixed.njk +17 -0
  91. package/components/input/example-input-number-suffixed.njk +34 -0
  92. package/components/input/example-input-number.njk +15 -0
  93. package/components/input/example-input-numeric-values.njk +64 -0
  94. package/components/input/example-input-telephone.njk +13 -0
  95. package/components/input/example-input-text-width-constrained.njk +11 -0
  96. package/components/input/example-input-text-with-character-limit-checker.njk +17 -0
  97. package/components/input/example-input-text-with-description.njk +10 -0
  98. package/components/input/example-input-text.njk +9 -0
  99. package/components/label/example-label-with-description.njk +8 -0
  100. package/components/label/example-label.njk +8 -0
  101. package/components/metadata/example-metadata.njk +57 -0
  102. package/components/mutually-exclusive/example-mutually-exclusive-checkboxes.njk +71 -0
  103. package/components/mutually-exclusive/example-mutually-exclusive-date-with-error.njk +47 -0
  104. package/components/mutually-exclusive/example-mutually-exclusive-date.njk +49 -0
  105. package/components/mutually-exclusive/example-mutually-exclusive-duration.njk +45 -0
  106. package/components/mutually-exclusive/example-mutually-exclusive-email.njk +36 -0
  107. package/components/mutually-exclusive/example-mutually-exclusive-multiple-options.njk +63 -0
  108. package/components/mutually-exclusive/example-mutually-exclusive-number.njk +43 -0
  109. package/components/mutually-exclusive/example-mutually-exclusive-textarea.njk +40 -0
  110. package/components/navigation/_macro.njk +1 -1
  111. package/components/pagination/example-pagination-first.njk +24 -0
  112. package/components/pagination/example-pagination-last.njk +24 -0
  113. package/components/pagination/example-pagination-with-no-range-indicator.njk +42 -0
  114. package/components/pagination/example-pagination.njk +116 -0
  115. package/components/panel/example-panel-bare.njk +9 -0
  116. package/components/panel/example-panel-with-announcement.njk +18 -0
  117. package/components/panel/example-panel-with-error-details.njk +18 -0
  118. package/components/panel/example-panel-with-error-summary.njk +25 -0
  119. package/components/panel/example-panel-with-information.njk +7 -0
  120. package/components/panel/example-panel-with-spacious-information.njk +7 -0
  121. package/components/panel/example-panel-with-success-message.njk +10 -0
  122. package/components/panel/example-panel-with-warning.njk +8 -0
  123. package/components/password/example-password.njk +11 -0
  124. package/components/phase-banner/example-phase-banner-alpha.njk +10 -0
  125. package/components/phase-banner/example-phase-banner-beta.njk +9 -0
  126. package/components/question/example-question-ccs.njk +49 -0
  127. package/components/question/example-question-fieldset.njk +99 -0
  128. package/components/question/example-question-interviewer-note.njk +38 -0
  129. package/components/question/example-question-no-fieldset.njk +46 -0
  130. package/components/radios/example-radios-with-clear-button.njk +97 -0
  131. package/components/radios/example-radios-with-descriptions.njk +57 -0
  132. package/components/radios/example-radios-with-error.njk +38 -0
  133. package/components/radios/example-radios-with-revealed-checkboxes.njk +69 -0
  134. package/components/radios/example-radios-with-revealed-radios.njk +68 -0
  135. package/components/radios/example-radios-with-revealed-select.njk +69 -0
  136. package/components/radios/example-radios-with-revealed-text-input.njk +80 -0
  137. package/components/radios/example-radios-with-separator.njk +59 -0
  138. package/components/radios/example-radios-with-visible-text-input.njk +40 -0
  139. package/components/radios/example-radios-without-border.njk +48 -0
  140. package/components/radios/examples-radios.njk +38 -0
  141. package/components/related-content/example-related-content-general.njk +44 -0
  142. package/components/related-content/example-related-content-multiple-rows-of-links.njk +51 -0
  143. package/components/related-content/example-related-content-social-media.njk +40 -0
  144. package/components/relationships/example-relationships-error.njk +211 -0
  145. package/components/relationships/example-relationships-you.njk +187 -0
  146. package/components/relationships/example-relationships.njk +185 -0
  147. package/components/search/example-search-with-character-check.njk +23 -0
  148. package/components/search/example-search-with-placeholder.njk +16 -0
  149. package/components/search/example-search.njk +16 -0
  150. package/components/section-navigation/example-section-navigation-vertical.njk +40 -0
  151. package/components/section-navigation/example-section-navigation.njk +21 -0
  152. package/components/select/example-select-wide.njk +55 -0
  153. package/components/select/example-select-with-error.njk +58 -0
  154. package/components/select/example-select-with-inline-label.njk +23 -0
  155. package/components/select/example-select.njk +50 -0
  156. package/components/share-page/example-share-page.njk +11 -0
  157. package/components/skip-to-content/example-skip-to-content.njk +10 -0
  158. package/components/status/example-status-dead.njk +7 -0
  159. package/components/status/example-status-error.njk +7 -0
  160. package/components/status/example-status-neutral-information.njk +6 -0
  161. package/components/status/example-status-pending.njk +7 -0
  162. package/components/status/example-status-small.njk +8 -0
  163. package/components/status/example-status-success.njk +7 -0
  164. package/components/summary/example-summary-grouped-total.njk +67 -0
  165. package/components/summary/example-summary-grouped-with-errors.njk +96 -0
  166. package/components/summary/example-summary-grouped.njk +353 -0
  167. package/components/summary/example-summary-household-no-rows.njk +20 -0
  168. package/components/summary/example-summary-household.njk +77 -0
  169. package/components/summary/example-summary-hub.njk +170 -0
  170. package/components/summary/example-summary-multiple.njk +81 -0
  171. package/components/summary/example-summary-no-action.njk +40 -0
  172. package/components/summary/example-summary.njk +107 -0
  173. package/components/table/_macro.njk +1 -1
  174. package/components/table/_table.scss +10 -10
  175. package/components/table/example-table-basic.njk +47 -0
  176. package/components/table/example-table-compact.njk +73 -0
  177. package/components/table/example-table-footer.njk +56 -0
  178. package/components/table/example-table-numeric.njk +81 -0
  179. package/components/table/example-table-responsive.njk +89 -0
  180. package/components/table/example-table-scrollable.njk +158 -0
  181. package/components/table/example-table-sortable.njk +236 -0
  182. package/components/table/sortable-table.dom.js +1 -1
  183. package/components/table/sortable-table.js +5 -2
  184. package/components/table-of-contents/example-table-of-contents-grouped.njk +50 -0
  185. package/components/table-of-contents/example-table-of-contents-single.njk +39 -0
  186. package/components/table-of-contents/example-table-of-contents-sticky.njk +78 -0
  187. package/components/tabs/example-tabs-details.njk +59 -0
  188. package/components/tabs/example-tabs.njk +39 -0
  189. package/components/textarea/example-textarea-error.njk +16 -0
  190. package/components/textarea/example-textarea-with-character-limit.njk +18 -0
  191. package/components/textarea/example-textarea.njk +12 -0
  192. package/components/timeline/example-timeline.njk +35 -0
  193. package/components/timeout-modal/example-timeout-modal.njk +16 -0
  194. package/components/timeout-panel/example-panel-with-timeout-warning.njk +13 -0
  195. package/components/upload/example-upload-error.njk +16 -0
  196. package/components/upload/example-upload.njk +12 -0
  197. package/components/video/example-video.njk +14 -0
  198. package/css/main.css +3 -3
  199. package/css/print.css +1 -1
  200. package/layout/_template.njk +1 -12
  201. package/package.json +3 -8
  202. package/scripts/main.es5.js +1 -1
  203. package/scripts/main.js +2 -2
  204. package/scss/base/_typography.scss +2 -2
  205. package/scss/main.scss +0 -1
  206. package/scss/print.scss +13 -5
  207. package/scss/utilities/_highlight.scss +6 -0
  208. package/scss/utilities/_index.scss +1 -0
  209. package/components/code-highlight/_macro.njk +0 -5
  210. package/components/code-highlight/_macro.spec.js +0 -56
  211. package/components/code-highlight/code-highlight.spec.js +0 -18
  212. package/scss/patternlib.scss +0 -148
@@ -0,0 +1,50 @@
1
+ {% from "components/table-of-contents/_macro.njk" import onsTableOfContents %}
2
+
3
+ {{-
4
+ onsTableOfContents({
5
+ "title": 'Contents',
6
+ "ariaLabel": 'Links to page sections',
7
+ "skipLink": {
8
+ "url": '#0',
9
+ "text": 'Skip to guide content'
10
+ },
11
+ "lists": [
12
+ {
13
+ "listHeading": 'Household questions',
14
+ "listHeadingHidden": 'help topics',
15
+ "itemsList": [
16
+ {
17
+ "url": '#household1',
18
+ "text": 'Household and who lives here'
19
+ },
20
+ {
21
+ "url": '#household2',
22
+ "text": 'Housing, sex and GI'
23
+ }
24
+ ]
25
+ },
26
+ {
27
+ "listHeading": 'Individual questions',
28
+ "listHeadingHidden": 'help topics',
29
+ "itemsList": [
30
+ {
31
+ "url": '#individual1',
32
+ "text": 'Name, date of birth and marital status'
33
+ },
34
+ {
35
+ "url": '#individual2',
36
+ "text": 'Language, religion and ethnicity'
37
+ },
38
+ {
39
+ "url": '#individual3',
40
+ "text": 'Address, health and sexual orientation'
41
+ },
42
+ {
43
+ "url": '#individual4',
44
+ "text": 'Education and employment'
45
+ }
46
+ ]
47
+ }
48
+ ]
49
+ })
50
+ }}
@@ -0,0 +1,39 @@
1
+ {% from "components/table-of-contents/_macro.njk" import onsTableOfContents %}
2
+
3
+ {{-
4
+ onsTableOfContents({
5
+ "title": 'Contents',
6
+ "ariaLabel": 'Pages in this guide',
7
+ "skipLink": {
8
+ "url": "#0",
9
+ "text": 'Skip to guide content'
10
+ },
11
+ "lists": [
12
+ {
13
+ "itemsList": [
14
+ {
15
+ "url": '#0',
16
+ "text": 'Overview',
17
+ "current": true
18
+ },
19
+ {
20
+ "url": '#0',
21
+ "text": 'Who should take part and why'
22
+ },
23
+ {
24
+ "url": '#0',
25
+ "text": 'How your information is used'
26
+ },
27
+ {
28
+ "url": '#0',
29
+ "text": 'The 2019 Census Rehearsal'
30
+ },
31
+ {
32
+ "url": '#0',
33
+ "text": 'Online census'
34
+ }
35
+ ]
36
+ }
37
+ ]
38
+ })
39
+ }}
@@ -0,0 +1,78 @@
1
+ {% from "components/table-of-contents/_macro.njk" import onsTableOfContents %}
2
+ <div class="ons-page__container ons-container">
3
+ <div class="ons-grid ons-js-toc-container">
4
+ <div class="ons-grid__col ons-grid__col--sticky@m ons-col-4@m">
5
+ {{-
6
+ onsTableOfContents({
7
+ "title": 'Contents',
8
+ "ariaLabel": 'Sections in this page',
9
+ "itemsList": [
10
+ {
11
+ "url": '#section1',
12
+ "text": 'What is the census?'
13
+ },
14
+ {
15
+ "url": '#section2',
16
+ "text": 'The online census has now closed'
17
+ },
18
+ {
19
+ "url": '#section3',
20
+ "text": 'What happens after Census Day'
21
+ },
22
+ {
23
+ "url": '#section4',
24
+ "text": 'The census in Northern Ireland and Scotland'
25
+ },
26
+ {
27
+ "url": '#section5',
28
+ "text": 'The last census'
29
+ }
30
+ ]
31
+ })
32
+ }}
33
+ </div>
34
+ <div class="ons-grid__col ons-col-7@m ons-push-1@m">
35
+ <section id="section1">
36
+ <h2>What is the census?</h2>
37
+ <p>The census is a survey that happens every 10 years and gives us a picture of all the people and households in England and Wales.</p>
38
+
39
+ <p>Your answers to the census questions will help organisations make decisions on planning and funding public services in your area, including transport, education and healthcare.</p>
40
+ </section>
41
+ <section id="section2">
42
+ <h2>The online census has now closed</h2>
43
+ <p>Census Day was on Sunday 21 March 2021.</p>
44
+
45
+ <p>If you still have a paper census questionnaire, fill it in as soon as you can and return it to FREEPOST, Census 2021.</p>
46
+ </section>
47
+ <section id="section3">
48
+ <h2>What happens after Census Day</h2>
49
+ <p>Two follow-up surveys, the <a href="#0">Census Coverage Survey</a> and the <a href="#0">Census Quality Survey</a>, help to improve the quality and accuracy of the census results.</p>
50
+
51
+ <p>Over the next year, we work hard to process the answers from all the census questionnaires. This is so that we can publish the initial Census 2021 findings one year after the census and the main releases two years after the census.</p>
52
+
53
+ <p>To make sure the Census 2021 statistics we publish meet the needs of those who use them, we also run an outputs consultation.</p>
54
+ </section>
55
+ <section id="section4">
56
+ <h2>The census in Northern Ireland and Scotland</h2>
57
+ <p>The Office for National Statistics (ONS) runs the census in England and Wales.</p>
58
+
59
+ <p>If you live in Northern Ireland, visit the Northern Ireland Statistics Agency (NISRA) census website to find out about the census for Northern Ireland.</p>
60
+
61
+ <p>If you live in Scotland, visit the National Records of Scotland census website to find out how to take part in the census for Scotland.</p>
62
+ </section>
63
+ <section id="section5">
64
+ <h2>The last census</h2>
65
+ <p>The last census took place in 2011. Many people and organisations used information from the 2011 Census in a variety of ways.</p>
66
+
67
+ <p>For example, Bristol City Council used it to inform decisions on how to fund local housing improvements. It was also essential for the charity Redbridge Council for Voluntary Services to help people from ethnic minority groups learn more about dementia.</p>
68
+
69
+ <p>To read more about the benefits that information from the 2011 Census helped to create, visit the Office for National Statistics (ONS) website.</p>
70
+ <p>The Census Coverage Survey (CCS) was a short, separate survey that we at the Office for National Statistics (ONS) started six to eight weeks after Census Day.</p>
71
+
72
+ <p>The CCS helps make sure everyone is counted and our census results are as accurate as possible. It asked similar questions to the main census, just fewer of them, at addresses in a selection of postcodes across England and Wales.</p>
73
+
74
+ <p>The CCS has now closed.</p>
75
+ </section>
76
+ </div>
77
+ </div>
78
+ </div>
@@ -0,0 +1,59 @@
1
+ <style>
2
+ .example-video-block {
3
+ border: solid 1px #707071;
4
+ }
5
+ </style>
6
+
7
+ <div class="example-video-block">
8
+ {% from "components/video/_macro.njk" import onsVideo %}
9
+ {{
10
+ onsVideo({
11
+ "videoEmbedUrl": 'https://www.youtube.com/embed/_EGJlvkgbPo',
12
+ "videoLinkURL": 'https://www.youtube.com/watch?v=_EGJlvkgbPo',
13
+ "image": {
14
+ "largeSrc": '/patternlib-img/youtube-example-cover.png',
15
+ "smallSrc": '/patternlib-img/youtube-example-cover.png',
16
+ "alt": "Youtube video"
17
+ },
18
+ "title": 'Census 2021 promotional TV advert',
19
+ "linkText": 'Watch “Census 2021 promotional TV advert“ on Youtube'
20
+ })
21
+ }}
22
+
23
+ {% from "components/tabs/_macro.njk" import onsTabs %}
24
+ {{
25
+ onsTabs({
26
+ "variants": [ 'details' ],
27
+ "noInitialActiveTab": true,
28
+ "title": 'Contents',
29
+ "tabs": [
30
+ {
31
+ "id": "video-description",
32
+ "title": 'Description',
33
+ "content": '<div class="example-video-block__details">
34
+ <h3 class="ons-u-d-no@s">Description</h3>
35
+ <p>The census provides a snapshot of everyone in England & Wales. We help local councils get the funding they need.</p>
36
+ <p>If you live in one of the rehearsal areas help us by taking part in the #CensusRehearsal.</p>
37
+ </div>'
38
+ },
39
+ {
40
+ "id": "video-transcript",
41
+ "title": 'Transcript',
42
+ "content": '<div class="example-video-block__details">
43
+ <h3 class="ons-u-d-no@s">Transcript</h3>
44
+ <p>I count.</p>
45
+ <p>I count.</p>
46
+ <p>I still count.</p>
47
+ <p>When it comes to getting our fair share of services like health care, transport, housing and education, the census really counts. And what makes the census count is all of us.</p>
48
+ </div>'
49
+ },
50
+ {
51
+ "id": "video-embed",
52
+ "title": 'Embed',
53
+ "content": '<h3 class="ons-u-d-no@s">Embed</h3>
54
+ <pre class="language-html"><code>' ~ '<iframe width="560" height="315" src="https://www.youtube.com/embed/_EGJlvkgbPo" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>' | e ~ '</code></pre>'
55
+ }
56
+ ]
57
+ })
58
+ }}
59
+ </div>
@@ -0,0 +1,39 @@
1
+ {% from "components/tabs/_macro.njk" import onsTabs %}
2
+
3
+ {{
4
+ onsTabs({
5
+ "title": 'Contents',
6
+ "tabs": [
7
+ {
8
+ "id": "ukis",
9
+ "title": 'UKIS',
10
+ "content": '<h3>Aim of this survey</h3>
11
+ <p class="ons-u-fs-r">The aim of the UK Innovation Survey (UKIS) is to collect data from businesses about various aspects of their innovation related activities. Using this data we can measure the level, types and trends in innovation.</p>
12
+ <h3>How we’ll use this data</h3>
13
+ <p class="ons-u-fs-r">The UKIS data is a major source of evidence to inform government policy. It is used to promote innovation activities among businesses to boost economic growth. It is an important contribution to the European-wide Community Innovation Survey (CIS). The CIS is used for international benchmarking and comparison purposes.</p>
14
+ <p>You can <a href="https://www.ons.gov.uk/surveys/informationforbusinesses/businesssurveys/ukinnovationsurvey">find more information on the UKIS survey on the ONS website</a>.</p>'
15
+ },
16
+ {
17
+ "id": "vacancy-survey",
18
+ "title": 'Vacancy survey',
19
+ "content": '<h3>Purpose</h3>
20
+ <p class="ons-u-fs-r">The Vacancy Survey is a regular survey of businesses, which provides an accurate and comprehensive measure of the total number of vacancies across the economy and fills a gap in the information available regarding the demand for labour. Before the Vacancy Survey was introduced, the only information available nationally about vacancies was from records of vacancies notified to Job Centres by employers. This provided only a partial picture, possibly less than half of all vacancies, because employers are under no obligation to notify vacancies to Job Centres. This business based survey has a more complete coverage and is included in the monthly ONS Labour Market Statistical Bulletin.</p>
21
+ <p>You can <a href="https://www.ons.gov.uk/surveys/informationforbusinesses/businesssurveys/vacancysurvey">find more information on the Vacancy Survey on the ONS website</a>.</p>'
22
+ },
23
+ {
24
+ "id": "monthly-business-survey",
25
+ "title": 'Monthly Business Survey',
26
+ "content": '<h3>Aim of this survey</h3>
27
+ <p class="ons-u-fs-r">The Monthly Business Survey (MBS) collects monthly information on employment of businesses in Great Britain. Your response contributes to Labour Market Statistics.</p>
28
+ <h4>What you need to know</h4>
29
+ <p class="ons-u-fs-r">To complete the survey, you will need the following information to answer the survey questions:</p>
30
+ <ul>
31
+ <li>number of full-time/part-time male employees</li>
32
+ <li>number of full-time/part-time female employees</li>
33
+ <li>total number of employees for the business</li>
34
+ </ul>
35
+ <p>You can <a href="https://www.ons.gov.uk/surveys/informationforbusinesses/businesssurveys/monthlybusinesssurveyretailsalesindex">find more information on the Monthly Business Survey on the ONS website</a>.</p>'
36
+ }
37
+ ]
38
+ })
39
+ }}
@@ -0,0 +1,16 @@
1
+ {% from "components/textarea/_macro.njk" import onsTextarea %}
2
+
3
+ {{
4
+ onsTextarea({
5
+ "id": "textarea",
6
+ "name": "feedback",
7
+ "label": {
8
+ "text": "Please provide some feedback",
9
+ "description": "For example, describe any difficulties you experienced in the use of this service"
10
+ },
11
+ "error": {
12
+ "id": "feedback-error",
13
+ "text": "Enter your feedback"
14
+ }
15
+ })
16
+ }}
@@ -0,0 +1,18 @@
1
+ {% from "components/textarea/_macro.njk" import onsTextarea %}
2
+
3
+ {{
4
+ onsTextarea({
5
+ "id": "textarea-char-limit",
6
+ "name": "feedback-limited",
7
+ "width": "30",
8
+ "label": {
9
+ "text": "Please provide some feedback",
10
+ "description": "For example, describe any difficulties you experienced in the use of this service"
11
+ },
12
+ "charCheckLimit": {
13
+ "limit": 200,
14
+ "charCountSingular": "You have {x} character remaining",
15
+ "charCountPlural": "You have {x} characters remaining"
16
+ }
17
+ })
18
+ }}
@@ -0,0 +1,12 @@
1
+ {% from "components/textarea/_macro.njk" import onsTextarea %}
2
+
3
+ {{
4
+ onsTextarea({
5
+ "id": "textarea",
6
+ "name": "feedback",
7
+ "label": {
8
+ "text": "Please provide some feedback",
9
+ "description": "For example, describe any difficulties you experienced in the use of this service"
10
+ }
11
+ })
12
+ }}
@@ -0,0 +1,35 @@
1
+ {% from "components/timeline/_macro.njk" import onsTimeline %}
2
+
3
+ {{
4
+ onsTimeline({
5
+ "items": [
6
+ {
7
+ "heading": 'September to October 2020',
8
+ "itemsList": [
9
+ {
10
+ "text": "Meet your Community Engagement Manager and set up regular catch up meetings"
11
+ },
12
+ {
13
+ "text": "Local Authority Toolkit available online"
14
+ }
15
+ ]
16
+ },
17
+ {
18
+ "heading": 'September 2020',
19
+ "content": '<p>ONS to provide Councillor Handbook for distribution</p>'
20
+ },
21
+ {
22
+ "heading": 'November 2020',
23
+ "content": '<p>ONS to provide you with content for magazines and publications</p>'
24
+ },
25
+ {
26
+ "heading": 'January to March 2021',
27
+ "content": '<p>ONS to provide a range of press releases for external use</p>'
28
+ },
29
+ {
30
+ "heading": 'February to April 2021',
31
+ "content": '<p>Promote your local Census Support Centres</p>'
32
+ }
33
+ ]
34
+ })
35
+ }}
@@ -0,0 +1,16 @@
1
+ {% from "components/timeout-modal/_macro.njk" import onsTimeoutModal %}
2
+
3
+ {{ onsTimeoutModal({
4
+ "showModalTimeInSeconds": 58,
5
+ "redirectUrl": "#!",
6
+ "title": "You will be signed out soon",
7
+ "textFirstLine": "It appears you have been inactive for a while.",
8
+ "countdownText": "To protect your information, your progress will be saved and you will be signed out in",
9
+ "countdownExpiredText": "You are being signed out.",
10
+ "btnText": "Continue survey",
11
+ "minutesTextSingular": "minute",
12
+ "minutesTextPlural": "minutes",
13
+ "secondsTextSingular": "second",
14
+ "secondsTextPlural": "seconds",
15
+ "endWithFullStop": true
16
+ }) }}
@@ -0,0 +1,13 @@
1
+ {% from "components/timeout-panel/_macro.njk" import onsTimeoutPanel %}
2
+
3
+ {{ onsTimeoutPanel ({
4
+ "id": "countdown",
5
+ "redirectUrl": "#!",
6
+ "minutesTextSingular":"minute",
7
+ "minutesTextPlural":"minutes",
8
+ "secondsTextSingular":"second",
9
+ "secondsTextPlural":"seconds",
10
+ "countdownText":"For security, your answers will only be available to view for another",
11
+ "nojsText": "For security, your answers will only be available to view for another 1 minute",
12
+ "countdownExpiredText": "You are being signed out"
13
+ }) }}
@@ -0,0 +1,16 @@
1
+ {% from "components/upload/_macro.njk" import onsUpload %}
2
+
3
+ {{
4
+ onsUpload({
5
+ "id": "file",
6
+ "accept": ".xls,.xlsx,.pdf",
7
+ "label": {
8
+ "description": "File types accepted are XLS and XLSX or PDF",
9
+ "text": "Upload a file"
10
+ },
11
+ "error": {
12
+ "id": "file-error",
13
+ "text": "Select a file that is an XLS, XLSX or PDF"
14
+ }
15
+ })
16
+ }}
@@ -0,0 +1,12 @@
1
+ {% from "components/upload/_macro.njk" import onsUpload %}
2
+
3
+ {{
4
+ onsUpload({
5
+ "id": "file",
6
+ "accept": ".xls,.xlsx,.pdf",
7
+ "label": {
8
+ "description": "File types accepted are XLS and XLSX or PDF",
9
+ "text": "Upload a file"
10
+ }
11
+ })
12
+ }}
@@ -0,0 +1,14 @@
1
+ {% from "components/video/_macro.njk" import onsVideo %}
2
+ {{
3
+ onsVideo({
4
+ "videoEmbedUrl": 'https://www.youtube.com/embed/_EGJlvkgbPo',
5
+ "videoLinkURL": 'https://www.youtube.com/watch?v=_EGJlvkgbPo',
6
+ "image": {
7
+ "largeSrc": '/patternlib-img/youtube-example-cover.png',
8
+ "smallSrc": '/patternlib-img/youtube-example-cover.png',
9
+ "alt": "Youtube video"
10
+ },
11
+ "title": 'Census 2021 promotional TV advert',
12
+ "linkText": 'Watch “Census 2021 promotional TV advert“ on Youtube'
13
+ })
14
+ }}