Skip to content

Commit 815b2b6

Browse files
committed
Fixed margin of delete button on admin forms
1 parent 3aa7480 commit 815b2b6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

templates/admin/_delete_form.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ entity.id) }}">
66
<div class="form-group">
77
<div class=""></div>
8-
<div class="col-sm {{ offset_col }} ps-2">
8+
<div class="{{ input_col }} {{ offset_col }} ps-1">
99
{% set delete_disabled = (not is_granted("delete", entity)) or (entity.group is defined and entity.id == 1) or entity == app.user %}
1010
<div class="btn-group">
1111
<button class="btn btn-danger" {% if delete_disabled %}disabled{% endif %}>{% trans %}entity.delete{% endtrans %}</button>
@@ -20,7 +20,7 @@
2020
</div>
2121
</div>
2222
{% if entity.parent is defined %}
23-
<div class="ms-2 custom-control custom-checkbox custom-control-inline">
23+
<div class="ms-1 custom-control custom-checkbox custom-control-inline">
2424
<input type="checkbox" class="form-check-input" id="recursive" name="delete_recursive">
2525
<label class="form-check-label" for="recursive">{% trans %}entity.delete.recursive{% endtrans %}</label>
2626
</div>

0 commit comments

Comments
 (0)