mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-04 02:05:16 +02:00
Improved mobile view of the admin pages.
This commit is contained in:
parent
1b2d65b9e0
commit
da88c23268
3 changed files with 7 additions and 7 deletions
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue