Add server side error handling

This commit is contained in:
Tim Schumacher 2013-09-19 14:59:38 +02:00
parent f687ce8e1e
commit ce0ae7a79d
2 changed files with 57 additions and 0 deletions

View file

@ -21,6 +21,17 @@
<!-- Form Name -->
<legend>{% trans %}Ein XMPP-Konto registrieren{% endtrans %}</legend>
{% if errors %}
<div class="alert alert-danger">
<p>{% trans %}Bitte behebe folgende Fehler bevor du weiter machen kannst{% endtrans %}:</p>
<ul>
{% for error in errors %}
<li>{{ error }}</li>
{% endfor %}
</ul>
</div>
{% endif %}
<!-- Text input-->
<div class="control-group">
<label class="control-label" for="username">{% trans %}Benutzername{% endtrans %}</label>