diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-03-13 13:30:02 +0100 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-03-13 15:48:10 +0100 |
| commit | ce71f7f286819ee1399fef5f1819f9cc812149a6 (patch) | |
| tree | 958d29dbd53c737182fadb61705daf50b0f6a81e /ishtar_common/templates/ishtar/sheet_town.html | |
| parent | 61cb345d6e39eac393c6fd8e4a8246b5221c69a9 (diff) | |
| download | Ishtar-ce71f7f286819ee1399fef5f1819f9cc812149a6.tar.bz2 Ishtar-ce71f7f286819ee1399fef5f1819f9cc812149a6.zip | |
✨ sheets: refactor document listing - add edit and unlink actions (refs #6221)
Diffstat (limited to 'ishtar_common/templates/ishtar/sheet_town.html')
| -rw-r--r-- | ishtar_common/templates/ishtar/sheet_town.html | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ishtar_common/templates/ishtar/sheet_town.html b/ishtar_common/templates/ishtar/sheet_town.html index e92c03b54..235182993 100644 --- a/ishtar_common/templates/ishtar/sheet_town.html +++ b/ishtar_common/templates/ishtar/sheet_town.html @@ -116,8 +116,9 @@ {% endif %} {% if display_documents and item.documents.count %} - {% trans "Documents" as town_docs %} - {% dynamic_table_document town_docs 'documents' 'towns' item.pk '' output %} + {% with permission_change_item=item|can_edit_item:request %} + {% include "ishtar/blocks/sheet_document_list.html" %} + {% endwith %} {% endif %} {% if perm_files and item.file.count %} @@ -167,4 +168,4 @@ $(document).ready( function () { {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} -{% endblock %}
\ No newline at end of file +{% endblock %} |
