added new adbrimofcp map

This commit is contained in:
2025-09-16 11:51:25 +02:00
parent e79b2392c9
commit 5db3a64e34
7 changed files with 445 additions and 25 deletions

View File

@@ -48,9 +48,12 @@
<th>Extref</th>
<td><?=$address->extref?></td>
</tr><tr>
<th>Rimo External ID</th>
<td><?=$address->rimo_id?></td>
</tr><tr>
<th>Rimo External ID</th>
<td><?=$address->rimo_id?></td>
</tr><tr>
<th>Rimo Type</th>
<td><?=$address->rimo_type?></td>
</tr><tr>
<th>Netzgebiet</th>
<td><?=$address->netzgebiet->name?></td>
</tr><tr>

View File

@@ -24,7 +24,7 @@ $pagination_entity_name = "Vorbestellungen";
}
.preorder-campaign-header-buttons {
max-width: 900px;
max-width: 1100px;
}
.tr-highlight {
@@ -458,6 +458,8 @@ $pagination_entity_name = "Vorbestellungen";
</ul>
</div>
<a id="rimo-types-link" target="_blank" style="display:none" href="#" class="btn btn-outline-success"><i class="fas fa-map-marked-alt"></i>Rimo-Typen Karte anzeigen</a>
</div>
</div>
</form>
@@ -1992,6 +1994,21 @@ $pagination_entity_name = "Vorbestellungen";
});
});
campaignSelect.trigger("change");
// for the Rimo-Typen Karte <a> only show this <a> button if a preordercampaign is selected and change the display and href dynamically
const rimoTypesLink = $("#rimo-types-link");
function updateRimoTypesLink() {
const campaignId = campaignSelect.val();
if (campaignId) {
rimoTypesLink.show();
rimoTypesLink.attr("href", "<?=self::getUrl("Preorder", "RimoTypeMap")?>?preordercampaign_id=" + campaignId);
} else {
rimoTypesLink.hide();
rimoTypesLink.attr("href", "#");
}
}
campaignSelect.on("change", updateRimoTypesLink);
updateRimoTypesLink();
});
</script>
<?php include(realpath(dirname(__FILE__)."/../../$mfLayoutPackage")."/footer.php"); ?>