Add a search form to the index
This commit is contained in:
parent
4f92cbf450
commit
c12f637d17
3 changed files with 19 additions and 1 deletions
|
@ -7,6 +7,15 @@
|
|||
{% endblock header %}
|
||||
|
||||
{% block main %}
|
||||
|
||||
<form id="search" method="GET" action="{% url 'search' %}">
|
||||
<label for="query">Search</label>
|
||||
<input type="search" id="query" name="query" list="slugs">
|
||||
<datalist id="slugs">
|
||||
{% for think in thinks %}<option value="{{think.slug}}"/>{% endfor %}
|
||||
</datalist>
|
||||
</form>
|
||||
|
||||
<section id="templates">
|
||||
<h2>Templates</h2>
|
||||
<ul id="templates-list">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue