Mercurial > kallithea
comparison pylons_app/templates/users.html @ 49:3ada2f409c1c
Added sqlalchemy support
made models for database
changed views to handle sqlalchemy
author | Marcin Kuzminski <marcin@python-blog.com> |
---|---|
date | Thu, 08 Apr 2010 01:50:46 +0200 |
parents | 8e250e86a670 |
children | 73f413946c14 |
comparison
equal
deleted
inserted
replaced
48:8e250e86a670 | 49:3ada2f409c1c |
---|---|
30 <th>Username</th> | 30 <th>Username</th> |
31 <th>Active</th> | 31 <th>Active</th> |
32 <th>Admin</th> | 32 <th>Admin</th> |
33 <th>Action</th> | 33 <th>Action</th> |
34 </tr> | 34 </tr> |
35 %for i in c.users_list: | 35 %for user in c.users_list: |
36 <tr> | 36 <tr> |
37 <td>${i[0]}</td> | 37 <td>${user.user_id}</td> |
38 <td>${h.link_to(i[1],h.url('user', id=i[0]))}</td> | 38 <td>${h.link_to(user.username,h.url('user', id=user.user_id))}</td> |
39 <td>${i[3]}</td> | 39 <td>${user.active}</td> |
40 <td>${i[4]}</td> | 40 <td>${user.admin}</td> |
41 <td> | 41 <td> |
42 ${h.form(url('user', id=i[0]),method='delete')} | 42 ${h.form(url('user', id=user.user_id),method='delete')} |
43 ${h.submit('remove','remove',class_="submit")} | 43 ${h.submit('remove','remove',class_="submit")} |
44 ${h.end_form()} | 44 ${h.end_form()} |
45 </td> | 45 </td> |
46 </tr> | 46 </tr> |
47 %endfor | 47 %endfor |