${h.form(url.current(), method='post')}
${h.checkbox('checkall')} |
|
${_('Username')} |
${_('Full names')} |
${_('Email address')} |
${_('Status')} |
${_('Actions')} |
% for user in c.page.items:
<%
if user.account_type == 1:
user_icon = h.media_url() + 'imgs/user_admin.png'
elif user.account_type == 2:
user_icon = h.media_url() + 'imgs/user_dadmin.png'
else:
user_icon = h.media_url() + 'imgs/user.png'
%>
${h.checkbox('accountid', value=user.id, class_='selector')} |
${h.link_to(h.image(user_icon, 'x'), url('account-detail', userid=user.id))} |
${h.link_to(user.username, url('account-detail', userid=user.id))} |
${user.firstname} ${user.lastname} |
${h.link_to(user.email, url('account-detail', userid=user.id))} |
${h.enabled_or_not(user.active)} |
${h.link_to(h.portable_img('imgs/cog.png', 'Settings'), url('account-edit', userid=user.id))} |
${h.link_to(h.portable_img('imgs/edit.png', 'Edit'), url('account-edit', userid=user.id))} |
${h.link_to(h.portable_img('imgs/action_delete.png', 'Delete'), url('account-delete', userid=user.id))} |
% endfor
% if not c.page.items:
${_('No accounts found')} |
% endif
${h.end_form()}\
${_('Showing items %(i)d to %(l)d of %(count)d') % dict(i=c.page.first_item, l=c.page.last_item, count=c.page.item_count)}.
${_('Show items:')}
${h.pager_select(fieldname, str(c.page.items_per_page))}
${_('per page')}
% if c.page.page_count == 1:
-
% endif
% else:
${_('No items found')}
% endif
% if c.page.next_page != c.page.first_page and c.page.page != c.page.first_page:
% if c.domid:
${h.link_to(h.pager_img('first'), url('accounts-bydom-pages', page=c.page.first_page, domid=c.domid))}
% else:
${h.link_to(h.pager_img('first'), url('accounts-byorg-pages', page=c.page.first_page, orgid=c.orgid) if orgid else url('account-pages', page=c.page.first_page))}
% endif
...
% endif
% if c.page.previous_page:
% if c.domid:
${h.link_to(h.pager_img('previous'), url('accounts-bydom-pages', page=c.page.previous_page, domid=c.domid))}
% else:
${h.link_to(h.pager_img('previous'), url('accounts-byorg-pages', page=c.page.previous_page, orgid=c.orgid) if orgid else url('account-pages', page=c.page.previous_page))}
% endif
% endif
% for linkpage in page_nums:
% if linkpage == c.page.page:
${linkpage}
% else:
% if c.domid:
${h.link_to(h.literal(linkpage), url('accounts-bydom-pages', page=linkpage, domid=c.domid))}
% else:
${h.link_to(h.literal(linkpage), url('accounts-byorg-pages', page=linkpage, orgid=c.orgid) if orgid else url('account-pages', page=linkpage))}
% endif
% endif
% endfor
% if c.page.next_page:
% if c.domid:
${h.link_to(h.pager_img('next'), url('accounts-bydom-pages', page=c.page.next_page, domid=c.domid))}
% else:
${h.link_to(h.pager_img('next'), url('accounts-byorg-pages', page=c.page.next_page, orgid=c.orgid) if orgid else url('account-pages', page=c.page.next_page))}
% endif
% endif
% if c.page.next_page != c.page.page_count and c.page.page != c.page.page_count and c.page.page_count != 0:
...
% if c.domid:
${h.link_to(h.pager_img('last'), url('accounts-bydom-pages', page=c.page.page_count, domid=c.domid))}
% else:
${h.link_to(h.pager_img('last'), url('accounts-byorg-pages', page=c.page.page_count, orgid=c.orgid) if orgid else url('account-pages', page=c.page.page_count))}
% endif
% endif
% if c.page.page_count != 0:
% else: