comparison pylons_app/templates/users.html @ 50:73f413946c14

user managment implementation continued update/delete/create works + templating changes
author Marcin Kuzminski <marcin@python-blog.com>
date Thu, 08 Apr 2010 03:22:32 +0200
parents 3ada2f409c1c
children 3cf0603cd4f5
comparison
equal deleted inserted replaced
49:3ada2f409c1c 50:73f413946c14
33 <th>Action</th> 33 <th>Action</th>
34 </tr> 34 </tr>
35 %for user in c.users_list: 35 %for user in c.users_list:
36 <tr> 36 <tr>
37 <td>${user.user_id}</td> 37 <td>${user.user_id}</td>
38 <td>${h.link_to(user.username,h.url('user', id=user.user_id))}</td> 38 <td>${h.link_to(user.username,h.url('edit_user', id=user.user_id))}</td>
39 <td>${user.password}</td>
39 <td>${user.active}</td> 40 <td>${user.active}</td>
40 <td>${user.admin}</td> 41 <td>${user.admin}</td>
41 <td> 42 <td>
42 ${h.form(url('user', id=user.user_id),method='delete')} 43 ${h.form(url('user', id=user.user_id),method='delete')}
43 ${h.submit('remove','remove',class_="submit")} 44 ${h.submit('remove','remove',class_="submit")}
44 ${h.end_form()} 45 ${h.end_form()}
45 </td> 46 </td>
46 </tr> 47 </tr>
47 %endfor 48 %endfor
48 </table> 49 </table>
50 <h3>${h.link_to(u'Add user',h.url('new_user'))}</h3>
49 </div> 51 </div>
50 52
51 </%def> 53 </%def>