Construction consent/fix bugs2

This commit is contained in:
Luca Haid
2025-07-17 12:02:18 +00:00
parent 1877a1b952
commit 9811af9f78
+4 -3
View File
@@ -295,7 +295,7 @@ $pagination_entity_name = "Adressen";
<h5>Zusammenfassung Status (von <?=count($item->owners)?>)</h5> <h5>Zusammenfassung Status (von <?=count($item->owners)?>)</h5>
<table class="table table-sm"> <table class="table table-sm">
<?php foreach($item->owner_status_counts as $type => $count): ?> <?php foreach($item->owner_status_counts as $type => $count): ?>
<tr class="ConstructionConsentOwnerResult-<?=$type?>"> <tr class="ConstructionConsentOwnerResult-s<?=$type?>">
<th><?=__($type, "consent")?></th> <th><?=__($type, "consent")?></th>
<td><?=$count?></td> <td><?=$count?></td>
</tr> </tr>
@@ -308,6 +308,8 @@ $pagination_entity_name = "Adressen";
$status_class = 'blue'; // Default to blue (all open) $status_class = 'blue'; // Default to blue (all open)
if (isset($item->owner_result_counts['denied']) && $item->owner_result_counts['denied'] > 0) { if (isset($item->owner_result_counts['denied']) && $item->owner_result_counts['denied'] > 0) {
$status_class = 'red'; // Red if at least one denied $status_class = 'red'; // Red if at least one denied
} elseif (isset($item->owner_result_counts['open']) && $item->owner_result_counts['open'] > 0) {
$status_class = 'blue'; // Blue if at least one open
} elseif ( } elseif (
(isset($item->owner_result_counts['unresolvable']) && $item->owner_result_counts['unresolvable'] > 0) || (isset($item->owner_result_counts['unresolvable']) && $item->owner_result_counts['unresolvable'] > 0) ||
(isset($item->owner_result_counts['moved']) && $item->owner_result_counts['moved'] > 0) || (isset($item->owner_result_counts['moved']) && $item->owner_result_counts['moved'] > 0) ||
@@ -1349,8 +1351,7 @@ $pagination_entity_name = "Adressen";
} }
.ConstructionConsentOwnerResult-new { .ConstructionConsentOwnerResult-new {
/*red background color here for this tr*/ background-color: #9bcdff;
background-color: #337ab7
} }
.ConstructionConsentOwnerResult-denied { .ConstructionConsentOwnerResult-denied {