Added Building info to Linework

This commit is contained in:
Frank Schubert
2021-09-16 20:08:24 +02:00
parent 65e7fcca59
commit 16cdf12708
3 changed files with 39 additions and 1 deletions

View File

@@ -170,6 +170,31 @@
</div>
</td>
<td>
<table class="table workflow-table table-bordered table-bg-<?=($bcount % 2 == 0) ? "odd" : "even"?>">
<tr>
<th>AP-Typ</th>
<th>AP-Name</th>
<th>GPS</th>
<th>Rohrverband</th>
<th>Rohrtyp</th>
<th>Rohrfarbe</th>
</tr>
<tr>
<td><?=$term->building->workflowitems['anschlusspunkt_typ']->value->value_string?></td>
<td><?=$term->building->workflowitems['anschlusspunkt_name']->value->value_string?></td>
<td><?=($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-external-link-alt'></i> ".join(", ", $term->building->workflowitems['anschlusspunkt_gps']->value->gps)."</a>" : ""?></td>
<td><?=$term->building->workflowitems['rohrverband_name']->value->value_string?></td>
<td><?=$term->building->workflowitems['rohrtype']->value->value_string?></td>
<td>
<span
style="
background-color: #<?=TT_CABLE_COLORS[$term->building->workflowitems['rohrfarbe']->value->value_string]["hex"]?>;
color: #<?=TT_CABLE_COLORS[$term->building->workflowitems['rohrfarbe']->value->value_string]["hexfg"]?>
border-radius: 3px;
">-------</span> <?=$term->building->workflowitems['rohrfarbe']->value->value_string?>
</td>
</tr>
</table>
<form method="post" name="wf-termination-<?=$term->id?>" id="wf-termination-<?=$term->id?>" action="<?=self::getUrl("Linework","save", ["filter" => $filter, "s" => $pagination['start']])?>" enctype="multipart/form-data" >
<input type="hidden" name="id" value="<?=$term->id?>" />
<table class="table workflow-table">

View File

@@ -3,8 +3,21 @@
class Workflowvalue extends mfBaseModel {
private $item;
private $changer;
public $gps = [];
public $is_changed = false;
protected function afterLoad() {
if(!$this->id) {
return true;
}
if($this->getProperty("item")->type == "gps" && $this->value_string) {
$gps = explode(";", $this->value_string);
$this->gps = $gps;
}
}
public function setValue($value) {
$this->item = $this->getProperty("item");

View File

@@ -42,7 +42,7 @@
}
.table-bg-odd {
background-color: #eceff5;
}
.workflow-table {