2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-04-29 14:24:25 +00:00

Adds 'multi delete' for attachment tables (#3111)

* Adds 'multi delete' for attachment tables

- Should roll out seamlessly to any attachment table

* JS linting
This commit is contained in:
Oliver
2022-06-01 17:23:36 +10:00
committed by GitHub
parent e174096173
commit 66a6915213
3 changed files with 98 additions and 7 deletions
+12
View File
@@ -2,6 +2,18 @@
<div id='attachment-buttons'>
<div class='btn-group' role='group'>
<div class='btn-group'>
<button class='btn btn-primary dropdown-toggle' type='buton' data-bs-toggle='dropdown' title='{% trans "Actions" %}'>
<span class='fas fa-tools'></span> <span class='caret'></span>
</button>
<ul class='dropdown-menu'>
<li>
<a class='dropdown-item' href='#' id='multi-attachment-delete' title='{% trans "Delete selected attachments" %}'>
<span class='fas fa-trash-alt icon-red'></span> {% trans "Delete Attachments" %}
</a>
</li>
</ul>
</div>
{% include "filter_list.html" with id="attachments" %}
</div>
</div>