Added alert in Preorder/Form when workorder exists

This commit is contained in:
Frank Schubert
2024-11-14 16:41:14 +01:00
parent 3cb310face
commit c5752de7b7

View File

@@ -156,6 +156,11 @@
<option value="<?=$preorder->adb_wohneinheit_id?>" selected="selected"><?=$preorder->adb_hausnummer->strasse->name?> <?=$preorder->adb_hausnummer->hausnummer?> <?=$preorder->adb_wohneinheit?><?=($preorder->adb_wohneinheit->extref) ? " (".$preorder->adb_wohneinheit->extref.")" : ""?></option>
<?php endif; ?>
</select>
<?php if($preorder && $preorder->adb_wohneinheit_id && is_array($preorder->adb_wohneinheit->rimo_workorders) && count($preorder->adb_wohneinheit->rimo_workorders)): ?>
<div class="alert alert-warning mt-1">
Adressänderung nicht möglich, da bereits eine Workorder erstellt wurde.
</div>
<?php endif;?>
</div>
</div>