Skip to content

Commit

Permalink
Merge branch 'main' into feature/minify-html-in-DS
Browse files Browse the repository at this point in the history
  • Loading branch information
precious-onyenaucheya-ons authored Dec 7, 2023
2 parents fc02603 + 053db27 commit 0861bbc
Show file tree
Hide file tree
Showing 10 changed files with 85 additions and 4 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.
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 0861bbc

Please sign in to comment.