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=
"/register/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;">
23 Please enter either your username or (if you don't know
24 that either) the e-mail address which you used to register
25 your account. An e-mail will be sent to you.
30 <th style=
"text-align: right;">
31 {{ restore_password_form.username.label_tag }}:
33 <td>{{ restore_password_form.username }}
</td>
36 <th style=
"text-align: right;">
37 {{ restore_password_form.email.label_tag }}:
39 <td>{{ restore_password_form.email }}
</td>
42 <td colspan=
"2" style=
"text-align: right;">
43 <input type=
"submit" value=
"{% trans "Send recovery e-mail
" %}"/>
48 <p><a href=
"/login/">Back to the login page
</a></p>
52 {% trans
"You need to login to access this page." %}
55 <form action=
"../login/" method=
"post">
57 <input name=
"next" type=
"hidden" value=
"{{ next }}" /><br />
58 <table style=
"margin-left: auto; margin-right: auto;">
60 <td colspan=
"2" style=
"text-align: center;">
61 <h1>{% trans
"Login" %}
</h1>
65 <th style=
"text-align: right;">{% trans
"Username" %}:
</th>
66 <td><input id=
"login_username" name=
"user" type=
"text" style=
"width: 200px;"/></td>
69 <th style=
"text-align: right;">{% trans
"Password" %}:
</th>
70 <td><input name=
"pwd" type=
"password" style=
"width: 200px;"/></td>
73 <td colspan=
"2" style=
"text-align: right;">
74 <small><a href=
"?restore_password=1">Forgot your password?
</a><small><br/>
75 <input type=
"submit" value=
"Login" style=
"margin-top: 10px;"/>
83 {% if activation_needed %}
85 <strong>{% trans
"Didn't receive your activation mail?" %}
</strong> {% blocktrans %}We can try to
<a href=
"/register/resend-activation">send it again
</a>.{% endblocktrans %}
89 {% if not restore_password_form and not activation_needed %}
90 <script type=
"text/javascript">
91 document
.getElementById('login_username').focus();
93 <p style=
"text-align: center; padding: 20px;">
94 {% trans
"Not yet a member?" %}
95 <a href=
"/register/">{% trans
"Create a new account - it's free!" %}
</a>