summaryrefslogtreecommitdiff
path: root/views/order/index.phtml
diff options
context:
space:
mode:
Diffstat (limited to 'views/order/index.phtml')
-rw-r--r--views/order/index.phtml78
1 files changed, 52 insertions, 26 deletions
diff --git a/views/order/index.phtml b/views/order/index.phtml
index 584f947..398a04f 100644
--- a/views/order/index.phtml
+++ b/views/order/index.phtml
@@ -71,7 +71,7 @@
<?php if ($this->hasMod('wpsg_mod_productgroups') && $this->get_option('wpsg_mod_productgroups_order_filter') === '1') { ?>
<?php $arProductgroups = $this->callMod('wpsg_mod_productgroups', 'getAllProductGroups'); ?>
- <?php echo wpsg_drawForm_Select('filter[productgroup_id]', __('Bestellungen mit Produkten aus Produktgruppe'), ['0' => __('Alle', 'wpsg')] + $arProductgroups, wpsg_getStr($this->view['arFilter']['productgroup_id'])); ?>
+ <?php echo wpsg_drawForm_Select('filter[productgroup_id]', __('Bestellungen mit Produkten aus Produktgruppe', 'wpsg'), ['0' => __('Alle', 'wpsg')] + $arProductgroups, wpsg_getStr($this->view['arFilter']['productgroup_id'])); ?>
<?php } ?>
@@ -121,7 +121,7 @@
<br />
- <?php echo wpsg_drawForm_SubmitButton(__('Bestellungen suchen')); ?>
+ <?php echo wpsg_drawForm_SubmitButton(__('Bestellungen suchen', 'wpsg')); ?>
</form>
</div>
@@ -156,7 +156,7 @@
<?php $arPaymentSelect = []; foreach ($this->arPayment as $payment_id => $payment) if (!isset($payment['active']) || $payment['active'] === '1') $arPaymentSelect[$payment_id] = $payment['name'].' ('.wpsg_ff(wpsg_getStr($payment['price'])).')'; ?>
<?php echo wpsg_drawForm_Select('add_payment', __('Zahlungsart', 'wpsg'), $arPaymentSelect, wpsg_getStr($_REQUEST['add_payment'])); ?>
- <br /><?php echo wpsg_drawForm_SubmitButton(__('Bestellung anlegen')); ?><br />
+ <br /><?php echo wpsg_drawForm_SubmitButton(__('Bestellung anlegen', 'wpsg')); ?><br />
<script>
@@ -522,32 +522,58 @@
</script>
<div class="multiRechnung_tab" id="multiRechnung_inform" style="padding: 15px 0 15px 0; display:none;">
+
+ <div class="multiinvoice_form">
+
+ <?php $oCustomer = wpsg_customer::getInstance(intval($this->view['arFilter']['k_id'])); ?>
+ <div class="row">
+ <input type="checkbox" name="wpsg_Multirechnung_sendmail" value="1" id="invoice_sendmail" />
+ <label for="invoice_sendmail"><?php echo __('E-Mail an Kunden senden', 'wpsg'); ?></label>
+ <input type="email" name="wpsg_Multirechnung_email" value="<?php echo $oCustomer->getEMailEInvoice(); ?>" />
+ </div>
+
+ <div class="row">
+ <input type="checkbox" name="wpsg_Multirechnung_faelligkeit" value="1" id="invoice_faelligkeit" />
+ <label for="invoice_faelligkeit"><?php echo __('Fälligkeit anzeigen', 'wpsg'); ?></label>
+ <input type="date" name="wpsg_Multirechnung_faelligkeitsdatum" value="<?php echo date('Y-m-d', strtotime('+'.intval($this->get_option("wpsg_rechnungen_faelligkeit")).' day')); ?>" />
+ </div>
+
+ <div class="row">
+ <input type="checkbox" name="wpsg_Multirechnung_url" value="1" id="invoice_url" />
+ <label for="invoice_url"><?php echo __('URL Benachrichtigung', 'wpsg'); ?></label>
+ <span></span>
+ </div>
+
+ <div class="row">
+ <span></span>
+ <label for="invoice_date"><?php echo __('Rechnungsdatum', 'wpsg') ;?></label>
+ <input type="date" value="<?php echo date('Y-m-d'); ?>" name="wpsg_Multirechnung_datum" id="invoice_date" />
+ </div>
+
+ <span class="row" style="margin-top:0.5rem">
+ <input type="hidden" name="preview" id="wpsg_mod_rechnungen_preview" />
+ <input type="submit" name="wpsg_order_doaction" value="<?php echo __('Vorschau', 'wpsg'); ?>" id="wpsg_mod_rechnungen_button_preview" />
+ <input type="submit" name="wpsg_order_doaction" value="<?php echo __('Erstellen', 'wpsg'); ?>" id="wpsg_mod_rechnungen_button_submit" />
+ </span>
+
+ </div>
+ <style>
+
+ .multiinvoice_form { border:1px solid black; padding:1rem 0.5rem; display:flex; flex-direction:column; gap:1rem; width:500px; user-select:none;
+ .row { margin:0; display:flex; justify-content:flex-start; gap:0.5rem; align-items:center; min-height:26px;
+ & > * { margin:0; }
+ & > *:first-child { width:16px; min-width:16px; flex-shrink:0; }
+ input[type="text"], input[type="date"], input[type="email"] { height:26px; min-height:26px; }
+ }
+ }
+
+ </style>
+
+
<div style="width: 100%; padding: 1rem; display: grid; row-gap: 0.5rem; column-gap: 0.5rem; grid-template-columns: 25px 1fr 150px; align-items: center; grid-auto-rows: 30px; padding-bottom: 0.5rem;" >
- <?php $oCustomer = wpsg_customer::getInstance(intval($this->view['arFilter']['k_id'])); ?>
-
- <input type="checkbox" name="wpsg_Multirechnung_sendmail" value="1" id="invoice_sendmail" />
- <label for="invoice_sendmail"><?php echo __('E-Mail an Kunden senden', 'wpsg'); ?></label>
- <input type="email" name="wpsg_Multirechnung_email" value="<?php echo $oCustomer->getEMailEInvoice(); ?>" />
-
- <input type="checkbox" name="wpsg_Multirechnung_faelligkeit" value="1" id="invoice_faelligkeit" />
- <label for="invoice_faelligkeit"><?php echo __('Fälligkeit anzeigen', 'wpsg'); ?></label>
- <input type="date" name="wpsg_Multirechnung_faelligkeitsdatum" value="<?php echo date('Y-m-d', strtotime('+'.intval($this->get_option("wpsg_rechnungen_faelligkeit")).' day')); ?>" />
-
- <input type="checkbox" name="wpsg_Multirechnung_url" value="1" id="invoice_url" />
- <label for="invoice_url"><?php echo __('URL Benachrichtigung', 'wpsg'); ?></label>
- <span></span>
-
- <span></span>
- <label for="invoice_date"><?php echo __('Rechnungsdatum', 'wpsg') ;?></label>
- <input type="date" value="<?php echo date('Y-m-d'); ?>" name="wpsg_Multirechnung_datum" id="invoice_date" />
-
- <span style="display:flex; justify-content:flex-start; gap:0.5rem; grid-column:1/span 3;">
- <input type="hidden" name="preview" id="wpsg_mod_rechnungen_preview" />
- <input type="submit" name="wpsg_order_doaction" value="<?php echo _('Vorschau'); ?>" id="wpsg_mod_rechnungen_button_preview" />
- <input type="submit" name="wpsg_order_doaction" value="<?php echo _('Erstellen'); ?>" id="wpsg_mod_rechnungen_button_submit" />
- </span>
+
</div>