summaryrefslogtreecommitdiff
path: root/views/admin
diff options
context:
space:
mode:
Diffstat (limited to 'views/admin')
-rw-r--r--views/admin/widerrufsbelehrung.phtml26
1 files changed, 26 insertions, 0 deletions
diff --git a/views/admin/widerrufsbelehrung.phtml b/views/admin/widerrufsbelehrung.phtml
index 3534a5a..2eeff7c 100644
--- a/views/admin/widerrufsbelehrung.phtml
+++ b/views/admin/widerrufsbelehrung.phtml
@@ -67,6 +67,32 @@
<?php if ($this->hasMod('wpsg_mod_auftragsbestaetigung')) { ?>
<?php echo wpsg_drawForm_Checkbox('wpsg_widerrufsformular_orderconfirm', __('Anhang an Auftragsbestätigung', 'wpsg'), $this->get_option('wpsg_widerrufsformular_orderconfirm')); ?>
<?php } ?>
+
+ <hr />
+
+ <?php echo wpsg_drawForm_Checkbox('wpsg_warranty_label', __('Gewährleistungslabel anzeigen wenn nötig', 'wpsg'), $this->get_option('wpsg_warranty_label'), ['id' => 'wpsg_warranty_label']); ?>
+
+ <div id="wpsg_warranty_label_layer" style="display:none;">
+ <?php echo wpsg_drawForm_Select('wpsg_warranty_layout', __('Darstellung vom Gewährleistungslabel', 'wpsg'), [
+ wpsg_ShopController::WARRANTYLABEL_POPUP => __('Als Popup vor Bestellabschluss', 'wpsg'),
+ wpsg_ShopController::WARRANTYLABEL_INLINE => __('vor "Zahlungspflichtig bestellen"', 'wpsg')
+ ], wpsg_ShopController::getShop()->get_option('wpsg_warranty_layout')); ?>
+ </div>
+ <script>
+
+ const el_wpsg_warranty_label = document.getElementById('wpsg_warranty_label');
+ const el_wpsg_warranty_label_layer = document.getElementById('wpsg_warranty_label_layer');
+
+ el_wpsg_warranty_label.addEventListener('change', () => {
+
+ if (el_wpsg_warranty_label.checked) el_wpsg_warranty_label_layer.style.display = 'block';
+ else el_wpsg_warranty_label_layer.style.display = 'none';
+
+ });
+
+ el_wpsg_warranty_label.dispatchEvent(new Event('change'));
+
+ </script>
<?php echo wpsg_drawForm_AdminboxEnd(); ?>