2020-08-03 17:29:25 +02:00
|
|
|
{% load widget_tweaks %}
|
|
|
|
|
2020-09-01 18:20:02 +02:00
|
|
|
<div class="LP-Input {% if classes%}{{classes}}{% endif %} {% if field.errors %} LP-Input--error {% endif %}">
|
2020-08-05 18:57:09 +02:00
|
|
|
<label for="{{field.id_for_label}}" class="LP-Input__Label">{{field.label}}</label>
|
2021-04-10 08:24:08 +02:00
|
|
|
{% render_field field class+='LP-Input__Field' %}
|
2020-08-03 17:29:25 +02:00
|
|
|
|
2020-08-05 18:57:09 +02:00
|
|
|
<span class="LP-Input__Message">
|
2020-09-01 18:20:02 +02:00
|
|
|
{% if field.errors %}
|
|
|
|
{% for error in field.errors%}
|
|
|
|
{{error}}
|
|
|
|
{% endfor %}
|
2020-08-05 18:57:09 +02:00
|
|
|
{% elif field.help_text%}
|
2020-09-01 18:20:02 +02:00
|
|
|
{{ field.help_text }}
|
2020-08-05 18:57:09 +02:00
|
|
|
{% endif %}
|
|
|
|
</span>
|
2020-08-03 17:29:25 +02:00
|
|
|
</div>
|