<%inherit file="/template.html" />
<%namespace name="forms" file="/forms.html"/>
<%def name="title()">${_("Search") if not c.query else "'%s'" % c.query | n}</%def>

<%def name="breadcrumbs()">
    ${h.instance.breadcrumbs(c.instance)|n} ${h.url.link(_("Search"), h.base_url('/search'))|n}
</%def>

<%block name="headline">
<h2>
    %if c.instance:
        ${_("Search in %s") % c.instance.label}
    %else:
        ${_("Search")}
    %endif
</h2>
</%block>


<%block name="main_content">
    <div class="list_filter">
        ${forms.search(placeholder=_("Search proposals and norms..."), autofocus=True)}
    </div>
    <div id="serp_table" class="table">
        %if c.query:
            ${c.entities_pager.here()|n}
        %else:
            <div class="infobox">
                ${_("You did not provide a search query.")}
            </div>
        %endif
    </div>
</%block>
