mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
oscar template: make the categories clickable
This commit is contained in:
parent
5568fbd89d
commit
25919de608
4 changed files with 46 additions and 11 deletions
6
searx/templates/oscar/categories.html
Normal file
6
searx/templates/oscar/categories.html
Normal file
|
|
@ -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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue