2023-10-10 01:53:11 +00:00
|
|
|
<form class="margin-t-16-px" name="search" method="get" action="{{ path('search_index') }}">
|
2023-10-09 20:41:29 +00:00
|
|
|
<input class="min-width-200-px" type="text" name="query" value="{{ query }}" placeholder="{{ 'Keyword, file, hash...' | trans }}" />
|
2023-10-09 19:59:29 +00:00
|
|
|
<select name="type">
|
2023-10-09 20:41:29 +00:00
|
|
|
{% if type == 'torrent' %}
|
|
|
|
<option value="torrent" selected="selected">{{ 'Torrents' | trans }}</option>
|
|
|
|
{% else %}
|
|
|
|
<option value="torrent">{{ 'Torrents' | trans }}</option>
|
|
|
|
{% endif %}
|
2023-10-10 11:43:44 +00:00
|
|
|
{% if type == 'article' %}
|
|
|
|
<option value="article" selected="selected">{{ 'Articles' | trans }}</option>
|
2023-10-09 20:41:29 +00:00
|
|
|
{% else %}
|
2023-10-10 11:43:44 +00:00
|
|
|
<option value="article">{{ 'Articles' | trans }}</option>
|
2023-10-09 20:41:29 +00:00
|
|
|
{% endif %}
|
2023-10-09 19:59:29 +00:00
|
|
|
</select>
|
2023-10-10 01:07:59 +00:00
|
|
|
<input {% if query %}class="button-green"{% endif %} type="submit" value="{{ 'Search' | trans }}" />
|
2023-10-02 13:13:55 +00:00
|
|
|
</form>
|