summaryrefslogtreecommitdiff
path: root/views/mods/mod_prepayment/settings_edit.phtml
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2023-10-18 14:00:08 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2023-10-18 14:00:08 +0000
commit95214639efa9fcf49b9fe576c7f6e611176064c8 (patch)
tree2f9ae4ada5063907e41d794826bc0a1220827e4b /views/mods/mod_prepayment/settings_edit.phtml
parent5b2b7e640785c3636cec0f0d3db253cdf0945a54 (diff)
- SwissQR ausgelagert
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@8375 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods/mod_prepayment/settings_edit.phtml')
-rw-r--r--views/mods/mod_prepayment/settings_edit.phtml39
1 files changed, 0 insertions, 39 deletions
diff --git a/views/mods/mod_prepayment/settings_edit.phtml b/views/mods/mod_prepayment/settings_edit.phtml
index 80dee13..53fa95f 100644
--- a/views/mods/mod_prepayment/settings_edit.phtml
+++ b/views/mods/mod_prepayment/settings_edit.phtml
@@ -8,15 +8,6 @@
<?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 anzeigen', 'wpsg'), $this->get_option('wpsg_mod_prepayment_qrcode'), array('help' => 'wpsg_mod_prepayment_qrcode')); ?>
-<div id="wpsg_mod_prepayment_qrcode_options_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 => __('Girocode', 'wpsg'),
- wpsg_mod_prepayment::QRCODE_SWISS => __('QR-Rechnung', 'wpsg')
- ), $this->get_option('wpsg_mod_prepayment_qrcode_country'), array('help' => 'wpsg_mod_prepayment_qrcode_country')); ?>
- <?php echo wpsg_drawForm_Checkbox('wpsg_mod_prepayment_mailattachment', __('QR-Rechnung an Bestellbestätigung anhängen', 'wpsg'), $this->get_option('wpsg_mod_prepayment_mailattachment'), array('help' => 'wpsg_mod_prepayment_mailattachment')); ?>
-</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')); ?>
@@ -31,33 +22,3 @@
<?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')); ?>
-<?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_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_options_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>