YGGtracker/templates/default/search/module.html.twig
2023-10-10 14:43:44 +03:00

16 lines
849 B
Twig

<form class="margin-t-16-px" name="search" method="get" action="{{ path('search_index') }}">
<input class="min-width-200-px" type="text" name="query" value="{{ query }}" placeholder="{{ 'Keyword, file, hash...' | trans }}" />
<select name="type">
{% if type == 'torrent' %}
<option value="torrent" selected="selected">{{ 'Torrents' | trans }}</option>
{% else %}
<option value="torrent">{{ 'Torrents' | trans }}</option>
{% endif %}
{% if type == 'article' %}
<option value="article" selected="selected">{{ 'Articles' | trans }}</option>
{% else %}
<option value="article">{{ 'Articles' | trans }}</option>
{% endif %}
</select>
<input {% if query %}class="button-green"{% endif %} type="submit" value="{{ 'Search' | trans }}" />
</form>