summaryrefslogtreecommitdiff
path: root/views/mods/mod_revocation/ajaxDialogContent.phtml
diff options
context:
space:
mode:
Diffstat (limited to 'views/mods/mod_revocation/ajaxDialogContent.phtml')
-rw-r--r--views/mods/mod_revocation/ajaxDialogContent.phtml12
1 files changed, 12 insertions, 0 deletions
diff --git a/views/mods/mod_revocation/ajaxDialogContent.phtml b/views/mods/mod_revocation/ajaxDialogContent.phtml
index 163d004..e10202c 100644
--- a/views/mods/mod_revocation/ajaxDialogContent.phtml
+++ b/views/mods/mod_revocation/ajaxDialogContent.phtml
@@ -22,6 +22,7 @@ $arReason = \wpsgRevocation\Revocation::getReasons();
if (!is_array($dialog_config)) $dialog_config = [];
$contact_email = "";
+ $contact_name = "";
$customer_login_id = intval(\wpsg_ShopController::getShop()->callMod('wpsg_mod_kundenverwaltung', 'isLoggedIn'));
@@ -30,6 +31,7 @@ $arReason = \wpsgRevocation\Revocation::getReasons();
$oCustomer = \wpsg_customer::getInstance($customer_login_id);
$contact_email = $oCustomer->getEmail();
+ $contact_name = trim($oCustomer->getFirstname().' '.$oCustomer->getName());
}
@@ -137,6 +139,16 @@ $arReason = \wpsgRevocation\Revocation::getReasons();
<?php } ?>
<div class="form_field">
+ <label class="label" for="wpsg_rvd_name"><?php echo __('Name', 'wpsg'); ?></label>
+ <div class="value">
+ <input type="text" required id="wpsg_rvd_name" autocomplete="name" name="wpsg_revocation_reason[name]" value="<?php echo \esc_attr($contact_name); ?>" />
+ </div>
+ </div>
+
+ <?php /* Schlüssel aus dem Link der Bestellmail, füllt wp_footer.phtml aus wpsg_revo_key (S18) */ ?>
+ <input type="hidden" name="wpsg_revocation_reason[key]" value="" />
+
+ <div class="form_field">
<label class="label" for="wpsg_rvd_contact"><?php echo __('Kontakt - E-Mail', 'wpsg'); ?></label>
<div class="value">
<input type="email" required id="wpsg_rvd_contact" autocomplete="email" name="wpsg_revocation_reason[contact]" value="<?php echo \esc_attr($contact_email); ?>"