summaryrefslogtreecommitdiff
path: root/jthanio
diff options
context:
space:
mode:
authorJonathan DeMasi <jonathan.demasi@colorado.edu>2020-03-04 18:00:08 -0700
committerJonathan DeMasi <jonathan.demasi@colorado.edu>2020-03-04 18:00:08 -0700
commit3066d9902231d532a8c17cfcd2eff3b0d6760794 (patch)
tree29a4970c009aaf4d25e4388611c39e82b44efa8d /jthanio
parent8d6210e8bc1ded66cda70e4c885bf2686a07871b (diff)
downloadjthanio-3066d9902231d532a8c17cfcd2eff3b0d6760794.tar
jthanio-3066d9902231d532a8c17cfcd2eff3b0d6760794.tar.gz
jthanio-3066d9902231d532a8c17cfcd2eff3b0d6760794.tar.bz2
jthanio-3066d9902231d532a8c17cfcd2eff3b0d6760794.tar.lz
jthanio-3066d9902231d532a8c17cfcd2eff3b0d6760794.tar.xz
jthanio-3066d9902231d532a8c17cfcd2eff3b0d6760794.tar.zst
jthanio-3066d9902231d532a8c17cfcd2eff3b0d6760794.zip
search!
Diffstat (limited to 'jthanio')
-rw-r--r--jthanio/templates/search.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/jthanio/templates/search.html b/jthanio/templates/search.html
index 8b66d9a..746f191 100644
--- a/jthanio/templates/search.html
+++ b/jthanio/templates/search.html
@@ -3,9 +3,11 @@
<h5 class="card-header">Search</h5>
<div class="card-body">
<div class="input-group">
- <input type="text" class="form-control" placeholder="Search for...">
+ <form action="{% url 'search' %}" method="get">
+ <input type="text" class="form-control" placeholder="Search for..." name="query"{% if search_query %} value="{{ search_query }}"{% endif %}>
<span class="input-group-btn">
- <button class="btn btn-secondary" type="button">Search</button>
+ <input type="submit" value="Search" class="btn btn-secondary">
+ </form>
</span>
</div>
</div>