Fixed recursive delete checkbox on admin pages.

This commit is contained in:
Jan Böhmer 2019-09-02 22:37:27 +02:00
parent c4fe9d9fb5
commit fe9526e0eb

View file

@ -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>