#3 CSS and HTML
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
{% load widget_tweaks %}
|
||||
|
||||
<div class="RV-Input {% if classes%}{{classes}}{% endif %} {% if field.errors %} RV-Input--error {% endif %}">
|
||||
<label for="{{field.id_for_label}}" class="RV-Input__Label">{{field.label}}</label>
|
||||
{% render_field field class+='RV-Input__Field' %}
|
||||
|
||||
<span class="RV-Input__Message">
|
||||
{% if field.errors %}
|
||||
{% for error in field.errors%}
|
||||
{{error}}
|
||||
{% endfor %}
|
||||
{% elif field.help_text%}
|
||||
{{ field.help_text }}
|
||||
{% endif %}
|
||||
</span>
|
||||
</div>
|
Reference in New Issue
Block a user