mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-19 21:59:00 +01:00
Fixed recursive delete checkbox on admin pages.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<div class=""></div>
|
||||
<div class="col offset-3 pl-2">
|
||||
<button class="btn btn-danger" {% if not is_granted("delete", entity) %}disabled{% endif %}">{% trans %}entity.delete{% endtrans %}</button>
|
||||
{% if entity is instanceof('\App\Entity\StructuralDBElement') %}
|
||||
{% if entity.parent is defined %}
|
||||
<div class="ml-2 custom-control custom-checkbox custom-control-inline">
|
||||
<input type="checkbox" class="custom-control-input" id="recursive" name="delete_recursive">
|
||||
<label class="custom-control-label" for="recursive">{% trans %}entity.delete.recursive{% endtrans %}</label>
|
||||
|
||||
Reference in New Issue
Block a user