Showing all Workorders in ADBWohneinheit/Form
This commit is contained in:
@@ -123,50 +123,56 @@
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
<?php if((is_object($unit->rimo_workorder) && $unit->rimo_workorder->id) || (is_array($unit->ftu_data) && $unit->ftu_data->id)): ?>
|
||||
<div class="row mt-2">
|
||||
<div class="col">
|
||||
<div class="card">
|
||||
|
||||
<div class="card-body">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<?php if ((is_array($unit->rimo_workorders) && count($unit->rimo_workorders)) || (is_array($unit->ftu_data) && $unit->ftu_data->id)): ?>
|
||||
<div class="row mt-2">
|
||||
<div class="col">
|
||||
<div class="card">
|
||||
|
||||
<table class="table table-sm table-striped">
|
||||
<tr>
|
||||
<td colspan="2"><h4>FTU</h4></td>
|
||||
</tr><tr>
|
||||
<th>FTU Name:</th>
|
||||
<td class="text-monospace"><?=$unit->ftu_data["name"]?>
|
||||
</tr><tr>
|
||||
<th>FTU External ID</th>
|
||||
<td class="text-monospace"><?=$unit->ftu_data["id"]?>
|
||||
</tr><tr>
|
||||
<td colspan="2"><h4>Workorder</h4></td>
|
||||
</tr><tr>
|
||||
<th>Name</th>
|
||||
<td class="text-monospace"><?=$unit->rimo_workorder->rimo_name?></td>
|
||||
</tr><tr>
|
||||
<th>External ID</th>
|
||||
<td class="text-monospace"><?=$unit->rimo_workorder->rimo_id?></td>
|
||||
</tr><tr>
|
||||
<th>Status</th>
|
||||
<td><?=$unit->rimo_workorder->rimo_status?></td>
|
||||
</tr><tr>
|
||||
<th>Erstellt</th>
|
||||
<td class="text-monospace"><?=(is_object($unit->rimo_workorder)) ? date("d.m.Y H:i:s", $unit->rimo_workorder->create) : ""?></td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="card-body">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
|
||||
<table class="table table-sm table-striped">
|
||||
<tr>
|
||||
<td colspan="2"><h4>FTU</h4></td>
|
||||
</tr><tr>
|
||||
<th>FTU Name:</th>
|
||||
<td class="text-monospace"><?= $unit->ftu_data["name"] ?>
|
||||
</tr><tr>
|
||||
<th>FTU External ID</th>
|
||||
<td class="text-monospace"><?= $unit->ftu_data["id"] ?>
|
||||
</tr>
|
||||
<?php if(is_array($unit->rimo_workorders) && count($unit->rimo_workorders)): ?>
|
||||
<tr>
|
||||
<td colspan="2"><h4>Workorder</h4></td>
|
||||
</tr>
|
||||
<?php foreach ($unit->rimo_workorders as $wo): ?>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<td class="text-monospace"><?= $wo->rimo_name ?></td>
|
||||
</tr><tr>
|
||||
<th>External ID</th>
|
||||
<td class="text-monospace"><?= $wo->rimo_id ?></td>
|
||||
</tr><tr>
|
||||
<th>Status</th>
|
||||
<td><?= $wo->rimo_status ?></td>
|
||||
</tr><tr>
|
||||
<th>Erstellt</th>
|
||||
<td class="text-monospace"><?= date("d.m.Y H:i:s", $wo->create)?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user