Added building status to linework/index
This commit is contained in:
@@ -149,20 +149,26 @@
|
||||
<tr id="termination-<?=$term->id?>" class="table-bg-<?=($bcount % 2 == 0) ? "even" : "odd"?>">
|
||||
<td>
|
||||
<div>
|
||||
<?php if($term->building->gps_lat && $term->building->gps_long): ?>
|
||||
<a href="https://maps.google.com/maps?t=k&q=loc:<?=$term->building->gps_lat?>+<?=$term->building->gps_long?>" target="_blank">
|
||||
<i class='fas fa-globe-europe'></i> <strong style="white-space: nowrap;"><?=$term->building->street?></strong>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<strong style="white-space: nowrap;"><?=$term->building->street?></strong>
|
||||
<?php endif; ?>
|
||||
<br />
|
||||
<a href="<?=self::getUrl("Pipework", "Index", ["filter" => ["code" => $term->building->code]])?>" target="_blank"><span class="text-success"><?=$term->code?></span></a>
|
||||
<br />
|
||||
<?php if($term->name): ?>
|
||||
<?=$term->name?><br />
|
||||
<?php endif; ?>
|
||||
<div>
|
||||
<?php if($term->building->gps_lat && $term->building->gps_long): ?>
|
||||
<a href="https://maps.google.com/maps?t=k&q=loc:<?=$term->building->gps_lat?>+<?=$term->building->gps_long?>" target="_blank">
|
||||
<i class='fas fa-globe-europe'></i> <strong style="white-space: nowrap;"><?=$term->building->street?></strong>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<strong style="white-space: nowrap;"><?=$term->building->street?></strong>
|
||||
<?php endif; ?>
|
||||
<br />
|
||||
Status: <?=__($term->building->status->name."-b")?>
|
||||
</div>
|
||||
<div class="mt-2">
|
||||
<a href="<?=self::getUrl("Pipework", "Index", ["filter" => ["code" => $term->building->code]])?>" target="_blank"><span class="text-success"><?=$term->code?></span></a>
|
||||
<br />
|
||||
<?php if($term->name): ?>
|
||||
<?=$term->name?><br />
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mt-3">
|
||||
<?=$term->contact?><br />
|
||||
<strong><?=$term->phone?></strong><br />
|
||||
|
||||
Reference in New Issue
Block a user