summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/mods/mod_revocation/ajaxDialogContent.phtml2
-rw-r--r--views/mods/mod_revocation/mails/mail_admin_html.phtml2
-rw-r--r--views/mods/mod_revocation/mails/mail_admin_text.phtml2
-rw-r--r--views/mods/mod_revocation/mails/mail_customer_html.phtml2
-rw-r--r--views/mods/mod_revocation/mails/mail_customer_text.phtml2
-rw-r--r--views/mods/mod_revocation/page_form.phtml2
6 files changed, 6 insertions, 6 deletions
diff --git a/views/mods/mod_revocation/ajaxDialogContent.phtml b/views/mods/mod_revocation/ajaxDialogContent.phtml
index 0c7e9cf..069cde6 100644
--- a/views/mods/mod_revocation/ajaxDialogContent.phtml
+++ b/views/mods/mod_revocation/ajaxDialogContent.phtml
@@ -71,7 +71,7 @@ $arReason = \wpsgRevocation\Revocation::getReasons();
<div class="form_field">
<div class="label"><?php echo __('Widerrufsgrund', 'wpsg'); ?></div>
<div class="value">
- <select name="wpsg_revocation_reason[row][<?php echo $key; ?>][reason]" required>
+ <select name="wpsg_revocation_reason[row][<?php echo $key; ?>][reason]">
<option value=""><?php echo __("Keinen Grund angeben", 'wpsg') ?></option>
<?php foreach ($arReason as $reason) { ?>
<option value="<?php echo htmlspecialchars($reason['id']); ?>"><?php echo htmlspecialchars($reason['text']); ?></option>
diff --git a/views/mods/mod_revocation/mails/mail_admin_html.phtml b/views/mods/mod_revocation/mails/mail_admin_html.phtml
index f3c0a58..71e7d8e 100644
--- a/views/mods/mod_revocation/mails/mail_admin_html.phtml
+++ b/views/mods/mod_revocation/mails/mail_admin_html.phtml
@@ -35,7 +35,7 @@
function($item) use ($d) {
return $item['id'] === $d['reason'];
}
- ))[0]['text'] ?? '';
+ ))[0]['text'] ?? __('Kein Grund angegeben', 'wpsg');
?>
<div style="margin-bottom:15px; padding-bottom:10px; border-bottom:1px solid #ddd;">
diff --git a/views/mods/mod_revocation/mails/mail_admin_text.phtml b/views/mods/mod_revocation/mails/mail_admin_text.phtml
index 6b00c4d..435e7ad 100644
--- a/views/mods/mod_revocation/mails/mail_admin_text.phtml
+++ b/views/mods/mod_revocation/mails/mail_admin_text.phtml
@@ -31,7 +31,7 @@
?>
<?php echo mb_str_pad(__('Bestellung', 'wpsg').':', 25); ?> <?php echo $oOrder->getNr(); ?>
<?php echo mb_str_pad(__('Produkt', 'wpsg').':', 25); ?> <?php echo $d['amount']; ?> x <?php echo $oOrderProduct->getProduct()->getProductName(true); ?> / <?php echo __('Artikelnummer', 'wpsg'); ?>: <?php echo $oOrderProduct->getProduct()->getNr(); ?>
-<?php echo mb_str_pad(__('Ausgewählter Grund', 'wpsg').':', 25); ?> <?php echo array_values(array_filter($arReason, function($item) use ($d) { return $item['id'] === $d['reason']; }))[0]['text'] ?? ''; ?>
+<?php echo mb_str_pad(__('Ausgewählter Grund', 'wpsg').':', 25); ?> <?php echo array_values(array_filter($arReason, function($item) use ($d) { return $item['id'] === $d['reason']; }))[0]['text'] ?? __('Kein Grund angegeben', 'wpsg'); ?>
<?php echo mb_str_pad(__('Bemerkung', 'wpsg').':', 25); ?> <?php echo $d['comment']; ?>
<?php } ?>
diff --git a/views/mods/mod_revocation/mails/mail_customer_html.phtml b/views/mods/mod_revocation/mails/mail_customer_html.phtml
index cc7fac6..51b7b70 100644
--- a/views/mods/mod_revocation/mails/mail_customer_html.phtml
+++ b/views/mods/mod_revocation/mails/mail_customer_html.phtml
@@ -30,7 +30,7 @@
function($item) use ($d) {
return $item['id'] === $d['reason'];
}
- ))[0]['text'] ?? '';
+ ))[0]['text'] ?? __('Kein Grund angegeben', 'wpsg');
?>
<div style="margin-bottom:20px; padding:15px; background-color:#f9f9f9; border-radius:5px;">
diff --git a/views/mods/mod_revocation/mails/mail_customer_text.phtml b/views/mods/mod_revocation/mails/mail_customer_text.phtml
index 5636d6b..4e79eda 100644
--- a/views/mods/mod_revocation/mails/mail_customer_text.phtml
+++ b/views/mods/mod_revocation/mails/mail_customer_text.phtml
@@ -29,7 +29,7 @@
function($item) use ($d) {
return $item['id'] === $d['reason'];
}
- ))[0]['text'] ?? '';
+ ))[0]['text'] ?? __('Kein Grund angegeben', 'wpsg');
?>
<?php echo mb_str_pad(__('Bestellnummer', 'wpsg').':', 20); ?> <?php echo $oOrder->getNr(); ?>
diff --git a/views/mods/mod_revocation/page_form.phtml b/views/mods/mod_revocation/page_form.phtml
index f3024b6..1ccb886 100644
--- a/views/mods/mod_revocation/page_form.phtml
+++ b/views/mods/mod_revocation/page_form.phtml
@@ -65,7 +65,7 @@
<div class="form_field">
<div class="label"><?php echo \__('Widerrufsgrund', 'wpsg'); ?></div>
<div class="value">
- <select name="wpsg_revocation_reason[row][<?php echo $key; ?>][reason]" required>
+ <select name="wpsg_revocation_reason[row][<?php echo $key; ?>][reason]">
<option value=""><?php echo __("Keinen Grund angeben", 'wpsg') ?></option>
<?php foreach ($arReason as $reason) { ?>
<option value="<?php echo \htmlspecialchars($reason['id']); ?>"><?php echo \htmlspecialchars($reason['text']); ?></option>