mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-23 22:59:30 +00:00
43 lines
1.2 KiB
HTML
43 lines
1.2 KiB
HTML
{% extends "registration/registration_base.html" %}
|
|
{% block title %}Login{% endblock %}
|
|
{% block content %}
|
|
|
|
{% if form.errors %}
|
|
<div class="alert-message fade in error" data-alert="alert">
|
|
<a class="close" href="#">x</a>
|
|
<p>Your username or password was incorrect, please try again.</p>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<form method="post" action="{% url django.contrib.auth.views.login %}">
|
|
<fieldset>
|
|
<legend>Login</legend>
|
|
<div class="clearfix">
|
|
{{ form.username.label_tag }}
|
|
<div class="input">
|
|
<td>{{ form.username }}</td>
|
|
</div>
|
|
</div>
|
|
<div class="clearfix">
|
|
{{ form.password.label_tag }}
|
|
<div class="input">
|
|
<td>{{ form.password }}</td>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="span10">
|
|
<a href="{% url auth_password_reset %}" class="btn">Forgotten Password</a>
|
|
<a href="{% url registration_register %}" class="btn success">Create Account</a>
|
|
</div>
|
|
<div class="span6">
|
|
<input type="submit" value="Login" class="btn primary pull-right"/>
|
|
</div>
|
|
</div>
|
|
<input type="hidden" name="next" value="{{ next }}" />
|
|
{% csrf_token %}
|
|
</fieldset>
|
|
</form>
|
|
|
|
{% endblock %}
|