Merge branch 'fronkdev' into 'master'

Create Workorder button in Preorder/Index now always visible for admins

See merge request fronk/thetool!751
This commit is contained in:
Frank Schubert
2024-11-19 14:29:34 +00:00
8 changed files with 185 additions and 10 deletions
@@ -430,7 +430,7 @@
</table>
<?php endforeach; ?>
<?php elseif($preorder->adb_wohneinheit_id && $preorder->type == "legacytransfer"): ?>
<?php elseif($preorder->adb_wohneinheit_id && $me->is("Admin")): ?>
<button type="button" class="btn btn-outline-primary create-workorder" onclick="createWorkorder(<?=$preorder->id?>)"><i class="fas fa-fw fa-plus"></i> <i class="fas fa-r"></i><i class="fas fa-fw fa-gears"></i> Wokorder erstellen</button>
<?php endif; ?>