From 8ad4750667880bd0768f68410f4080ebcec7de66 Mon Sep 17 00:00:00 2001 From: Roger Rehnelt Date: Sat, 3 Oct 2026 15:13:09 +0200 Subject: Widerrufsformular: Felder beschriftet, Link lesbar, Werte maskiert MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Alle Felder in Dialog und Seite haben eine Beschriftung, der Datenschutzlink steht in Schriftfarbe. Im Modus „neu“ folgt der Dialog den Farben des Themes. Vorbelegte Werte werden maskiert ausgegeben. Co-Authored-By: Claude Opus 5.5 --- views/mods/mod_revocation/ajaxDialogContent.phtml | 45 ++++++++++++----------- views/mods/mod_revocation/page_form.phtml | 24 ++++++------ views/mods/mod_revocation/wpsg_revocation.css | 2 + 3 files changed, 38 insertions(+), 33 deletions(-) (limited to 'views/mods') diff --git a/views/mods/mod_revocation/ajaxDialogContent.phtml b/views/mods/mod_revocation/ajaxDialogContent.phtml index 8d27bbc..fd160f0 100644 --- a/views/mods/mod_revocation/ajaxDialogContent.phtml +++ b/views/mods/mod_revocation/ajaxDialogContent.phtml @@ -52,27 +52,28 @@ $arReason = \wpsgRevocation\Revocation::getReasons(); if (!$oOrder->isLoaded() || !$oOrderProduct->isLoaded()) continue; $key = $order_id.'_'.$order_product_id; + $id = 'wpsg_rvd_'.$key; // eindeutige ids für die Beschriftungen (W5) ?>
- getProduct()->getProductName(); ?> + getProduct()->getProductName()); ?>
- +
-
+
- - + +
-
+
- @@ -82,9 +83,9 @@ $arReason = \wpsgRevocation\Revocation::getReasons();
-
+
- +
@@ -96,30 +97,31 @@ $arReason = \wpsgRevocation\Revocation::getReasons();
-
+
- +
-
+
- - + +
-
+
- @@ -129,9 +131,9 @@ $arReason = \wpsgRevocation\Revocation::getReasons();
-
+
- +
@@ -140,16 +142,17 @@ $arReason = \wpsgRevocation\Revocation::getReasons();
-
+
- />

- Es gelten unsere getURL(wpsg_ShopController::URL_DATENSCHUTZ) . '">Datenschutzbestimmungen' ?> + + .

\ No newline at end of file diff --git a/views/mods/mod_revocation/page_form.phtml b/views/mods/mod_revocation/page_form.phtml index f33695c..c444916 100644 --- a/views/mods/mod_revocation/page_form.phtml +++ b/views/mods/mod_revocation/page_form.phtml @@ -49,24 +49,24 @@
-
+
- +
-
+
- - + +
-
+
- @@ -76,18 +76,18 @@
-
+
- +
-
+
- 0 && $contact_email !== '') ? 'readonly' : ''); ?> />
@@ -95,7 +95,7 @@

- . + .

diff --git a/views/mods/mod_revocation/wpsg_revocation.css b/views/mods/mod_revocation/wpsg_revocation.css index 07af2fc..aae1758 100644 --- a/views/mods/mod_revocation/wpsg_revocation.css +++ b/views/mods/mod_revocation/wpsg_revocation.css @@ -53,6 +53,8 @@ #wpsg_revocation_form legend, #wpsg_revocation_page_form legend { padding:0 0.3684em; font-size:0.95em; font-weight:600; } #wpsg_revocation_form .form_field, #wpsg_revocation_page_form .form_field { display:flex; flex-direction:column; gap:0.3em; width:100%; } #wpsg_revocation_form .form_field .label, #wpsg_revocation_page_form .form_field .label { color:inherit; font-size:0.85em; opacity:0.7; } +/* Links in Schriftfarbe: Die Linkfarbe des Themes ist auf dem Dialog sonst zu blass (W5) */ +#wpsg_revocation_dialog .inner a, .wpsg_revocation_page a { color:inherit; text-decoration:underline; } #wpsg_revocation_form .form_field .value, #wpsg_revocation_page_form .form_field .value { display:flex; gap:0.5em; justify-content:stretch; } #wpsg_revocation_form .form_field .value input, #wpsg_revocation_form .form_field .value textarea, #wpsg_revocation_form .form_field .value select, #wpsg_revocation_page_form .form_field .value input, #wpsg_revocation_page_form .form_field .value textarea, #wpsg_revocation_page_form .form_field .value select { flex:1 1 auto; width:auto; min-width:0; min-height:0; margin:0; padding:0.55em 0.7em; border:1px solid var(--rv-line); border-radius:var(--rv-radius); background:none; color:inherit; font:inherit; text-indent:0; box-shadow:none; } #wpsg_revocation_form .form_field .value input:focus, #wpsg_revocation_form .form_field .value textarea:focus, #wpsg_revocation_form .form_field .value select:focus, #wpsg_revocation_page_form .form_field .value input:focus, #wpsg_revocation_page_form .form_field .value textarea:focus, #wpsg_revocation_page_form .form_field .value select:focus { border-color:currentColor; outline:none; } -- cgit v1.2.3