From 83c5b11987e1edf189538606f8cbfa96645faad6 Mon Sep 17 00:00:00 2001 From: Luca Haid Date: Tue, 25 Mar 2025 15:25:07 +0100 Subject: [PATCH] added new features --- Layout/default/ConstructionConsent/View.php | 30 ++++++++++++++------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/Layout/default/ConstructionConsent/View.php b/Layout/default/ConstructionConsent/View.php index a373b72a9..79906f5e1 100644 --- a/Layout/default/ConstructionConsent/View.php +++ b/Layout/default/ConstructionConsent/View.php @@ -229,11 +229,17 @@ $pagination_entity_name = "Adressen"; contacts as $type => $contacts): ?> - - + phone, 0, 2) != "43" && substr($contact->phone, 0, 2) != "49" && substr($contact->phone, 0, 1) != "0") { + $phone = "0".$contact->phone; + } else { + $phone = $contact->phone; + } + ?> + type, "consent")?> name?> - phone?> + fax?> email?> @@ -309,8 +315,14 @@ $pagination_entity_name = "Adressen"; Ergebnis - owners as $owner): ?> - "> + owners as $owner): + if (substr($owner->phone, 0, 2) != "43" && substr($owner->phone, 0, 2) != "49" && substr($owner->phone, 0, 1) != "0") { + $phone = "0".$owner->phone; + } else { + $phone = $owner->phone; + } + ?> + "> $owner->id])?>" title="Zustimmungserklärungsformular herunterladen"> @@ -322,7 +334,7 @@ $pagination_entity_name = "Adressen"; country?> - phone?>
+
fax?>
email?> @@ -459,6 +471,7 @@ $pagination_entity_name = "Adressen";