Added municipality for district_is_city campaigns

This commit is contained in:
Frank Schubert
2023-01-05 14:15:17 +01:00
parent 3ff5353fdd
commit b86a699c57
6 changed files with 64 additions and 15 deletions

View File

@@ -66,7 +66,7 @@
<div class="col-2">
<div class="<?=(array_key_exists("network_id", $filter) && $filter['network_id'] == "null") ? "hidden" : ""?>" id="filter-ortschaft-id">
<label class="form-label" for="filter_ortschaft_id">Ortsteil</label>
<label class="form-label" for="filter_ortschaft_id">Ortschaft/Ortsteil</label>
<select name="filter[ortschaft_id]" id="filter_ortschaft_id" class="form-control">
<option></option>
<?php foreach($ortschaften as $ortschaft): ?>
@@ -153,15 +153,13 @@
<th>extref</th>
<th>PLZ</th>
<th>Gemeinde</th>
<th>Ortsteil</th>
<th>Ortschaft</th>
<th>Straße</th>
<th>Hausnummer</th>
<th>Wohneinheiten</th>
<th>Rollout Jahr</th>
<th>Rollout Info</th>
<th></th>
<th></th>
<th></th>
<th></th>
</tr>
<?php foreach($addresses as $address): ?>
<tr>
@@ -174,11 +172,9 @@
<td><?=$address->ortschaft->name?></td>
<td><?=$address->strasse->name?></td>
<td><?=$address->hausnummer?></td>
<td><?=count($address->wohneinheiten)?></td>
<td><?=$address->rollout?></td>
<td><?=$address->rollout_info?></td>
<td></td>
<td></td>
<td></td>
<td style="text-align: left; letter-spacing: 4px; font-size: 1.1em;">
<?php if($me->is("Admin")): ?>
<a href="<?=self::getUrl("AddressDB", "edit", ["id" => $address->id])?>"><i class="far fa-edit" title="Adresse Bearbeiten"></i></a>