Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / im / templates / im / form_render.html @ 3b258643

History | View | Annotate | Download (709 Bytes)

1 13858d75 Kostas Papadimitriou
<div class="form-errors all">
2 13858d75 Kostas Papadimitriou
{% for key, err in form.errors.items %}
3 13858d75 Kostas Papadimitriou
{% if key == "__all__" %}
4 13858d75 Kostas Papadimitriou
<div class="form-error">{{ err }}</div>
5 13858d75 Kostas Papadimitriou
{% endif %}
6 13858d75 Kostas Papadimitriou
{% endfor %}
7 13858d75 Kostas Papadimitriou
</div>
8 13858d75 Kostas Papadimitriou
{% for field in form %}
9 0b423952 Olga Brani
<div class="form-row {% if field.errors|length %}with-errors{% endif %}  {% if field.is_hidden %}with-hidden{% endif %}">
10 13858d75 Kostas Papadimitriou
        {{ field.errors }}
11 9024c501 Olga Brani
     <p class="clearfix {% if field.blank %}required{% endif %}">
12 13858d75 Kostas Papadimitriou
        {{ field.label_tag }}
13 db7fecd9 Sofia Papagiannaki
        {{ field|safe }}
14 0c887794 Olga Brani
        <span class="extra-img">&nbsp;</span>
15 0f4a8a68 Olga Brani
        {%  if field.help_text %}
16 0f4a8a68 Olga Brani
                <span class="info"> 
17 0f4a8a68 Olga Brani
                            <em>more info</em>
18 0f4a8a68 Olga Brani
                            <span>{{ field.help_text|safe }}</span>
19 0f4a8a68 Olga Brani
                    </span>
20 0f4a8a68 Olga Brani
        {% endif %}
21 0f4a8a68 Olga Brani
     </p>
22 0f4a8a68 Olga Brani
</div>
23 13858d75 Kostas Papadimitriou
{% endfor %}