Set label text displayed block with the tooltip

This commit is contained in:
luis cielak
2018-08-13 13:10:18 -04:00
parent 9260a01442
commit 65207a480d
3 changed files with 6 additions and 6 deletions

View File

@@ -4,7 +4,7 @@
{% macro TextInput(field, tooltip='', placeholder='') -%}
<div class='usa-input {% if field.errors %}usa-input--error{% endif %}'>
<label for={{field.name}}>
{{ field.label | striptags }} {% if tooltip %}{{ Tooltip(tooltip) }}{% endif %}
<div>{{ field.label | striptags }} {% if tooltip %}{{ Tooltip(tooltip) }}{% endif %}</div>
{% if field.description %}
<span class='usa-input__help'>{{ field.description | safe }}</span>