ConstructionConsent Basic Building data

This commit is contained in:
Frank Schubert
2025-01-20 15:24:14 +01:00
parent 269456eed6
commit e82e66ceae
5 changed files with 136 additions and 19 deletions

View File

@@ -51,10 +51,28 @@ $pagination_entity_name = "Adressen";
</tr><tr>
<th>Objekttyp</th>
<td><?=__($item->object_type, "consent")?></td>
</tr><tr>
<th>Straße</th>
<td><?=$item->adb_strasse->gemeinde->name?>, <?=$item->adb_strasse->name?></td>
</tr><tr>
</tr>
<?php if($item->object_type == "building"): ?>
<tr>
<th>Gebäude</th>
<td>
<?=$item->adb_hausnummer->ortschaft->name?>, <?=$item->adb_hausnummer->strasse->name?> <?=$item->adb_hausnummer->hausnummer?><br />
<?=$item->adb_hausnummer->strasse->gemeinde->name?>
</td>
</tr><tr>
<th>Anzahl Bestellungen</th>
<td><?=$item->preorder_count?></td>
</tr>
<?php else: ?>
<tr>
<th>Straße</th>
<td>
<?=$item->adb_strasse->ortschaft->name?>, <?=$item->adb_strasse->name?><br />
<?=$item->adb_strasse->gemeinde->name?>
</td>
</tr>
<?php endif; ?>
<tr>
<th>Geplante Länge</th>
<td><?=$item->usage_length?> lfm</td>
</tr><tr>
@@ -88,7 +106,17 @@ $pagination_entity_name = "Adressen";
<?php endif; ?>
Die Nutzung der Liegenschaft seitens BB dient der Eigenversorgung der GE und/oder dessen Nutzer(in) und wird dieser entgeltlos zugestimmt
</td>
</tr><tr>
</tr>
<?php if($item->object_type == "building"): ?>
<tr>
<td colspan="2"><h4>Metadaten</h4></td>
</tr><tr>
<th>Anzahl Bestellungen</th>
<td><?=$item->preorder_count?></td>
</tr>
<?php endif; ?>
<tr>
<td colspan="2"><h4>Grundbuchdaten</h4></td>
</tr><tr>
<th>EZ</th>
@@ -193,9 +221,9 @@ $pagination_entity_name = "Adressen";
</div>
<div>
<?php foreach($owner->files as $file): ?>
<?php if(is_array($owner->files) && count($owner->files)): foreach($owner->files as $file): ?>
<a href="<?=self::getUrl("File", "download", ["id" => $file->file_id])?>"><i class="far fa-fw fa-file"></i> <?=$file->filename?></a><br />
<?php endforeach; ?>
<?php endforeach; endif; ?>
</div>
<hr />