1 {% extends "base.html" %}
3 {% load catalogue_tags %}
5 {% block title %}Search{% endblock %}
7 {% block metadescription %}{% endblock %}
9 {% block bodyid %}newsearch{% endblock %}
13 <form action="{% url newsearch %}" method="get" accept-charset="utf-8" id="search-form-x">
15 <input type="text" name="q" value="{{request.GET.q}}" style="width:250px; font-size: 1.2em;">
16 <input type="submit" value="{% trans "Search" %}" />
18 <input type="checkbox" value="true" name="fuzzy" {% if fuzzy %}checked{% endif %}/> fuzzy.
22 Czy miałeś na mysli <a href="?q={{did_you_mean|urlencode}}">{{did_you_mean}}</a>?
28 {% for result in results %}
30 <p><a href="{{result.book.get_absolute_url}}">{{result.book.pretty_title}}</a> (id: {{result.book_id}}, score: {{result.score}})</p>
32 {% for hit in result.hits %}
34 {% for snip in hit.3.snippets %}
40 {% for part in result.parts %}
42 <li>W {{part.header}} nr {{part.position}}</li>
44 {% if part.fragment %}
46 <div style="">Tagi/Motywy: {% for tag in part.fragment.tags %}{{tag.name}} {% endfor %}</div>
47 {{part.fragment.short_html|safe}}