Mercurial > libervia-templates
annotate sat_templates/templates/default/login/login.html @ 300:2a697b1376f1
bulma (components/block): disco entities's `icon_name` is used as icon when available:
otherwide, `default_icon_name` is used.
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 20 Feb 2021 13:37:19 +0100 |
parents | e9f0a4215e46 |
children |
rev | line source |
---|---|
54
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
1 {% if not embedded %}{% extends 'base/base.html' %}{% endif %} |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
2 {% import 'input/form.html' as form with context %} |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
3 {% import 'input/field.html' as field with context %} |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
4 |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
5 {% block title %}{{C.APP_NAME}} login{% endblock %} |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
6 |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
7 {% block body %} |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
8 <div id="login_container"> |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
9 <div id="login_box"> |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
10 <div id="login_left"> |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
11 <img src="{{media_path}}libervia/register_left.png"> |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
12 </div> |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
13 <div id="login_right"> |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
14 {% block login_right_top %}{% endblock %} |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
15 {% if login_error is defined %} |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
16 {# error messages displayed in case of failing attempt to login #} |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
17 <div id="login_error"> |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
18 <p> |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
19 {% block login_error_message %} |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
20 {% if login_error == S_C.PROFILE_AUTH_ERROR %} |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
21 {%- trans %}Your login and/or password is incorrect. Please try again.{% endtrans -%} |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
22 {% elif login_error == S_C.XMPP_AUTH_ERROR %} |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
23 {%- trans %}Your XMPP account failed to connect. Did you enter the good password? If you have changed your XMPP password since your last connection on Libervia, please use another SàT frontend to update your profile.{% endtrans -%} |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
24 {% elif login_error == S_C.NO_REPLY %} |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
25 {%- trans %}Did not received a reply (the timeout expired or the connection is broken).{% endtrans -%} |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
26 {% else %} |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
27 {%- trans %}An unknown error occurred, please contact your service administrator.{% endtrans -%} |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
28 {% endif %} |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
29 {% endblock login_error_message %} |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
30 </p> |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
31 </div> |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
32 {% endif %} |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
33 |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
34 <div id="login_form"> |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
35 {% block login_form %} |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
36 {% call form.form() %} |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
37 {{ field.meta('type', 'login') }} |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
38 {{ field.text("login", _("Login"), |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
39 required=true, |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
40 value=login, |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
41 )}} |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
42 {{ field.password("password", _("Password"), required=not empty_password_allowed) }} |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
43 {{ field.submit(_("Log in")) }} |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
44 {% endcall %} |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
45 {% endblock login_form %} |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
46 </div> |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
47 {% block login_right_bottom %} |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
48 {% if register_url is defined %} |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
49 <div id="create_account_link"> |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
50 <p> |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
51 <a href="{{register_url}}">{% trans %}No account yet? Create a new one!{% endtrans %}</a> |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
52 </p> |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
53 </div> |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
54 {% endif %} |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
55 {% endblock login_right_bottom %} |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
56 </div> |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
57 </div> |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
58 </div> |
a5dc14675d5e
login: login, logged and registration pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
59 {% endblock body %} |