mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-20 18:09:30 +00:00
Added possibillity to delete attachments in admin page.
This commit is contained in:
parent
72cd9a3722
commit
7c43feefbe
10 changed files with 133 additions and 19 deletions
12
templates/AdminPages/_delete_form.html.twig
Normal file
12
templates/AdminPages/_delete_form.html.twig
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<form method="post" class="" action="{{ entity|entityURL('delete') }}"
|
||||
data-delete-form data-title="{% trans with {'%name%': entity.name }%}entity.delete.confirm_title{% endtrans %}"
|
||||
data-message="{% trans %}entity.delete{% endtrans %}">
|
||||
<input type="hidden" name="_method" value="DELETE">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ entity.id) }}">
|
||||
<div class="form-group">
|
||||
<div class=""></div>
|
||||
<div class="col-3 offset-2 pl-1">
|
||||
<button class="btn btn-danger">{% trans %}entity.delete{% endtrans %}</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
Loading…
Add table
Add a link
Reference in a new issue