22 lines
478 B
Plaintext
22 lines
478 B
Plaintext
<div class='usa-input {% if errors %}usa-input--error{% end %}'>
|
|
<label for={{field.name}}>
|
|
{{ label }}
|
|
|
|
{% if description %}
|
|
<span class='usa-input__help'>{% raw description %}</span>
|
|
{% end %}
|
|
|
|
{% if errors %}
|
|
{% module Icon('alert') %}
|
|
{% end %}
|
|
</label>
|
|
|
|
{% raw field(placeholder=placeholder) %}
|
|
|
|
{% if errors %}
|
|
{% for error in errors %}
|
|
<span class='usa-input__message'>{{ error }}</span>
|
|
{% end %}
|
|
{% end %}
|
|
</div>
|