switch from ownCloud to minIO
buttons in table are buttons and do edit and delete properly
This commit is contained in:
@@ -83,6 +83,51 @@
|
||||
<script src="{% static 'js/crud-list.js' %}"></script>
|
||||
{% endblock crud_js %}
|
||||
|
||||
|
||||
<div id="deleteModal" class="modal" style="display: none;">
|
||||
<div class="modal-content">
|
||||
<h3>Confirm Delete</h3>
|
||||
<p>Are you sure you want to delete this item?</p>
|
||||
<div class="modal-buttons">
|
||||
<button class="btn btn-secondary" id="cancelDelete">Cancel</button>
|
||||
<button class="btn btn-danger" id="confirmDelete">Delete</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% block modal_styles %}
|
||||
<style>
|
||||
.modal {
|
||||
display: none;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
.modal-content {
|
||||
position: relative;
|
||||
background-color: #EDDECB;
|
||||
margin: 15% auto;
|
||||
padding: 20px;
|
||||
border: 1px solid #a57d52;
|
||||
border-radius: 8px;
|
||||
width: 80%;
|
||||
max-width: 500px;
|
||||
}
|
||||
|
||||
.modal-buttons {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: 10px;
|
||||
margin-top: 20px;
|
||||
}
|
||||
</style>
|
||||
{% endblock modal_styles %}
|
||||
|
||||
{% endblock content %}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user