new directory confirm deletion

should make sure that directories are not deleted accidentally
This commit is contained in:
Xevion
2020-11-03 16:43:19 -06:00
parent 0fa6dbc1f5
commit 284f3a6519
4 changed files with 70 additions and 4 deletions

View File

@@ -0,0 +1,38 @@
{% extends 'base.html' %}
{% block head %}
{{ block.super }}
<style>
.card {
top: 50%;
}
.card-content {
padding: 1.25rem;
}
</style>
{% endblock head %}
{% block content %}
<div class="card">
<header class="card-header">
<p class="card-header-title">
Confirm Deletion
</p>
<a href="#" class="card-header-icon" aria-label="more options">
<span class="icon">
<i class="fas fa-angle-down" aria-hidden="true"></i>
</span>
</a>
</header>
<div class="card-content">
<div class="content">
<p>
Are you sure you want to remove this directory from the file server?
</p>
</div>
</div>
<footer class="card-footer">
<a href="{% url 'index' %}" class="card-footer-item">Cancel</a>
<a href="{% url 'confirm_delete' directory.id %}" class="card-footer-item">Delete</a>
</footer>
</div>
{% endblock content %}