sortowanie wyników uczniów w mailu dla nauczyciela
[edumed.git] / edumed / templates / search / search.html
1 {% extends "base.html" %}
2
3 {% block body %}
4     <h1>Wyszukiwanie</h1>
5
6     {% if query %}
7         {% for result in page.object_list %}
8             <p>
9                 <a href="{{ result.object.get_absolute_url }}">{{ result.object.title }}</a>
10             </p>
11         {% empty %}
12             <p>Brak wyników.</p>
13         {% endfor %}
14
15         {% if page.has_previous or page.has_next %}
16             <div>
17                 {% if page.has_previous %}<a href="?q={{ query }}&amp;page={{ page.previous_page_number }}">{% endif %}&laquo; Poprzednie{% if page.has_previous %}</a>{% endif %}
18                 |
19                 {% if page.has_next %}<a href="?q={{ query }}&amp;page={{ page.next_page_number }}">{% endif %}Następne &raquo;{% if page.has_next %}</a>{% endif %}
20             </div>
21         {% endif %}
22     {% else %}
23         <p>Brak wyników.</p>
24     {% endif %}
25 {% endblock %}