Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 22978ad714 | |||
| b8c0db4067 | |||
| f74bf7a73f | |||
| 18636c13c0 | |||
| 4597e96545 |
@@ -27,7 +27,7 @@ class Simple_withdrawalbutton extends Module
|
|||||||
{
|
{
|
||||||
$this->name = 'simple_withdrawalbutton';
|
$this->name = 'simple_withdrawalbutton';
|
||||||
$this->tab = 'administration';
|
$this->tab = 'administration';
|
||||||
$this->version = '0.1.5';
|
$this->version = '0.1.8';
|
||||||
$this->author = 'Arne Weiss';
|
$this->author = 'Arne Weiss';
|
||||||
$this->need_instance = 0;
|
$this->need_instance = 0;
|
||||||
$this->bootstrap = true;
|
$this->bootstrap = true;
|
||||||
@@ -464,7 +464,7 @@ class Simple_withdrawalbutton extends Module
|
|||||||
'user_agent_hash' => $userAgentHash ?: null,
|
'user_agent_hash' => $userAgentHash ?: null,
|
||||||
];
|
];
|
||||||
|
|
||||||
$ok = Db::getInstance()->insert(self::TABLE_REQUEST, $insert, false, true, Db::INSERT, false);
|
$ok = Db::getInstance()->insert(self::TABLE_REQUEST, $insert, false, true, Db::INSERT);
|
||||||
if (!$ok) {
|
if (!$ok) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
{extends file='layouts/layout-full-width.tpl'}
|
||||||
|
|
||||||
|
{block name='content'}
|
||||||
<section class="cyp-withdrawal-page">
|
<section class="cyp-withdrawal-page">
|
||||||
<header class="page-header">
|
<header class="page-header">
|
||||||
<h1>{l s='Widerruf bestätigen' mod='simple_withdrawalbutton'}</h1>
|
<h1>{l s='Widerruf bestätigen' mod='simple_withdrawalbutton'}</h1>
|
||||||
@@ -5,7 +8,7 @@
|
|||||||
|
|
||||||
<div class="cyp-steps">
|
<div class="cyp-steps">
|
||||||
<div class="cyp-step done">
|
<div class="cyp-step done">
|
||||||
<div class="cyp-step-bubble">✓</div>
|
<div class="cyp-step-bubble">✓</div>
|
||||||
<div class="cyp-step-label">{l s='Angaben' mod='simple_withdrawalbutton'}</div>
|
<div class="cyp-step-label">{l s='Angaben' mod='simple_withdrawalbutton'}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="cyp-step-line done"></div>
|
<div class="cyp-step-line done"></div>
|
||||||
@@ -107,3 +110,4 @@
|
|||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
{/block}
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
{extends file='layouts/layout-full-width.tpl'}
|
||||||
|
|
||||||
|
{block name='content'}
|
||||||
<section class="cyp-withdrawal-page">
|
<section class="cyp-withdrawal-page">
|
||||||
<header class="page-header">
|
<header class="page-header">
|
||||||
<h1>{l s='Widerruf erklären' mod='simple_withdrawalbutton'}</h1>
|
<h1>{l s='Widerruf erklären' mod='simple_withdrawalbutton'}</h1>
|
||||||
@@ -33,7 +36,7 @@
|
|||||||
display:flex; align-items:center; gap:10px; background:#eef2f8;
|
display:flex; align-items:center; gap:10px; background:#eef2f8;
|
||||||
border:1px solid #c5d4eb; border-radius:6px; padding:11px 14px;
|
border:1px solid #c5d4eb; border-radius:6px; padding:11px 14px;
|
||||||
font-size:13px; color:var(--cyw-accent); margin-bottom:24px;">
|
font-size:13px; color:var(--cyw-accent); margin-bottom:24px;">
|
||||||
<span style="font-size:16px;">📅</span>
|
<span style="font-size:16px;">📅</span>
|
||||||
<span>
|
<span>
|
||||||
{l s='Widerrufsfrist (14 Tage ab Bestelldatum): bis' mod='simple_withdrawalbutton'}
|
{l s='Widerrufsfrist (14 Tage ab Bestelldatum): bis' mod='simple_withdrawalbutton'}
|
||||||
<strong>{$withdrawal_deadline|escape:'html':'UTF-8'}</strong>
|
<strong>{$withdrawal_deadline|escape:'html':'UTF-8'}</strong>
|
||||||
@@ -164,3 +167,4 @@
|
|||||||
update();
|
update();
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
|
{/block}
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
{extends file='layouts/layout-full-width.tpl'}
|
||||||
|
|
||||||
|
{block name='content'}
|
||||||
<section class="cyp-withdrawal-page">
|
<section class="cyp-withdrawal-page">
|
||||||
<header class="page-header">
|
<header class="page-header">
|
||||||
<h1>{l s='Widerruf übermittelt' mod='simple_withdrawalbutton'}</h1>
|
<h1>{l s='Widerruf übermittelt' mod='simple_withdrawalbutton'}</h1>
|
||||||
@@ -5,12 +8,12 @@
|
|||||||
|
|
||||||
<div class="cyp-steps">
|
<div class="cyp-steps">
|
||||||
<div class="cyp-step done">
|
<div class="cyp-step done">
|
||||||
<div class="cyp-step-bubble">✓</div>
|
<div class="cyp-step-bubble">✓</div>
|
||||||
<div class="cyp-step-label">{l s='Angaben' mod='simple_withdrawalbutton'}</div>
|
<div class="cyp-step-label">{l s='Angaben' mod='simple_withdrawalbutton'}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="cyp-step-line done"></div>
|
<div class="cyp-step-line done"></div>
|
||||||
<div class="cyp-step done">
|
<div class="cyp-step done">
|
||||||
<div class="cyp-step-bubble">✓</div>
|
<div class="cyp-step-bubble">✓</div>
|
||||||
<div class="cyp-step-label">{l s='Prüfen' mod='simple_withdrawalbutton'}</div>
|
<div class="cyp-step-label">{l s='Prüfen' mod='simple_withdrawalbutton'}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="cyp-step-line done"></div>
|
<div class="cyp-step-line done"></div>
|
||||||
@@ -22,7 +25,7 @@
|
|||||||
|
|
||||||
<div class="card card-block">
|
<div class="card card-block">
|
||||||
<div class="cyp-success-header">
|
<div class="cyp-success-header">
|
||||||
<div class="cyp-success-icon" aria-hidden="true">✓</div>
|
<div class="cyp-success-icon" aria-hidden="true">✓</div>
|
||||||
{if isset($success_data.mail_ok) && $success_data.mail_ok}
|
{if isset($success_data.mail_ok) && $success_data.mail_ok}
|
||||||
<h2>{l s='Ihr Widerruf wurde erfolgreich übermittelt.' mod='simple_withdrawalbutton'}</h2>
|
<h2>{l s='Ihr Widerruf wurde erfolgreich übermittelt.' mod='simple_withdrawalbutton'}</h2>
|
||||||
<p>{l s='Eine Eingangsbestätigung wurde an Ihre E-Mail-Adresse gesendet.' mod='simple_withdrawalbutton'}</p>
|
<p>{l s='Eine Eingangsbestätigung wurde an Ihre E-Mail-Adresse gesendet.' mod='simple_withdrawalbutton'}</p>
|
||||||
@@ -95,7 +98,8 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button class="cyp-print-btn" onclick="window.print()" type="button">
|
<button class="cyp-print-btn" onclick="window.print()" type="button">
|
||||||
⎙ {l s='Seite drucken / als PDF speichern' mod='simple_withdrawalbutton'}
|
⎙ {l s='Seite drucken / als PDF speichern' mod='simple_withdrawalbutton'}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
{/block}
|
||||||
|
|||||||
Reference in New Issue
Block a user