add django-registration-redux and use some of it
for the moment this is for the password change url used in the auth dropdown, and a better login page, but this might become other stuff eventually too. the signup page exists and is linked to, even if i don't have a great reason for this to exist bunch of templates added now to support the intentional and unintentional stuff
This commit is contained in:
47
dr_botzo/templates/registration/login.html
Normal file
47
dr_botzo/templates/registration/login.html
Normal file
@@ -0,0 +1,47 @@
|
||||
{% extends "registration/registration_base.html" %}
|
||||
{% load i18n %}
|
||||
{% load bootstrap3 %}
|
||||
|
||||
{% block title %}{% trans "Log in" %}{% endblock %}
|
||||
|
||||
{% block registration_content %}
|
||||
<form role="form" method="post">
|
||||
{% csrf_token %}
|
||||
{% bootstrap_form form %}
|
||||
<input type="hidden" name="next" value="{{ next }}" />
|
||||
{% buttons submit='Log In' reset='Cancel' layout='horizontal' %}{% endbuttons %}
|
||||
</form>
|
||||
<div class="extra">
|
||||
<p>{% trans "Forgot your password?" %} <a href="{% url 'auth_password_reset' %}">{% trans "Reset it" %}</a>.
|
||||
{% trans "Not a member?" %} <a href="{% url 'registration_register' %}">{% trans "Register" %}</a>.</p>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
{% comment %}
|
||||
**registration/login.html**
|
||||
|
||||
It's your responsibility to provide the login form in a template called
|
||||
registration/login.html by default. This template gets passed four
|
||||
template context variables:
|
||||
|
||||
``form``
|
||||
A Form object representing the login form. See the forms
|
||||
documentation for more on Form objects.
|
||||
|
||||
``next``
|
||||
The URL to redirect to after successful login. This may contain a
|
||||
query string, too.
|
||||
|
||||
``site``
|
||||
The current Site, according to the SITE_ID setting. If you don't
|
||||
have the site framework installed, this will be set to an instance
|
||||
of RequestSite, which derives the site name and domain from the
|
||||
current HttpRequest.
|
||||
|
||||
``site_name``
|
||||
An alias for site.name. If you don't have the site framework
|
||||
installed, this will be set to the value of
|
||||
request.META['SERVER_NAME']. For more on sites, see The
|
||||
"sites" framework.
|
||||
{% endcomment %}
|
||||
Reference in New Issue
Block a user