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 %}