Added google link maps

This commit is contained in:
Frank Schubert
2021-09-16 20:28:56 +02:00
parent 8f85d4723f
commit 5092969606

View File

@@ -149,8 +149,17 @@
<tr id="termination-<?=$term->id?>" class="table-bg-<?=($bcount % 2 == 0) ? "even" : "odd"?>">
<td>
<div>
<strong style="white-space: nowrap;"><a href="<?=self::getUrl("Pipework", "Index", ["filter" => ["code" => $term->building->code]])?>" target="_blank"><?=$term->building->street?></a></strong><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->building->workflowitems['anschlusspunkt_gps']->value->value_string): ?>
<a href="https://www.google.com/maps/search/?api=1&query=<?=join(",", $term->building->workflowitems['anschlusspunkt_gps']->value->gps)?>" 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 />
</div>
<div class="mt-3">
<?=$term->contact?><br />