]> gitweb.fperrin.net Git - djsite.git/blob - quotes/templates/quotes/search.html
Add a search page
[djsite.git] / quotes / templates / quotes / search.html
1 {% extends 'quotes/base.html' %}
2
3 {% block title %}Searching for quotes{% endblock %}
4
5 {% block body %}
6
7 {% for quote in quotes %}
8   {% include "quotes/display.html" with quote=quote %}
9 {% endfor %}
10
11 <hr />
12
13 <form action="{% url 'quotes:search' %}" method="post">
14   {% csrf_token %}
15   Search: <input type="text" name="q" />
16   <input type="submit" value="Vote" />
17 </form>
18
19 {% endblock %}