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