summaryrefslogtreecommitdiff
path: root/views/mods/mod_prepayment/settings_edit.phtml
diff options
context:
space:
mode:
authorkarl <noreply@maennchen1.de>2023-07-28 14:19:34 +0000
committerkarl <noreply@maennchen1.de>2023-07-28 14:19:34 +0000
commit990c8b80689c81a06acd4b4d174c5618ad8fd525 (patch)
tree79c76a7a52c78039ca77382ccd6d8b42fea4aa78 /views/mods/mod_prepayment/settings_edit.phtml
parentdc2b852a13bbe361c6dbf6a41bed60d134a6f9c7 (diff)
- Feature: Modul Vorkasse: QR-Code von QR-Rechnung (Schweiz) kann nun auf der Bestellabschlussseite/Bestellmail angezeigt werden.
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@8336 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods/mod_prepayment/settings_edit.phtml')
-rw-r--r--views/mods/mod_prepayment/settings_edit.phtml42
1 files changed, 39 insertions, 3 deletions
diff --git a/views/mods/mod_prepayment/settings_edit.phtml b/views/mods/mod_prepayment/settings_edit.phtml
index 7d07c93..0f46150 100644
--- a/views/mods/mod_prepayment/settings_edit.phtml
+++ b/views/mods/mod_prepayment/settings_edit.phtml
@@ -8,8 +8,14 @@
<?php echo wpsg_drawForm_Input('wpsg_mod_prepayment_bezeichnung', __('Bezeichnung', 'wpsg'), $this->get_option('wpsg_mod_prepayment_bezeichnung'), array('help' => 'wpsg_mod_prepayment_bezeichnung')); ?>
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_prepayment_aktiv', __('Aktiv', 'wpsg'), $this->get_option('wpsg_mod_prepayment_aktiv'), array('help' => 'wpsg_mod_prepayment_aktiv')); ?>
-<?php echo wpsg_drawForm_Checkbox('wpsg_mod_prepayment_qrcode', __('QR-Code auf Bestellabschlussseite anzeigen', 'wpsg'), $this->get_option('wpsg_mod_prepayment_qrcode'), array('help' => 'wpsg_mod_prepayment_qrcode')); ?>
-
+<?php echo wpsg_drawForm_Checkbox('wpsg_mod_prepayment_qrcode', __('QR-Code anzeigen', 'wpsg'), $this->get_option('wpsg_mod_prepayment_qrcode'), array('help' => 'wpsg_mod_prepayment_qrcode')); ?>
+<div id="wpsg_mod_prepayment_qrcode_country_layer" style="display: none;">
+ <?php echo wpsg_drawForm_Select('wpsg_mod_prepayment_qrcode_country', __('QR-Code für', 'wpsg'), Array(
+ wpsg_mod_prepayment::QRCODE_BOTH => __('Beide', 'wpsg'),
+ wpsg_mod_prepayment::QRCODE_EPC => __('EPC QR-Code', 'wpsg'),
+ wpsg_mod_prepayment::QRCODE_SWISS => __('Swiss QR-Code', 'wpsg')
+ ), $this->get_option('wpsg_mod_prepayment_qrcode_country'), array('help' => 'wpsg_mod_prepayment_qrcode_country')); ?>
+</div>
<?php echo wpsg_drawForm_Textarea('wpsg_mod_prepayment_hint', __('Hinweistext', 'wpsg'), $this->get_option('wpsg_mod_prepayment_hint'), array('help' => 'wpsg_mod_prepayment_hint')); ?>
<?php echo wpsg_drawForm_Input('wpsg_mod_prepayment_subject', __('Betreff für Überweisungen', 'wpsg'), $this->get_option('wpsg_mod_prepayment_subject'), array('help' => 'mod_prepayment_subject')); ?>
@@ -23,4 +29,34 @@
<?php echo wpsg_drawForm_Input('wpsg_mod_prepayment_kinhaber', __('Kontoinhaber', 'wpsg'), $this->get_option('wpsg_mod_prepayment_kinhaber'), array('help' => 'wpsg_mod_prepayment_kinhaber')); ?>
<?php echo wpsg_drawForm_Input('wpsg_mod_prepayment_bank', __('Bank', 'wpsg'), $this->get_option('wpsg_mod_prepayment_bank'), array('help' => 'wpsg_mod_prepayment_bank')); ?>
<?php echo wpsg_drawForm_Input('wpsg_mod_prepayment_iban', __('IBAN', 'wpsg'), $this->get_option('wpsg_mod_prepayment_iban'), array('help' => 'wpsg_mod_prepayment_iban')); ?>
-<?php echo wpsg_drawForm_Input('wpsg_mod_prepayment_swift', __('BIC-/SWIFT Code', 'wpsg'), $this->get_option('wpsg_mod_prepayment_swift'), array('help' => 'wpsg_mod_prepayment_swift')); ?> \ No newline at end of file
+<?php echo wpsg_drawForm_Input('wpsg_mod_prepayment_qriban', __('QR-IBAN', 'wpsg'), $this->get_option('wpsg_mod_prepayment_qriban'), array('help' => 'wpsg_mod_prepayment_qriban')); ?>
+<?php echo wpsg_drawForm_Input('wpsg_mod_prepayment_swift', __('BIC-/SWIFT Code', 'wpsg'), $this->get_option('wpsg_mod_prepayment_swift'), array('help' => 'wpsg_mod_prepayment_swift')); ?>
+<?php echo wpsg_drawForm_Input('wpsg_mod_prepayment_besr', __('BESR-ID', 'wpsg'), $this->get_option('wpsg_mod_prepayment_besr'), array('help' => 'wpsg_mod_prepayment_besr')); ?>
+
+<script>
+
+ document.addEventListener("DOMContentLoaded", function() {
+
+ var qrcodeAktiveCheckbox = document.getElementById('wpsg_mod_prepayment_qrcode');
+ var qrcodeSelectDiv = document.getElementById('wpsg_mod_prepayment_qrcode_country_layer');
+
+
+ function toggleDivVisibility(checkbox, div)
+ {
+
+ if (checkbox.checked) div.style.display = "block";
+ else div.style.display = "none";
+
+ }
+
+ // Event Listener für die Checkboxen
+ qrcodeAktiveCheckbox.addEventListener("change", function() {
+ toggleDivVisibility(qrcodeAktiveCheckbox, qrcodeSelectDiv);
+ });
+
+ // Überprüfen und Initialisieren des Anfangszustands der Checkboxen
+ toggleDivVisibility(qrcodeAktiveCheckbox, qrcodeSelectDiv);
+
+ });
+
+</script>