xmpp.chapril.org-conversejs/html/registration/login.html

40 lines
1.0 KiB
HTML
Raw Normal View History

2012-02-29 15:03:45 +01:00
{% extends "base.html" %}
{% load url from future %}
{% load i18n %}
{% block content %}
{% if form.errors %}
2012-03-02 14:01:13 +01:00
<div class="ui-widget">
<div style="padding: 0pt 0.7em;" class="ui-state-error ui-corner-all">
<p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span>
{% trans "Your username and password didn't match. Please try again." %}
</p>
</div>
</div>
2012-02-29 15:03:45 +01:00
{% endif %}
<form method="post" action="{% url 'django.contrib.auth.views.login' %}">
{% csrf_token %}
<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>
</table>
2012-03-02 16:33:17 +01:00
<input type="submit" value="{% trans "Login" %}" class="button" />
2012-02-29 15:03:45 +01:00
<input type="hidden" name="next" value="{{ next }}" />
</form>
2012-03-05 16:32:33 +01:00
<p>
{% url 'registration.views.register' as register_url %}
{% blocktrans %}Do not have an account yet? You can <a href="{{ register_url }}">register</a>.{% endblocktrans %}
</p>
2012-02-29 15:03:45 +01:00
{% endblock %}