Commit 99f17f8c authored by Kroustouris Stauros's avatar Kroustouris Stauros

contact error message

parent 0a077ebc
......@@ -8,7 +8,7 @@
<h4>{% tolocale institution LANGUAGE_CODE%} {% trans "Edit" %}</h4>
<hr>
<div class="col-md-12">
<div class="col-md-5">
<form method="POST">
{% csrf_token %}
{% if form.non_field_errors %}
......@@ -52,8 +52,10 @@
<div class="controls">
<div class="">{{ form.contact }}</div>
<button class="btn btn-small btn-info" id="add_contact"><i class="icon-plus-sign icon-white"></i>Add...</button>
{% if form.contact.errors %} <span class="help-inline"> {{ form.ertype.contact|join:", " }} </span>
{% endif %} <span class="help-block"> {{ form.contact.help_text }}</span>
{% if form.errors.contact %}
<div class="alert-danger" > {{ form.contact.errors|join:", " }} </div>
{% endif %}
<span class="help-block"> {{ form.contact.help_text }}</span>
</div>
</div>
<div class="form-group {% for err in urls_form.errors %}{% if err|length > 0 %}error{% endif %}{% endfor %}{% if urls_form.non_form_errors %}error{% endif %}">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment