mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-05-15 07:51:31 +00:00
Rename form column Twig globals to shorter names: label_col, input_col, offset_col
Co-authored-by: jbtronics <5410681+jbtronics@users.noreply.github.com>
This commit is contained in:
parent
2769772877
commit
b508d57094
28 changed files with 68 additions and 68 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-sm {{ form_offset_col_class }} ps-2">
|
||||
<div class="col-sm {{ offset_col }} ps-2">
|
||||
{% set delete_disabled = (not is_granted("delete", entity)) or (entity.group is defined and entity.id == 1) or entity == app.user %}
|
||||
<div class="btn-group">
|
||||
<button class="btn btn-danger" {% if delete_disabled %}disabled{% endif %}>{% trans %}entity.delete{% endtrans %}</button>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue