film2.0/templates/directory.html

40 lines
981 B
HTML

{% extends 'base.html' %}
{% block title %}{{ path }}{% endblock %}
{% block body %}
<form action="/search" method="GET">
<input type="text" name="q" />
<input type="submit" value="Buscar" />
</form>
<br />
{% if path != "/" %}
<a href=".">&lt;--</a>
<br /><br />
{% endif %}
<form action="/mass_download" method="GET" id="mass_form">
<input type="submit" value="Download" />
<input type="hidden" name="base" value="{{ path }}" >
</form>
{% for dir in dirs %}
<input type="checkbox" name="file" value="{{ dir }}" form="mass_form"/>
<a href="{{ path_join(path, dir) }}">{{ dir }}</a><br />
{% endfor %}
<br /><br />
{% if files|length > 0 %}
<h3>Archivos</h3>
{% endif %}
{% for file in files %}
<input type="checkbox" name="file" value="{{ file }}" form="mass_form"/>
<a href="{{ path_join(path, file) }}">{{ file }}</a><br />
{% endfor %}
{% endblock %}