summaryrefslogtreecommitdiff
path: root/views/mods/mod_kundenverwaltung/profil.phtml
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2019-01-09 10:20:24 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2019-01-09 10:20:24 +0000
commitfd7f5ce23401303c36a8b3c3a0079b83e3e5737a (patch)
tree98f319f8736f25a753373e357475f7a353040fdc /views/mods/mod_kundenverwaltung/profil.phtml
parent48f98a6e624afeddde38dfcd9864254aa288d26f (diff)
- Anonymisieren von Adressen/Kundendaten
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7247 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods/mod_kundenverwaltung/profil.phtml')
-rw-r--r--views/mods/mod_kundenverwaltung/profil.phtml33
1 files changed, 26 insertions, 7 deletions
diff --git a/views/mods/mod_kundenverwaltung/profil.phtml b/views/mods/mod_kundenverwaltung/profil.phtml
index 046a5ce..856a761 100644
--- a/views/mods/mod_kundenverwaltung/profil.phtml
+++ b/views/mods/mod_kundenverwaltung/profil.phtml
@@ -116,7 +116,7 @@
<?php /* Copy&Paste für das Eingabefeld "E-Mail-Wiederholung sperren */ ?>
window.onload = function() {
- const email2 = document.getElementById('email2');
+ var email2 = document.getElementById('email2');
email2.onpaste = function(e) {
@@ -225,12 +225,31 @@
<?php } ?>
<?php if ($this->view['pflicht']['strasse'] != '2') { ?>
- <div class="wpsg_checkoutblock">
- <label for="strasse" class="wpsg_checkout"><?php echo __("Straße Nr.", "wpsg"); ?>
- <?php if ($this->view['pflicht']['strasse'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
- </label>
- <input class="<?php echo (($this->view['pflicht']['strasse'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("strasse", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="strasse" name="wpsg[profil][strasse]" value="<?php echo htmlspecialchars($this->view['data']['strasse']); ?>" />
- </div>
+
+ <?php if ($this->view['pflicht']['wpsg_showNr'] === '1') { ?>
+
+ <div class="wpsg_checkoutblock" id="wpsg_streetnr">
+ <label for="strasse" class="street wpsg_checkout"><?php echo __('Straße:', 'wspg'); ?>
+ <?php if ($this->view['pflicht']['strasse'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>
+ <input class="<?php echo (($this->view['pflicht']['strasse'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("strasse", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="strasse" name="wpsg[profil][strasse]" value="<?php echo htmlspecialchars(wpsg_getStr($this->view['data']['strasse'])); ?>" />
+ </label>
+ <label for="nr" class="nr wpsg_checkout"><?php echo __('Nr:', 'wpsg'); ?>
+ <?php if ($this->view['pflicht']['strasse'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>
+ <input class="<?php echo (($this->view['pflicht']['strasse'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("nr", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="nr" name="wpsg[profil][nr]" value="<?php echo htmlspecialchars(wpsg_getStr($this->view['data']['nr'])); ?>" />
+ </label>
+ </div>
+
+ <?php } else { ?>
+
+ <div class="wpsg_checkoutblock">
+ <label for="strasse" class="wpsg_checkout"><?php echo __("Straße Nr.", "wpsg"); ?>
+ <?php if ($this->view['pflicht']['strasse'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
+ </label>
+ <input class="<?php echo (($this->view['pflicht']['strasse'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("strasse", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="strasse" name="wpsg[profil][strasse]" value="<?php echo htmlspecialchars($this->view['data']['strasse']); ?>" />
+ </div>
+
+ <?php } ?>
+
<?php } ?>
<?php if ($this->view['pflicht']['plz'] != '2') { ?>