users.html
60 lines
| 1.9 KiB
| text/html
|
HtmlLexer
r216 | ## -*- coding: utf-8 -*- | |||
r127 | <%inherit file="/base/base.html"/> | |||
r216 | ||||
r127 | <%def name="title()"> | |||
r216 | ${_('Users administration')} | |||
r127 | </%def> | |||
r362 | ||||
<%def name="breadcrumbs_links()"> | ||||
${h.link_to(_('Admin'),h.url('admin_home'))} » ${_('Users')} | ||||
r127 | </%def> | |||
r362 | ||||
r127 | <%def name="page_nav()"> | |||
r182 | ${self.menu('admin')} | |||
r127 | </%def> | |||
r362 | ||||
r127 | <%def name="main()"> | |||
r362 | <div class="box"> | |||
<!-- box / title --> | ||||
<div class="title"> | ||||
${self.breadcrumbs()} | ||||
<ul class="links"> | ||||
<li> | ||||
<span>${h.link_to(u'ADD NEW USER',h.url('new_user'),class_="add_icon")}</span> | ||||
</li> | ||||
</ul> | ||||
</div> | ||||
<!-- end box / title --> | ||||
<div class="table"> | ||||
r219 | <table class="table_disp"> | |||
r362 | <tr class="header"> | |||
r398 | <th></th> | |||
r362 | <th class="left">${_('username')}</th> | |||
<th class="left">${_('name')}</th> | ||||
<th class="left">${_('lastname')}</th> | ||||
<th class="left">${_('active')}</th> | ||||
<th class="left">${_('admin')}</th> | ||||
<th class="left">${_('action')}</th> | ||||
</tr> | ||||
%for cnt,user in enumerate(c.users_list): | ||||
%if user.name !='default': | ||||
<tr class="parity${cnt%2}"> | ||||
r416 | <td><div class="gravatar"><img alt="gravatar" src="${h.gravatar_url(user.email,24)}"> </div></td> | |||
r127 | <td>${h.link_to(user.username,h.url('edit_user', id=user.user_id))}</td> | |||
r238 | <td>${user.name}</td> | |||
<td>${user.lastname}</td> | ||||
r127 | <td>${user.active}</td> | |||
<td>${user.admin}</td> | ||||
<td> | ||||
r362 | ${h.form(url('user', id=user.user_id),method='delete')} | |||
${h.submit('remove','delete',class_="delete_icon action_button")} | ||||
${h.end_form()} | ||||
</td> | ||||
r127 | </tr> | |||
r362 | %endif | |||
r127 | %endfor | |||
</table> | ||||
</div> | ||||
r362 | </div> | |||
r216 | </%def> | |||