Add simple_withdrawalbutton PrestaShop module
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
<div class="panel">
|
||||
<h3><i class="icon-info-circle"></i> {l s='Installation notes' mod='simple_withdrawalbutton'}</h3>
|
||||
<p>
|
||||
{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='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='simple_withdrawalbutton'}
|
||||
</p>
|
||||
</div>
|
||||
@@ -0,0 +1,2 @@
|
||||
<?php
|
||||
/** Silence is golden. */
|
||||
@@ -0,0 +1,81 @@
|
||||
<div class="panel">
|
||||
<div class="panel-heading">
|
||||
<i class="icon-undo"></i>
|
||||
{l s='Withdrawal request' mod='simple_withdrawalbutton'} #{$request.id_withdrawal_request|intval}
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-8">
|
||||
<table class="table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<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='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='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='simple_withdrawalbutton'}</a>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{l s='Name' mod='simple_withdrawalbutton'}</th>
|
||||
<td>{$request.customer_name|escape:'html':'UTF-8'}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<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='simple_withdrawalbutton'}</th>
|
||||
<td>
|
||||
{if $request.withdrawal_scope == 'partial'}
|
||||
{l s='Partial withdrawal' mod='simple_withdrawalbutton'}
|
||||
{else}
|
||||
{l s='Full order' mod='simple_withdrawalbutton'}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<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='simple_withdrawalbutton'}</th>
|
||||
<td>{if $request.message}{$request.message|escape:'html':'UTF-8'|nl2br nofilter}{else}-{/if}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4">
|
||||
<form method="post" action="{$current_index|escape:'html':'UTF-8'}&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='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='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="submitSimpleWithdrawalStatus" value="1" class="btn btn-primary">
|
||||
{l s='Update status' mod='simple_withdrawalbutton'}
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<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='simple_withdrawalbutton'}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user