${s.searchbox(url('domains-search'), [('o', c.org),]) if c.org else s.searchbox(url('domains-search'))}
${self.paging(h.do_pagination(c.page), 'seldomaintop')}
% if c.page.items: ${h.form(url(controller='domains'), 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')}
% endif
% if not c.page.items: % endif % for domain in c.page.items: % endfor
${h.checkbox('checkall')} ${_('Domain Name')} ${_('Organization')} ${_('Accounts')} ${_('Status')} ${_('Actions')}
${_('No domains found matching: %s') % c.q}
${h.checkbox('domainid', value=domain.id, class_='selector')} ${h.link_to(domain.name, url(controller='domains', action='detail', domainid=domain.id))} <% orglinks = [] for index, org in enumerate(domain.organizations): link = h.link_to(org.name, url('org-detail', orgid=org.id)) if c.user.is_superadmin else org.name orglinks.append(link) orglinks = ', '.join(orglinks) %> ${orglinks|n} ${h.link_to(h.literal(''), url('accounts-bydom', domid=domain.id))} ${functions.item_status(domain.status)} ${h.link_to(h.literal(''), url('domain-settings', domainid=domain.id))} ${h.link_to(h.literal(''), url(controller='domains', action='edit', domainid=domain.id))} ${h.link_to(h.literal(''), url(controller='domains', action='delete', domainid=domain.id))}
% if c.page.items: ${h.end_form()}\ % endif
${self.paging(h.do_pagination(c.page), 'seldomainbottom')}
<%def name="title()">\ ${_('Domains :: Search results :: %(q)s :: Showing page %(page)d of %(count)d pages.') % dict(page=c.page.page, count=c.page.page_count, q=c.q) if c.page.page_count != 0 else _('Domains :: Search results :: %s') % c.q} <%def name="heading()">\ ${_('Domains :: Search results :: %(q)s :: Showing page %(page)d of %(count)d pages.') % dict(page=c.page.page, count=c.page.page_count, q=c.q) if c.page.page_count != 0 else _('Domains :: Search results :: %s') % c.q} <%def name="headers()">\ <%def name="paging(page_nums, fieldname)"> % if c.page.page_count != 0: <% kwd = {} if c.org: kwd['o'] = c.org %>

${_('Showing results %(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:')} ${h.pager_select(fieldname, str(c.page.items_per_page))} ${_('results 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: ${h.link_to(h.pager_img('first'), url.current(q=c.q, p=c.page.first_page, **kwd))} ... % endif % if c.page.previous_page: ${h.link_to(h.pager_img('previous'), url.current(q=c.q, p=c.page.previous_page, **kwd))} % endif % for linkpage in page_nums: % if linkpage == c.page.page: ${linkpage} % else: ${h.link_to(h.literal(linkpage), url.current(q=c.q, p=linkpage, **kwd))} % endif % endfor % if c.page.next_page: ${h.link_to(h.pager_img('next'), url.current(q=c.q, p=c.page.next_page, **kwd))} % endif % if c.page.next_page != c.page.page_count and c.page.page != c.page.page_count and c.page.page_count != 0: ... ${h.link_to(h.pager_img('last'), url.current(q=c.q, p=c.page.page_count, **kwd))} % endif % if c.page.page_count != 0:
% else:
-
% endif <%def name="submenu()"> <%def name="localscripts()">\ ${h.javascript_link(h.media_url() + 'js/baruwa/domains.search.min.js')} <%namespace name="s" file="../includes/search.html"/> <%namespace name="functions" file="../includes/functions.html"/> <%inherit file="../base.html"/>