${s.searchbox(url('accounts-search'), [('d', c.domid),]) if c.domid else s.searchbox(url('accounts-search'))}
${self.paging(h.do_pagination(c.page), 'saccountstop')}
${h.form(url.current(), method='post')}
${h.radio('whatdo', 'delete', label='Delete', class_='fieldcontrols')}
${h.radio('whatdo', 'disable', label='Disable', class_='fieldcontrols')}
${h.radio('whatdo', 'enable', label='Enable', class_='fieldcontrols')}
% for user in c.page.items: <% if user.account_type == 1: user_icon = h.literal('') elif user.account_type == 2: user_icon = h.literal('') else: user_icon = h.literal('') %> % endfor % if not c.page.items: % endif
${h.checkbox('checkall')}   ${_('Username')} ${_('Full names')} ${_('Email address')} ${_('Status')} ${_('Actions')}
${h.checkbox('accountid', value=user.id, class_='selector')} ${h.link_to(user_icon, 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))} ${functions.item_status(user.active)} ${h.link_to(h.literal(''), url('account-edit', userid=user.id), title=_("Update Account"))} ${h.link_to(h.literal(''), url('account-delete', userid=user.id), title=_("Delete Account"))}
${_('No accounts found')}
${h.end_form()}\
${self.paging(h.do_pagination(c.page), 'saccountsbottom')}
<%def name="title()"> ${_('Accounts ')} % if c.page.page_count != 0: ${ungettext(':: Showing page %(n)d of %(c)d page.', ':: Showing page %(n)d of %(c)d pages.', c.page.page_count) % dict(n=c.page.page, c=c.page.page_count)} % endif <%def name="heading()"> ${_('Accounts ')} % if c.page.page_count != 0: ${ungettext(':: Showing page %(n)d of %(c)d page.', ':: Showing page %(n)d of %(c)d pages.', c.page.page_count) % dict(n=c.page.page, c=c.page.page_count)} % endif <%def name="headers()"> <%def name="paging(page_nums, fieldname)"> % if c.page.page_count != 0:

${_('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.literal(''), url('accounts-bydom-pages', page=c.page.first_page, domid=c.domid))} % else: ${h.link_to(h.literal(''), 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.literal(''), url('accounts-bydom-pages', page=c.page.previous_page, domid=c.domid))} % else: ${h.link_to(h.literal(''), 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.literal(''), url('accounts-bydom-pages', page=c.page.next_page, domid=c.domid))} % else: ${h.link_to(h.literal(''), 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.literal(''), url('accounts-bydom-pages', page=c.page.page_count, domid=c.domid))} % else: ${h.link_to(h.literal(''), 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:
-
% endif <%def name="submenu()"> <%def name="localscripts()">\ ${h.javascript_link(h.media_url() + 'js/vendor/jquery.address-1.4.min.js', h.media_url() + 'js/baruwa/accounts.min.js')} <%namespace name="s" file="../includes/search.html"/> <%namespace name="functions" file="../includes/functions.html"/> <%inherit file="../base.html"/>