ConstructionConsent Changes
This commit is contained in:
@@ -156,7 +156,7 @@ $pagination_entity_name = "Adressen";
|
||||
<th>Baufortschritt</th>
|
||||
<td>
|
||||
<ul class="list-group">
|
||||
<li class="list-group-item"><input type="checkbox" class="switchery" id="conduit_installed_building" data-size="small" data-color="#25b343" onchange="saveCheckbox('conduit_installed_building')" <?=($item->conduit_installed_building) ? "checked='checked'" : ""?> /> FTTx Location mit Leerrohr versorgt</li>
|
||||
<li class="list-group-item"><input type="checkbox" class="switchery" id="conduit_installed_building" data-size="small" data-color="#25b343" onchange="saveCheckbox('conduit_installed_building')" <?=($item->conduit_installed_building) ? "checked='checked'" : ""?> /> FTTx Location mit Leerrohr versorgt</li>
|
||||
<li class="list-group-item"><input type="checkbox" class="switchery" id="conduit_installed_ftu" data-size="small" data-color="#25b343" onchange="saveCheckbox('conduit_installed_ftu')" <?=($item->conduit_installed_ftu) ? "checked='checked'" : ""?> /> Leerrohr bis HAK verlegt</li>
|
||||
<li class="list-group-item"><input type="checkbox" class="switchery" id="inhouse_cabling" data-size="small" data-color="#25b343" onchange="saveCheckbox('inhouse_cabling')" <?=($item->inhouse_cabling) ? "checked='checked'" : ""?> /> Inhouseverkabelung von Wohneinheiten erledigt</li>
|
||||
</ul>
|
||||
@@ -181,7 +181,7 @@ $pagination_entity_name = "Adressen";
|
||||
</tr><tr>
|
||||
<th>Plan/Skizze</th>
|
||||
<td>
|
||||
<?php if($item->file && $item->file->file): ?>
|
||||
<?php if($item->file && $item->file->file && $item->file->file->fileExists()): ?>
|
||||
<!--img src="<?=self::getUrl("File", "Download", ["id" => $item->file->file_id])?>" style="max-width: 480px;"/-->
|
||||
<img src="<?=$item->file->file->asDataUrl()?>" style="max-width: 480px;" />
|
||||
<?php endif; ?>
|
||||
@@ -304,12 +304,13 @@ $pagination_entity_name = "Adressen";
|
||||
<th></th>
|
||||
</tr>
|
||||
<?php foreach($item->owners as $owner): ?>
|
||||
<tr id="owner-data-<?=$owner->id?>" data-name="<?=$owner->name?>" data-street="<?=$owner->street?>" data-zip="<?=$owner->zip?>" data-city="<?=$owner->city?>" data-country="<?=$owner->country?>" data-phone="<?=$owner->phone?>" data-fax="<?=$owner->fax?>" data-email="<?=$owner->email?>">
|
||||
<tr id="owner-data-<?=$owner->id?>" data-title="<?=$owner->title?>" data-firstname="<?=$owner->firstname?>" data-lastname="<?=$owner->lastname?>" data-street="<?=$owner->street?>" data-zip="<?=$owner->zip?>" data-city="<?=$owner->city?>" data-country="<?=$owner->country?>" data-phone="<?=$owner->phone?>" data-phone2="<?=$owner->phone2?>" data-fax="<?=$owner->fax?>" data-email="<?=$owner->email?>">
|
||||
<td style="font-size: 1.4em;">
|
||||
<a href="<?=self::getUrl("ConstructionConsent", "Download", ["owner_id" => $owner->id])?>" title="Zustimmungserklärungsformular herunterladen"><i class="far fa-fw fa-file-download"></i></a>
|
||||
</td>
|
||||
<td>
|
||||
<strong><?=$owner->name?></strong><br />
|
||||
|
||||
<strong><?=($owner->title) ? $owner->title." " : ""?><?=$owner->firstname?> <?=$owner->lastname?></strong><br />
|
||||
<?=$owner->street?><br />
|
||||
<?=$owner->zip?> <?=$owner->city?><br />
|
||||
<?=$owner->country?>
|
||||
@@ -466,10 +467,20 @@ $pagination_entity_name = "Adressen";
|
||||
<h4>Name & Anschrift</h4>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="name" class="col-form-label">Name:</label>
|
||||
<textarea class="form-control" name="name" id="name"></textarea>
|
||||
<label for="title" class="col-form-label">Titel:</label>
|
||||
<input type="text" class="form-control" name="title" id="title" />
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="firnstname" class="col-form-label">Vorname:</label>
|
||||
<input type="text" class="form-control" name="firstname" id="firstname" />
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="lastname" class="col-form-label">Nachname:</label>
|
||||
<input type="text" class="form-control" name="lastname" id="lastname" />
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="street" class="col-form-label">Straße:</label>
|
||||
<input type="text" class="form-control" name="street" id="street" />
|
||||
@@ -497,10 +508,15 @@ $pagination_entity_name = "Adressen";
|
||||
<h4>Kontakt</h4>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="phone" class="col-form-label">Telefon:</label>
|
||||
<label for="phone" class="col-form-label">Telefon 1:</label>
|
||||
<input type="text" class="form-control" name="phone" id="phone" />
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="phone2" class="col-form-label">Telefon 2:</label>
|
||||
<input type="text" class="form-control" name="phone2" id="phone2" />
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="fax" class="col-form-label">Fax:</label>
|
||||
<input type="text" class="form-control" name="fax" id="fax" />
|
||||
@@ -792,12 +808,15 @@ $pagination_entity_name = "Adressen";
|
||||
}
|
||||
|
||||
function newOwner() {
|
||||
$("#newOwnerModal textarea[name=name]").val("");
|
||||
$("#newOwnerModal input[name=title]").val("");
|
||||
$("#newOwnerModal input[name=firstname]").val("");
|
||||
$("#newOwnerModal input[name=lastname]").val("");
|
||||
$("#newOwnerModal input[name=street]").val("");
|
||||
$("#newOwnerModal input[name=zip]").val("");
|
||||
$("#newOwnerModal input[name=city]").val("");
|
||||
$("#newOwnerModal input[name=country]").val("");
|
||||
$("#newOwnerModal input[name=phone]").val("");
|
||||
$("#newOwnerModal input[name=phone2]").val("");
|
||||
$("#newOwnerModal input[name=fax]").val("");
|
||||
$("#newOwnerModal input[name=email]").val("");
|
||||
$("#newOwnerModal input[name=id]").val("");
|
||||
@@ -810,12 +829,15 @@ $pagination_entity_name = "Adressen";
|
||||
function editOwner(owner_id) {
|
||||
if(!owner_id) return;
|
||||
|
||||
$("#newOwnerModal textarea[name=name]").val($("#owner-data-" + owner_id).data("name"));
|
||||
$("#newOwnerModal input[name=title]").val($("#owner-data-" + owner_id).data("title"));
|
||||
$("#newOwnerModal input[name=firstname]").val($("#owner-data-" + owner_id).data("firstname"));
|
||||
$("#newOwnerModal input[name=lastname]").val($("#owner-data-" + owner_id).data("lastname"));
|
||||
$("#newOwnerModal input[name=street]").val($("#owner-data-" + owner_id).data("street"));
|
||||
$("#newOwnerModal input[name=zip]").val($("#owner-data-" + owner_id).data("zip"));
|
||||
$("#newOwnerModal input[name=city]").val($("#owner-data-" + owner_id).data("city"));
|
||||
$("#newOwnerModal input[name=country]").val($("#owner-data-" + owner_id).data("country"));
|
||||
$("#newOwnerModal input[name=phone]").val($("#owner-data-" + owner_id).data("phone"));
|
||||
$("#newOwnerModal input[name=phone2]").val($("#owner-data-" + owner_id).data("phone2"));
|
||||
$("#newOwnerModal input[name=fax]").val($("#owner-data-" + owner_id).data("fax"));
|
||||
$("#newOwnerModal input[name=email]").val($("#owner-data-" + owner_id).data("email"));
|
||||
$("#newOwnerModal input[name=id]").val(owner_id);
|
||||
|
||||
Reference in New Issue
Block a user