Style form labels for inputs correctly

This commit is contained in:
luis cielak
2018-08-08 13:46:48 -04:00
parent df773855d5
commit 17e9344f6e
2 changed files with 13 additions and 11 deletions

View File

@@ -1,6 +1,5 @@
{% macro TextInput(field, placeholder='') -%}
<div class='usa-input {% if errors %}usa-input--error{% endif %}'>
<label for={{field.name}}>
{{ field.label }}
{% if field.description %}
@@ -10,7 +9,6 @@
{% if errors %}
{{ Icon('alert') }}
{% endif %}
</label>
{{ field(placeholder=placeholder) | safe }}