remove.html 1.43 KB
Newer Older
1 2 3 4 5 6 7 8
{% extends "dashboard/base.html" %}
{% load i18n %}

{% block content %}
  <div class="body-content">
    <div class="panel panel-default">
      <div class="panel-heading">
        <h3 class="no-margin">
9
          <i class="fa fa-times"></i>
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
          {% if is_dir %}
            {% trans "Directory removal confirmation" %}
          {% else %}
            {% trans "File removal confirmation" %}
          {% endif %}
        </h3>
      </div>
      <div class="panel-body">
        {% if not is_dir %}
          <h4>{% trans "File directory" %}: {{ directory }}</h4>
          <h4>{% trans "File name" %}: {{ name }}</h4>

          {% blocktrans with path=path %}
          Are you sure you want to remove the file at <strong>{{ path }}</strong>?
          {% endblocktrans %}
        {% else %}
26
          {% blocktrans with directory=directory %}
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
          Are you sure you want to remove the directory <strong>{{ directory }}</strong>?
          {% endblocktrans %}
        {% endif %}
        <div class="pull-right">
          <form action="" method="POST">
            {% csrf_token %}
            <a href="{% url "dashboard.views.store-list" %}?directory={{ directory }}"
              class="btn btn-default">{% trans "Cancel" %}</a>
            <input type="hidden" name="path" value="{{ path }}"/>
            <button class="btn btn-danger">{% trans "Remove" %}</button>
          </form>
        </div>
      </div>
    </div>
  </div>
{% endblock %}