2023-04-04 21:23:00 +02:00
|
|
|
{% from 'beetroot/icons.html' import icon_big %}
|
2023-03-19 10:58:17 +01:00
|
|
|
{%- set category_icons = {
|
|
|
|
'general': 'search-outline',
|
|
|
|
'images': 'image-outline',
|
|
|
|
'videos': 'play-outline',
|
|
|
|
'news': 'newspaper-outline',
|
|
|
|
'map': 'location-outline',
|
|
|
|
'music': 'musical-notes-outline',
|
|
|
|
'it': 'layers-outline',
|
|
|
|
'science': 'school-outline',
|
|
|
|
'files': 'file-tray-full-outline',
|
|
|
|
'social media': 'people-outline',
|
|
|
|
} -%}
|
|
|
|
<div id="categories" class="search_categories">{{- '' -}}
|
|
|
|
<div id="categories_container">
|
2023-06-15 23:08:02 +02:00
|
|
|
{%- for category in categories -%}
|
2023-03-19 10:58:17 +01:00
|
|
|
<div class="category"><input type="checkbox" id="checkbox_{{ category|replace(' ', '_') }}" name="category_{{ category }}"{% if category in selected_categories %} checked="checked"{% endif %}/>
|
|
|
|
<label for="checkbox_{{ category|replace(' ', '_') }}" class="tooltips">
|
|
|
|
{{- icon_big(category_icons[category]) if category in category_icons else icon_big('globe-outline') -}}
|
|
|
|
<div class="category_name">{{- _(category) -}}</div>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
{%- endfor -%}
|
|
|
|
{%- if display_tooltip %}<div class="help">{{ _('Click on the magnifier to perform search') }}</div>{% endif -%}
|
|
|
|
</div>{{- '' -}}
|
|
|
|
</div>
|