1 {% extends
"base.html" %}
5 {% block mainmenu %}{{
"/login/"|main_menu }}{% endblock %}
6 {% block sectionmenu %}{{
"/login/"|section_menu }}{% endblock %}
8 {% block title %}{% trans
"Login" %}{% endblock %}
11 {% if restore_password_form %}
12 <form action=
"{% url restore-password %}" method=
"POST">
14 <table style=
"width: 400px; margin-left: auto; margin-right: auto;">
16 <td colspan=
"2" style=
"text-align: center;">
17 <h1>{% trans
"Password recovery" %}
</h1>
21 <td colspan=
"2" style=
"padding-bottom: 6px;">
22 {% blocktrans %}Please enter either your username or (if you don't know that either) the e-mail address which you used to register your account. An e-mail will be sent to you.{% endblocktrans %}
26 <th style=
"text-align: right;">
27 {{ restore_password_form.username.label_tag }}:
29 <td>{{ restore_password_form.username }}
</td>
32 <th style=
"text-align: right;">
33 {{ restore_password_form.email.label_tag }}:
35 <td>{{ restore_password_form.email }}
</td>
38 <td colspan=
"2" style=
"text-align: right;">
39 <input type=
"submit" value=
"{% trans "Send recovery e-mail
" %}"/>
44 <p><a href=
"{% url login %}">Back to the login page
</a></p>
48 {% trans
"You need to login to access this page." %}
51 <form action=
"{% url login %}" method=
"post">
53 <input name=
"next" type=
"hidden" value=
"{{ next }}" /><br />
54 <table style=
"margin-left: auto; margin-right: auto;">
56 <td colspan=
"2" style=
"text-align: center;">
57 <h1>{% trans
"Login" %}
</h1>
61 <th style=
"text-align: right;">{% trans
"Username" %}:
</th>
62 <td><input id=
"login_username" name=
"user" type=
"text" style=
"width: 200px;"/></td>
65 <th style=
"text-align: right;">{% trans
"Password" %}:
</th>
66 <td><input name=
"pwd" type=
"password" style=
"width: 200px;"/></td>
69 <td colspan=
"2" style=
"text-align: right;">
70 <small><a href=
"{% url login %}?restore_password=1">Forgot your password?
</a></small><br/>
71 <input type=
"submit" value=
"Login" style=
"margin-top: 10px;"/>
79 {% if activation_needed %}
81 <strong>{% trans
"Didn't receive your activation mail?" %}
</strong>
83 {% url resend-activation as resend-activation-url %}
84 {% blocktrans %}We can try to
<a href=
"{{ resend-activation-url }}">send it again
</a>.{% endblocktrans %}
88 {% if not restore_password_form and not activation_needed %}
89 <script type=
"text/javascript">
90 document
.getElementById('login_username').focus();
92 <p style=
"text-align: center; padding: 20px;">
93 {% trans
"Not yet a member?" %}
94 <a href=
"{% url register %}">{% trans
"Create a new account - it's free!" %}
</a>