Show More
@@ -1,50 +1,52 b'' | |||||
1 | <%inherit file="/base/base.html"/> |
|
1 | <%inherit file="/base/base.html"/> | |
2 | <%def name="title()"> |
|
2 | <%def name="title()"> | |
3 | ${_('User')} - ${_('add new')} |
|
3 | ${_('User')} - ${_('add new')} | |
4 | </%def> |
|
4 | </%def> | |
5 | <%def name="breadcrumbs()"> |
|
5 | <%def name="breadcrumbs()"> | |
6 | ${h.link_to(u'Home',h.url('/'))} |
|
6 | ${h.link_to(u'Home',h.url('/'))} | |
7 | / |
|
7 | / | |
8 | ${h.link_to(u'Admin',h.url('admin_home'))} |
|
8 | ${h.link_to(u'Admin',h.url('admin_home'))} | |
9 | / |
|
9 | / | |
10 | ${h.link_to(u'Users',h.url('users'))} |
|
10 | ${h.link_to(u'Users',h.url('users'))} | |
11 | </%def> |
|
11 | </%def> | |
12 | <%def name="page_nav()"> |
|
12 | <%def name="page_nav()"> | |
|
13 | <ul class="page-nav"> | |||
13 | <li>${h.link_to(u'Home',h.url('/'))}</li> |
|
14 | <li>${h.link_to(u'Home',h.url('/'))}</li> | |
14 | <li class="current">${_('Admin')}</li> |
|
15 | <li class="current">${_('Admin')}</li> | |
|
16 | </ul> | |||
15 | </%def> |
|
17 | </%def> | |
16 | <%def name="main()"> |
|
18 | <%def name="main()"> | |
17 | <ul class="submenu"> |
|
19 | <ul class="submenu"> | |
18 | <li> |
|
20 | <li> | |
19 | ${h.link_to(u'Repos',h.url('repos'))} |
|
21 | ${h.link_to(u'Repos',h.url('repos'))} | |
20 | </li> |
|
22 | </li> | |
21 | <li class="current_submenu"> |
|
23 | <li class="current_submenu"> | |
22 | ${h.link_to(u'Users',h.url('users'))} |
|
24 | ${h.link_to(u'Users',h.url('users'))} | |
23 | </li> |
|
25 | </li> | |
24 | </ul> |
|
26 | </ul> | |
25 | <div> |
|
27 | <div> | |
26 | <h2>${_('User')} - ${_('add new')}</h2> |
|
28 | <h2>${_('User')} - ${_('add new')}</h2> | |
27 | ${h.form(url('users'))} |
|
29 | ${h.form(url('users'))} | |
28 | <table> |
|
30 | <table> | |
29 | <tr> |
|
31 | <tr> | |
30 | <td>${_('Username')}</td> |
|
32 | <td>${_('Username')}</td> | |
31 | <td>${h.text('username')}</td> |
|
33 | <td>${h.text('username')}</td> | |
32 | </tr> |
|
34 | </tr> | |
33 | <tr> |
|
35 | <tr> | |
34 | <td>${_('password')}</td> |
|
36 | <td>${_('password')}</td> | |
35 | <td>${h.text('password')}</td> |
|
37 | <td>${h.text('password')}</td> | |
36 | </tr> |
|
38 | </tr> | |
37 | <tr> |
|
39 | <tr> | |
38 | <td>${_('Active')}</td> |
|
40 | <td>${_('Active')}</td> | |
39 | <td>${h.checkbox('active')}</td> |
|
41 | <td>${h.checkbox('active')}</td> | |
40 | </tr> |
|
42 | </tr> | |
41 | <tr> |
|
43 | <tr> | |
42 | <td></td> |
|
44 | <td></td> | |
43 | <td>${h.submit('add','add')}</td> |
|
45 | <td>${h.submit('add','add')}</td> | |
44 | </tr> |
|
46 | </tr> | |
45 |
|
47 | |||
46 | </table> |
|
48 | </table> | |
47 |
|
49 | |||
48 | ${h.end_form()} |
|
50 | ${h.end_form()} | |
49 | </div> |
|
51 | </div> | |
50 | </%def> No newline at end of file |
|
52 | </%def> |
@@ -1,50 +1,52 b'' | |||||
1 | <%inherit file="/base/base.html"/> |
|
1 | <%inherit file="/base/base.html"/> | |
2 | <%def name="title()"> |
|
2 | <%def name="title()"> | |
3 | ${_('User')} - ${c.user.username} |
|
3 | ${_('User')} - ${c.user.username} | |
4 | </%def> |
|
4 | </%def> | |
5 | <%def name="breadcrumbs()"> |
|
5 | <%def name="breadcrumbs()"> | |
6 | ${h.link_to(u'Home',h.url('/'))} |
|
6 | ${h.link_to(u'Home',h.url('/'))} | |
7 | / |
|
7 | / | |
8 | ${h.link_to(u'Admin',h.url('admin_home'))} |
|
8 | ${h.link_to(u'Admin',h.url('admin_home'))} | |
9 | / |
|
9 | / | |
10 | ${h.link_to(u'Users',h.url('users'))} |
|
10 | ${h.link_to(u'Users',h.url('users'))} | |
11 | </%def> |
|
11 | </%def> | |
12 | <%def name="page_nav()"> |
|
12 | <%def name="page_nav()"> | |
|
13 | <ul class="page-nav"> | |||
13 | <li>${h.link_to(u'Home',h.url('/'))}</li> |
|
14 | <li>${h.link_to(u'Home',h.url('/'))}</li> | |
14 | <li class="current">${_('Admin')}</li> |
|
15 | <li class="current">${_('Admin')}</li> | |
|
16 | </ul> | |||
15 | </%def> |
|
17 | </%def> | |
16 | <%def name="main()"> |
|
18 | <%def name="main()"> | |
17 | <ul class="submenu"> |
|
19 | <ul class="submenu"> | |
18 | <li> |
|
20 | <li> | |
19 | ${h.link_to(u'Repos',h.url('repos'))} |
|
21 | ${h.link_to(u'Repos',h.url('repos'))} | |
20 | </li> |
|
22 | </li> | |
21 | <li class="current_submenu"> |
|
23 | <li class="current_submenu"> | |
22 | ${h.link_to(u'Users',h.url('users'))} |
|
24 | ${h.link_to(u'Users',h.url('users'))} | |
23 | </li> |
|
25 | </li> | |
24 | </ul> |
|
26 | </ul> | |
25 | <div> |
|
27 | <div> | |
26 | <h2>${_('User')} - ${c.user.username}</h2> |
|
28 | <h2>${_('User')} - ${c.user.username}</h2> | |
27 | ${h.form(url('user', id=c.user.user_id),method='put')} |
|
29 | ${h.form(url('user', id=c.user.user_id),method='put')} | |
28 | <table> |
|
30 | <table> | |
29 | <tr> |
|
31 | <tr> | |
30 | <td>${_('Username')}</td> |
|
32 | <td>${_('Username')}</td> | |
31 | <td>${h.text('username')}</td> |
|
33 | <td>${h.text('username')}</td> | |
32 | </tr> |
|
34 | </tr> | |
33 | <tr> |
|
35 | <tr> | |
34 | <td>${_('New password')}</td> |
|
36 | <td>${_('New password')}</td> | |
35 | <td>${h.text('new_password')}</td> |
|
37 | <td>${h.text('new_password')}</td> | |
36 | </tr> |
|
38 | </tr> | |
37 | <tr> |
|
39 | <tr> | |
38 | <td>${_('Active')}</td> |
|
40 | <td>${_('Active')}</td> | |
39 | <td>${h.checkbox('active',value=True)}</td> |
|
41 | <td>${h.checkbox('active',value=True)}</td> | |
40 | </tr> |
|
42 | </tr> | |
41 | <tr> |
|
43 | <tr> | |
42 | <td></td> |
|
44 | <td></td> | |
43 | <td>${h.submit('save','save')}</td> |
|
45 | <td>${h.submit('save','save')}</td> | |
44 | </tr> |
|
46 | </tr> | |
45 |
|
47 | |||
46 | </table> |
|
48 | </table> | |
47 |
|
49 | |||
48 | ${h.end_form()} |
|
50 | ${h.end_form()} | |
49 | </div> |
|
51 | </div> | |
50 | </%def> No newline at end of file |
|
52 | </%def> |
General Comments 0
You need to be logged in to leave comments.
Login now