comparison sat_templates/default/login/register.html @ 147:33c7ce833d3f

install: setup.py fix + moved "default" dir in a "sat_templates" dir: the merge request at https://bugs.goffi.org/mr/view/3 was a good basis, but not fully working ("default" dir was removed), this patch fixes it, and do some improvments: - moved "default" in "sat_templates" dir, which correspond to the python module, so it can be found easily from python - added VERSION, and mercurial hash detection, in the same way as for Cagou and backend - slight modification of classifiers - replaces tabs coming from MR by spaces
author Goffi <goffi@goffi.org>
date Sat, 02 Jun 2018 17:25:43 +0200
parents default/login/register.html@a5dc14675d5e
children
comparison
equal deleted inserted replaced
146:7dc00829c32f 147:33c7ce833d3f
1 {% extends 'login/login.html' %}
2
3 {% block title %}{{C.APP_NAME}} register new account{% endblock %}
4
5 {% block login_error_message %}
6 {% if login_error == S_C.ALREADY_EXISTS %}
7 {%- trans %}This login already exists, please choose another one.{% endtrans -%}
8 {% elif login_error == S_C.INVALID_INPUT %}
9 {%- trans %}The data you entered are nod valid.{% endtrans -%}
10 {% elif login_error == S_C.BAD_REQUEST %}
11 {%- trans %}Bad request, please contact your service administrator{% endtrans -%}
12 {% else %}
13 {%- trans %}An unknown error occurred, please contact your service administrator.{% endtrans -%}
14 {% endif %}
15 {% endblock login_error_message %}
16
17 {% block login_right_top %}
18 {% if login_url is defined %}
19 <div id="login_link">
20 <a href="{{login_url}}">
21 {%- trans %}Go to login page{% endtrans -%}
22 </a>
23 </div>
24 {% endif %}
25 {% endblock login_right_top %}
26
27 {% block login_form %}
28 {% call form.form(class='register') %}
29 {{ field.meta('type', 'register') }}
30 {{ field.text("login", _("Login"),
31 required=true,
32 pattern=S_C.REG_LOGIN_RE,
33 title=_("Login must be lower case, with only plain letters (a-z), numbers (0-9) or underscore(_)"),
34 value=login,
35 )}}
36 {{ field.email("email", _("Email"),
37 required=true,
38 value=email,
39 )}}
40 {{ field.password("password", _("Password"),
41 required=true,
42 minlength=S_C.PASSWORD_MIN_LENGTH,
43 value=password,
44 )}}
45 {{ field.submit(_("Register new account")) }}
46 {% endcall %}
47 {% endblock login_form %}
48
49 {% block login_right_bottom %}{% endblock %}