summaryrefslogtreecommitdiff
path: root/views/mods/mod_revocation/page_form.phtml
diff options
context:
space:
mode:
authorRoger Rehnelt <noreply@maennchen1.de>2026-10-03 15:13:09 +0200
committerRoger Rehnelt <noreply@maennchen1.de>2026-10-03 15:13:09 +0200
commit8ad4750667880bd0768f68410f4080ebcec7de66 (patch)
tree14c6f6b87495c7df6d40319dd031c82c7cd0394f /views/mods/mod_revocation/page_form.phtml
parent1c4c1bdde07f9259a3e2301729a4a09155a2f517 (diff)
Widerrufsformular: Felder beschriftet, Link lesbar, Werte maskiert
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 <noreply@anthropic.com>
Diffstat (limited to 'views/mods/mod_revocation/page_form.phtml')
-rw-r--r--views/mods/mod_revocation/page_form.phtml24
1 files changed, 12 insertions, 12 deletions
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 @@
<fieldset class="wpsg_revocation_order_product">
<div class="form_field">
- <div class="label"><?php echo \__('Artikel - Nr.', 'wpsg'); ?></div>
+ <label class="label" for="wpsg_rvp_product_nr"><?php echo \__('Artikel - Nr.', 'wpsg'); ?></label>
<div class="value">
- <input type="text" name="wpsg_revocation_reason[row][<?php echo $key; ?>][product_nr]" value="<?php echo \esc_attr($get_product); ?>" />
+ <input type="text" id="wpsg_rvp_product_nr" name="wpsg_revocation_reason[row][<?php echo $key; ?>][product_nr]" value="<?php echo \esc_attr($get_product); ?>" />
</div>
</div>
<div class="form_field">
- <div class="label"><?php echo \__('Bestellnummer / Menge', 'wpsg'); ?></div>
+ <label class="label" for="wpsg_rvp_order_nr"><?php echo \__('Bestellnummer / Menge', 'wpsg'); ?></label>
<div class="value">
- <input type="text" name="wpsg_revocation_reason[row][<?php echo $key; ?>][order_nr]" value="<?php echo \esc_attr($get_order); ?>" />
- <input type="number" min="1" name="wpsg_revocation_reason[row][<?php echo $key; ?>][amount]" value="<?php echo intval($get_amount); ?>" />
+ <input type="text" id="wpsg_rvp_order_nr" name="wpsg_revocation_reason[row][<?php echo $key; ?>][order_nr]" value="<?php echo \esc_attr($get_order); ?>" />
+ <input type="number" min="1" aria-label="<?php echo \esc_attr__('Menge', 'wpsg'); ?>" name="wpsg_revocation_reason[row][<?php echo $key; ?>][amount]" value="<?php echo intval($get_amount); ?>" />
</div>
</div>
<div class="form_field">
- <div class="label"><?php echo \__('Widerrufsgrund', 'wpsg'); ?></div>
+ <label class="label" for="wpsg_rvp_reason"><?php echo \__('Widerrufsgrund', 'wpsg'); ?></label>
<div class="value">
- <select name="wpsg_revocation_reason[row][<?php echo $key; ?>][reason]">
+ <select id="wpsg_rvp_reason" name="wpsg_revocation_reason[row][<?php echo $key; ?>][reason]">
<option value=""><?php echo __("Keinen Grund angeben", 'wpsg') ?></option>
<?php foreach ($arReason as $reason) { ?>
<option value="<?php echo \htmlspecialchars($reason['id']); ?>"><?php echo \htmlspecialchars($reason['text']); ?></option>
@@ -76,18 +76,18 @@
</div>
<div class="form_field">
- <div class="label"><?php echo \__('Bemerkung', 'wpsg'); ?></div>
+ <label class="label" for="wpsg_rvp_comment"><?php echo \__('Bemerkung', 'wpsg'); ?></label>
<div class="value">
- <textarea name="wpsg_revocation_reason[row][<?php echo $key; ?>][comment]"></textarea>
+ <textarea id="wpsg_rvp_comment" name="wpsg_revocation_reason[row][<?php echo $key; ?>][comment]"></textarea>
</div>
</div>
</fieldset>
<div class="form_field">
- <div class="label"><?php echo \__('Kontakt - E-Mail', 'wpsg'); ?></div>
+ <label class="label" for="wpsg_rvp_contact"><?php echo \__('Kontakt - E-Mail', 'wpsg'); ?></label>
<div class="value">
- <input type="email" required name="wpsg_revocation_reason[contact]" value="<?php echo \esc_attr($contact_email); ?>"
+ <input type="email" required id="wpsg_rvp_contact" autocomplete="email" name="wpsg_revocation_reason[contact]" value="<?php echo \esc_attr($contact_email); ?>"
<?php echo (($customer_login_id > 0 && $contact_email !== '') ? 'readonly' : ''); ?>
/>
</div>
@@ -95,7 +95,7 @@
<p class="wpsg_revocation_page_datenschutz">
<?php echo \__('Es gelten unsere', 'wpsg'); ?>
- <a href="<?php echo \wpsg_ShopController::getShop()->getURL(wpsg_ShopController::URL_DATENSCHUTZ); ?>"><?php echo \__('Datenschutzbestimmungen', 'wpsg'); ?></a>.
+ <a href="<?php echo \esc_url(\wpsg_ShopController::getShop()->getURL(wpsg_ShopController::URL_DATENSCHUTZ)); ?>"><?php echo \__('Datenschutzbestimmungen', 'wpsg'); ?></a>.
</p>
<div class="form_field wpsg_revocation_page_submit_wrap">