Skip to content

Commit

Permalink
Added an example basic alert
Browse files Browse the repository at this point in the history
  • Loading branch information
mrchilds committed Sep 4, 2011
1 parent b33bd2c commit a344eb4
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions templates/registration/login.html
Expand Up @@ -7,11 +7,15 @@ <h1>Login</h1>
</div>
<div class="row">
<div class="span16">
{% if form.non_field_errors %}
<div class="alert-message error">
<p><strong>Error:</strong>&nbsp; {% for err in form.non_field_errors %}{{ err }}{% endfor %}</p>
</div>
{% endif %}
<form method="post" action=".">{% csrf_token %}
{% if form.non_field_errors %}{{ form.non_field_errors }}{% endif %}
{% for item in form %}
{% include 'bootstrap/form_field.html' %}
{% endfor %}
{% for item in form %}
{% include 'bootstrap/form_field.html' %}
{% endfor %}
</div>
</div>
<div class="row">
Expand All @@ -20,7 +24,7 @@ <h1>Login</h1>
<input type="submit" class="btn primary" value="{% trans 'Log in' %}" />
<input type="hidden" name="next" value="{% url bootstrap.views.inside %}" />
</form>
<p>{% trans "Forgot password" %}? <a href="{% url auth_password_reset %}">{% trans "Reset it" %}</a>!</p>
<p>{% trans "Forgot password" %}? <a href="{% url auth_password_reset %}">{% trans "Reset it" %}</a></p>
</div>
</div>
</div>
Expand Down

0 comments on commit a344eb4

Please sign in to comment.