{% extends "touchtechnology/content/admin/base.html" %} {% load i18n %} {% load common %} {% block body_class %}{{ block.super }} files component{% endblock %} {% block extrahead %}{{ block.super }} {% endblock %} {% block content %}

{% trans "Folders" %}

{% for fullpath, d, listdir in directories %} {% empty %} {% endfor %}
{{ d }} {% if listdir.0 or listdir.1 %} {% trans "Not empty" %} {% else %} {% if writable %} {% trans "Delete" %} {% else %} {% trans "Protected" %} {% endif %} {% endif %}
{% blocktrans with in=path|default_if_none:"file store."|slice:"-1" %}No directories in {{ in }}.{% endblocktrans %}
{% if path %} {% trans "Parent" %} {% endif %} {% if writable %} {% trans "Add folder" %} {% endif %}

{% trans "Files" %}

{% for f in files %} {% empty %} {% endfor %}
{{ f }} {% if writable %} {% trans "Delete" %} {% else %} {% trans "Protected" %} {% endif %}
{% blocktrans with in=path|default_if_none:"file store."|slice:"-1" %}No files in {{ in }}.{% endblocktrans %}
{% if writable %} {% trans "Upload file" %} {% endif %}
{% csrf_token %}
{% for f in folder_form %}{% field f %}{% endfor %}
{% for f in file_form %}{% field f %}{% endfor %}
{% endblock %}