loko/streetup/documents/templates/documents/documentfolder_confirm_delete.html
2026-07-22 14:48:40 +02:00

26 lines
No EOL
1.1 KiB
HTML

{% extends "documents/base_documents.html" %}
{% load i18n %}
{% block content %}
<div class="container-fluid py-4">
<h2 class="mb-3">{% blocktranslate %}Delete folder “{{ folder.name }}”{% endblocktranslate %}</h2>
<p class="lead">{% translate "This action will remove the folder from the library. Documents linked to it will remain accessible but will no longer reference this folder." %}</p>
<form method="post">
{% csrf_token %}
{% if next %}
<input type="hidden" name="next" value="{{ next }}">
{% endif %}
<div class="d-flex gap-2">
<button type="submit" class="btn btn-danger">
<i class="bi bi-trash"></i> {% translate "Delete" %}
</button>
{% if next %}
<a class="btn btn-outline-secondary" href="{{ next }}">{% translate "Cancel" %}</a>
{% else %}
<a class="btn btn-outline-secondary" href="{% url 'documents:list' %}?folder={{ folder.slug }}">{% translate "Cancel" %}</a>
{% endif %}
</div>
</form>
</div>
{% endblock content %}