|
@@ -4,15 +4,18 @@
|
|
|
|
|
|
<table class="table table-striped table-permissions">
|
|
<table class="table table-striped table-permissions">
|
|
{% for field in form %}
|
|
{% for field in form %}
|
|
- <tr>
|
|
|
|
|
|
+ <tr{% if field.errors %} class="text-danger"{% endif %}>
|
|
<td class="col-md-8">
|
|
<td class="col-md-8">
|
|
<label>{{ field.label }}:</label>
|
|
<label>{{ field.label }}:</label>
|
|
|
|
+ {% for error in field.errors %}
|
|
|
|
+ <p class="small"><strong>{{ error }}</strong></p>
|
|
|
|
+ {% endfor %}
|
|
{% if field.help_text %}
|
|
{% if field.help_text %}
|
|
<p class="text-muted small">{{ field.help_text }}</p>
|
|
<p class="text-muted small">{{ field.help_text }}</p>
|
|
{% endif %}
|
|
{% endif %}
|
|
</td>
|
|
</td>
|
|
<td>
|
|
<td>
|
|
- <div class="form-group">
|
|
|
|
|
|
+ <div class="form-group{% if field.errors %} has-error{% endif %}">
|
|
{% if field|is_checkboxselectmultiple %}
|
|
{% if field|is_checkboxselectmultiple %}
|
|
{% include 'bootstrap3/layout/checkboxselectmultiple.html' %}
|
|
{% include 'bootstrap3/layout/checkboxselectmultiple.html' %}
|
|
{% endif %}
|
|
{% endif %}
|