snipt/templates/registration/login.html

69 lines
2.6 KiB
HTML
Raw Normal View History

2012-02-12 18:13:13 -08:00
{% extends "registration/registration_base.html" %}
2012-02-12 17:17:17 -08:00
2012-02-13 07:15:08 -08:00
{% block page-title %}Log in - {{ block.super }}{% endblock %}
2012-02-12 17:17:17 -08:00
{% block body-class %}{{ block.super }} static login{% endblock %}
2012-02-12 17:17:17 -08:00
{% block content %}
2016-11-01 09:59:35 -07:00
<form class="form-horizontal static-box" method="post" action="{% url 'login' %}">
2012-02-12 18:13:13 -08:00
{% if request.GET.activationcomplete %}
<div class="alert alert-success">
Successfully confirmed email! Log in below.
</div>
{% endif %}
{% if form.errors %}
{% if form.non_field_errors %}
<div class="alert alert-error">
{{ form.non_field_errors }}
</div>
{% else %}
<div class="alert alert-error">
Please fix the errors below.
2012-02-12 17:31:46 -08:00
</div>
{% endif %}
2012-02-12 18:13:13 -08:00
{% endif %}
<fieldset>
2012-02-12 21:42:25 -08:00
<legend>Log in</legend>
2012-02-12 18:13:13 -08:00
<div class="control-group {% if form.username.errors %}error{% endif %}">
<label class="control-label" for="id_username">Username or email:</label>
2012-02-12 18:13:13 -08:00
<div class="controls">
{{ form.username }}
{% if form.errors.username %}
<span class="help-inline">
{% for error in form.errors.username %}
{{ error }}
{% endfor %}
</span>
{% endif %}
2012-02-12 17:31:46 -08:00
</div>
2012-02-12 18:13:13 -08:00
</div>
<div class="control-group {% if form.password.errors %}error{% endif %}">
<label class="control-label" for="id_password">Password</label>
<div class="controls">
{{ form.password }}
{% if form.errors.password %}
<span class="help-inline">
{% for error in form.errors.password %}
{{ error }}
{% endfor %}
</span>
{% endif %}
2012-02-12 17:31:46 -08:00
</div>
2012-02-12 18:13:13 -08:00
</div>
<div class="form-actions group">
2012-02-12 22:46:59 -08:00
<a class="btn pull-right" href="/signup/">Sign up</a>
<a class="btn pull-right" href="{% url 'auth_password_reset' %}">Reset password</a>
2012-02-12 22:46:59 -08:00
<button class="btn btn-primary" type="submit">Log in</button>
2012-02-12 18:13:13 -08:00
</div>
</fieldset>
<input type="hidden" name="next" value="{{ next }}" />
{% csrf_token %}
2012-02-12 17:31:46 -08:00
</form>
2012-02-12 17:17:17 -08:00
{% endblock %}
2015-07-17 10:46:02 -07:00
{% block analytics %}
{% if not debug %}
window.ll('tagScreen', 'Login view');
{% endif %}
{% endblock %}