Commit f9343e83 authored by Patrick Kimber's avatar Patrick Kimber

wip - integrate django-registration with login

parent 7a5026ab
<form action="" method="post" class="pure-form pure-form-stacked">
<form action="." method="post" class="pure-form pure-form-stacked">
{% csrf_token %}
{{ form.non_field_errors }}
<fieldset>
<legend>{{ legend }}</legend>
{% for field in form %}
<div class="pure-control-group">
{{ field.label_tag }}
......@@ -13,11 +14,12 @@
{% endfor %}
<div class="pure-controls">
<p>
<input type="submit" value="Submit" class="pure-button pure-button-primary" />
<input type="submit" value="{% if submit %}{{ submit }}{% else %}Submit{% endif %}" class="pure-button pure-button-primary" />
</p>
</div>
</fieldset>
{% for hidden in form.hidden_fields %}
{{ hidden }}
{% endfor %}
<input type="hidden" name="next" value="{{ next }}" />
</form>
......@@ -33,7 +33,7 @@
{% if user.is_authenticated %}
<li><a href="{% url 'logout' %}">Logout</a></li>
{% else %}
<li><a href="{% url 'login' %}">Login</a></li>
<li><a href="{% url 'auth_login' %}">Login</a></li>
{% endif %}
</ul>
</div>
......
django-braces==1.2.2
django-reversion==1.7.1
Django==1.5.2
django==1.5.4
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