Show More
@@ -1,77 +1,77 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 | <%inherit file="base/root.html"/> |
|
2 | <%inherit file="base/root.html"/> | |
3 |
|
3 | |||
4 | <%def name="title()"> |
|
4 | <%def name="title()"> | |
5 | ${_('Sign In')} |
|
5 | ${_('Sign In')} | |
6 | %if c.rhodecode_name: |
|
6 | %if c.rhodecode_name: | |
7 | · ${h.branding(c.rhodecode_name)} |
|
7 | · ${h.branding(c.rhodecode_name)} | |
8 | %endif |
|
8 | %endif | |
9 | </%def> |
|
9 | </%def> | |
10 |
|
10 | |||
11 | <style>body{background-color:#eeeeee;}</style> |
|
11 | <style>body{background-color:#eeeeee;}</style> | |
12 | <div class="loginbox"> |
|
12 | <div class="loginbox"> | |
13 | <div class="header"> |
|
13 | <div class="header"> | |
14 | <div id="header-inner" class="title"> |
|
14 | <div id="header-inner" class="title"> | |
15 | <div id="logo"> |
|
15 | <div id="logo"> | |
16 | <div class="logo-wrapper"> |
|
16 | <div class="logo-wrapper"> | |
17 | <a href="${h.url('home')}"><img src="${h.url('/images/rhodecode-logo-white-216x60.png')}" alt="RhodeCode"/></a> |
|
17 | <a href="${h.url('home')}"><img src="${h.url('/images/rhodecode-logo-white-216x60.png')}" alt="RhodeCode"/></a> | |
18 | </div> |
|
18 | </div> | |
19 | %if c.rhodecode_name: |
|
19 | %if c.rhodecode_name: | |
20 | <div class="branding"> ${h.branding(c.rhodecode_name)}</div> |
|
20 | <div class="branding"> ${h.branding(c.rhodecode_name)}</div> | |
21 | %endif |
|
21 | %endif | |
22 | </div> |
|
22 | </div> | |
23 | </div> |
|
23 | </div> | |
24 | </div> |
|
24 | </div> | |
25 |
|
25 | |||
26 | <div class="loginwrapper"> |
|
26 | <div class="loginwrapper"> | |
27 | <div class="left-column"> |
|
27 | <div class="left-column"> | |
28 | <img class="sign-in-image" src="${h.url('/images/sign-in.png')}" alt="RhodeCode"/> |
|
28 | <img class="sign-in-image" src="${h.url('/images/sign-in.png')}" alt="RhodeCode"/> | |
29 | </div> |
|
29 | </div> | |
30 |
|
30 | <%block name="above_login_button" /> | ||
31 | <div id="login" class="right-column"> |
|
31 | <div id="login" class="right-column"> | |
32 | <%include file="/base/flash_msg.html"/> |
|
32 | <%include file="/base/flash_msg.html"/> | |
33 | <!-- login --> |
|
33 | <!-- login --> | |
34 | <div class="sign-in-title"> |
|
34 | <div class="sign-in-title"> | |
35 | <h1>${_('Sign In')}</h1> |
|
35 | <h1>${_('Sign In')}</h1> | |
36 | %if h.HasPermissionAny('hg.admin', 'hg.register.auto_activate', 'hg.register.manual_activate')(): |
|
36 | %if h.HasPermissionAny('hg.admin', 'hg.register.auto_activate', 'hg.register.manual_activate')(): | |
37 | <h4>${h.link_to(_("Go to the registration page to create a new account."), request.route_path('register'))}</h4> |
|
37 | <h4>${h.link_to(_("Go to the registration page to create a new account."), request.route_path('register'))}</h4> | |
38 | %endif |
|
38 | %endif | |
39 | </div> |
|
39 | </div> | |
40 | <div class="inner form"> |
|
40 | <div class="inner form"> | |
41 | ${h.form(request.route_path('login', _query={'came_from': came_from}), needs_csrf_token=False)} |
|
41 | ${h.form(request.route_path('login', _query={'came_from': came_from}), needs_csrf_token=False)} | |
42 |
|
42 | |||
43 | <label for="username">${_('Username')}:</label> |
|
43 | <label for="username">${_('Username')}:</label> | |
44 | ${h.text('username', class_='focus', value=defaults.get('username'))} |
|
44 | ${h.text('username', class_='focus', value=defaults.get('username'))} | |
45 | %if 'username' in errors: |
|
45 | %if 'username' in errors: | |
46 | <span class="error-message">${errors.get('username')}</span> |
|
46 | <span class="error-message">${errors.get('username')}</span> | |
47 | <br /> |
|
47 | <br /> | |
48 | %endif |
|
48 | %endif | |
49 |
|
49 | |||
50 | <label for="password">${_('Password')}:</label> |
|
50 | <label for="password">${_('Password')}:</label> | |
51 | ${h.password('password', class_='focus')} |
|
51 | ${h.password('password', class_='focus')} | |
52 | %if 'password' in errors: |
|
52 | %if 'password' in errors: | |
53 | <span class="error-message">${errors.get('password')}</span> |
|
53 | <span class="error-message">${errors.get('password')}</span> | |
54 | <br /> |
|
54 | <br /> | |
55 | %endif |
|
55 | %endif | |
56 |
|
56 | |||
57 | ${h.checkbox('remember', value=True, checked=defaults.get('remember'))} |
|
57 | ${h.checkbox('remember', value=True, checked=defaults.get('remember'))} | |
58 | <label class="checkbox" for="remember">${_('Remember me')}</label> |
|
58 | <label class="checkbox" for="remember">${_('Remember me')}</label> | |
59 |
|
59 | |||
60 | <p class="links"> |
|
60 | <p class="links"> | |
61 | ${h.link_to(_('Forgot your password?'), h.route_path('reset_password'))} |
|
61 | ${h.link_to(_('Forgot your password?'), h.route_path('reset_password'))} | |
62 | </p> |
|
62 | </p> | |
63 |
|
63 | |||
64 | ${h.submit('sign_in', _('Sign In'), class_="btn sign-in")} |
|
64 | ${h.submit('sign_in', _('Sign In'), class_="btn sign-in")} | |
65 |
|
65 | |||
66 | ${h.end_form()} |
|
66 | ${h.end_form()} | |
67 | <script type="text/javascript"> |
|
67 | <script type="text/javascript"> | |
68 | $(document).ready(function(){ |
|
68 | $(document).ready(function(){ | |
69 | $('#username').focus(); |
|
69 | $('#username').focus(); | |
70 | }) |
|
70 | }) | |
71 | </script> |
|
71 | </script> | |
72 | </div> |
|
72 | </div> | |
73 | <!-- end login --> |
|
73 | <!-- end login --> | |
74 | <%block name="below_login_button" /> |
|
74 | <%block name="below_login_button" /> | |
75 | </div> |
|
75 | </div> | |
76 | </div> |
|
76 | </div> | |
77 | </div> |
|
77 | </div> |
@@ -1,123 +1,123 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 | <%inherit file="base/root.html"/> |
|
2 | <%inherit file="base/root.html"/> | |
3 |
|
3 | |||
4 | <%def name="title()"> |
|
4 | <%def name="title()"> | |
5 | ${_('Create an Account')} |
|
5 | ${_('Create an Account')} | |
6 | %if c.rhodecode_name: |
|
6 | %if c.rhodecode_name: | |
7 | · ${h.branding(c.rhodecode_name)} |
|
7 | · ${h.branding(c.rhodecode_name)} | |
8 | %endif |
|
8 | %endif | |
9 | </%def> |
|
9 | </%def> | |
10 | <style>body{background-color:#eeeeee;}</style> |
|
10 | <style>body{background-color:#eeeeee;}</style> | |
11 |
|
11 | |||
12 | <div class="loginbox"> |
|
12 | <div class="loginbox"> | |
13 | <div class="header"> |
|
13 | <div class="header"> | |
14 | <div id="header-inner" class="title"> |
|
14 | <div id="header-inner" class="title"> | |
15 | <div id="logo"> |
|
15 | <div id="logo"> | |
16 | <div class="logo-wrapper"> |
|
16 | <div class="logo-wrapper"> | |
17 | <a href="${h.url('home')}"><img src="${h.url('/images/rhodecode-logo-white-216x60.png')}" alt="RhodeCode"/></a> |
|
17 | <a href="${h.url('home')}"><img src="${h.url('/images/rhodecode-logo-white-216x60.png')}" alt="RhodeCode"/></a> | |
18 | </div> |
|
18 | </div> | |
19 | %if c.rhodecode_name: |
|
19 | %if c.rhodecode_name: | |
20 | <div class="branding"> ${h.branding(c.rhodecode_name)}</div> |
|
20 | <div class="branding"> ${h.branding(c.rhodecode_name)}</div> | |
21 | %endif |
|
21 | %endif | |
22 | </div> |
|
22 | </div> | |
23 | </div> |
|
23 | </div> | |
24 | </div> |
|
24 | </div> | |
25 |
|
25 | |||
26 | <div class="loginwrapper"> |
|
26 | <div class="loginwrapper"> | |
27 | <div class="left-column"> |
|
27 | <div class="left-column"> | |
28 | <img class="sign-in-image" src="${h.url('/images/sign-in.png')}" alt="RhodeCode"/> |
|
28 | <img class="sign-in-image" src="${h.url('/images/sign-in.png')}" alt="RhodeCode"/> | |
29 | </div> |
|
29 | </div> | |
30 |
|
30 | <%block name="above_register_button" /> | ||
31 | <div id="register" class="right-column"> |
|
31 | <div id="register" class="right-column"> | |
32 | <%include file="/base/flash_msg.html"/> |
|
32 | <%include file="/base/flash_msg.html"/> | |
33 | <!-- login --> |
|
33 | <!-- login --> | |
34 | <div class="sign-in-title"> |
|
34 | <div class="sign-in-title"> | |
35 | <h1>${_('Create an account')}</h1> |
|
35 | <h1>${_('Create an account')}</h1> | |
36 | <h4>${h.link_to(_("Go to the login page to sign in with an existing account."), request.route_path('login'))}</h4> |
|
36 | <h4>${h.link_to(_("Go to the login page to sign in with an existing account."), request.route_path('login'))}</h4> | |
37 | </div> |
|
37 | </div> | |
38 | <div class="inner form"> |
|
38 | <div class="inner form"> | |
39 | ${h.form(request.route_path('register'), needs_csrf_token=False)} |
|
39 | ${h.form(request.route_path('register'), needs_csrf_token=False)} | |
40 |
|
40 | |||
41 | <label for="username">${_('Username')}:</label> |
|
41 | <label for="username">${_('Username')}:</label> | |
42 | ${h.text('username', defaults.get('username'))} |
|
42 | ${h.text('username', defaults.get('username'))} | |
43 | %if 'username' in errors: |
|
43 | %if 'username' in errors: | |
44 | <span class="error-message">${errors.get('username')}</span> |
|
44 | <span class="error-message">${errors.get('username')}</span> | |
45 | <br /> |
|
45 | <br /> | |
46 | %endif |
|
46 | %endif | |
47 |
|
47 | |||
48 | <label for="password">${_('Password')}:</label> |
|
48 | <label for="password">${_('Password')}:</label> | |
49 | ${h.password('password', defaults.get('password'))} |
|
49 | ${h.password('password', defaults.get('password'))} | |
50 | %if 'password' in errors: |
|
50 | %if 'password' in errors: | |
51 | <span class="error-message">${errors.get('password')}</span> |
|
51 | <span class="error-message">${errors.get('password')}</span> | |
52 | <br /> |
|
52 | <br /> | |
53 | %endif |
|
53 | %endif | |
54 |
|
54 | |||
55 | <label for="password_confirmation">${_('Re-enter password')}:</label> |
|
55 | <label for="password_confirmation">${_('Re-enter password')}:</label> | |
56 | ${h.password('password_confirmation', defaults.get('password_confirmation'))} |
|
56 | ${h.password('password_confirmation', defaults.get('password_confirmation'))} | |
57 | %if 'password_confirmation' in errors: |
|
57 | %if 'password_confirmation' in errors: | |
58 | <span class="error-message">${errors.get('password_confirmation')}</span> |
|
58 | <span class="error-message">${errors.get('password_confirmation')}</span> | |
59 | <br /> |
|
59 | <br /> | |
60 | %endif |
|
60 | %endif | |
61 |
|
61 | |||
62 | <label for="firstname">${_('First Name')}:</label> |
|
62 | <label for="firstname">${_('First Name')}:</label> | |
63 | ${h.text('firstname', defaults.get('firstname'))} |
|
63 | ${h.text('firstname', defaults.get('firstname'))} | |
64 | %if 'firstname' in errors: |
|
64 | %if 'firstname' in errors: | |
65 | <span class="error-message">${errors.get('firstname')}</span> |
|
65 | <span class="error-message">${errors.get('firstname')}</span> | |
66 | <br /> |
|
66 | <br /> | |
67 | %endif |
|
67 | %endif | |
68 |
|
68 | |||
69 | <label for="lastname">${_('Last Name')}:</label> |
|
69 | <label for="lastname">${_('Last Name')}:</label> | |
70 | ${h.text('lastname', defaults.get('lastname'))} |
|
70 | ${h.text('lastname', defaults.get('lastname'))} | |
71 | %if 'lastname' in errors: |
|
71 | %if 'lastname' in errors: | |
72 | <span class="error-message">${errors.get('lastname')}</span> |
|
72 | <span class="error-message">${errors.get('lastname')}</span> | |
73 | <br /> |
|
73 | <br /> | |
74 | %endif |
|
74 | %endif | |
75 |
|
75 | |||
76 | <label for="email">${_('Email')}:</label> |
|
76 | <label for="email">${_('Email')}:</label> | |
77 | ${h.text('email', defaults.get('email'))} |
|
77 | ${h.text('email', defaults.get('email'))} | |
78 | %if 'email' in errors: |
|
78 | %if 'email' in errors: | |
79 | <span class="error-message">${errors.get('email')}</span> |
|
79 | <span class="error-message">${errors.get('email')}</span> | |
80 | <br /> |
|
80 | <br /> | |
81 | %endif |
|
81 | %endif | |
82 |
|
82 | |||
83 | %if captcha_active: |
|
83 | %if captcha_active: | |
84 | <div> |
|
84 | <div> | |
85 | <label for="recaptcha">${_('Captcha')}:</label> |
|
85 | <label for="recaptcha">${_('Captcha')}:</label> | |
86 | ${h.hidden('recaptcha_field')} |
|
86 | ${h.hidden('recaptcha_field')} | |
87 | <div id="recaptcha"></div> |
|
87 | <div id="recaptcha"></div> | |
88 | %if 'recaptcha_field' in errors: |
|
88 | %if 'recaptcha_field' in errors: | |
89 | <span class="error-message">${errors.get('recaptcha_field')}</span> |
|
89 | <span class="error-message">${errors.get('recaptcha_field')}</span> | |
90 | <br /> |
|
90 | <br /> | |
91 | %endif |
|
91 | %endif | |
92 | </div> |
|
92 | </div> | |
93 | %endif |
|
93 | %endif | |
94 |
|
94 | |||
95 | %if not auto_active: |
|
95 | %if not auto_active: | |
96 | <p class="activation_msg"> |
|
96 | <p class="activation_msg"> | |
97 | ${_('Account activation requires admin approval.')} |
|
97 | ${_('Account activation requires admin approval.')} | |
98 | </p> |
|
98 | </p> | |
99 | %endif |
|
99 | %endif | |
100 | <p class="register_message"> |
|
100 | <p class="register_message"> | |
101 | ${register_message|n} |
|
101 | ${register_message|n} | |
102 | </p> |
|
102 | </p> | |
103 |
|
103 | |||
104 | ${h.submit('sign_up',_('Create Account'),class_="btn sign-in")} |
|
104 | ${h.submit('sign_up',_('Create Account'),class_="btn sign-in")} | |
105 |
|
105 | |||
106 | ${h.end_form()} |
|
106 | ${h.end_form()} | |
107 | </div> |
|
107 | </div> | |
108 | <%block name="below_register_button" /> |
|
108 | <%block name="below_register_button" /> | |
109 | </div> |
|
109 | </div> | |
110 | </div> |
|
110 | </div> | |
111 | </div> |
|
111 | </div> | |
112 |
|
112 | |||
113 | %if captcha_active: |
|
113 | %if captcha_active: | |
114 | <script type="text/javascript" src="https://www.google.com/recaptcha/api/js/recaptcha_ajax.js"></script> |
|
114 | <script type="text/javascript" src="https://www.google.com/recaptcha/api/js/recaptcha_ajax.js"></script> | |
115 | %endif |
|
115 | %endif | |
116 | <script type="text/javascript"> |
|
116 | <script type="text/javascript"> | |
117 | $(document).ready(function(){ |
|
117 | $(document).ready(function(){ | |
118 | $('#username').focus(); |
|
118 | $('#username').focus(); | |
119 | %if captcha_active: |
|
119 | %if captcha_active: | |
120 | Recaptcha.create("${captcha_public_key}", "recaptcha", {theme: "white"}); |
|
120 | Recaptcha.create("${captcha_public_key}", "recaptcha", {theme: "white"}); | |
121 | %endif |
|
121 | %endif | |
122 | }); |
|
122 | }); | |
123 | </script> |
|
123 | </script> |
General Comments 0
You need to be logged in to leave comments.
Login now