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="{{dlang}}" lang="{{dlang}}"> |
---|
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="{{dlang}}" /> |
---|
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="icon" type="image/png" href="images/favicon96-logout.png" /> |
---|
14 | <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" /> |
---|
15 | {{ js.load_IE7 }} |
---|
16 | {{ js.common }} |
---|
17 | <link rel="stylesheet" href="{{theme_url}}style/default.css" type="text/css" media="screen" /> |
---|
18 | <script type="text/javascript"> |
---|
19 | //<![CDATA[ |
---|
20 | $(window).load(function() { |
---|
21 | var uid = $('input[name=user_id]'); |
---|
22 | var upw = $('input[name=user_pwd]'); |
---|
23 | uid.focus(); |
---|
24 | |
---|
25 | if (upw.length == 0) { return; } |
---|
26 | |
---|
27 | uid.keypress(processKey); |
---|
28 | |
---|
29 | function processKey(evt) { |
---|
30 | if (evt.which == 13 && upw.val() == '') { |
---|
31 | upw.focus(); |
---|
32 | return false; |
---|
33 | } |
---|
34 | return true; |
---|
35 | }; |
---|
36 | $.cookie('dc_admin_test_cookie',true); |
---|
37 | if ($.cookie('dc_admin_test_cookie')) { |
---|
38 | $('#cookie_help').hide(); |
---|
39 | $.cookie('dc_admin_test_cookie', '', {'expires': -1}); |
---|
40 | } else { |
---|
41 | $('#cookie_help').show(); |
---|
42 | } |
---|
43 | $('#issue #more').toggleWithLegend($('#issue').children().not('#more')); |
---|
44 | }); |
---|
45 | //]]> |
---|
46 | </script> |
---|
47 | </head> |
---|
48 | |
---|
49 | <body id="dotclear-admin" class="auth"> |
---|
50 | |
---|
51 | {% form 'auth' with {'id':'login-screen'} %} |
---|
52 | |
---|
53 | <h1>{{vendor_name}}</h1> |
---|
54 | {% if messages.alert is not empty %} |
---|
55 | <p class="message">{{ messages.alert }}</p> |
---|
56 | {% endif %} |
---|
57 | {% if messages.errors is not empty %} |
---|
58 | <div class="error"> |
---|
59 | <p><strong>Errors :</strong></p> |
---|
60 | <ul> |
---|
61 | {% for error in messages.errors %} |
---|
62 | <li>{{ error }}</li> |
---|
63 | {% endfor %} |
---|
64 | </ul> |
---|
65 | </div> |
---|
66 | {% endif %} |
---|
67 | {% if akey %} |
---|
68 | <p><a href="auth.php">{{__('Back to login screen')}}</a></p> |
---|
69 | {% elseif recover %} |
---|
70 | <fieldset><legend>{{__('Request a new password')}}</legend> |
---|
71 | <p>{{ form_field('user_id') }}</p> |
---|
72 | <p>{{ form_field('user_email') }}</p> |
---|
73 | <p>{{ form_field('auth_recover')}}{{form_hidden()}}</p> |
---|
74 | </fieldset> |
---|
75 | <div id="issue"> |
---|
76 | <p><a href="auth.php">{{__('Back to login screen')}}</a></p></div> |
---|
77 | {% elseif change_pwd %} |
---|
78 | <fieldset><legend>{{__('Change your password')}}</legend> |
---|
79 | <p>{{ form_field('new_pwd') }}</p> |
---|
80 | <p>{{ form_field('new_pwd_c') }}</p> |
---|
81 | </fieldset> |
---|
82 | <p>{{ form_field('auth_change') }}</p> |
---|
83 | {% else %} |
---|
84 | {% if safe_mode %} |
---|
85 | <fieldset> |
---|
86 | <legend>{{__('Safe mode login')}}</legend> |
---|
87 | <p class="form-note info"> |
---|
88 | {{__('This mode allows you to login without activating any of your plugins. This may be useful to solve compatibility problems')}} <br /> |
---|
89 | {{__('Disable or delete any plugin suspected to cause trouble, then log out and log back in normally.')}} |
---|
90 | </p> |
---|
91 | {% else %} |
---|
92 | <div class="fieldset"> |
---|
93 | {% endif %} |
---|
94 | <p>{{ form_field('user_id') }}</p> |
---|
95 | <p>{{ form_field('user_pwd') }}</p> |
---|
96 | <p>{{ form_field('user_remember',{},{'nestedlabel':false}) }}</p> |
---|
97 | <p>{{ form_field('auth_login',{"class":"login"}) }}{{ form_hidden() }}</p> |
---|
98 | {% if safe_mode %} |
---|
99 | </fieldset> |
---|
100 | {% else %} |
---|
101 | </div> |
---|
102 | {% endif %} |
---|
103 | <p id="cookie_help" class="error">{{__('You must accept cookies in order to use the private area.')}}</p> |
---|
104 | <div id="issue"> |
---|
105 | {% if safe_mode %} |
---|
106 | <p><a href="auth.php" id="normal_mode_link">{{__('Get back to normal authentication')}}</a></p> |
---|
107 | {% else %} |
---|
108 | <p id="more"><strong>{{__('Connection issue?')}}</strong></p> |
---|
109 | {% if allow_pass_change %} |
---|
110 | <p><a href="auth.php?recover=1">{{__('I forgot my password')}}</a></p> |
---|
111 | {% endif %} |
---|
112 | <p><a href="auth.php?safe_mode=1" id="safe_mode_link">{{__('I want to log in in safe mode')}}</a></p> |
---|
113 | {% endif %} |
---|
114 | </div> |
---|
115 | {% endif %} |
---|
116 | {% endform %} |
---|
117 | </body> |
---|
118 | </html> |
---|