diff options
3 files changed, 28 insertions, 8 deletions
diff --git a/views/mods/mod_minquantity/produkt_addedit_allgemein.phtml b/views/mods/mod_minquantity/produkt_addedit_allgemein.phtml index e4e6bd8..49f46d5 100644 --- a/views/mods/mod_minquantity/produkt_addedit_allgemein.phtml +++ b/views/mods/mod_minquantity/produkt_addedit_allgemein.phtml @@ -7,15 +7,24 @@ ?>
<div id="wpsg_minquantity" class="panel panel-default">
+
<div class="panel-heading clearfix">
+
<h3 class="panel-title">
<span><?php echo __('Mindestbestellmenge', 'wpsg'); ?></span>
</h3>
+
</div>
+
<div class="panel-body">
+
<?php echo wpsg_drawForm_Input('wpsg_mod_minquantity[value]', __('Mindestbestellmenge', 'wpsg'), $this->view['wpsg_mod_minquantity']['value']); ?>
<?php echo wpsg_drawForm_Input('wpsg_mod_minquantity[valuemax]', __('Maximalbestellmenge', 'wpsg'), $this->view['wpsg_mod_minquantity']['valuemax']); ?>
+
+ <br /><br />
+
+ <a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_minquantity"><span class="wpsg-glyphicon glyphicon glyphicon-wrench"></span><?php echo __('Zur Konfiguration der Mindestbestellmenge', 'wpsg'); ?></a>
+
</div>
- <br /><br />
- <a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_minquantity"><span class="wpsg-glyphicon glyphicon glyphicon-wrench"></span><?php echo __('Zur Konfiguration der Mindestbestellmenge', 'wpsg'); ?></a>
+
</div>
\ No newline at end of file diff --git a/views/mods/mod_minquantity/produkt_edit_allgemein.phtml b/views/mods/mod_minquantity/produkt_edit_allgemein.phtml index 17d18b3..1188c39 100644 --- a/views/mods/mod_minquantity/produkt_edit_allgemein.phtml +++ b/views/mods/mod_minquantity/produkt_edit_allgemein.phtml @@ -5,5 +5,6 @@ */
?>
+
<?php echo wpsg_drawForm_Input('wpsg_mod_minquantity[value]', __('Mindestbestellmenge', 'wpsg'), $this->view['wpsg_mod_minquantity']['value']); ?>
<?php echo wpsg_drawForm_Input('wpsg_mod_minquantity[valuemax]', __('Maximalbestellmenge', 'wpsg'), $this->view['wpsg_mod_minquantity']['valuemax']); ?>
\ No newline at end of file diff --git a/views/mods/mod_minrequest/produkt_addedit_allgemein.phtml b/views/mods/mod_minrequest/produkt_addedit_allgemein.phtml index fb4e892..69c033d 100644 --- a/views/mods/mod_minrequest/produkt_addedit_allgemein.phtml +++ b/views/mods/mod_minrequest/produkt_addedit_allgemein.phtml @@ -1,6 +1,6 @@ <?php
-/**
+ /**
* Integration des Moduls "Mindestbestellwert" in die Produktverwaltung
*/
@@ -16,13 +16,23 @@ <?php echo wpsg_drawForm_Checkbox('wpsg_mod_minrequest[product_activ]', __('Bestellwertgrenzen für dieses Produkt aktivieren', 'wpsg'), $this->view['wpsg_mod_minrequest']['data'][0]); ?>
- <?php if ($this->hasMod('wpsg_mod_minrequest') && $this->get_option('wpsg_mod_minrequest_productamount') == '1') { ?>
+ <div class="wpsg_mod_minrequest_product_activ wpsg_mod_minrequest_product_activ_1">
+
<?php echo wpsg_drawForm_Input('wpsg_mod_minrequest[value]', __('Mindestbestellwert', 'wpsg'), $this->view['wpsg_mod_minrequest']['value']); ?>
- <?php } ?>
-
- <?php if ($this->hasMod('wpsg_mod_minrequest') && $this->get_option('wpsg_mod_minrequest_productamount_max') == '1') { ?>
<?php echo wpsg_drawForm_Input('wpsg_mod_minrequest[valuemax]', __('Maximalbestellwert', 'wpsg'), $this->view['wpsg_mod_minrequest']['valuemax']); ?>
- <?php } ?>
+
+ </div>
+
+ <script>
+
+ jQuery('#wpsg_mod_minrequestproduct_activ').on('change', function() {
+
+ if (jQuery(this).prop('checked')) jQuery('.wpsg_mod_minrequest_product_activ_1').show();
+ else jQuery('.wpsg_mod_minrequest_product_activ_1').hide();
+
+ }).change();
+
+ </script>
<br /><br />
|
