Skip to content

Commit

Permalink
Merge branch 'main' into 2835/bug/ons-grid__col-sticky-css-functional…
Browse files Browse the repository at this point in the history
…ity-is-broken
  • Loading branch information
alessioventuriniAND authored Dec 8, 2023
2 parents 30ad545 + 053db27 commit ed1e311
Show file tree
Hide file tree
Showing 11 changed files with 87 additions and 6 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.
40 changes: 40 additions & 0 deletions src/patterns/names/example-name-multiple-input-field.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{% from "components/input/_macro.njk" import onsInput %}
{% from "components/question/_macro.njk" import onsQuestion %}

{% block main %}
{% call onsQuestion({
"title": "What is your name?",
"legendIsQuestionTitle": true,
"submitButton": true
}) %}
<form action="#0">
{{
onsInput({
"id": "first-name",
"name": "first-name",
"label": {
"text": "First name"
}
})
}}
{{
onsInput({
"id": "middle-names",
"type": "middle-names",
"label": {
"text": "Middle names"
}
})
}}
{{
onsInput({
"id": "last-name",
"name": "last-name",
"label": {
"text": "Last name"
}
})
}}
</form>
{% endcall %}
{% endblock %}
23 changes: 23 additions & 0 deletions src/patterns/names/example-name-single-input-field.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{% from "components/input/_macro.njk" import onsInput %}
{% from "components/question/_macro.njk" import onsQuestion %}

{% block main %}
{% call onsQuestion({
"title": "What is your name?",
"legendIsQuestionTitle": true,
"submitButton": true
}) %}
<form action="#0">
{{
onsInput({
"id": "fullname-example-input",
"type": "full-name",
"autocomplete": "full-name",
"label": {
"text": "Full name"
}
})
}}
</form>
{% endcall %}
{% endblock %}

0 comments on commit ed1e311

Please sign in to comment.