Improved mobile view of the admin pages.

This commit is contained in:
Jan Böhmer 2020-01-04 22:20:17 +01:00
parent 1b2d65b9e0
commit da88c23268
3 changed files with 7 additions and 7 deletions

View file

@ -5,7 +5,7 @@
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ entity.id) }}">
<div class="form-group">
<div class=""></div>
<div class="col offset-3 pl-2">
<div class="col-sm offset-sm-3 pl-2">
{% set delete_disabled = (not is_granted("delete", entity)) or (entity.group is defined and entity.id == 1) %}
<button class="btn btn-danger" {% if delete_disabled %}disabled{% endif %}>{% trans %}entity.delete{% endtrans %}</button>
{% if entity.parent is defined %}