Rename module from cyp_withdrawalbutton to simple_withdrawalbutton

- Main file: cyp_withdrawalbutton.php -> simple_withdrawalbutton.php
- Admin controller: AdminCypWithdrawalController.php -> AdminSimpleWithdrawalController.php
- Class: Cyp_Withdrawalbutton -> Simple_withdrawalbutton
- DB table: cyp_withdrawal_request -> simple_withdrawal_request
- Config keys: CYP_WITHDRAWAL_* -> SIMPLE_WITHDRAWAL_*
- Admin tab: AdminCypWithdrawal -> AdminSimpleWithdrawal
- All template mod attributes updated
This commit is contained in:
Arne Weiss
2026-06-01 07:34:26 +02:00
parent 346ee7b616
commit 317d92b9d0
11 changed files with 89 additions and 89 deletions
+5 -5
View File
@@ -1,14 +1,14 @@
<div class="panel">
<h3><i class="icon-info-circle"></i> {l s='Installation notes' mod='cyp_withdrawalbutton'}</h3>
<h3><i class="icon-info-circle"></i> {l s='Installation notes' mod='simple_withdrawalbutton'}</h3>
<p>
{l s='Frontend withdrawal page:' mod='cyp_withdrawalbutton'}
{l s='Frontend withdrawal page:' mod='simple_withdrawalbutton'}
<a href="{$withdrawal_link|escape:'html':'UTF-8'}" target="_blank" rel="noopener noreferrer">{$withdrawal_link|escape:'html':'UTF-8'}</a>
</p>
<p>
{l s='Back office requests:' mod='cyp_withdrawalbutton'}
<a href="{$admin_link|escape:'html':'UTF-8'}">{l s='Open withdrawal requests' mod='cyp_withdrawalbutton'}</a>
{l s='Back office requests:' mod='simple_withdrawalbutton'}
<a href="{$admin_link|escape:'html':'UTF-8'}">{l s='Open withdrawal requests' mod='simple_withdrawalbutton'}</a>
</p>
<p class="help-block">
{l s='The module keeps existing withdrawal records when it is uninstalled. Delete the database table manually only after checking your retention obligations.' mod='cyp_withdrawalbutton'}
{l s='The module keeps existing withdrawal records when it is uninstalled. Delete the database table manually only after checking your retention obligations.' mod='simple_withdrawalbutton'}
</p>
</div>
+18 -18
View File
@@ -1,7 +1,7 @@
<div class="panel">
<div class="panel-heading">
<i class="icon-undo"></i>
{l s='Withdrawal request' mod='cyp_withdrawalbutton'} #{$request.id_withdrawal_request|intval}
{l s='Withdrawal request' mod='simple_withdrawalbutton'} #{$request.id_withdrawal_request|intval}
</div>
<div class="row">
@@ -9,46 +9,46 @@
<table class="table">
<tbody>
<tr>
<th>{l s='Received' mod='cyp_withdrawalbutton'}</th>
<th>{l s='Received' mod='simple_withdrawalbutton'}</th>
<td>{$request.created_at|escape:'html':'UTF-8'}</td>
</tr>
<tr>
<th>{l s='Confirmation sent' mod='cyp_withdrawalbutton'}</th>
<th>{l s='Confirmation sent' mod='simple_withdrawalbutton'}</th>
<td>{if $request.confirmation_sent_at}{$request.confirmation_sent_at|escape:'html':'UTF-8'}{else}-{/if}</td>
</tr>
<tr>
<th>{l s='Order reference' mod='cyp_withdrawalbutton'}</th>
<th>{l s='Order reference' mod='simple_withdrawalbutton'}</th>
<td>
{$request.order_reference|escape:'html':'UTF-8'}
{if $order_link != ''}
<br><a href="{$order_link|escape:'html':'UTF-8'}">{l s='Open order' mod='cyp_withdrawalbutton'}</a>
<br><a href="{$order_link|escape:'html':'UTF-8'}">{l s='Open order' mod='simple_withdrawalbutton'}</a>
{/if}
</td>
</tr>
<tr>
<th>{l s='Name' mod='cyp_withdrawalbutton'}</th>
<th>{l s='Name' mod='simple_withdrawalbutton'}</th>
<td>{$request.customer_name|escape:'html':'UTF-8'}</td>
</tr>
<tr>
<th>{l s='Email' mod='cyp_withdrawalbutton'}</th>
<th>{l s='Email' mod='simple_withdrawalbutton'}</th>
<td><a href="mailto:{$request.customer_email|escape:'html':'UTF-8'}">{$request.customer_email|escape:'html':'UTF-8'}</a></td>
</tr>
<tr>
<th>{l s='Scope' mod='cyp_withdrawalbutton'}</th>
<th>{l s='Scope' mod='simple_withdrawalbutton'}</th>
<td>
{if $request.withdrawal_scope == 'partial'}
{l s='Partial withdrawal' mod='cyp_withdrawalbutton'}
{l s='Partial withdrawal' mod='simple_withdrawalbutton'}
{else}
{l s='Full order' mod='cyp_withdrawalbutton'}
{l s='Full order' mod='simple_withdrawalbutton'}
{/if}
</td>
</tr>
<tr>
<th>{l s='Affected items / quantities' mod='cyp_withdrawalbutton'}</th>
<th>{l s='Affected items / quantities' mod='simple_withdrawalbutton'}</th>
<td>{if $request.withdrawal_items_text}{$request.withdrawal_items_text|escape:'html':'UTF-8'|nl2br nofilter}{else}-{/if}</td>
</tr>
<tr>
<th>{l s='Message' mod='cyp_withdrawalbutton'}</th>
<th>{l s='Message' mod='simple_withdrawalbutton'}</th>
<td>{if $request.message}{$request.message|escape:'html':'UTF-8'|nl2br nofilter}{else}-{/if}</td>
</tr>
</tbody>
@@ -59,15 +59,15 @@
<form method="post" action="{$current_index|escape:'html':'UTF-8'}&amp;token={$token|escape:'html':'UTF-8'}">
<input type="hidden" name="{$identifier|escape:'html':'UTF-8'}" value="{$request.id_withdrawal_request|intval}">
<div class="form-group">
<label for="cyp_withdrawal_status">{l s='Status' mod='cyp_withdrawalbutton'}</label>
<label for="cyp_withdrawal_status">{l s='Status' mod='simple_withdrawalbutton'}</label>
<select name="status" id="cyp_withdrawal_status" class="form-control">
<option value="new" {if $request.status == 'new'}selected{/if}>{l s='New' mod='cyp_withdrawalbutton'}</option>
<option value="processing" {if $request.status == 'processing'}selected{/if}>{l s='Processing' mod='cyp_withdrawalbutton'}</option>
<option value="closed" {if $request.status == 'closed'}selected{/if}>{l s='Closed' mod='cyp_withdrawalbutton'}</option>
<option value="new" {if $request.status == 'new'}selected{/if}>{l s='New' mod='simple_withdrawalbutton'}</option>
<option value="processing" {if $request.status == 'processing'}selected{/if}>{l s='Processing' mod='simple_withdrawalbutton'}</option>
<option value="closed" {if $request.status == 'closed'}selected{/if}>{l s='Closed' mod='simple_withdrawalbutton'}</option>
</select>
</div>
<button type="submit" name="submitCypWithdrawalStatus" value="1" class="btn btn-primary">
{l s='Update status' mod='cyp_withdrawalbutton'}
{l s='Update status' mod='simple_withdrawalbutton'}
</button>
</form>
</div>
@@ -75,7 +75,7 @@
<div class="panel-footer">
<a href="{$back_link|escape:'html':'UTF-8'}" class="btn btn-default">
<i class="process-icon-back"></i> {l s='Back to list' mod='cyp_withdrawalbutton'}
<i class="process-icon-back"></i> {l s='Back to list' mod='simple_withdrawalbutton'}
</a>
</div>
</div>