Added Preorder View Url inside the Map

This commit is contained in:
Luca Haid
2025-02-05 15:35:00 +01:00
parent 3257c612bc
commit 1f317de7a2
2 changed files with 8 additions and 1 deletions
+2
View File
@@ -742,7 +742,9 @@ $pagination_entity_name = "Vorbestellungen";
var marker_popup_content = '<?php include(realpath(dirname(__FILE__))."/include/preorder_popup.php");?>'; var marker_popup_content = '<?php include(realpath(dirname(__FILE__))."/include/preorder_popup.php");?>';
// popup fields // popup fields
const preorder_view_url = `<?=self::getUrl("Preorder")?>/Index?filter[ucode]=${preorder.ucode}#preorder=${preorder.id}`;
[ [
["PREORDER_URL", preorder_view_url],
["street", preorder.adb_strasse], ["street", preorder.adb_strasse],
["hausnummer", preorder.adb_hausnummer], ["hausnummer", preorder.adb_hausnummer],
["zip", preorder.adb_plz], ["zip", preorder.adb_plz],
@@ -39,4 +39,9 @@ ob_start();
</tr> </tr>
</table> </table>
<a href="{{PREORDER_URL}}" class="btn btn-primary text-white" target="_blank">
<i class="fas fa-eye"></i> Bestellung ansehen
</a>
<?=str_replace("\n"," ",ob_get_clean())?> <?=str_replace("\n"," ",ob_get_clean())?>