YGGtracker/templates/default/search/module.html.twig

69 lines
3.9 KiB
Twig
Raw Normal View History

2023-10-13 00:08:45 +03:00
<form class="margin-t-16-px" name="search" method="get" action="{{ path('torrent_search') }}">
2023-10-09 23:41:29 +03:00
<input class="min-width-200-px" type="text" name="query" value="{{ query }}" placeholder="{{ 'Keyword, file, hash...' | trans }}" />
2023-10-14 18:57:43 +03:00
<input {% if query %}class="button-green"{% endif %} type="submit" value="{{ 'Search' | trans }}" />
2023-11-13 09:35:04 +02:00
{% if filter %}
<input type="hidden" name="filter" value="true" />
<div class="text-left">
2023-11-13 09:39:10 +02:00
<div class="margin-t-16-px margin-b-4-px padding-x-4-px text-right">
{{ 'Locales' | trans }}
2023-11-13 09:35:04 +02:00
</div>
<div class="padding-t-16-px padding-b-8-px padding-x-24-px border-top-default">
{% for locale in locales | sort %}
2023-11-13 11:23:37 +02:00
{#{% if locale.total %}#}
<div class="margin-t-4-px margin-b-8-px margin-r-8-px display-inline-block min-width-120-px">
{% if locale.checked %}
<input name="locales[]" id="{{ locale.value }}" type="checkbox" value="{{ locale.value }}" checked="checked" />
{% else %}
<input name="locales[]" id="{{ locale.value }}" type="checkbox" value="{{ locale.value }}" />
{% endif %}
<label class="margin-x-4-px" for="{{ locale.value }}">
{{ locale.value | locale_name(locale.value) | u.title }}
<span class="text-color-night">
({{ locale.total }})
</span>
</label>
</div>
{#{% endif %}#}
2023-11-13 09:35:04 +02:00
{% endfor %}
</div>
2023-11-13 09:39:10 +02:00
<div class="margin-b-4-px padding-x-4-px text-right">
{{ 'Categories' | trans }}
2023-11-13 09:35:04 +02:00
</div>
<div class="padding-t-16-px padding-b-8-px padding-x-24-px border-top-default">
{% for category in categories | sort %}
2023-11-13 11:23:37 +02:00
{#{% if category.total %}#}
<div class="margin-t-4-px margin-b-8-px margin-r-8-px display-inline-block min-width-120-px">
{% if category.checked %}
<input name="categories[]" id="{{ category.value }}" type="checkbox" value="{{ category.value }}" checked="checked" />
{% else %}
<input name="categories[]" id="{{ category.value }}" type="checkbox" value="{{ category.value }}" />
{% endif %}
<label class="margin-x-4-px" for="{{ category.value }}">
{{ category.value | trans_category | u.title }}
<span class="text-color-night">
({{ category.total }})
</span>
</label>
</div>
{#{% endif %}#}
2023-11-13 09:35:04 +02:00
{% endfor %}
</div>
2023-11-13 09:39:10 +02:00
<div class="margin-b-4-px padding-x-4-px text-right">
{{ 'other' | trans | u.title }}
2023-11-13 09:35:04 +02:00
</div>
<div class="padding-t-16-px padding-b-8-px padding-x-24-px border-top-default">
2023-11-13 11:23:37 +02:00
{% if sensitive.checked %}
2023-11-13 09:35:04 +02:00
<input name="sensitive" id="sensitive" type="checkbox" value="true" checked="checked" />
{% else %}
<input name="sensitive" id="sensitive" type="checkbox" value="true" />
{% endif %}
<label class="margin-x-4-px" for="sensitive">
{{ 'Sensitive' | trans }}
2023-11-13 11:23:37 +02:00
<span class="text-color-night">
({{ sensitive.total }})
</span>
2023-11-13 09:35:04 +02:00
</label>
</div>
</div>
{% endif %}
2023-10-02 16:13:55 +03:00
</form>