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')} - ${c.rhodecode_name} |
|
5 | ${_('Sign In')} - ${c.rhodecode_name} | |
6 | </%def> |
|
6 | </%def> | |
7 |
|
7 | |||
8 | <div id="login"> |
|
8 | <div id="login"> | |
9 | <div class="flash_msg"> |
|
9 | <div class="flash_msg"> | |
10 | <% messages = h.flash.pop_messages() %> |
|
10 | <% messages = h.flash.pop_messages() %> | |
11 | % if messages: |
|
11 | % if messages: | |
12 | <ul id="flash-messages"> |
|
12 | <ul id="flash-messages"> | |
13 | % for message in messages: |
|
13 | % for message in messages: | |
14 | <li class="${message.category}_msg">${message}</li> |
|
14 | <li class="${message.category}_msg">${message}</li> | |
15 | % endfor |
|
15 | % endfor | |
16 | </ul> |
|
16 | </ul> | |
17 | % endif |
|
17 | % endif | |
18 | </div> |
|
18 | </div> | |
19 | <!-- login --> |
|
19 | <!-- login --> | |
20 | <div class="title top-left-rounded-corner top-right-rounded-corner"> |
|
20 | <div class="title top-left-rounded-corner top-right-rounded-corner"> | |
21 |
<h5>${_('Sign In to |
|
21 | <h5>${_('Sign In to %s') % c.rhodecode_name}</h5> | |
22 | </div> |
|
22 | </div> | |
23 | <div class="inner"> |
|
23 | <div class="inner"> | |
24 | ${h.form(h.url.current(came_from=c.came_from))} |
|
24 | ${h.form(h.url.current(came_from=c.came_from))} | |
25 | <div class="form"> |
|
25 | <div class="form"> | |
26 | <!-- fields --> |
|
26 | <!-- fields --> | |
27 |
|
27 | |||
28 | <div class="fields"> |
|
28 | <div class="fields"> | |
29 | <div class="field"> |
|
29 | <div class="field"> | |
30 | <div class="label"> |
|
30 | <div class="label"> | |
31 | <label for="username">${_('Username')}:</label> |
|
31 | <label for="username">${_('Username')}:</label> | |
32 | </div> |
|
32 | </div> | |
33 | <div class="input"> |
|
33 | <div class="input"> | |
34 | ${h.text('username',class_='focus',size=40)} |
|
34 | ${h.text('username',class_='focus',size=40)} | |
35 | </div> |
|
35 | </div> | |
36 |
|
36 | |||
37 | </div> |
|
37 | </div> | |
38 | <div class="field"> |
|
38 | <div class="field"> | |
39 | <div class="label"> |
|
39 | <div class="label"> | |
40 | <label for="password">${_('Password')}:</label> |
|
40 | <label for="password">${_('Password')}:</label> | |
41 | </div> |
|
41 | </div> | |
42 | <div class="input"> |
|
42 | <div class="input"> | |
43 | ${h.password('password',class_='focus',size=40)} |
|
43 | ${h.password('password',class_='focus',size=40)} | |
44 | </div> |
|
44 | </div> | |
45 |
|
45 | |||
46 | </div> |
|
46 | </div> | |
47 | <div class="field"> |
|
47 | <div class="field"> | |
48 | <div class="checkbox"> |
|
48 | <div class="checkbox"> | |
49 | <input type="checkbox" id="remember" name="remember" /> |
|
49 | <input type="checkbox" id="remember" name="remember" /> | |
50 | <label for="remember">${_('Remember me')}</label> |
|
50 | <label for="remember">${_('Remember me')}</label> | |
51 | </div> |
|
51 | </div> | |
52 | </div> |
|
52 | </div> | |
53 | <div class="buttons"> |
|
53 | <div class="buttons"> | |
54 | ${h.submit('sign_in',_('Sign In'),class_="ui-btn large")} |
|
54 | ${h.submit('sign_in',_('Sign In'),class_="ui-btn large")} | |
55 | </div> |
|
55 | </div> | |
56 | </div> |
|
56 | </div> | |
57 | <!-- end fields --> |
|
57 | <!-- end fields --> | |
58 | <!-- links --> |
|
58 | <!-- links --> | |
59 | <div class="links"> |
|
59 | <div class="links"> | |
60 | ${h.link_to(_('Forgot your password ?'),h.url('reset_password'))} |
|
60 | ${h.link_to(_('Forgot your password ?'),h.url('reset_password'))} | |
61 | %if h.HasPermissionAny('hg.admin', 'hg.register.auto_activate', 'hg.register.manual_activate')(): |
|
61 | %if h.HasPermissionAny('hg.admin', 'hg.register.auto_activate', 'hg.register.manual_activate')(): | |
62 | / |
|
62 | / | |
63 | ${h.link_to(_("Don't have an account ?"),h.url('register'))} |
|
63 | ${h.link_to(_("Don't have an account ?"),h.url('register'))} | |
64 | %endif |
|
64 | %endif | |
65 | </div> |
|
65 | </div> | |
66 |
|
66 | |||
67 | <!-- end links --> |
|
67 | <!-- end links --> | |
68 | </div> |
|
68 | </div> | |
69 | ${h.end_form()} |
|
69 | ${h.end_form()} | |
70 | <script type="text/javascript"> |
|
70 | <script type="text/javascript"> | |
71 | YUE.onDOMReady(function(){ |
|
71 | YUE.onDOMReady(function(){ | |
72 | YUD.get('username').focus(); |
|
72 | YUD.get('username').focus(); | |
73 | }) |
|
73 | }) | |
74 | </script> |
|
74 | </script> | |
75 | </div> |
|
75 | </div> | |
76 | <!-- end login --> |
|
76 | <!-- end login --> | |
77 | </div> |
|
77 | </div> |
General Comments 0
You need to be logged in to leave comments.
Login now