comparison sat_templates/templates/default/login/register.html @ 164:e9f0a4215e46

multi-sites handling (moved templates to "templates" sub-directory) + noscript styles handling.
author Goffi <goffi@goffi.org>
date Mon, 10 Sep 2018 08:53:33 +0200
parents sat_templates/default/login/register.html@33c7ce833d3f
children e5116a99eb3d
comparison
equal deleted inserted replaced
163:33f67228686a 164:e9f0a4215e46
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 %}