33 lines
859 B
HTML
33 lines
859 B
HTML
{% load cas_server %}
|
|
|
|
{% if form.non_field_errors %}
|
|
<ul class="errorlist">
|
|
{% for error in form.non_field_errors %}
|
|
<li>
|
|
{{error}}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
|
|
{% for field in form %}{% if not field|is_hidden %}
|
|
<div id="formfield_{{ field.auto_id }}" class="formfield
|
|
{% if not form.non_field_errors %}
|
|
{% if field.errors %} error_field {% endif %}
|
|
{% endif %}"
|
|
>{% spaceless %}
|
|
{% if field.errors %}
|
|
<ul class="errorlist">
|
|
{% for error in field.errors %}
|
|
<li>{{error}}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
<div class="labelled_input {% if field|is_checkbox %}checkbox_input{% endif %}">
|
|
<div class="label_line">
|
|
<label class="control-label" for="{{field.auto_id}}">{{field.label}}</label>
|
|
</div>
|
|
{{field}}
|
|
</div>
|
|
{% endspaceless %}</div>
|
|
{% else %}{{field}}{% endif %}{% endfor %}
|