Dotclear

source: inc/admin/default-templates/auth.html.twig @ 1317:c22b18a9afe0

Revision 1317:c22b18a9afe0, 3.3 KB checked in by Dsls, 12 years ago (diff)

typo in field name.

Line 
1{% import "js_helpers.html.twig" as js %}
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $dlang; ?>" lang="en">
4<head>
5  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6  <meta http-equiv="Content-Script-Type" content="text/javascript" />
7  <meta http-equiv="Content-Style-Type" content="text/css" />
8  <meta http-equiv="Content-Language" content="en" />
9  <meta name="ROBOTS" content="NOARCHIVE,NOINDEX,NOFOLLOW" />
10  <meta name="GOOGLEBOT" content="NOSNIPPET" />
11  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
12  <title>{{vendor_name}}</title>
13  <link rel="stylesheet" href="{{theme_url}}style/default.css" type="text/css" media="screen" />
14  {{ js.load_IE7 }}
15  {{ js.common }}
16  <script type="text/javascript" src="{{theme_url}}js/_auth.js"></script>
17</head>
18
19<body id="dotclear-admin" class="auth">
20
21{% form 'auth' %}
22<div id="login-screen">
23<h1>{{vendor_name}}</h1>
24{% if messages.alert is not empty %}
25     <p class="message">{{ messages.alert }}</p>
26{% endif %}
27{% if messages.errors is not empty %}
28     <div class="error">
29          <p><strong>Errors :</strong></p>
30          <ul>
31          {% for error in messages.errors %}
32               <li>{{ error }}</li>
33          {% endfor %}
34          </ul>
35     </div>
36{% endif %}
37{% if akey %}
38     <p><a href="auth.php">{{__('Back to login screen')}}</a></p>
39{% elseif recover %}
40     <fieldset><legend>{{__('Request a new password')}}</legend>
41     <p>{{ form_field('user_id') }}</p>
42     <p>{{ form_field('user_email') }}</p>
43     <p>{{ form_field('auth_recover')}}</p>
44     </fieldset>
45     <div id="issue">
46     <p><a href="auth.php">{{__('Back to login screen')}}</a></p></div>
47{% elseif change_pwd %}
48     <fieldset><legend>{{__('Change your password')}}</legend>
49     <p>{{ form_field('new_pwd') }}</p>
50     <p>{{ form_field('new_pwd_c') }}</p>
51     </fieldset>
52     <p>{{ form_field('auth_change') }}</p>
53{% else %}
54     {% if safe_mode %}
55          <fieldset>
56          <legend>{{__('Safe mode login')}}</legend>
57          <p class="form-note info">
58          {{__('This mode allows you to login without activating any of your plugins. This may be useful to solve compatibility problems')}}&nbsp;<br />
59          {{__('Disable or delete any plugin suspected to cause trouble, then log out and log back in normally.')}}
60          </p>
61     {% else %}
62          <div class="fieldset">
63     {% endif %}
64               <p>{{ form_field('user_id') }}</p>
65               <p>{{ form_field('user_pwd') }}</p>
66               <p>{{ form_field('user_remember',{},{'nestedlabel':true, 'labelclass':'classic'}) }}</p>
67               <p>{{ form_field('auth_login',{"class":"add button"}) }}</p>
68     {% if safe_mode %}
69          </fieldset>
70     {% else %}
71          </div>
72     {% endif %}
73          <p id="cookie_help" class="error">{{__('You must accept cookies in order to use the private area.')}}</p>
74          <div id="issue">
75     {% if safe_mode %}
76          <p><a href="auth.php" id="normal_mode_link">{{__('Get back to normal authentication')}}</a></p>
77     {% else %}
78          <p id="more"><strong>{{__('Connection issue?')}}</strong></p>
79          {% if allow_pass_change %}
80               <p><a href="auth.php?recover=1">{{__('I forgot my password')}}</a></p>
81          {% endif %}
82          <p><a href="auth.php?safe_mode=1" id="safe_mode_link">{{__('I want to log in in safe mode')}}</a></p>
83     {% endif %}
84          </div>
85{% endif %}
86</div>
87{% endform %}
88</body>
89</html>
Note: See TracBrowser for help on using the repository browser.

Sites map