summaryrefslogtreecommitdiff
path: root/views/mods/mod_kundenverwaltung/checkout_customer_inner.phtml
diff options
context:
space:
mode:
authorthomas <noreply@maennchen1.de>2016-09-23 12:44:38 +0000
committerthomas <noreply@maennchen1.de>2016-09-23 12:44:38 +0000
commit26ab505d60ed565e66a3bf2144ad1f8996fc46e9 (patch)
treeaba6db103ca377e7d90d0337ed9bf145de9f30b8 /views/mods/mod_kundenverwaltung/checkout_customer_inner.phtml
parentadde079b389aad7f15be4c863aa755b12f7f6c28 (diff)
- Umstrukturierung Passwortabfrage über Kundenverwaltungsmodul
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5779 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods/mod_kundenverwaltung/checkout_customer_inner.phtml')
-rw-r--r--views/mods/mod_kundenverwaltung/checkout_customer_inner.phtml44
1 files changed, 27 insertions, 17 deletions
diff --git a/views/mods/mod_kundenverwaltung/checkout_customer_inner.phtml b/views/mods/mod_kundenverwaltung/checkout_customer_inner.phtml
index 093024b..5963a8d 100644
--- a/views/mods/mod_kundenverwaltung/checkout_customer_inner.phtml
+++ b/views/mods/mod_kundenverwaltung/checkout_customer_inner.phtml
@@ -1,23 +1,33 @@
<?php
- /**
- * Template für die Registrierung während des Checkouts
- * wird von checkout.phtml eingebunden
- */
+ /**
+ * Template für die Registrierung während des Checkouts
+ * wird von checkout.phtml eingebunden
+ */
?>
-<div class="wpsg_checkoutblock">
- <label for="wpsg_mod_kundenverwaltung_pwd1"><?php echo __("Passwort", "wpsg"); ?>
- <?php if ($this->get_option('wpsg_mod_kundenverwaltung_showCheckoutRegisterzwand') == '1') { ?><span class="wpsg_required">*</span><?php } ?>:
- </label>
- <input class="wpsg_checkout <?php echo (($this->get_option('wpsg_mod_kundenverwaltung_showCheckoutRegisterzwand') == '1')?'validate[required]':''); ?> <?php echo ((in_array("mod_kundenverwaltung_pwd1", (array)$this->view['error']))?'wpsg_error':''); ?>" type="password" id="mod_kundenverwaltung_pwd1" name="wpsg[mod_kundenverwaltung][pwd1]" value="" />
-</div>
+<label for="checkout_login" style="line-height:35px; margin-top:25px; cursor:pointer;">
+ <?php /* display:none, bis Option aktiv */ ?>
+ <input <?php echo ((in_array("mod_kundenverwaltung_pwd1", (array)$this->view['error']))?'checked="checked"':''); ?> type="checkbox" id="checkout_login" value="" onclick="jQuery('#checkout_login_fields').toggle();">&nbsp;
+ <span class="wpsg-checkbox-label">Ich möchte ein Kundenkonto anlegen.</span>
+</label>
-<div class="wpsg_checkoutblock">
- <label for="wpsg_mod_kundenverwaltung_pwd2"><?php echo __("Passwort wiederholen", "wpsg"); ?>
- <?php if ($this->get_option('wpsg_mod_kundenverwaltung_showCheckoutRegisterzwand') == '1') { ?><span class="wpsg_required">*</span><?php } ?>:
- </label>
- <input class="wpsg_checkout <?php echo (($this->get_option('wpsg_mod_kundenverwaltung_showCheckoutRegisterzwand') == '1')?'validate[required]':''); ?> <?php echo ((in_array("mod_kundenverwaltung_pwd2", (array)$this->view['error']))?'wpsg_error':''); ?>" type="password" id="wpsg_mod_kundenverwaltung_pwd2" name="wpsg[mod_kundenverwaltung][pwd2]" value="" />
-</div>
+<?php /* aktiv bei Registrierungszwang - aktiv bei Fehlermeldung */ ?>
+<div id="checkout_login_fields" style="display:<?php echo ((in_array("mod_kundenverwaltung_pwd1", (array)$this->view['error']))?'block':'none'); ?>;">
+ <div class="wpsg_checkoutblock">
+ <label for="wpsg_mod_kundenverwaltung_pwd1"><?php echo __("Passwort", "wpsg"); ?>
+ <?php if ($this->get_option('wpsg_mod_kundenverwaltung_showCheckoutRegisterzwand') == '1') { ?><span class="wpsg_required">*</span><?php } ?>:
+ </label>
+ <input class="wpsg_checkout <?php echo (($this->get_option('wpsg_mod_kundenverwaltung_showCheckoutRegisterzwand') == '1')?'validate[required]':''); ?> <?php echo ((in_array("mod_kundenverwaltung_pwd1", (array)$this->view['error']))?'wpsg_error':''); ?>" type="password" id="mod_kundenverwaltung_pwd1" name="wpsg[mod_kundenverwaltung][pwd1]" value="" />
+ </div>
-<div class="wpsg_clear"></div> \ No newline at end of file
+ <div class="wpsg_checkoutblock">
+ <label for="wpsg_mod_kundenverwaltung_pwd2"><?php echo __("Passwort wiederholen", "wpsg"); ?>
+ <?php if ($this->get_option('wpsg_mod_kundenverwaltung_showCheckoutRegisterzwand') == '1') { ?><span class="wpsg_required">*</span><?php } ?>:
+ </label>
+ <input class="wpsg_checkout <?php echo (($this->get_option('wpsg_mod_kundenverwaltung_showCheckoutRegisterzwand') == '1')?'validate[required]':''); ?> <?php echo ((in_array("mod_kundenverwaltung_pwd2", (array)$this->view['error']))?'wpsg_error':''); ?>" type="password" id="wpsg_mod_kundenverwaltung_pwd2" name="wpsg[mod_kundenverwaltung][pwd2]" value="" />
+ </div>
+
+ <div class="wpsg_clear"></div>
+
+</div> \ No newline at end of file