summaryrefslogtreecommitdiff
path: root/searx/templates/oscar/categories.html
diff options
context:
space:
mode:
authorThomas Pointhuber <thomas.pointhuber@gmx.at>2014-09-26 22:43:54 +0200
committerThomas Pointhuber <thomas.pointhuber@gmx.at>2014-10-05 14:40:46 +0200
commit25919de6084599c3196622ed1c89648b2c11f78a (patch)
treef524190da5ca2ad78d79fb2b3b9b426be1885ed6 /searx/templates/oscar/categories.html
parent5568fbd89d9c0f8c7f6530c6f0826a35d01c83a8 (diff)
oscar template: make the categories clickable
Diffstat (limited to 'searx/templates/oscar/categories.html')
-rw-r--r--searx/templates/oscar/categories.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/searx/templates/oscar/categories.html b/searx/templates/oscar/categories.html
new file mode 100644
index 000000000..82ddcf686
--- /dev/null
+++ b/searx/templates/oscar/categories.html
@@ -0,0 +1,6 @@
+<div id="categories" class="btn-group btn-toggle" data-toggle="buttons">
+{% for category in categories %}
+ <label class="btn btn-sm {% if category in selected_categories %}btn-primary active{% else %}btn-default{% endif %}" data-btn-class="primary">
+ <input class="hidden" type="checkbox" id="checkbox_{{ category|replace(' ', '_') }}" name="category_{{ category }}" {% if category in selected_categories %}checked="checked"{% endif %} />{{ _(category) }}</label>
+{% endfor %}
+</div>