Skip to content

Commit

Permalink
Merge branch 'main' into dependencies/9/update-lighthouse
Browse files Browse the repository at this point in the history
  • Loading branch information
rmccar authored Jul 27, 2023
2 parents 77030fd + d709c00 commit c3740d2
Show file tree
Hide file tree
Showing 36 changed files with 759 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
{% from "components/checkboxes/_macro.njk" import onsCheckboxes %}

{{
onsCheckboxes({
"legend": "Content type",
"checkboxesLabel": "Show only:",
"borderless": true,
"name": "dietary",
"checkboxes": [
{
"id": "data",
"label": {
"text": "Data (309)"
},
"value": "data",
"checked": true,
"other": {
"otherType": "checkboxes",
"selectAllChildren": true,
"legend": "Data type",
"legendClasses": "ons-u-vh",
"name": "name",
"checkboxes": [
{
"id": "datasets",
"label": {
"text": "Datasets (100)"
},
"value": "datasets"
},
{
"id": "timeseries",
"label": {
"text": "Timeseries (20)"
},
"value": "timeseries"
},
{
"id": "requested",
"label": {
"text": "User requested data (17)"
},
"value": "requested"
}
]
}
},
{
"id": "publications",
"label": {
"text": "Publications (137)"
},
"value": "publications",
"checked": true,
"other": {
"otherType": "checkboxes",
"selectAllChildren": true,
"legend": "Publication type",
"legendClasses": "ons-u-vh",
"name": "name",
"checkboxes": [
{
"id": "press-release",
"label": {
"text": "Press release (100)"
},
"value": "pressrelease"
},
{
"id": "bulletin",
"label": {
"text": "Bulletin (20)"
},
"value": "bulletin"
}
]
}
},
{
"id": "areas",
"label": {
"text": "Areas (0)"
},
"value": "areas"
}
]
})
}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{% from "components/checkboxes/_macro.njk" import onsCheckboxes %}

{{
onsCheckboxes({
"checkboxesLabel": "Select all that apply",
"legend": "How would you like us to contact you?",
"name": "contact",
"borderless": true,
"checkboxes": [
{
"id": "post",
"label": {
"text": "By post"
},
"value": "post"
},
{
"id": "email",
"label": {
"text": "By email"
},
"value": "email"
},
{
"id": "phone",
"label": {
"text": "By phone"
},
"value": "phone",
"checked": true,
"other": {
"otherType": "radios",
"id": "phone-time",
"name": "phone-time",
"legend": "Choose preferred time of day",
"radios": [
{
"value": "anytime",
"id": "anytime",
"label": {
"text": "Any time of day"
}
},
{
"value": "morning",
"id": "morning",
"label": {
"text": "Morning"
}
},
{
"value": "afternoon",
"id": "afternoon",
"label": {
"text": "Afternoon"
}
},
{
"value": "evening",
"id": "evening",
"label": {
"text": "Evening"
}
}
]
}
}
]
})
}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{% from "components/question/_macro.njk" import onsQuestion %}
{% from "components/checkboxes/_macro.njk" import onsCheckboxes %}

{% call onsQuestion({
"title": "How would you like us to contact you?",
"legendIsQuestionTitle": true,
"classes": "ons-u-mt-no"
}) %}
{{
onsCheckboxes({
"checkboxesLabel": "Select all that apply",
"dontWrap": true,
"name": "contact",
"checkboxes": [
{
"id": "post",
"label": {
"text": "By post"
},
"value": "post"
},
{
"id": "email",
"label": {
"text": "By email"
},
"value": "email"
},
{
"id": "phone",
"label": {
"text": "By phone"
},
"value": "phone",
"checked": true,
"other": {
"otherType": "select",
"id": "phone-time",
"name": "phone-time",
"label": {
"text": "Choose preferred time of day"
},
"options": [
{
"value": "",
"text": "Select an option",
"disabled": true,
"selected": true
},
{
"value": "anytime",
"text": "Anytime of day"
},
{
"value": "morning",
"text": "Morning"
},
{
"value": "afternoon",
"text": "Afternoon"
},
{
"value": "evening",
"text": "Evening"
}
]
}
}
]
})
}}
{% endcall %}
Loading

0 comments on commit c3740d2

Please sign in to comment.