Add optional label to text, options, phone, and multi-checkbox inputs

Use new optional attribute on fields that are optional
Update styling to fit optional label and update translations
This commit is contained in:
leigh-mil
2019-08-29 13:33:17 -04:00
parent 104a1d189c
commit 4d24f97ed7
9 changed files with 22 additions and 11 deletions

View File

@@ -40,6 +40,10 @@
<label for={{field.name}}>
<div class="usa-input__title">
{{ label }}
{% if optional %}
&nbsp;
<span class="usa-input-label-helper">(optional)</span>
{% endif %}
{% if tooltip and not disabled %}
{{ Tooltip(tooltip, tooltip_title) }}
{% endif %}