Show More
@@ -1,72 +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')} ${c.rhodecode_name}</h5> |
|
21 | <h5>${_('Sign In to')} ${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-button")} |
|
54 | ${h.submit('sign_in','Sign In',class_="ui-button")} | |
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"> | |||
|
71 | YUE.onDOMReady(function(){ | |||
|
72 | YUD.get('username').focus(); | |||
|
73 | }) | |||
|
74 | </script> | |||
70 | </div> |
|
75 | </div> | |
71 | <!-- end login --> |
|
76 | <!-- end login --> | |
72 | </div> No newline at end of file |
|
77 | </div> |
@@ -1,39 +1,44 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 | ${_('Reset You password')} - ${c.rhodecode_name} |
|
5 | ${_('Reset You password')} - ${c.rhodecode_name} | |
6 | </%def> |
|
6 | </%def> | |
7 |
|
7 | |||
8 | <div id="register"> |
|
8 | <div id="register"> | |
9 |
|
9 | |||
10 | <div class="title top-left-rounded-corner top-right-rounded-corner"> |
|
10 | <div class="title top-left-rounded-corner top-right-rounded-corner"> | |
11 | <h5>${_('Reset You password to')} ${c.rhodecode_name}</h5> |
|
11 | <h5>${_('Reset You password to')} ${c.rhodecode_name}</h5> | |
12 | </div> |
|
12 | </div> | |
13 | <div class="inner"> |
|
13 | <div class="inner"> | |
14 | ${h.form(url('password_reset'))} |
|
14 | ${h.form(url('password_reset'))} | |
15 | <div class="form"> |
|
15 | <div class="form"> | |
16 | <!-- fields --> |
|
16 | <!-- fields --> | |
17 | <div class="fields"> |
|
17 | <div class="fields"> | |
18 |
|
18 | |||
19 | <div class="field"> |
|
19 | <div class="field"> | |
20 | <div class="label"> |
|
20 | <div class="label"> | |
21 | <label for="email">${_('Email address')}:</label> |
|
21 | <label for="email">${_('Email address')}:</label> | |
22 | </div> |
|
22 | </div> | |
23 | <div class="input"> |
|
23 | <div class="input"> | |
24 | ${h.text('email')} |
|
24 | ${h.text('email')} | |
25 | </div> |
|
25 | </div> | |
26 | </div> |
|
26 | </div> | |
27 |
|
27 | |||
28 | <div class="buttons"> |
|
28 | <div class="buttons"> | |
29 | <div class="nohighlight"> |
|
29 | <div class="nohighlight"> | |
30 | ${h.submit('send','Reset my password',class_="ui-button")} |
|
30 | ${h.submit('send','Reset my password',class_="ui-button")} | |
31 | <div class="activation_msg">${_('Your new password will be send to matching email address')}</div> |
|
31 | <div class="activation_msg">${_('Your new password will be send to matching email address')}</div> | |
32 | </div> |
|
32 | </div> | |
33 | </div> |
|
33 | </div> | |
34 | </div> |
|
34 | </div> | |
35 | </div> |
|
35 | </div> | |
36 | ${h.end_form()} |
|
36 | ${h.end_form()} | |
|
37 | <script type="text/javascript"> | |||
|
38 | YUE.onDOMReady(function(){ | |||
|
39 | YUD.get('email').focus(); | |||
|
40 | }) | |||
|
41 | </script> | |||
37 | </div> |
|
42 | </div> | |
38 | </div> |
|
43 | </div> | |
39 |
|
44 |
@@ -1,87 +1,92 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 Up')} - ${c.rhodecode_name} |
|
5 | ${_('Sign Up')} - ${c.rhodecode_name} | |
6 | </%def> |
|
6 | </%def> | |
7 |
|
7 | |||
8 | <div id="register"> |
|
8 | <div id="register"> | |
9 |
|
9 | |||
10 | <div class="title top-left-rounded-corner top-right-rounded-corner"> |
|
10 | <div class="title top-left-rounded-corner top-right-rounded-corner"> | |
11 | <h5>${_('Sign Up to')} ${c.rhodecode_name}</h5> |
|
11 | <h5>${_('Sign Up to')} ${c.rhodecode_name}</h5> | |
12 | </div> |
|
12 | </div> | |
13 | <div class="inner"> |
|
13 | <div class="inner"> | |
14 | ${h.form(url('register'))} |
|
14 | ${h.form(url('register'))} | |
15 | <div class="form"> |
|
15 | <div class="form"> | |
16 | <!-- fields --> |
|
16 | <!-- fields --> | |
17 | <div class="fields"> |
|
17 | <div class="fields"> | |
18 | <div class="field"> |
|
18 | <div class="field"> | |
19 | <div class="label"> |
|
19 | <div class="label"> | |
20 | <label for="username">${_('Username')}:</label> |
|
20 | <label for="username">${_('Username')}:</label> | |
21 | </div> |
|
21 | </div> | |
22 | <div class="input"> |
|
22 | <div class="input"> | |
23 | ${h.text('username',class_="medium")} |
|
23 | ${h.text('username',class_="medium")} | |
24 | </div> |
|
24 | </div> | |
25 | </div> |
|
25 | </div> | |
26 |
|
26 | |||
27 | <div class="field"> |
|
27 | <div class="field"> | |
28 | <div class="label"> |
|
28 | <div class="label"> | |
29 | <label for="password">${_('Password')}:</label> |
|
29 | <label for="password">${_('Password')}:</label> | |
30 | </div> |
|
30 | </div> | |
31 | <div class="input"> |
|
31 | <div class="input"> | |
32 | ${h.password('password',class_="medium")} |
|
32 | ${h.password('password',class_="medium")} | |
33 | </div> |
|
33 | </div> | |
34 | </div> |
|
34 | </div> | |
35 |
|
35 | |||
36 | <div class="field"> |
|
36 | <div class="field"> | |
37 | <div class="label"> |
|
37 | <div class="label"> | |
38 | <label for="password">${_('Re-enter password')}:</label> |
|
38 | <label for="password">${_('Re-enter password')}:</label> | |
39 | </div> |
|
39 | </div> | |
40 | <div class="input"> |
|
40 | <div class="input"> | |
41 | ${h.password('password_confirmation',class_="medium")} |
|
41 | ${h.password('password_confirmation',class_="medium")} | |
42 | </div> |
|
42 | </div> | |
43 | </div> |
|
43 | </div> | |
44 |
|
44 | |||
45 | <div class="field"> |
|
45 | <div class="field"> | |
46 | <div class="label"> |
|
46 | <div class="label"> | |
47 | <label for="name">${_('First Name')}:</label> |
|
47 | <label for="name">${_('First Name')}:</label> | |
48 | </div> |
|
48 | </div> | |
49 | <div class="input"> |
|
49 | <div class="input"> | |
50 | ${h.text('name',class_="medium")} |
|
50 | ${h.text('name',class_="medium")} | |
51 | </div> |
|
51 | </div> | |
52 | </div> |
|
52 | </div> | |
53 |
|
53 | |||
54 | <div class="field"> |
|
54 | <div class="field"> | |
55 | <div class="label"> |
|
55 | <div class="label"> | |
56 | <label for="lastname">${_('Last Name')}:</label> |
|
56 | <label for="lastname">${_('Last Name')}:</label> | |
57 | </div> |
|
57 | </div> | |
58 | <div class="input"> |
|
58 | <div class="input"> | |
59 | ${h.text('lastname',class_="medium")} |
|
59 | ${h.text('lastname',class_="medium")} | |
60 | </div> |
|
60 | </div> | |
61 | </div> |
|
61 | </div> | |
62 |
|
62 | |||
63 | <div class="field"> |
|
63 | <div class="field"> | |
64 | <div class="label"> |
|
64 | <div class="label"> | |
65 | <label for="email">${_('Email')}:</label> |
|
65 | <label for="email">${_('Email')}:</label> | |
66 | </div> |
|
66 | </div> | |
67 | <div class="input"> |
|
67 | <div class="input"> | |
68 | ${h.text('email',class_="medium")} |
|
68 | ${h.text('email',class_="medium")} | |
69 | </div> |
|
69 | </div> | |
70 | </div> |
|
70 | </div> | |
71 |
|
71 | |||
72 | <div class="buttons"> |
|
72 | <div class="buttons"> | |
73 | <div class="nohighlight"> |
|
73 | <div class="nohighlight"> | |
74 | ${h.submit('sign_up','Sign Up',class_="ui-button")} |
|
74 | ${h.submit('sign_up','Sign Up',class_="ui-button")} | |
75 | %if c.auto_active: |
|
75 | %if c.auto_active: | |
76 | <div class="activation_msg">${_('Your account will be activated right after registration')}</div> |
|
76 | <div class="activation_msg">${_('Your account will be activated right after registration')}</div> | |
77 | %else: |
|
77 | %else: | |
78 | <div class="activation_msg">${_('Your account must wait for activation by administrator')}</div> |
|
78 | <div class="activation_msg">${_('Your account must wait for activation by administrator')}</div> | |
79 | %endif |
|
79 | %endif | |
80 | </div> |
|
80 | </div> | |
81 | </div> |
|
81 | </div> | |
82 | </div> |
|
82 | </div> | |
83 | </div> |
|
83 | </div> | |
84 | ${h.end_form()} |
|
84 | ${h.end_form()} | |
|
85 | <script type="text/javascript"> | |||
|
86 | YUE.onDOMReady(function(){ | |||
|
87 | YUD.get('username').focus(); | |||
|
88 | }) | |||
|
89 | </script> | |||
85 | </div> |
|
90 | </div> | |
86 | </div> |
|
91 | </div> | |
87 |
|
92 |
General Comments 0
You need to be logged in to leave comments.
Login now