28 lines
837 B
HTML
28 lines
837 B
HTML
{% import 'macros.html' as macros %}
|
|
{{ macros.header('Search') }}
|
|
|
|
<body>
|
|
<h1>Search Results</h1>
|
|
<table>
|
|
<tr>
|
|
<th>Release group</th>
|
|
<th>Name</th>
|
|
<th>Season</th>
|
|
<th>Episodes</th>
|
|
<th></th>
|
|
</tr>
|
|
{% for item in results %}
|
|
<tr><form action="/batch" method="post">
|
|
<td>{{ item.release_group }}</td>
|
|
<td><input type="text" name="title" value="{{ item.title }}" required /></td>
|
|
<td><input type="number" name="season" {% if item.season %}value="{{ item.season }}"{% endif %} min="1" max="99" required /></td>
|
|
<td>{% if item.episodes %}{{item.episodes}}{% else %}?{% endif %}</td>
|
|
<input type="hidden" name="link" value="{{ item.link }}">
|
|
<td><input type="submit" value="Download" class="btn-link" /></td>
|
|
</form></tr>
|
|
{% endfor %}
|
|
</table>
|
|
<a href="/">Home</a>
|
|
</body>
|
|
|
|
{{ macros.footer() }}
|