diff --git a/controllers/front/withdraw.php b/controllers/front/withdraw.php index 82c26b1..7cec38f 100644 --- a/controllers/front/withdraw.php +++ b/controllers/front/withdraw.php @@ -26,6 +26,12 @@ class Simple_withdrawalbuttonWithdrawModuleFrontController extends ModuleFrontCo { parent::initContent(); + $this->registerStylesheet( + 'cyp-withdrawal', + 'modules/' . $this->module->name . '/views/css/withdrawal.css', + ['media' => 'all', 'priority' => 200] + ); + $this->context->smarty->assign([ 'errors_list' => $this->errorsList, 'form_data' => $this->formData, diff --git a/views/css/index.php b/views/css/index.php new file mode 100644 index 0000000..30c3516 --- /dev/null +++ b/views/css/index.php @@ -0,0 +1,8 @@ +{l s='Widerruf bestätigen' mod='simple_withdrawalbutton'} +
+
+
+
{l s='Angaben' mod='simple_withdrawalbutton'}
+
+
+
+
2
+
{l s='Prüfen' mod='simple_withdrawalbutton'}
+
+
+
+
3
+
{l s='Bestätigt' mod='simple_withdrawalbutton'}
+
+
+
{if $errors_list|@count > 0} -
+ {/if} -

{l s='Bitte prüfen Sie Ihre Angaben. Wenn die Angaben korrekt sind, können Sie Ihren Widerruf jetzt absenden.' mod='simple_withdrawalbutton'}

- -
-
{l s='Name' mod='simple_withdrawalbutton'}
-
{$form_data.customer_name|escape:'html':'UTF-8'}
- -
{l s='E-Mail-Adresse' mod='simple_withdrawalbutton'}
-
{$form_data.customer_email|escape:'html':'UTF-8'}
- -
{l s='Bestellnummer / Bestellreferenz' mod='simple_withdrawalbutton'}
-
{$form_data.order_reference|escape:'html':'UTF-8'}
- -
{l s='Widerruf betrifft' mod='simple_withdrawalbutton'}
-
- {if $form_data.withdrawal_scope == 'partial'} - {l s='einen Teil der Bestellung' mod='simple_withdrawalbutton'} - {else} - {l s='die gesamte Bestellung' mod='simple_withdrawalbutton'} - {/if} -
+

+ {l s='Bitte prüfen Sie Ihre Angaben. Wenn alles korrekt ist, klicken Sie auf „Widerruf absenden".' mod='simple_withdrawalbutton'} +

+
+
+
{l s='Name' mod='simple_withdrawalbutton'}
+
{$form_data.customer_name|escape:'html':'UTF-8'}
+
+
+
{l s='E-Mail' mod='simple_withdrawalbutton'}
+
{$form_data.customer_email|escape:'html':'UTF-8'}
+
+
+
{l s='Bestellnummer' mod='simple_withdrawalbutton'}
+
{$form_data.order_reference|escape:'html':'UTF-8'}
+
+
+
{l s='Betrifft' mod='simple_withdrawalbutton'}
+
+ {if $form_data.withdrawal_scope == 'partial'} + {l s='einen Teil der Bestellung' mod='simple_withdrawalbutton'} + {else} + {l s='die gesamte Bestellung' mod='simple_withdrawalbutton'} + {/if} +
+
{if $form_data.withdrawal_scope == 'partial'} -
{l s='Betroffene Artikel / Mengen' mod='simple_withdrawalbutton'}
-
{$form_data.withdrawal_items_text|escape:'html':'UTF-8'|nl2br nofilter}
+
+
{l s='Betroffene Artikel' mod='simple_withdrawalbutton'}
+
{$form_data.withdrawal_items_text|escape:'html':'UTF-8'|nl2br nofilter}
+
{/if} - {if $form_data.message != ''} -
{l s='Nachricht / Bemerkung' mod='simple_withdrawalbutton'}
-
{$form_data.message|escape:'html':'UTF-8'|nl2br nofilter}
+
+
{l s='Nachricht' mod='simple_withdrawalbutton'}
+
{$form_data.message|escape:'html':'UTF-8'|nl2br nofilter}
+
{/if} -
+
- - - - - - - -
diff --git a/views/templates/front/form.tpl b/views/templates/front/form.tpl index f86d11f..864f705 100644 --- a/views/templates/front/form.tpl +++ b/views/templates/front/form.tpl @@ -1,23 +1,35 @@
-
-

- {l s='Sie können hier den Vertrag zu einer Bestellung vollständig oder teilweise widerrufen. Bitte geben Sie die Bestellnummer und bei einem Teilwiderruf die betroffenen Artikel und Mengen an.' mod='simple_withdrawalbutton'} -

+
+
+
1
+
{l s='Angaben' mod='simple_withdrawalbutton'}
+
+
+
+
2
+
{l s='Prüfen' mod='simple_withdrawalbutton'}
+
+
+
+
3
+
{l s='Bestätigt' mod='simple_withdrawalbutton'}
+
+
- {if isset($revocation_url) && $revocation_url != ''} -

- - {l s='Unsere Widerrufsbelehrung (14-Tage-Frist)' mod='simple_withdrawalbutton'} - -

- {/if} +
+
+ {l s='Sie können hier den Vertrag zu einer Bestellung vollständig oder teilweise widerrufen. Bitte geben Sie die Bestellnummer und bei einem Teilwiderruf die betroffenen Artikel und Mengen an.' mod='simple_withdrawalbutton'} + {if isset($revocation_url) && $revocation_url != ''} +  – {l s='Widerrufsbelehrung lesen (14-Tage-Frist)' mod='simple_withdrawalbutton'} + {/if} +
{if $errors_list|@count > 0} -
+
diff --git a/views/templates/front/success.tpl b/views/templates/front/success.tpl index b10d84b..7e3a7e8 100644 --- a/views/templates/front/success.tpl +++ b/views/templates/front/success.tpl @@ -3,57 +3,88 @@

{l s='Widerruf übermittelt' mod='simple_withdrawalbutton'}

+
+
+
+
{l s='Angaben' mod='simple_withdrawalbutton'}
+
+
+
+
+
{l s='Prüfen' mod='simple_withdrawalbutton'}
+
+
+
+
3
+
{l s='Bestätigt' mod='simple_withdrawalbutton'}
+
+
+
- {if isset($success_data.mail_ok) && $success_data.mail_ok} -
- {l s='Ihr Widerruf wurde übermittelt. Eine Eingangsbestätigung wurde an die angegebene E-Mail-Adresse gesendet.' mod='simple_withdrawalbutton'} -
- {else} -
- {l s='Ihr Widerruf wurde gespeichert, aber die automatische Eingangsbestätigung konnte möglicherweise nicht versendet werden. Bitte kontaktieren Sie uns zusätzlich per E-Mail, falls Sie keine Bestätigung erhalten.' mod='simple_withdrawalbutton'} -
- {/if} +
+ + {if isset($success_data.mail_ok) && $success_data.mail_ok} +

{l s='Ihr Widerruf wurde erfolgreich übermittelt.' mod='simple_withdrawalbutton'}

+

{l s='Eine Eingangsbestätigung wurde an Ihre E-Mail-Adresse gesendet.' mod='simple_withdrawalbutton'}

+ {else} +

{l s='Ihr Widerruf wurde gespeichert.' mod='simple_withdrawalbutton'}

+

+ {l s='Die automatische Eingangsbestätigung konnte möglicherweise nicht versendet werden. Bitte kontaktieren Sie uns zusätzlich per E-Mail, falls Sie keine Bestätigung erhalten.' mod='simple_withdrawalbutton'} +

+ {/if} +
-
+
{if isset($success_data.created_at)} -
{l s='Eingang:' mod='simple_withdrawalbutton'}
-
{$success_data.created_at|escape:'html':'UTF-8'}
+
+
{l s='Eingangsdatum' mod='simple_withdrawalbutton'}
+
{$success_data.created_at|escape:'html':'UTF-8'}
+
{/if} - {if isset($success_data.customer_email)} -
{l s='E-Mail-Adresse:' mod='simple_withdrawalbutton'}
-
{$success_data.customer_email|escape:'html':'UTF-8'}
+
+
{l s='E-Mail' mod='simple_withdrawalbutton'}
+
{$success_data.customer_email|escape:'html':'UTF-8'}
+
{/if} - {if isset($success_data.order_reference) && $success_data.order_reference != ''} -
{l s='Bestellnummer / Bestellreferenz' mod='simple_withdrawalbutton'}
-
{$success_data.order_reference|escape:'html':'UTF-8'}
+
+
{l s='Bestellnummer' mod='simple_withdrawalbutton'}
+
{$success_data.order_reference|escape:'html':'UTF-8'}
+
{/if} - {if isset($success_data.withdrawal_scope)} -
{l s='Widerruf betrifft' mod='simple_withdrawalbutton'}
-
- {if $success_data.withdrawal_scope == 'partial'} - {l s='einen Teil der Bestellung' mod='simple_withdrawalbutton'} - {else} - {l s='die gesamte Bestellung' mod='simple_withdrawalbutton'} - {/if} -
+
+
{l s='Betrifft' mod='simple_withdrawalbutton'}
+
+ {if $success_data.withdrawal_scope == 'partial'} + {l s='einen Teil der Bestellung' mod='simple_withdrawalbutton'} + {else} + {l s='die gesamte Bestellung' mod='simple_withdrawalbutton'} + {/if} +
+
{/if} - {if isset($success_data.withdrawal_items_text) && $success_data.withdrawal_items_text != ''} -
{l s='Betroffene Artikel / Mengen' mod='simple_withdrawalbutton'}
-
{$success_data.withdrawal_items_text|escape:'html':'UTF-8'|nl2br nofilter}
+
+
{l s='Betroffene Artikel' mod='simple_withdrawalbutton'}
+
{$success_data.withdrawal_items_text|escape:'html':'UTF-8'|nl2br nofilter}
+
{/if} - {if isset($success_data.message) && $success_data.message != ''} -
{l s='Nachricht / Bemerkung' mod='simple_withdrawalbutton'}
-
{$success_data.message|escape:'html':'UTF-8'|nl2br nofilter}
+
+
{l s='Nachricht' mod='simple_withdrawalbutton'}
+
{$success_data.message|escape:'html':'UTF-8'|nl2br nofilter}
+
{/if} -
+
-

+

+ +