Mercurial > kallithea
annotate pylons_app/templates/users.html @ 78:6f524697f79d
Implemented paging to admin user acion log
author | Marcin Kuzminski <marcin@python-blog.com> |
---|---|
date | Sat, 17 Apr 2010 19:07:29 +0200 |
parents | 3cf0603cd4f5 |
children | 3ac4350b7848 |
rev | line source |
---|---|
44 | 1 <%inherit file="base/base.html"/> |
2 <%def name="title()"> | |
3 ${_('Repository managment')} | |
4 </%def> | |
5 <%def name="breadcrumbs()"> | |
6 ${h.link_to(u'Home',h.url('/'))} | |
7 / | |
8 ${h.link_to(u'Admin',h.url('admin_home'))} | |
9 / | |
47
f6ac79182600
Added rest controllers for repos and users,
Marcin Kuzminski <marcin@python-blog.com>
parents:
44
diff
changeset
|
10 ${h.link_to(u'Users managment',h.url('users'))} |
44 | 11 </%def> |
12 <%def name="page_nav()"> | |
13 <li>${h.link_to(u'Home',h.url('/'))}</li> | |
14 <li class="current">${_('Admin')}</li> | |
15 </%def> | |
16 <%def name="main()"> | |
47
f6ac79182600
Added rest controllers for repos and users,
Marcin Kuzminski <marcin@python-blog.com>
parents:
44
diff
changeset
|
17 <ul class="submenu"> |
f6ac79182600
Added rest controllers for repos and users,
Marcin Kuzminski <marcin@python-blog.com>
parents:
44
diff
changeset
|
18 <li> |
f6ac79182600
Added rest controllers for repos and users,
Marcin Kuzminski <marcin@python-blog.com>
parents:
44
diff
changeset
|
19 ${h.link_to(u'Repos',h.url('repos'))} |
f6ac79182600
Added rest controllers for repos and users,
Marcin Kuzminski <marcin@python-blog.com>
parents:
44
diff
changeset
|
20 </li> |
f6ac79182600
Added rest controllers for repos and users,
Marcin Kuzminski <marcin@python-blog.com>
parents:
44
diff
changeset
|
21 <li class="current_submenu"> |
f6ac79182600
Added rest controllers for repos and users,
Marcin Kuzminski <marcin@python-blog.com>
parents:
44
diff
changeset
|
22 ${h.link_to(u'Users',h.url('users'))} |
f6ac79182600
Added rest controllers for repos and users,
Marcin Kuzminski <marcin@python-blog.com>
parents:
44
diff
changeset
|
23 </li> |
f6ac79182600
Added rest controllers for repos and users,
Marcin Kuzminski <marcin@python-blog.com>
parents:
44
diff
changeset
|
24 </ul> |
f6ac79182600
Added rest controllers for repos and users,
Marcin Kuzminski <marcin@python-blog.com>
parents:
44
diff
changeset
|
25 <div> |
f6ac79182600
Added rest controllers for repos and users,
Marcin Kuzminski <marcin@python-blog.com>
parents:
44
diff
changeset
|
26 <h2>${_('Mercurial users')}</h2> |
48
8e250e86a670
Css fixes, implemented removal of users, and display draft
Marcin Kuzminski <marcin@python-blog.com>
parents:
47
diff
changeset
|
27 <table> |
44 | 28 <tr> |
29 <th>Id</th> | |
30 <th>Username</th> | |
31 <th>Active</th> | |
47
f6ac79182600
Added rest controllers for repos and users,
Marcin Kuzminski <marcin@python-blog.com>
parents:
44
diff
changeset
|
32 <th>Admin</th> |
48
8e250e86a670
Css fixes, implemented removal of users, and display draft
Marcin Kuzminski <marcin@python-blog.com>
parents:
47
diff
changeset
|
33 <th>Action</th> |
47
f6ac79182600
Added rest controllers for repos and users,
Marcin Kuzminski <marcin@python-blog.com>
parents:
44
diff
changeset
|
34 </tr> |
49
3ada2f409c1c
Added sqlalchemy support
Marcin Kuzminski <marcin@python-blog.com>
parents:
48
diff
changeset
|
35 %for user in c.users_list: |
44 | 36 <tr> |
49
3ada2f409c1c
Added sqlalchemy support
Marcin Kuzminski <marcin@python-blog.com>
parents:
48
diff
changeset
|
37 <td>${user.user_id}</td> |
50
73f413946c14
user managment implementation continued update/delete/create works
Marcin Kuzminski <marcin@python-blog.com>
parents:
49
diff
changeset
|
38 <td>${h.link_to(user.username,h.url('edit_user', id=user.user_id))}</td> |
49
3ada2f409c1c
Added sqlalchemy support
Marcin Kuzminski <marcin@python-blog.com>
parents:
48
diff
changeset
|
39 <td>${user.active}</td> |
3ada2f409c1c
Added sqlalchemy support
Marcin Kuzminski <marcin@python-blog.com>
parents:
48
diff
changeset
|
40 <td>${user.admin}</td> |
48
8e250e86a670
Css fixes, implemented removal of users, and display draft
Marcin Kuzminski <marcin@python-blog.com>
parents:
47
diff
changeset
|
41 <td> |
49
3ada2f409c1c
Added sqlalchemy support
Marcin Kuzminski <marcin@python-blog.com>
parents:
48
diff
changeset
|
42 ${h.form(url('user', id=user.user_id),method='delete')} |
48
8e250e86a670
Css fixes, implemented removal of users, and display draft
Marcin Kuzminski <marcin@python-blog.com>
parents:
47
diff
changeset
|
43 ${h.submit('remove','remove',class_="submit")} |
8e250e86a670
Css fixes, implemented removal of users, and display draft
Marcin Kuzminski <marcin@python-blog.com>
parents:
47
diff
changeset
|
44 ${h.end_form()} |
8e250e86a670
Css fixes, implemented removal of users, and display draft
Marcin Kuzminski <marcin@python-blog.com>
parents:
47
diff
changeset
|
45 </td> |
44 | 46 </tr> |
47 %endfor | |
50
73f413946c14
user managment implementation continued update/delete/create works
Marcin Kuzminski <marcin@python-blog.com>
parents:
49
diff
changeset
|
48 </table> |
73f413946c14
user managment implementation continued update/delete/create works
Marcin Kuzminski <marcin@python-blog.com>
parents:
49
diff
changeset
|
49 <h3>${h.link_to(u'Add user',h.url('new_user'))}</h3> |
47
f6ac79182600
Added rest controllers for repos and users,
Marcin Kuzminski <marcin@python-blog.com>
parents:
44
diff
changeset
|
50 </div> |
f6ac79182600
Added rest controllers for repos and users,
Marcin Kuzminski <marcin@python-blog.com>
parents:
44
diff
changeset
|
51 |
44 | 52 </%def> |