mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-23 22:59:30 +00:00
36 lines
1.0 KiB
HTML
36 lines
1.0 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 %}
|
|
|
|
<div class="page-header">
|
|
<h1>Login</h1>
|
|
</div>
|
|
|
|
<form method="post" action="{% url django.contrib.auth.views.login %}">
|
|
<fieldset>
|
|
{% include "formtools/formfield.html" with field=form.username %}
|
|
{% include "formtools/formfield.html" with field=form.password %}
|
|
|
|
<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 %}
|