summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/mods/mod_abo/settings_edit.phtml33
1 files changed, 33 insertions, 0 deletions
diff --git a/views/mods/mod_abo/settings_edit.phtml b/views/mods/mod_abo/settings_edit.phtml
index 253fb47..132b483 100644
--- a/views/mods/mod_abo/settings_edit.phtml
+++ b/views/mods/mod_abo/settings_edit.phtml
@@ -28,6 +28,7 @@
<div class="wpsg_mod_expiremode wpsg_mod_expiremode_<?php echo wpsg_mod_abo::EXPIRE_AUTO; ?>" style="display:<?php echo (($this->get_option('wpsg_mod_abo_expiremode') == wpsg_mod_abo::EXPIRE_AUTO)?'block':'none'); ?>;">
+ <?php /* TODO: Mehrfachauswahl von Zahlungsarten */ ?>
<?php echo wpsg_drawForm_Select('wpsg_mod_abo_autoexpire_payment', __('Zahlungsart für automatische Verlängerung'), $arPaymentSelect, $this->get_option('wpsg_mod_abo_autoexpire_payment'), array('help' => 'wpsg_mod_abo_autoexpire_payment')); ?>
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_abo_autoexpire_customermail', __('Mail an Kunden'), $this->get_option('wpsg_mod_abo_autoexpire_customermail'), array ('help' => 'wpsg_mod_abo_autoexpire_customermail')); ?>
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_abo_autoexpire_adminmail', __('Mail an Administrator'), $this->get_option('wpsg_mod_abo_autoexpire_adminmail'), array ('help' => 'wpsg_mod_abo_autoexpire_adminmail')); ?>
@@ -39,6 +40,24 @@
</div>
+<?php /* TODO: Prüfung auf Mehrfachbestellung */?>
+<?php /* Option: Mehrfachbestellung möglich */ ?>
+<?php echo wpsg_drawForm_Checkbox('wpsg_mod_abo_moreorder', __('Mehrfachbestellung möglich', 'wpsg'), $this->get_option('wpsg_mod_abo_moreorder'), array ('help' => 'wpsg_mod_abo_moreorder')); ?>
+
+<?php /* Hinweistext: Mehrfachbestellung ja*/ ?>
+<div class="wpsg_mod_expiremode_moreorder_activ" style="display:none;">
+
+ <?php echo wpsg_drawForm_Input('wpsg_mod_abo_moreorder_text', __('Hinweistext', 'wpsg'), $this->get_option('wpsg_mod_abo_moreorder_text'), array('help' => 'wpsg_mod_abo_moreorder_text'));?>
+
+</div>
+
+<?php /* Hinweistext: Mehrfachbestellung nein */ ?>
+<div class="wpsg_mod_expiremode_moreorder_deactiv">
+
+ <?php echo wpsg_drawForm_Input('wpsg_mod_abo_nomoreorder_text', __('Hinweistext', 'wpsg'), $this->get_option('wpsg_mod_abo_nomoreorder_text'), array('help' => 'wpsg_mod_abo_nomoreorder_text'));?>
+
+</div>
+
<script type="text/javascript">/* <![CDATA[ */
jQuery(document).ready(function() {
@@ -49,6 +68,20 @@
jQuery('.wpsg_mod_expiremode_' + jQuery(this).val()).show();
} );
+
+ jQuery('#wpsg_mod_abo_moreorder').bind('change', function() {
+
+ if (jQuery(this).is(':checked')) jQuery('.wpsg_mod_expiremode_moreorder_activ').show();
+ else jQuery('.wpsg_mod_expiremode_moreorder_activ').hide();
+
+ } ).change();
+
+ jQuery('#wpsg_mod_abo_moreorder').bind('change', function() {
+
+ if (jQuery(this).is(':checked')) jQuery('.wpsg_mod_expiremode_moreorder_deactiv').hide();
+ else jQuery('.wpsg_mod_expiremode_moreorder_deactiv').show();
+
+ } ).change();
} );