-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Major changes to the en.json file and questions-1 page to reflect changes in the copy from the working group - changes to agreement page tbc
- Loading branch information
1 parent
369774d
commit 350525a
Showing
8 changed files
with
262 additions
and
236 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{# | ||
- `name`: field name | ||
- `label`: text for the label | ||
- `attributes`: object of optional attributes: class, hint, divClasses, autocomplete | ||
#} | ||
{% if errors %} | ||
{% set firstError = errors[errors.keys()[0]] %} | ||
{% endif %} | ||
|
||
{% macro textInput(name, label, attributes, interpolation={}) %} | ||
<div style="margin-bottom:0px" class="{{ 'has-error' if errors and errors[name] }} {{ attributes.divClasses }}"> | ||
|
||
<label for="{{ name }}" id="{{ name }}__label">{{ __(label, interpolation) }}</label> | ||
|
||
{% if attributes.hint %} | ||
<span class="form-message">{{ __(attributes.hint) }}</span> | ||
{% endif %} | ||
|
||
{% if attributes.hint2 %} | ||
<span style="margin-bottom: 0px" class="form-message">{{ __(attributes.hint2) }}</span> | ||
{% endif %} | ||
|
||
{% if errors and errors[name] %} | ||
{{ validationMessage(errors[name].msg, name) }} | ||
{% endif %} | ||
|
||
<input style="margin-bottom:0px" class="{{ attributes.class if attributes.class else "w-3-4" }}" {% if attributes.autocomplete %}autocomplete="{{ attributes.autocomplete }}" {% endif %} type="text" id="{{ attributes.id if attributes.id else name }}" {% if errors and errors[name] %} aria-describedby="{{ name + '-error' }}" aria-invalid="true" {% endif %} {% if errors and firstError.param === name %} autofocus="true" {% endif %} name="{{ name }}" value="{{ data[name] }}"/> | ||
|
||
</div> | ||
{% endmacro %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters