lostplaces-backend/lostplaces/lostplaces_app/templates/partials/form/inputField.html

16 lines
508 B
HTML
Raw Normal View History

2020-08-03 17:29:25 +02:00
{% load widget_tweaks %}
<div class="LP-Input {% if field.errors %} LP-Input--error {% endif %}">
<label for="{{field.id_for_label}}" class="LP-Input__Label">{{field.label}}</label>
{% render_field field class="LP-Input__Field"%}
2020-08-03 17:29:25 +02:00
<span class="LP-Input__Message">
{% if field.errors %}
{% for error in field.errors%}
{{error}}
{% endfor %}
{% elif field.help_text%}
{{ field.help_text }}
{% endif %}
</span>
2020-08-03 17:29:25 +02:00
</div>