mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +00:00
Updated templates
This commit is contained in:
@@ -1,37 +1,27 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% extends "registration/registration_base.html" %}
|
||||
{% block title %}Login{% endblock %}
|
||||
{% block content %}
|
||||
{% load i18n %}
|
||||
{% block HeadTag %}
|
||||
<script type="text/javascript">
|
||||
Ext.onReady( function(){
|
||||
Ext.fly("id_username").focus();
|
||||
} );
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
||||
{% block Content %}
|
||||
|
||||
<h2>Login</h2>
|
||||
|
||||
{% if form.errors %}
|
||||
<p>Username or password don't exist or are not correct. Please try again.</p>
|
||||
<p>Your username and password didn't match. Please try again.</p>
|
||||
{% endif %}
|
||||
|
||||
<form method="post" action=".">
|
||||
<form method="post" action="{% url django.contrib.auth.views.login %}">
|
||||
<table>
|
||||
<tr><td>{{ form.username.label_tag }}</td><td>{{ form.username }}</td></tr>
|
||||
<tr><td>{{ form.password.label_tag }}</td><td>{{ form.password }}</td></tr>
|
||||
<tr>
|
||||
<td>{{ form.username.label_tag }}</td>
|
||||
<td>{{ form.username }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ form.password.label_tag }}</td>
|
||||
<td>{{ form.password }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
{% csrf_token %}
|
||||
<p><a href="{% url auth_password_reset %}">Forgot</a> your password? <a href="{% url registration_register %}">Need an account</a>?</p>
|
||||
|
||||
<input type="submit" value="login" />
|
||||
<input type="hidden" name="next" value="{{ next }}" />
|
||||
{% csrf_token %}
|
||||
</form>
|
||||
<ul>
|
||||
<li>No Login? You can <a href="{% url registration.views.register %}">sign up!</a></li>
|
||||
<li>Forgot the password? You can <a href="{% url django.contrib.auth.views.password_reset %}">reset it!</a></li>
|
||||
</ul>
|
||||
{% endblock %}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user