summaryrefslogtreecommitdiff
path: root/backend/templates/search/search.html
blob: 092f2c9f56f0d187bc65a52aba64ca52ef13650c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<h1>Search</h1>

<form method="get" action=".">
    <label for='id_q'>{{ form.q.label }}</label>
    {{ form.q }}
    <input type="submit" value="Search">
</form>

{% if page.object_list %}
    <ol>
        {% for result in page.object_list %}
            <li>
               {{ result.object.settings_text }}<a href=''>{{ result.object.content_type }}</a>
            </li>
        {% endfor %}
    </ol>
{% else %}
    <p>No results found.</p>
{% endif %}