changes linework to openable list
This commit is contained in:
@@ -137,6 +137,17 @@
|
||||
<?php if(!count($terminations)) continue; ?>
|
||||
<h4><?=$networkname?></h4>
|
||||
<table class="table workflow-table mb-2">
|
||||
<tr>
|
||||
<th>Anschluss</th>
|
||||
<th>Baustatus</th>
|
||||
<th>Patchstatus</th>
|
||||
<th>BB hergestellt</th>
|
||||
<th>BEP montiert</th>
|
||||
<th>K-Kabel eingeblasen</th>
|
||||
<th>Spleiß Netz</th>
|
||||
<th>Spleiß Kunde</th>
|
||||
<th>Fertig</th>
|
||||
</tr>
|
||||
<?php $bcount = 0; foreach($terminations as $term): ?>
|
||||
<?php
|
||||
$rowspan = 1;
|
||||
@@ -146,7 +157,48 @@
|
||||
}
|
||||
}
|
||||
?>
|
||||
<tr id="termination-<?=$term->id?>" class="table-bg-<?=($bcount % 2 == 0) ? "even" : "odd"?>">
|
||||
<?php if($bcount > 0): ?>
|
||||
<tr id="termination-<?=$term->id?>-top-header" class="hidden">
|
||||
<th>Anschluss</th>
|
||||
<th>Baustatus</th>
|
||||
<th>Patchstatus</th>
|
||||
<th>BB hergestellt</th>
|
||||
<th>BEP montiert</th>
|
||||
<th>K-Kabel eingeblasen</th>
|
||||
<th>Spleiß Netz</th>
|
||||
<th>Spleiß Kunde</th>
|
||||
<th>Fertig</th>
|
||||
</tr>
|
||||
<?php endif ?>
|
||||
<tr id="termination-<?=$term->id?>-summary" class="pointer table-bg-<?=($bcount % 2 == 0) ? "even" : "odd"?>">
|
||||
<td onclick="togglePipework(<?=$term->id?>)">
|
||||
<div class="name">
|
||||
<?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 />
|
||||
<span class="text-monospace">[<?=__($term->building->status->name."-b")?>]</span>
|
||||
<br />
|
||||
<a href="<?=self::getUrl("Pipework", "Index", ["filter" => ["code" => $term->building->code]])?>" target="_blank"><span class="text-success"><?=$term->code?></span></a>
|
||||
</div>
|
||||
<div class="up-arrow hidden">
|
||||
<i class="fas fa-angle-up"></i>
|
||||
</div>
|
||||
</td>
|
||||
<td onclick="togglePipework(<?=$term->id?>)"><?=(empty($term->building->getWorkflowvalue('pipework_finished') && empty($term->building->getWorkflowvalue('ist_pipework_finished')))) ? "<i class='fas fa-times text-danger'></i>" : "<i class='fas fa-check text-success'></i>"?></td>
|
||||
<td onclick="togglePipework(<?=$term->id?>)"><?=($term->isWorkflowPatchingDone()) ? "<i class='fas fa-check text-success'></i>" : "<i class='fas fa-times text-danger'></i>" ?></td>
|
||||
<td onclick="togglePipework(<?=$term->id?>)"><?=($term->getWorkflowvalue('backbone_finished') != "1") ? "<i class='fas fa-times text-danger'></i>" : "<i class='fas fa-check text-success'></i>" ?></td>
|
||||
<td onclick="togglePipework(<?=$term->id?>)"><?=($term->getWorkflowvalue('bep_deployed') != "1") ? "<i class='fas fa-times text-danger'></i>" : "<i class='fas fa-check text-success'></i>" ?></td>
|
||||
<td onclick="togglePipework(<?=$term->id?>)"><?=($term->getWorkflowvalue('customer_cable_injected') != "1") ? "<i class='fas fa-times text-danger'></i>" : "<i class='fas fa-check text-success'></i>" ?></td>
|
||||
<td onclick="togglePipework(<?=$term->id?>)"><?=($term->getWorkflowvalue('spliced_network') != "1") ? "<i class='fas fa-times text-danger'></i>" : "<i class='fas fa-check text-success'></i>" ?></td>
|
||||
<td onclick="togglePipework(<?=$term->id?>)"><?=($term->getWorkflowvalue('spliced_customer') != "1") ? "<i class='fas fa-times text-danger'></i>" : "<i class='fas fa-check text-success'></i>" ?></td>
|
||||
<td onclick="togglePipework(<?=$term->id?>)"><?=($term->getWorkflowvalue('customer_passive_finished') != "1") ? "<i class='fas fa-times text-danger'></i>" : "<i class='fas fa-check text-success'></i>" ?></td>
|
||||
</tr>
|
||||
<tr id="termination-<?=$term->id?>" class="table-bg-<?=($bcount % 2 == 0) ? "even" : "odd"?> hidden">
|
||||
<td>
|
||||
<div>
|
||||
<div>
|
||||
@@ -196,7 +248,7 @@
|
||||
Nicht fertiggestellt.
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<td colspan="8">
|
||||
<table class="table workflow-table table-bordered table-sm table-bg-<?=($bcount % 2 == 0) ? "odd" : "even"?>">
|
||||
<tr>
|
||||
<th>AP-Typ</th>
|
||||
@@ -321,6 +373,19 @@
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
<?php if($bcount < count($terminations) - 1): ?>
|
||||
<tr id="termination-<?=$term->id?>-bottom-header" class="hidden">
|
||||
<th>Anschluss</th>
|
||||
<th>Baustatus</th>
|
||||
<th>Patchstatus</th>
|
||||
<th>BB hergestellt</th>
|
||||
<th>BEP montiert</th>
|
||||
<th>K-Kabel eingeblasen</th>
|
||||
<th>Spleiß Netz</th>
|
||||
<th>Spleiß Kunde</th>
|
||||
<th>Fertig</th>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php $bcount++; endforeach; ?>
|
||||
</table>
|
||||
<?php endforeach; ?>
|
||||
@@ -482,6 +547,14 @@ $(document).ready(function() {
|
||||
});
|
||||
|
||||
|
||||
function togglePipework(id) {
|
||||
$("#termination-" + id).toggle(200);
|
||||
$("#termination-" + id + "-summary td .name").toggle();
|
||||
$("#termination-" + id + "-summary td .up-arrow").toggle();
|
||||
$("#termination-" + id + "-bottom-header").toggle();
|
||||
$("#termination-" + id + "-top-header").toggle();
|
||||
}
|
||||
|
||||
function validateWorkflowItem(id) {
|
||||
var required_fields = {
|
||||
pop_id: "int",
|
||||
|
||||
Reference in New Issue
Block a user