5 Commits

Author SHA1 Message Date
Arne Weiss 22978ad714 Bump version to 0.1.8
Build / build (push) Successful in 15s
Release / release (push) Successful in 12s
2026-06-01 10:02:15 +02:00
Arne Weiss b8c0db4067 Fix DB insert: remove add_prefix=false so table prefix is applied
Db::insert() was called with add_prefix=false, causing it to target
'simple_withdrawal_request' instead of '{prefix}simple_withdrawal_request'.
Dropping the explicit false restores the default (true).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-01 10:01:47 +02:00
Arne Weiss f74bf7a73f Bump version to 0.1.7
Build / build (push) Successful in 13s
Release / release (push) Successful in 12s
2026-06-01 09:57:08 +02:00
Arne Weiss 18636c13c0 Bump version to 0.1.6 2026-06-01 09:56:25 +02:00
Arne Weiss 4597e96545 Fix layout: add Smarty template inheritance for Hummingbird theme
Hummingbird (PS8) requires module front controller templates to explicitly
extend a layout via {extends}. Without it, the template renders as a bare
HTML fragment without the theme wrapper (no header, CSS, nav, footer).

All three front templates now extend layouts/layout-full-width.tpl and
define their content inside {block name='content'}.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-01 09:56:25 +02:00
4 changed files with 20 additions and 8 deletions
+2 -2
View File
@@ -27,7 +27,7 @@ class Simple_withdrawalbutton extends Module
{
$this->name = 'simple_withdrawalbutton';
$this->tab = 'administration';
$this->version = '0.1.5';
$this->version = '0.1.8';
$this->author = 'Arne Weiss';
$this->need_instance = 0;
$this->bootstrap = true;
@@ -464,7 +464,7 @@ class Simple_withdrawalbutton extends Module
'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) {
return false;
}
+5 -1
View File
@@ -1,3 +1,6 @@
{extends file='layouts/layout-full-width.tpl'}
{block name='content'}
<section class="cyp-withdrawal-page">
<header class="page-header">
<h1>{l s='Widerruf bestätigen' mod='simple_withdrawalbutton'}</h1>
@@ -5,7 +8,7 @@
<div class="cyp-steps">
<div class="cyp-step done">
<div class="cyp-step-bubble"></div>
<div class="cyp-step-bubble">&#10003;</div>
<div class="cyp-step-label">{l s='Angaben' mod='simple_withdrawalbutton'}</div>
</div>
<div class="cyp-step-line done"></div>
@@ -107,3 +110,4 @@
</form>
</div>
</section>
{/block}
+5 -1
View File
@@ -1,3 +1,6 @@
{extends file='layouts/layout-full-width.tpl'}
{block name='content'}
<section class="cyp-withdrawal-page">
<header class="page-header">
<h1>{l s='Widerruf erklären' mod='simple_withdrawalbutton'}</h1>
@@ -33,7 +36,7 @@
display:flex; align-items:center; gap:10px; background:#eef2f8;
border:1px solid #c5d4eb; border-radius:6px; padding:11px 14px;
font-size:13px; color:var(--cyw-accent); margin-bottom:24px;">
<span style="font-size:16px;">📅</span>
<span style="font-size:16px;">&#128197;</span>
<span>
{l s='Widerrufsfrist (14 Tage ab Bestelldatum): bis' mod='simple_withdrawalbutton'}
<strong>{$withdrawal_deadline|escape:'html':'UTF-8'}</strong>
@@ -164,3 +167,4 @@
update();
})();
</script>
{/block}
+8 -4
View File
@@ -1,3 +1,6 @@
{extends file='layouts/layout-full-width.tpl'}
{block name='content'}
<section class="cyp-withdrawal-page">
<header class="page-header">
<h1>{l s='Widerruf übermittelt' mod='simple_withdrawalbutton'}</h1>
@@ -5,12 +8,12 @@
<div class="cyp-steps">
<div class="cyp-step done">
<div class="cyp-step-bubble"></div>
<div class="cyp-step-bubble">&#10003;</div>
<div class="cyp-step-label">{l s='Angaben' mod='simple_withdrawalbutton'}</div>
</div>
<div class="cyp-step-line done"></div>
<div class="cyp-step done">
<div class="cyp-step-bubble"></div>
<div class="cyp-step-bubble">&#10003;</div>
<div class="cyp-step-label">{l s='Prüfen' mod='simple_withdrawalbutton'}</div>
</div>
<div class="cyp-step-line done"></div>
@@ -22,7 +25,7 @@
<div class="card card-block">
<div class="cyp-success-header">
<div class="cyp-success-icon" aria-hidden="true"></div>
<div class="cyp-success-icon" aria-hidden="true">&#10003;</div>
{if isset($success_data.mail_ok) && $success_data.mail_ok}
<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>
@@ -95,7 +98,8 @@
</div>
<button class="cyp-print-btn" onclick="window.print()" type="button">
{l s='Seite drucken / als PDF speichern' mod='simple_withdrawalbutton'}
&#9113; {l s='Seite drucken / als PDF speichern' mod='simple_withdrawalbutton'}
</button>
</div>
</section>
{/block}