Added pipe-/linework enabled date and by

This commit is contained in:
Frank Schubert
2022-02-08 19:58:20 +01:00
parent 6128de17e1
commit de9588b85f
7 changed files with 58 additions and 8 deletions

View File

@@ -156,6 +156,13 @@
</div>
<div class="mt-3">
<label <?=(!$building->pipeworker_id) ? "class='text-danger' title='Keine Tiefbaufirma ausgewählt'" : ""?>><input type="checkbox" form="wf-building-<?=$building->id?>" name="pipework_enabled" value="1" <?=($building->pipework_enabled==1) ? "checked='checked'" : ""?> <?=(!$building->pipeworker_id || !$me->is(["Admin", "pipeplanner"])) ? "disabled='disabled'" : ""?>> Baufreigabe</label>
<?php if($building->pipework_enabled): ?>
<div style="overflow-x:hidden">
<small class="text-info text-mono"
title="Geändert: <?=date("d.m.Y H:i",$building->pipework_enabled_date)?> von <?=$building->pipework_enabler->name?> (<?=$building->pipework_enabler->address->getCompanyOrName(true)?>)"
><?=$building->pipework_enabler->getAbbrName()?></small>
</div>
<?php endif; ?>
</div>
<div class="mt-3">
<button type="button" class="btn btn-primary" form="wf-building-<?=$building->id?>" onclick="document.getElementById(this.getAttribute('form')).submit()">Speichern</button>