first commit

This commit is contained in:
2024-11-05 12:22:50 +01:00
commit e5682a3912
19641 changed files with 2948548 additions and 0 deletions

View File

@@ -0,0 +1,64 @@
{**
* Copyright 2021-2022 InPost S.A.
*
* NOTICE OF LICENSE
*
* Licensed under the EUPL-1.2 or later.
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence at:
* https://joinup.ec.europa.eu/software/page/eupl
* It is also bundled with this package in the file LICENSE.txt
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the Licence is distributed on an AS IS basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions
* and limitations under the Licence.
*
* @author InPost S.A.
* @copyright 2021-2022 InPost S.A.
* @license https://joinup.ec.europa.eu/software/page/eupl
*}
<div id="inpost-product-template" class="panel product-tab">
<h3>{l s='Default InPost shipment dimension template' mod='inpostshipping'}</h3>
<div class="form-group">
<label class="control-label col-lg-3" for="inpost-dimension-template">
<span class="label-tooltip"
data-toggle="tooltip"
title="{l s='Templates for parcel locker shipments will be automatically filled based on the largest template selected for the ordered products' mod='inpostshipping'}"
>
{l s='Dimension template' mod='inpostshipping'}
</span>
</label>
<div class="col-lg-5">
<select id="inpost-dimension-template" name="inpost_dimension_template">
<option value=""{if !$selectedTemplate} selected="selected"{/if}>---</option>
{foreach $templateChoices as $choice}
<option value="{$choice.value|escape:'html':'UTF-8'}"
{if $selectedTemplate === $choice.value}selected="selected"{/if}
>
{$choice.text|escape:'html':'UTF-8'}
</option>
{/foreach}
</select>
</div>
</div>
<div class="panel-footer">
<a href="{$link->getAdminLink('AdminProducts')|escape:'html':'UTF-8'}" class="btn btn-default">
<i class="process-icon-cancel"></i>
{l s='Cancel'}
</a>
<button type="submit" name="submitAddproduct" class="btn btn-default pull-right">
<i class="process-icon-save"></i>
{l s='Save'}
</button>
<button type="submit" name="submitAddproductAndStay" class="btn btn-default pull-right">
<i class="process-icon-save"></i>
{l s='Save and stay'}
</button>
</div>
</div>

View File

@@ -0,0 +1,135 @@
{**
* Copyright 2021-2022 InPost S.A.
*
* NOTICE OF LICENSE
*
* Licensed under the EUPL-1.2 or later.
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence at:
* https://joinup.ec.europa.eu/software/page/eupl
* It is also bundled with this package in the file LICENSE.txt
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the Licence is distributed on an AS IS basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions
* and limitations under the Licence.
*
* @author InPost S.A.
* @copyright 2021-2022 InPost S.A.
* @license https://joinup.ec.europa.eu/software/page/eupl
*}
<div class="inpost-shipping-container col-sm-12 js-inpost-shipping-container">
<div class="row">
<div class="col-sm-12">
<div class="js-inpost-shipping-errors"></div>
</div>
</div>
<div class="row">
{if $lockerService}
<div class="col-sm-6 col-md-7">
<div class="inpost-shipping-machine-info js-inpost-shipping-machine-info {if !isset($locker) || !$locker}hidden{/if}">
<p class="inpost-shipping-machine-name">
{l s='Parcel Locker' mod='inpostshipping'}
<span class="js-inpost-shipping-machine-name">
{if isset($locker.name)}{$locker.name|escape:'html':'UTF-8'}{/if}
</span>
</p>
<p class="inpost-shipping-machine-address js-inpost-shipping-machine-address">
{if isset($locker.address.line1) && isset($locker.address.line2)}
{$locker.address.line1|escape:'html':'UTF-8'}, {$locker.address.line2|escape:'html':'UTF-8'}
{/if}
</p>
</div>
<div class="form-group mb-0">
<span
class="btn inpost-shipping-button js-inpost-shipping-choose-machine"
data-inpost-shipping-payment="{$cashOnDelivery|intval}"
data-inpost-shipping-weekend-delivery="{$weekendDelivery|intval}"
data-inpost-shipping-existing-text="{l s='Change the selected Parcel Locker' mod='inpostshipping'}"
>
{if isset($locker) && $locker}
{l s='Change the selected Parcel Locker' mod='inpostshipping'}
{else}
{l s='Select a Parcel Locker' mod='inpostshipping'}
{/if}
</span>
</div>
<div class="form-group d-none">
<input type="text"
name="inpost_locker[{$id_carrier|intval}]"
value="{if isset($locker)}{$locker.name|escape:'html':'UTF-8'}{/if}"
class="js-inpost-shipping-input form-control"
data-error-text="{l s='Please select a Parcel Locker' mod='inpostshipping'}"
>
</div>
</div>
{/if}
<div class="col-sm-6 col-md-5{if !$lockerService} col-md-offset-7 col-sm-offset-6{/if}">
<div class="inpost-shipping-machine-customer-info js-inpost-shipping-machine-customer-info">
<p class="inpost-shipping-subheader">
{l s='Your data' mod='inpostshipping'}:
</p>
<p class="inpost-shipping-customer">
<span class="inpost-shipping-label">{l s='Email' mod='inpostshipping'}:</span>
<span class="js-inpost-shipping-customer-info-email">{$email|escape:'html':'UTF-8'}</span>
</p>
<p class="inpost-shipping-customer">
<span class="inpost-shipping-label">{l s='Phone' mod='inpostshipping'}:</span>
<span class="js-inpost-shipping-customer-info-phone">{$phone|escape:'html':'UTF-8'}</span>
</p>
<p class="inpost-shipping-customer-change-wrapper">
<a class="inpost-shipping-customer-change js-inpost-shipping-customer-change">
{l s='change' mod='inpostshipping'}
</a>
</p>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="inpost-shipping-customer-change-form" {if isset($errors.email) || isset($errors.phone) || empty($phone)}style="display: block"{/if}>
<div class="form-group {if isset($errors.email)}has-error{/if}">
<input type="text"
id="inpost_email_{$id_carrier|intval}"
name="inpost_email"
value="{$email|escape:'html':'UTF-8'}"
class="form-control js-inpost-shipping-email"
>
{if isset($errors.email)}
<div class="help-block">
<ul>
<li class="alert alert-danger">{$errors.email|escape:'html':'UTF-8'}</li>
</ul>
</div>
{/if}
</div>
<div class="form-group {if isset($errors.phone)}has-error{/if}">
<input type="text"
id="inpost_phone_{$id_carrier|intval}"
name="inpost_phone"
value="{$phone|escape:'html':'UTF-8'}"
class="form-control js-inpost-shipping-phone"
>
{if isset($errors.phone)}
<div class="help-block">
<ul>
<li class="alert alert-danger">{$errors.phone|escape:'html':'UTF-8'}</li>
</ul>
</div>
{/if}
</div>
<div class="form-group mb-0">
<span class="btn btn-primary js-inpost-shipping-customer-form-save-button">
{l s='Save' mod='inpostshipping'}
</span>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,32 @@
<?php
/**
* Copyright 2021-2022 InPost S.A.
*
* NOTICE OF LICENSE
*
* Licensed under the EUPL-1.2 or later.
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence at:
* https://joinup.ec.europa.eu/software/page/eupl
* It is also bundled with this package in the file LICENSE.txt
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the Licence is distributed on an AS IS basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions
* and limitations under the Licence.
*
* @author InPost S.A.
* @copyright 2021-2022 InPost S.A.
* @license https://joinup.ec.europa.eu/software/page/eupl
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;

View File

@@ -0,0 +1,34 @@
{**
* Copyright 2021-2022 InPost S.A.
*
* NOTICE OF LICENSE
*
* Licensed under the EUPL-1.2 or later.
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence at:
* https://joinup.ec.europa.eu/software/page/eupl
* It is also bundled with this package in the file LICENSE.txt
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the Licence is distributed on an AS IS basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions
* and limitations under the Licence.
*
* @author InPost S.A.
* @copyright 2021-2022 InPost S.A.
* @license https://joinup.ec.europa.eu/software/page/eupl
*}
<div class="box box-small clearfix">
<a class="button btn btn-default button-medium pull-right" href="{$returnFormUrl|escape:'html':'UTF-8'}" target="_blank">
<span>
{l s='Return order' mod='inpostshipping'}
<i class="icon-chevron-right right"></i>
</span>
</a>
<p class="dark">
{l s='Szybkie Zwroty info text' mod='inpostshipping'}
</p>
</div>

View File

@@ -0,0 +1,125 @@
{**
* Copyright 2021-2022 InPost S.A.
*
* NOTICE OF LICENSE
*
* Licensed under the EUPL-1.2 or later.
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence at:
* https://joinup.ec.europa.eu/software/page/eupl
* It is also bundled with this package in the file LICENSE.txt
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the Licence is distributed on an AS IS basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions
* and limitations under the Licence.
*
* @author InPost S.A.
* @copyright 2021-2022 InPost S.A.
* @license https://joinup.ec.europa.eu/software/page/eupl
*}
<div class="tab tab-pane" id="inpostshipping">
<div class="card card-details mb-0">
<div class="card-header d-none d-print-block">
{l s='InPost Shipments' mod='inpostshipping'} (<span class="count">{$inPostShipments|count}</span>)
</div>
<div class="card-body">
<div class="form-horizontal">
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th>{l s='Service' mod='inpostshipping'}</th>
<th>{l s='Shipment number' mod='inpostshipping'}</th>
<th>{l s='State' mod='inpostshipping'}</th>
<th class="text-right">{l s='Price' mod='inpostshipping'}</th>
<th>{l s='Created at' mod='inpostshipping'}</th>
<th class="text-right product_actions d-print-none">
{l s='Actions' mod='inpostshipping'}
</th>
</tr>
</thead>
<tbody>
{foreach $inPostShipments as $shipment}
<tr>
<td>
{$shipment.service|escape:'html':'UTF-8'}
</td>
<td>
{$shipment.tracking_number|escape:'html':'UTF-8'}
</td>
<td>
{if $shipment.status.description}
<span class="text-primary cursor-pointer" data-toggle="pstooltip" data-boundary="window" data-original-title="{$shipment.status.description|escape:'html':'UTF-8'}">
{$shipment.status.title|escape:'html':'UTF-8'}
</span>
{else}
{$shipment.status.title|escape:'html':'UTF-8'}
{/if}
</td>
<td class="text-right">
{if $shipment.price}{$shipment.price|escape:'html':'UTF-8'}{else}--{/if}
</td>
<td>
{$shipment.date_add|escape:'html':'UTF-8'}
</td>
<td class="d-print-none action-type">
<div class="btn-group-action text-right">
<div class="btn-group">
<a href="{$shipment.viewUrl|escape:'html':'UTF-8'}"
class="btn tooltip-link js-view-inpost-shipment-details"
data-toggle="pstooltip"
data-original-title="{l s='Details' mod='inpostshipping'}"
data-id-shipment="{$shipment.id|intval}"
>
<i class="material-icons">zoom_in</i>
</a>
<button class="btn btn-link dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"></button>
<div class="dropdown-menu dropdown-menu-right">
{foreach from=$shipment.actions key=key item=action name=actions}
<a class="btn tooltip-link js-{$key|escape:'html':'UTF-8'} dropdown-item"
href="{$action.url|escape:'html':'UTF-8'}"
data-id-shipment="{$shipment.id|intval}"
>
<i class="material-icons">
{if $action.icon === 'truck'}
local_shipping
{else}
{$action.icon|escape:'html':'UTF-8'}
{/if}
</i>
{$action.text|escape:'html':'UTF-8'}
</a>
{/foreach}
</div>
</div>
</div>
</td>
</tr>
{/foreach}
</tbody>
</table>
<div class="row no-gutters d-print-none">
<div class="col-sm-12 text-right">
<a class="btn btn-secondary" href="{$inPostShipmentsListUrl|escape:'html':'UTF-8'}">
{l s='Go to shipments list' mod='inpostshipping'}
</a>
<button class="btn btn-primary" data-toggle="modal" data-target="#inpost-create-shipment-modal">
{l s='New shipment' mod='inpostshipping'}
</button>
</div>
</div>
</div>
</div>
</div>
</div>
{if isset($inPostLockerAddress)}
<div class="js-inpost-locker-address" style="display: none">
{$inPostLockerAddress}
</div>
{/if}
</div>

View File

@@ -0,0 +1,28 @@
{**
* Copyright 2021-2022 InPost S.A.
*
* NOTICE OF LICENSE
*
* Licensed under the EUPL-1.2 or later.
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence at:
* https://joinup.ec.europa.eu/software/page/eupl
* It is also bundled with this package in the file LICENSE.txt
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the Licence is distributed on an AS IS basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions
* and limitations under the Licence.
*
* @author InPost S.A.
* @copyright 2021-2022 InPost S.A.
* @license https://joinup.ec.europa.eu/software/page/eupl
*}
<li class="nav-item d-print-none">
<a class="nav-link" data-toggle="tab" id="inpostshipping-nav" href="#inpostshipping">
<i class="material-icons">local_shipping</i>
{l s='InPost Shipments' mod='inpostshipping'} (<span class="count">{$inPostShipments|count}</span>)
</a>
</li>

View File

@@ -0,0 +1,32 @@
<?php
/**
* Copyright 2021-2022 InPost S.A.
*
* NOTICE OF LICENSE
*
* Licensed under the EUPL-1.2 or later.
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence at:
* https://joinup.ec.europa.eu/software/page/eupl
* It is also bundled with this package in the file LICENSE.txt
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the Licence is distributed on an AS IS basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions
* and limitations under the Licence.
*
* @author InPost S.A.
* @copyright 2021-2022 InPost S.A.
* @license https://joinup.ec.europa.eu/software/page/eupl
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;

View File

@@ -0,0 +1,60 @@
{**
* Copyright 2021-2022 InPost S.A.
*
* NOTICE OF LICENSE
*
* Licensed under the EUPL-1.2 or later.
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence at:
* https://joinup.ec.europa.eu/software/page/eupl
* It is also bundled with this package in the file LICENSE.txt
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the Licence is distributed on an AS IS basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions
* and limitations under the Licence.
*
* @author InPost S.A.
* @copyright 2021-2022 InPost S.A.
* @license https://joinup.ec.europa.eu/software/page/eupl
*}
<form id="inpost-dispatch-order-form"
class="defaultForm form-horizontal"
enctype="multipart/form-data"
action="{$dispatchOrderAction|escape:'html':'UTF-8'}"
autocomplete="off"
>
<div class="panel-body">
<div id="inpost-dispatch-order-form-errors"></div>
<div class="form-wrapper">
<input type="hidden" name="id_shipment" value="">
<div class="row">
<div class="col">
<div class="form-group">
<label for="id_dispatch_point" class="form-control-label">
{l s='Dispatch point' mod='inpostshipping'}
</label>
<div class="input-group">
<select name="id_dispatch_point" id="id_dispatch_point" class="custom-select">
{foreach $dispatchPointChoices as $choice}
<option value="{$choice.value|intval}"{if $choice.value == $defaultDispatchPoint} selected="selected"{/if}>
{$choice.text|escape:'html':'UTF-8'}
</option>
{/foreach}
</select>
<a class="btn btn-primary fixed-width-md js-inpost-new-dispatch-order"
href="{$newDispatchPointUrl|escape:'html':'UTF-8'}"
>
{l s='Add new' mod='inpostshipping'}
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</form>

View File

@@ -0,0 +1,412 @@
{**
* Copyright 2021-2022 InPost S.A.
*
* NOTICE OF LICENSE
*
* Licensed under the EUPL-1.2 or later.
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence at:
* https://joinup.ec.europa.eu/software/page/eupl
* It is also bundled with this package in the file LICENSE.txt
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the Licence is distributed on an AS IS basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions
* and limitations under the Licence.
*
* @author InPost S.A.
* @copyright 2021-2022 InPost S.A.
* @license https://joinup.ec.europa.eu/software/page/eupl
*}
<form id="inpost-shipment-form"
class="defaultForm form-horizontal"
enctype="multipart/form-data"
action="{$shipmentAction|escape:'html':'UTF-8'}"
autocomplete="off"
>
<div class="panel-body">
<div id="inpost-shipment-form-errors"></div>
<div class="form-wrapper">
<input type="hidden" name="id_order" value="{$id_order|intval}">
<div class="row">
<div class="col">
<div class="form-group">
<label for="customer_email" class="form-control-label">
{l s='Receiver email' mod='inpostshipping'}
</label>
<input
class="form-control" type="text" name="email" id="customer_email"
value="{$customerEmail|escape:'html':'UTF-8'}"
>
</div>
</div>
</div>
<div class="row">
<div class="col">
<div class="form-group">
<label for="customer_phone" class="form-control-label">
{l s='Receiver phone' mod='inpostshipping'}
</label>
<input class="form-control" type="text" name="phone" id="customer_phone" value="{$customerPhone|escape:'html':'UTF-8'}">
</div>
</div>
</div>
<div class="row">
<div class="col">
<div class="form-group">
<label for="service" class="form-control-label">
{l s='Shipping service' mod='inpostshipping'}
</label>
<select name="service" id="service" class="custom-select">
{foreach $serviceChoices as $choice}
<option value="{$choice.value|escape:'html':'UTF-8'}"
{if $choice.disabled}disabled="disabled"{/if}
{if $choice.value == $selectedService}selected="selected"{/if}
{if isset($defaultTemplates[$choice.value])}
data-default-template="{$defaultTemplates[$choice.value]|escape:'html':'UTF-8'}"
{/if}
{if $choice.availableTemplates}
data-templates='["{implode('","', $choice.availableTemplates)|escape:'html':'UTF-8'}"]'
{/if}
{if isset($defaultSendingMethods[$choice.value])}
data-default-sending-method="{$defaultSendingMethods[$choice.value]|escape:'html':'UTF-8'}"
{/if}
data-sending-methods='["{implode('","', $choice.availableSendingMethods)|escape:'html':'UTF-8'}"]'
>
{$choice.text|escape:'html':'UTF-8'}
</option>
{/foreach}
</select>
</div>
</div>
</div>
<div class="row">
<div class="col">
<div class="form-group">
<label for="sending_method" class="form-control-label">
{l s='Sending method' mod='inpostshipping'}
</label>
<select name="sending_method" id="sending_method" class="custom-select">
{foreach $sendingMethodChoices as $choice}
<option value="{$choice.value|escape:'html':'UTF-8'}"
{if $choice.value == $defaultSendingMethod}selected="selected"{/if}
{if $choice.unavailableTemplates}
data-unavailable-templates='["{implode('","', $choice.unavailableTemplates)|escape:'html':'UTF-8'}"]'
{/if}
>
{$choice.text|escape:'html':'UTF-8'}
</option>
{/foreach}
</select>
</div>
</div>
</div>
<div class="row">
<div class="col">
<div class="form-group">
<label for="dropoff_pop" class="form-control-label">
{l s='Sending point' mod='inpostshipping'}
</label>
<div class="input-group">
<input type="text"
name="dropoff_pop"
id="dropoff_pop"
value="{if $defaultPop}{$defaultPop.name|escape:'html':'UTF-8'}{/if}"
class="form-control"
data-type="pop"
data-function="parcel_send"
data-point="{if $defaultPop}{$defaultPop.name|escape:'html':'UTF-8'}{/if}"
>
<div class="input-group-append">
<button class="btn btn-outline-secondary js-inpost-show-map-input" data-target-input="#dropoff_pop">
{l s='Open map' mod='inpostshipping'}
</button>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col">
<div class="form-group">
<label for="dropoff_locker" class="form-control-label">
{l s='Sending point' mod='inpostshipping'}
</label>
<div class="input-group">
<input type="text"
name="dropoff_locker"
id="dropoff_locker"
value="{if $defaultLocker}{$defaultLocker.name|escape:'html':'UTF-8'}{/if}"
class="form-control"
data-type="parcel_locker"
data-function="parcel_send"
data-point="{if $defaultLocker}{$defaultLocker.name|escape:'html':'UTF-8'}{/if}"
>
<div class="input-group-append">
<button class="btn btn-outline-secondary js-inpost-show-map-input" data-target-input="#dropoff_locker">
{l s='Open map' mod='inpostshipping'}
</button>
</div>
</div>
</div>
</div>
</div>
<div id="inpost-locker-content-wrapper">
<div class="row">
<div class="col">
<div class="form-group">
<label for="sending_locker" class="form-control-label required">
{l s='Target point' mod='inpostshipping'}
</label>
<div class="input-group">
<input type="text"
name="target_point"
id="target_point"
value="{if $selectedPoint}{$selectedPoint|escape:'html':'UTF-8'}{/if}"
class="form-control"
data-payment="1"
data-type="parcel_locker"
data-function="parcel_collect"
data-point="{if $selectedPoint}{$selectedPoint|escape:'html':'UTF-8'}{/if}"
>
<div class="input-group-append">
<button class="btn btn-outline-secondary js-inpost-show-map-input" data-target-input="#target_point">
{l s='Open map' mod='inpostshipping'}
</button>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col">
<div class="form-group">
<label class="form-control-label">
{l s='Weekend delivery' mod='inpostshipping'}
</label>
<div class="input-group">
<span class="ps-switch">
<input type="radio"
name="weekend_delivery"
id="weekend_delivery_off"
value="0"
{if !$weekendDelivery}checked="checked"{/if}
>
<label for="weekend_delivery_off">{l s='No' mod='inpostshipping'}</label>
<input type="radio"
name="weekend_delivery"
id="weekend_delivery_on"
value="1"
{if $weekendDelivery}checked="checked"{/if}
>
<label for="weekend_delivery_on">{l s='Yes' mod='inpostshipping'}</label>
<a class="slide-button btn"></a>
</span>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col">
<div class="form-group">
<label for="reference" class="form-control-label">
{l s='Reference' mod='inpostshipping'}
</label>
<input
class="form-control" type="text" name="reference" id="reference"
value="{$shipmentReference|escape:'html':'UTF-8'}"
>
</div>
</div>
</div>
<div id="js-inpost-dimension-template-content-wrapper">
<div class="row">
<div class="col">
<div class="form-group">
<label class="form-control-label">
{l s='Use a predefined dimension template' mod='inpostshipping'}
</label>
<div class="input-group">
<span class="ps-switch">
<input type="radio" name="use_template" id="template_off" value="0"{if !$useTemplate} checked="checked"{/if}>
<label for="template_off">{l s='No' mod='inpostshipping'}</label>
<input type="radio" name="use_template" id="template_on" value="1"{if $useTemplate} checked="checked"{/if}>
<label for="template_on">{l s='Yes' mod='inpostshipping'}</label>
<a class="slide-button btn"></a>
</span>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col">
<div class="form-group"{if !$useTemplate} style="display: none"{/if}>
<label for="template" class="form-control-label">
{l s='Dimension template' mod='inpostshipping'}
</label>
<select name="template" id="template" class="custom-select">
{foreach $dimensionTemplateChoices as $choice}
<option value="{$choice.value|escape:'html':'UTF-8'}"{if $choice.value == $template} selected="selected"{/if}>
{$choice.text|escape:'html':'UTF-8'}
</option>
{/foreach}
</select>
</div>
</div>
</div>
</div>
<div id="js-inpost-package-dimensions"{if $useTemplate} style="display: none"{/if}>
<div class="row">
<div class="col">
<div class="form-group">
<label for="length" class="form-control-label required">
{l s='Length' mod='inpostshipping'}
</label>
<div class="input-group">
<div class="input-group-prepend">
<div class="input-group-text">mm</div>
</div>
<input type="text" name="dimensions[length]" id="length" value="{$length|floatval}" class="form-control">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col">
<div class="form-group">
<label for="width" class="form-control-label required">
{l s='Width' mod='inpostshipping'}
</label>
<div class="input-group">
<div class="input-group-prepend">
<div class="input-group-text">mm</div>
</div>
<input type="text" name="dimensions[width]" id="width" value="{$width|floatval}" class="form-control">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col">
<div class="form-group">
<label for="height" class="form-control-label required">
{l s='Height' mod='inpostshipping'}
</label>
<div class="input-group">
<div class="input-group-prepend">
<div class="input-group-text">mm</div>
</div>
<input type="text" name="dimensions[height]" id="height" value="{$height|floatval}" class="form-control">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col">
<div class="form-group">
<label for="weight" class="form-control-label required">
{l s='Weight' mod='inpostshipping'}
</label>
<div class="input-group">
<div class="input-group-prepend">
<div class="input-group-text">kg</div>
</div>
<input type="text" name="weight" id="weight" value="{$weight|floatval}" class="form-control">
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col">
<div class="form-group">
<label class="form-control-label">
{l s='Cash on delivery' mod='inpostshipping'}
</label>
<div class="input-group">
<span class="ps-switch">
<input type="radio" name="cod" id="cod_off" value="0"{if !$cashOnDelivery} checked="checked"{/if}>
<label for="cod_off">{l s='No' mod='inpostshipping'}</label>
<input type="radio" name="cod" id="cod_on" value="1" {if $cashOnDelivery} checked="checked"{/if}>
<label for="cod_on">{l s='Yes' mod='inpostshipping'}</label>
<a class="slide-button btn"></a>
</span>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col">
<div class="form-group">
<label for="cod_amount" class="form-control-label">
{l s='Cash on delivery amount' mod='inpostshipping'}
</label>
<div class="input-group">
<div class="input-group-prepend">
<div class="input-group-text">{$currencySign|escape:'html':'UTF-8'}</div>
</div>
<input type="text" name="cod_amount" id="cod_amount" value="{$orderTotal|floatval}" class="form-control">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col">
<div class="form-group">
<label class="form-control-label">
{l s='Insurance' mod='inpostshipping'}
</label>
<div class="input-group">
<span class="ps-switch">
<input type="radio" name="insurance" id="insurance_off" value="0" checked="checked">
<label for="insurance_off">{l s='No' mod='inpostshipping'}</label>
<input type="radio" name="insurance" id="insurance_on" value="1">
<label for="insurance_on">{l s='Yes' mod='inpostshipping'}</label>
<a class="slide-button btn"></a>
</span>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col">
<div class="form-group" style="display: none">
<label for="insurance_amount" class="form-control-label">
{l s='Insurance amount' mod='inpostshipping'}
</label>
<div class="input-group">
<div class="input-group-prepend">
<div class="input-group-text">{$currencySign|escape:'html':'UTF-8'}</div>
</div>
<input type="text" name="insurance_amount" id="insurance_amount" value="{$orderTotal|floatval}" class="form-control">
</div>
</div>
</div>
</div>
</div>
</div>
</form>

View File

@@ -0,0 +1,32 @@
<?php
/**
* Copyright 2021-2022 InPost S.A.
*
* NOTICE OF LICENSE
*
* Licensed under the EUPL-1.2 or later.
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence at:
* https://joinup.ec.europa.eu/software/page/eupl
* It is also bundled with this package in the file LICENSE.txt
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the Licence is distributed on an AS IS basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions
* and limitations under the Licence.
*
* @author InPost S.A.
* @copyright 2021-2022 InPost S.A.
* @license https://joinup.ec.europa.eu/software/page/eupl
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;

View File

@@ -0,0 +1,55 @@
{**
* Copyright 2021-2022 InPost S.A.
*
* NOTICE OF LICENSE
*
* Licensed under the EUPL-1.2 or later.
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence at:
* https://joinup.ec.europa.eu/software/page/eupl
* It is also bundled with this package in the file LICENSE.txt
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the Licence is distributed on an AS IS basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions
* and limitations under the Licence.
*
* @author InPost S.A.
* @copyright 2021-2022 InPost S.A.
* @license https://joinup.ec.europa.eu/software/page/eupl
*}
<div class="modal fade" id="{$modal_id|escape:'html':'UTF-8'}" tabindex="-1">
<div class="modal-dialog {if isset($modal_class)}{$modal_class|escape:'html':'UTF-8'}{/if}">
<div class="modal-content">
{if isset($modal_title)}
<div class="modal-header">
<h4 class="modal-title">{$modal_title|escape:'html':'UTF-8'}</h4>
<button type="button" class="close" data-dismiss="modal">&times;</button>
</div>
{/if}
<div class="modal-body">
{$modal_content}
</div>
{if isset($modal_actions)}
<div class="modal-footer">
<button type="button" class="btn btn-outline-secondary" data-dismiss="modal">{l s='Close' d='Admin.Actions'}</button>
{foreach $modal_actions as $action}
{if $action.type == 'link'}
<a href="{$action.href|escape:'html':'UTF-8'}" class="btn {$action.class|escape:'html':'UTF-8'}">
{$action.label|escape:'html':'UTF-8'}
</a>
{elseif $action.type == 'button'}
<button type="button" value="{$action.value|escape:'html':'UTF-8'}" class="btn {$action.class|escape:'html':'UTF-8'}">
{$action.label|escape:'html':'UTF-8'}
</button>
{/if}
{/foreach}
</div>
{/if}
</div>
</div>
</div>

View File

@@ -0,0 +1,75 @@
{**
* Copyright 2021-2022 InPost S.A.
*
* NOTICE OF LICENSE
*
* Licensed under the EUPL-1.2 or later.
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence at:
* https://joinup.ec.europa.eu/software/page/eupl
* It is also bundled with this package in the file LICENSE.txt
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the Licence is distributed on an AS IS basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions
* and limitations under the Licence.
*
* @author InPost S.A.
* @copyright 2021-2022 InPost S.A.
* @license https://joinup.ec.europa.eu/software/page/eupl
*}
<form id="inpost-print-shipment-label-form"
class="defaultForm form-horizontal"
enctype="multipart/form-data"
action=""
>
<div class="panel-body">
<div class="form-wrapper">
<div class="row">
<div class="col">
<div class="form-group">
<label class="form-control-label">
{l s='Label format' mod='inpostshipping'}
</label>
{foreach $labelFormatChoices as $choice}
<div class="radio">
<label>
<input type="radio"
name="label_format"
id="label_format_{$choice.value|escape:'html':'UTF-8'}"
value="{$choice.value|escape:'html':'UTF-8'}"
{if $choice.value === $defaultLabelFormat}checked="checked"{/if}
>
{$choice.text|escape:'html':'UTF-8'}
</label>
</div>
{/foreach}
</div>
</div>
<div class="col">
<div class="form-group">
<label class="form-control-label">
{l s='Label type' mod='inpostshipping'}
</label>
{foreach $labelTypeChoices as $choice}
<div class="radio">
<label>
<input type="radio"
name="label_type"
id="label_type_{$choice.value|escape:'html':'UTF-8'}"
value="{$choice.value|escape:'html':'UTF-8'}"
{if $choice.value === $defaultLabelType}checked="checked"{/if}
>
{$choice.text|escape:'html':'UTF-8'}
</label>
</div>
{/foreach}
</div>
</div>
</div>
</div>
</div>
</form>

View File

@@ -0,0 +1,182 @@
{**
* Copyright 2021-2022 InPost S.A.
*
* NOTICE OF LICENSE
*
* Licensed under the EUPL-1.2 or later.
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence at:
* https://joinup.ec.europa.eu/software/page/eupl
* It is also bundled with this package in the file LICENSE.txt
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the Licence is distributed on an AS IS basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions
* and limitations under the Licence.
*
* @author InPost S.A.
* @copyright 2021-2022 InPost S.A.
* @license https://joinup.ec.europa.eu/software/page/eupl
*}
<div class="panel-body">
<div class="form-horizontal">
<div class="form-group row">
<label class="form-control-label font-weight-bold">{l s='Reference' mod='inpostshipping'}</label>
<div class="col-sm">
<div class="form-control border-0">{$shipment.reference|escape:'html':'UTF-8'}</div>
</div>
</div>
<div class="form-group row">
<label class="form-control-label font-weight-bold">{l s='Shipment number' mod='inpostshipping'}</label>
<div class="col-sm">
<div class="form-control border-0">{$shipment.tracking_number|escape:'html':'UTF-8'}</div>
</div>
</div>
<div class="form-group row">
<label class="form-control-label font-weight-bold">{l s='Created at' mod='inpostshipping'}</label>
<div class="col-sm">
<div class="form-control border-0">{$shipment.date_add|escape:'html':'UTF-8'}</div>
</div>
</div>
<div class="form-group row">
<label class="form-control-label font-weight-bold">{l s='State' mod='inpostshipping'}</label>
<div class="col-sm">
<div class="form-control border-0">
{if $shipment.status.description}
<span class="text-primary cursor-pointer"
data-toggle="pstooltip"
data-original-title="{$shipment.status.description|escape:'html':'UTF-8'}"
>
{$shipment.status.title|escape:'html':'UTF-8'}
</span>
{else}
{$shipment.status.title|escape:'html':'UTF-8'}
{/if}
</div>
</div>
</div>
<div class="form-group row">
<label class="form-control-label font-weight-bold">{l s='Sending method' mod='inpostshipping'}</label>
<div class="col-sm">
<div class="form-control border-0">
{$shipment.sending_method|escape:'html':'UTF-8'}
</div>
</div>
</div>
{if $shipment.sending_point}
<div class="form-group row">
<label class="form-control-label font-weight-bold">{l s='Sending point' mod='inpostshipping'}</label>
<div class="col-sm">
<div class="form-control border-0">
<span class="js-inpost-show-map text-primary cursor-pointer"
id="inpost-map-{$shipment.sending_point|escape:'html':'UTF-8'}"
data-type="{$shipment.point_type|escape:'html':'UTF-8'}"
data-function="parcel_send"
data-point="{$shipment.sending_point|escape:'html':'UTF-8'}"
data-toggle="pstooltip"
data-original-title="{l s='Show on map' mod='inpostshipping'}"
>
{$shipment.sending_point|escape:'html':'UTF-8'}
</span>
</div>
</div>
</div>
{/if}
<div class="form-group row">
<label class="form-control-label font-weight-bold">{l s='InPost Service' mod='inpostshipping'}</label>
<div class="col-sm">
<div class="form-control border-0">
{$shipment.service|escape:'html':'UTF-8'}
{if $shipment.weekend_delivery}
- {l s='Weekend delivery' mod='inpostshipping'}
{/if}
</div>
</div>
</div>
<div class="form-group row">
<label class="form-control-label font-weight-bold">{l s='Receiver email' mod='inpostshipping'}</label>
<div class="col-sm">
<div class="form-control border-0">{$shipment.email|escape:'html':'UTF-8'}</div>
</div>
</div>
<div class="form-group row">
<label class="form-control-label font-weight-bold">{l s='Receiver phone' mod='inpostshipping'}</label>
<div class="col-sm">
<div class="form-control border-0">{$shipment.phone|escape:'html':'UTF-8'}</div>
</div>
</div>
{if $shipment.target_point}
<div class="form-group row">
<label class="form-control-label font-weight-bold">{l s='Target point' mod='inpostshipping'}</label>
<div class="col-sm">
<div class="form-control border-0">
<span class="js-inpost-show-map text-primary cursor-pointer"
id="inpost-map-{$shipment.target_point|escape:'html':'UTF-8'}"
data-type="parcel_locker"
data-function="parcel_collect"
data-point="{$shipment.target_point|escape:'html':'UTF-8'}"
data-toggle="pstooltip"
data-original-title="{l s='Show on map' mod='inpostshipping'}"
>
{$shipment.target_point|escape:'html':'UTF-8'}
</span>
</div>
</div>
</div>
{/if}
{if $shipment.template}
<div class="form-group row">
<label class="form-control-label font-weight-bold">{l s='Dimension template' mod='inpostshipping'}</label>
<div class="col-sm">
<div class="form-control border-0">{$shipment.template|escape:'html':'UTF-8'}</div>
</div>
</div>
{else}
<div class="form-group row">
<label class="form-control-label font-weight-bold">{l s='Dimensions' mod='inpostshipping'}</label>
<div class="col-sm">
<div class="form-control border-0">
{$shipment.dimensions.length|floatval} x {$shipment.dimensions.width|floatval} x {$shipment.dimensions.height|floatval} mm
</div>
</div>
</div>
<div class="form-group row">
<label class="form-control-label font-weight-bold">{l s='Weight' mod='inpostshipping'}</label>
<div class="col-sm">
<div class="form-control border-0">{$shipment.dimensions.weight|floatval} kg</div>
</div>
</div>
{/if}
{if $shipment.cod_amount}
<div class="form-group row">
<label class="form-control-label font-weight-bold">{l s='Cash on delivery amount' mod='inpostshipping'}</label>
<div class="col-sm">
<div class="form-control border-0">{$shipment.cod_amount|escape:'html':'UTF-8'}</div>
</div>
</div>
{/if}
{if $shipment.insurance_amount}
<div class="form-group row">
<label class="form-control-label font-weight-bold">{l s='Insurance amount' mod='inpostshipping'}</label>
<div class="col-sm">
<div class="form-control border-0">{$shipment.insurance_amount|escape:'html':'UTF-8'}</div>
</div>
</div>
{/if}
</div>
</div>

View File

@@ -0,0 +1,124 @@
{**
* Copyright 2021-2022 InPost S.A.
*
* NOTICE OF LICENSE
*
* Licensed under the EUPL-1.2 or later.
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence at:
* https://joinup.ec.europa.eu/software/page/eupl
* It is also bundled with this package in the file LICENSE.txt
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the Licence is distributed on an AS IS basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions
* and limitations under the Licence.
*
* @author InPost S.A.
* @copyright 2021-2022 InPost S.A.
* @license https://joinup.ec.europa.eu/software/page/eupl
*}
<div class="tab-pane" id="inpostshipping">
<h4 class="visible-print">{l s='InPost Shipments' mod='inpostshipping'}</h4>
<div class="form-horizontal">
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th>
<span class="title_box">{l s='Service' mod='inpostshipping'}</span>
</th>
<th>
<span class="title_box">{l s='Shipment number' mod='inpostshipping'}</span>
</th>
<th>
<span class="title_box">{l s='State' mod='inpostshipping'}</span>
</th>
<th>
<span class="title_box">{l s='Price' mod='inpostshipping'}</span>
</th>
<th>
<span class="title_box">{l s='Created at' mod='inpostshipping'}</span>
</th>
<th></th>
</tr>
</thead>
<tbody>
{foreach $inPostShipments as $shipment}
<tr>
<td>
{$shipment.service|escape:'html':'UTF-8'}
</td>
<td>
{$shipment.tracking_number|escape:'html':'UTF-8'}
</td>
<td>
{if $shipment.status.description}
<a data-toggle="tooltip" title="{$shipment.status.description|escape:'html':'UTF-8'}">
{$shipment.status.title|escape:'html':'UTF-8'}
</a>
{else}
{$shipment.status.title|escape:'html':'UTF-8'}
{/if}
</td>
<td>
{if $shipment.price}{$shipment.price|escape:'html':'UTF-8'}{else}--{/if}
</td>
<td>
{$shipment.date_add|escape:'html':'UTF-8'}
</td>
<td class="text-right">
<div class="btn-group-action">
<div class="btn-group pull-right">
<a href="{$shipment.viewUrl|escape:'html':'UTF-8'}"
class="btn btn-default js-view-inpost-shipment-details"
data-id-shipment="{$shipment.id|intval}"
>
<i class="icon-eye"></i>
{l s='Details' mod='inpostshipping'}
</a>
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown">
<i class="icon-caret-down"></i>&nbsp;
</button>
<ul class="dropdown-menu" role="menu">
{foreach from=$shipment.actions key=key item=action name=actions}
<li>
<a href="{$action.url|escape:'html':'UTF-8'}"
class="js-{$key|escape:'html':'UTF-8'}"
data-id-shipment="{$shipment.id|intval}"
>
<i class="icon-{$action.icon|escape:'html':'UTF-8'}"></i>
{$action.text|escape:'html':'UTF-8'}
</a>
</li>
{/foreach}
</ul>
</div>
</div>
</td>
</tr>
{/foreach}
</tbody>
</table>
<div class="row">
<a class="btn btn-default" href="{$inPostShipmentsListUrl|escape:'html':'UTF-8'}">
{l s='Go to shipments list' mod='inpostshipping'}
</a>
<button class="btn btn-primary" data-toggle="modal" data-target="#inpost-create-shipment-modal">
{l s='New shipment' mod='inpostshipping'}
</button>
</div>
</div>
</div>
{if isset($inPostLockerAddress)}
<div class="js-inpost-locker-address" style="display: none">
{$inPostLockerAddress}
</div>
{/if}
</div>

View File

@@ -0,0 +1,28 @@
{**
* Copyright 2021-2022 InPost S.A.
*
* NOTICE OF LICENSE
*
* Licensed under the EUPL-1.2 or later.
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence at:
* https://joinup.ec.europa.eu/software/page/eupl
* It is also bundled with this package in the file LICENSE.txt
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the Licence is distributed on an AS IS basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions
* and limitations under the Licence.
*
* @author InPost S.A.
* @copyright 2021-2022 InPost S.A.
* @license https://joinup.ec.europa.eu/software/page/eupl
*}
<li>
<a id="inpostshipping-nav" href="#inpostshipping">
<i class="icon-truck"></i>
{l s='InPost Shipments' mod='inpostshipping'} <span class="badge">{$inPostShipments|count}</span>
</a>
</li>

View File

@@ -0,0 +1,46 @@
{**
* Copyright 2021-2022 InPost S.A.
*
* NOTICE OF LICENSE
*
* Licensed under the EUPL-1.2 or later.
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence at:
* https://joinup.ec.europa.eu/software/page/eupl
* It is also bundled with this package in the file LICENSE.txt
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the Licence is distributed on an AS IS basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions
* and limitations under the Licence.
*
* @author InPost S.A.
* @copyright 2021-2022 InPost S.A.
* @license https://joinup.ec.europa.eu/software/page/eupl
*}
<div class="panel col-lg-12">
<div class="panel-heading">
<i class="icon-truck"></i>
{$moduleDisplayName|escape:'html':'UTF-8'}
</div>
<div class="panel-body">
<div class="btn-group dropup">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
{l s='For the selected orders' mod='inpostshipping'}
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
{foreach $bulkActions as $bulkAction}
<li>
<a href="#" class="{$bulkAction.class|escape:'html':'UTF-8'}" data-action="{$bulkAction.action|escape:'html':'UTF-8'}">
<i class="icon-{$bulkAction.icon|escape:'html':'UTF-8'}"></i>
{$bulkAction.label|escape:'html':'UTF-8'}
</a>
</li>
{/foreach}
</ul>
</div>
</div>
</div>

View File

@@ -0,0 +1,52 @@
{**
* Copyright 2021-2022 InPost S.A.
*
* NOTICE OF LICENSE
*
* Licensed under the EUPL-1.2 or later.
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence at:
* https://joinup.ec.europa.eu/software/page/eupl
* It is also bundled with this package in the file LICENSE.txt
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the Licence is distributed on an AS IS basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions
* and limitations under the Licence.
*
* @author InPost S.A.
* @copyright 2021-2022 InPost S.A.
* @license https://joinup.ec.europa.eu/software/page/eupl
*}
<div class="col-md-12">
<h2>
{l s='Default InPost shipment dimension template' mod='inpostshipping'}
<span class="help-box"
data-toggle="popover"
data-content="{l s='Templates for parcel locker shipments will be automatically filled based on the largest template selected for the ordered products' mod='inpostshipping'}"
></span>
</h2>
</div>
<div class="col-md-4">
<fieldset class="form-group">
<label for="inpost-dimension-template">
{l s='Dimension template' mod='inpostshipping'}
</label>
<select id="inpost-dimension-template"
name="inpost_dimension_template"
class="custom-select"
>
<option value=""{if !$selectedTemplate} selected="selected"{/if}>---</option>
{foreach $templateChoices as $choice}
<option value="{$choice.value|escape:'html':'UTF-8'}"
{if $selectedTemplate === $choice.value}selected="selected"{/if}
>
{$choice.text|escape:'html':'UTF-8'}
</option>
{/foreach}
</select>
</fieldset>
</div>

View File

@@ -0,0 +1,137 @@
{**
* Copyright 2021-2022 InPost S.A.
*
* NOTICE OF LICENSE
*
* Licensed under the EUPL-1.2 or later.
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence at:
* https://joinup.ec.europa.eu/software/page/eupl
* It is also bundled with this package in the file LICENSE.txt
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the Licence is distributed on an AS IS basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions
* and limitations under the Licence.
*
* @author InPost S.A.
* @copyright 2021-2022 InPost S.A.
* @license https://joinup.ec.europa.eu/software/page/eupl
*}
<div class="inpost-shipping-container col-sm-12 js-inpost-shipping-container">
<div class="row">
{if $lockerService}
<div class="col-sm-12">
<ul class="js-inpost-shipping-locker-errors">
{if isset($errors.locker)}
<li class="alert alert-danger">{$errors.locker|escape:'html':'UTF-8'}</li>
{/if}
</ul>
</div>
<div class="col-sm-6 col-md-7">
<div class="inpost-shipping-machine-info js-inpost-shipping-machine-info {if !isset($locker) || !$locker}hidden{/if}">
<p class="inpost-shipping-machine-name">
{l s='Parcel Locker' mod='inpostshipping'}
<span class="js-inpost-shipping-machine-name">
{if isset($locker.name)}{$locker.name|escape:'html':'UTF-8'}{/if}
</span>
</p>
<p class="inpost-shipping-machine-address js-inpost-shipping-machine-address">
{if isset($locker.address.line1) && isset($locker.address.line2)}
{$locker.address.line1|escape:'html':'UTF-8'}, {$locker.address.line2|escape:'html':'UTF-8'}
{/if}
</p>
</div>
<div class="form-group mb-0">
<span class="btn inpost-shipping-button js-inpost-shipping-choose-machine"
data-inpost-shipping-payment="{$cashOnDelivery|intval}"
data-inpost-shipping-weekend-delivery="{$weekendDelivery|intval}"
data-inpost-shipping-existing-text="{l s='Change the selected Parcel Locker' mod='inpostshipping'}"
>
{if isset($locker) && $locker}
{l s='Change the selected Parcel Locker' mod='inpostshipping'}
{else}
{l s='Select a Parcel Locker' mod='inpostshipping'}
{/if}
</span>
</div>
<div class="form-group d-none">
<input type="text"
name="inpost_locker[{$id_carrier|intval}]"
value="{if isset($locker)}{$locker.name|escape:'html':'UTF-8'}{/if}"
class="js-inpost-shipping-input form-control"
>
</div>
</div>
{/if}
<div class="col-sm-6 col-md-5{if !$lockerService} offset-md-7 offset-sm-6{/if}">
<div class="inpost-shipping-machine-customer-info js-inpost-shipping-machine-customer-info">
<p class="inpost-shipping-subheader">
{l s='Your data' mod='inpostshipping'}:
</p>
<p class="inpost-shipping-customer">
<span class="inpost-shipping-label">{l s='Email' mod='inpostshipping'}:</span>
<span class="js-inpost-shipping-customer-info-email">{$email|escape:'html':'UTF-8'}</span>
</p>
<p class="inpost-shipping-customer">
<span class="inpost-shipping-label">{l s='Phone' mod='inpostshipping'}:</span>
<span class="js-inpost-shipping-customer-info-phone">{$phone|escape:'html':'UTF-8'}</span>
</p>
<p class="inpost-shipping-customer-change-wrapper">
<a class="inpost-shipping-customer-change js-inpost-shipping-customer-change">
{l s='change' mod='inpostshipping'}
</a>
</p>
</div>
</div>
<div class="col-sm-12">
<div class="inpost-shipping-customer-change-form"
{if isset($errors.email) || isset($errors.phone) || empty($phone)}style="display: block"{/if}
>
<div class="form-group {if isset($errors.email)}has-error{/if}">
<input type="text"
id="inpost_email_{$id_carrier|intval}"
name="inpost_email"
value="{$email|escape:'html':'UTF-8'}"
class="form-control js-inpost-shipping-email"
>
<div class="help-block">
<ul>
{if isset($errors.email)}
<li class="alert alert-danger">{$errors.email|escape:'html':'UTF-8'}</li>
{/if}
</ul>
</div>
</div>
<div class="form-group {if isset($errors.phone)}has-error{/if}">
<input type="text"
id="inpost_phone_{$id_carrier|intval}"
name="inpost_phone"
value="{$phone|escape:'html':'UTF-8'}"
class="form-control js-inpost-shipping-phone"
>
<div class="help-block">
<ul>
{if isset($errors.phone)}
<li class="alert alert-danger">{$errors.phone|escape:'html':'UTF-8'}</li>
{/if}
</ul>
</div>
</div>
<div class="form-group mb-0">
<span class="btn btn-primary js-inpost-shipping-customer-form-save-button">
{l s='Save' mod='inpostshipping'}
</span>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,32 @@
<?php
/**
* Copyright 2021-2022 InPost S.A.
*
* NOTICE OF LICENSE
*
* Licensed under the EUPL-1.2 or later.
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence at:
* https://joinup.ec.europa.eu/software/page/eupl
* It is also bundled with this package in the file LICENSE.txt
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the Licence is distributed on an AS IS basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions
* and limitations under the Licence.
*
* @author InPost S.A.
* @copyright 2021-2022 InPost S.A.
* @license https://joinup.ec.europa.eu/software/page/eupl
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;

View File

@@ -0,0 +1,25 @@
{**
* Copyright 2021-2022 InPost S.A.
*
* NOTICE OF LICENSE
*
* Licensed under the EUPL-1.2 or later.
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence at:
* https://joinup.ec.europa.eu/software/page/eupl
* It is also bundled with this package in the file LICENSE.txt
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the Licence is distributed on an AS IS basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions
* and limitations under the Licence.
*
* @author InPost S.A.
* @copyright 2021-2022 InPost S.A.
* @license https://joinup.ec.europa.eu/software/page/eupl
*}
<div class="inpost-loader">
<i class="inpost-loader-animation"></i>
</div>

View File

@@ -0,0 +1,59 @@
{**
* Copyright 2021-2022 InPost S.A.
*
* NOTICE OF LICENSE
*
* Licensed under the EUPL-1.2 or later.
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence at:
* https://joinup.ec.europa.eu/software/page/eupl
* It is also bundled with this package in the file LICENSE.txt
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the Licence is distributed on an AS IS basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions
* and limitations under the Licence.
*
* @author InPost S.A.
* @copyright 2021-2022 InPost S.A.
* @license https://joinup.ec.europa.eu/software/page/eupl
*}
<form id="inpost-dispatch-order-form"
class="defaultForm form-horizontal"
enctype="multipart/form-data"
action="{$dispatchOrderAction|escape:'html':'UTF-8'}"
autocomplete="off"
>
<div class="panel-body">
<div id="inpost-dispatch-order-form-errors"></div>
<div class="form-wrapper">
<input type="hidden" name="id_shipment" value="">
<div class="form-group">
<label for="id_dispatch_point" class="control-label col-lg-3">
{l s='Dispatch point' mod='inpostshipping'}
</label>
<div class="col-lg-9">
<select name="id_dispatch_point" id="id_dispatch_point">
{foreach $dispatchPointChoices as $choice}
<option value="{$choice.value|intval}"{if $choice.value == $defaultDispatchPoint} selected="selected"{/if}>
{$choice.text|escape:'html':'UTF-8'}
</option>
{/foreach}
</select>
<div class="row-margin-top">
<a class="btn btn-primary fixed-width-md js-inpost-new-dispatch-order"
href="{$newDispatchPointUrl|escape:'html':'UTF-8'}"
>
{l s='Add new' mod='inpostshipping'}
</a>
</div>
</div>
</div>
</div>
</div>
</form>

View File

@@ -0,0 +1,339 @@
{**
* Copyright 2021-2022 InPost S.A.
*
* NOTICE OF LICENSE
*
* Licensed under the EUPL-1.2 or later.
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence at:
* https://joinup.ec.europa.eu/software/page/eupl
* It is also bundled with this package in the file LICENSE.txt
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the Licence is distributed on an AS IS basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions
* and limitations under the Licence.
*
* @author InPost S.A.
* @copyright 2021-2022 InPost S.A.
* @license https://joinup.ec.europa.eu/software/page/eupl
*}
<form id="inpost-shipment-form"
class="defaultForm form-horizontal"
enctype="multipart/form-data"
action="{$shipmentAction|escape:'html':'UTF-8'}"
autocomplete="off"
>
<div class="panel-body">
<div id="inpost-shipment-form-errors"></div>
<div class="form-wrapper">
<input type="hidden" name="id_order" value="{$id_order|intval}">
<div class="form-group">
<label for="customer_email" class="control-label col-lg-3">
{l s='Receiver email' mod='inpostshipping'}
</label>
<div class="col-lg-9">
<input type="text" name="email" id="customer_email" value="{$customerEmail|escape:'html':'UTF-8'}">
</div>
</div>
<div class="form-group">
<label for="customer_phone" class="control-label col-lg-3">
{l s='Receiver phone' mod='inpostshipping'}
</label>
<div class="col-lg-9">
<input type="text" name="phone" id="customer_phone" value="{$customerPhone|escape:'html':'UTF-8'}">
</div>
</div>
<div class="form-group">
<label for="service" class="control-label col-lg-3">
{l s='Shipping service' mod='inpostshipping'}
</label>
<div class="col-lg-9">
<select name="service" id="service">
{foreach $serviceChoices as $choice}
<option value="{$choice.value|escape:'html':'UTF-8'}"
{if $choice.disabled}disabled="disabled"{/if}
{if $choice.value == $selectedService}selected="selected"{/if}
{if isset($defaultTemplates[$choice.value])}
data-default-template="{$defaultTemplates[$choice.value]|escape:'html':'UTF-8'}"
{/if}
{if $choice.availableTemplates}
data-templates='["{implode('","', $choice.availableTemplates)|escape:'html':'UTF-8'}"]'
{/if}
{if isset($defaultSendingMethods[$choice.value])}
data-default-sending-method="{$defaultSendingMethods[$choice.value]|escape:'html':'UTF-8'}"
{/if}
data-sending-methods='["{implode('","', $choice.availableSendingMethods)|escape:'html':'UTF-8'}"]'
>
{$choice.text|escape:'html':'UTF-8'}
</option>
{/foreach}
</select>
</div>
</div>
<div class="form-group">
<label for="sending_method" class="control-label col-lg-3">
{l s='Sending method' mod='inpostshipping'}
</label>
<div class="col-lg-9">
<select name="sending_method" id="sending_method">
{foreach $sendingMethodChoices as $choice}
<option value="{$choice.value|escape:'html':'UTF-8'}"
{if $choice.value == $defaultSendingMethod}selected="selected"{/if}
{if $choice.unavailableTemplates}
data-unavailable-templates='["{implode('","', $choice.unavailableTemplates)|escape:'html':'UTF-8'}"]'
{/if}
>
{$choice.text|escape:'html':'UTF-8'}
</option>
{/foreach}
</select>
</div>
</div>
<div class="form-group">
<label for="dropoff_pop" class="control-label col-lg-3">
{l s='Sending point' mod='inpostshipping'}
</label>
<div class="col-lg-9">
<div class="input-group">
<input type="text"
name="dropoff_pop"
id="dropoff_pop"
value="{if $defaultPop}{$defaultPop.name|escape:'html':'UTF-8'}{/if}"
data-type="pop"
data-function="parcel_send"
data-point="{if $defaultPop}{$defaultPop.name|escape:'html':'UTF-8'}{/if}"
>
<span class="input-group-addon btn btn-default js-inpost-show-map-input" data-target-input="#dropoff_pop">
{l s='Open map' mod='inpostshipping'}
</span>
</div>
</div>
</div>
<div class="form-group">
<label for="dropoff_locker" class="control-label col-lg-3">
{l s='Sending point' mod='inpostshipping'}
</label>
<div class="col-lg-9">
<div class="input-group">
<input type="text"
name="dropoff_locker"
id="dropoff_locker"
value="{if $defaultLocker}{$defaultLocker.name|escape:'html':'UTF-8'}{/if}"
data-type="parcel_locker"
data-function="parcel_send"
data-point="{if $defaultLocker}{$defaultLocker.name|escape:'html':'UTF-8'}{/if}"
>
<span class="input-group-addon btn btn-default js-inpost-show-map-input" data-target-input="#dropoff_locker">
{l s='Open map' mod='inpostshipping'}
</span>
</div>
</div>
</div>
<div id="inpost-locker-content-wrapper">
<div class="form-group">
<label for="target_point" class="control-label col-lg-3 required">
{l s='Target point' mod='inpostshipping'}
</label>
<div class="col-lg-9">
<div class="input-group">
<input type="text"
name="target_point"
id="target_point"
value="{if $selectedPoint}{$selectedPoint|escape:'html':'UTF-8'}{/if}"
data-payment="1"
data-type="parcel_locker"
data-function="parcel_collect"
data-point="{if $selectedPoint}{$selectedPoint|escape:'html':'UTF-8'}{/if}"
>
<span class="input-group-addon btn btn-default js-inpost-show-map-input" data-target-input="#target_point">
{l s='Open map' mod='inpostshipping'}
</span>
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
{l s='Weekend delivery' mod='inpostshipping'}
</label>
<div class="col-lg-9">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio"
name="weekend_delivery"
id="weekend_delivery_on"
value="1"
{if $weekendDelivery}checked="checked"{/if}
>
<label for="weekend_delivery_on">{l s='Yes' mod='inpostshipping'}</label>
<input type="radio"
name="weekend_delivery"
id="weekend_delivery_off"
value="0"
{if !$weekendDelivery}checked="checked"{/if}
>
<label for="weekend_delivery_off">{l s='No' mod='inpostshipping'}</label>
<a class="slide-button btn"></a>
</span>
</div>
</div>
</div>
<div class="form-group">
<label for="reference" class="control-label col-lg-3">
{l s='Reference' mod='inpostshipping'}
</label>
<div class="col-lg-9">
<input type="text" name="reference" id="reference" value="{$shipmentReference|escape:'html':'UTF-8'}">
</div>
</div>
<div id="js-inpost-dimension-template-content-wrapper">
<div class="form-group">
<label class="control-label col-lg-3">
{l s='Use a predefined dimension template' mod='inpostshipping'}
</label>
<div class="col-lg-9">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio" name="use_template" id="template_on" value="1"{if $useTemplate} checked="checked"{/if}>
<label for="template_on">{l s='Yes' mod='inpostshipping'}</label>
<input type="radio" name="use_template" id="template_off" value="0"{if !$useTemplate} checked="checked"{/if}>
<label for="template_off">{l s='No' mod='inpostshipping'}</label>
<a class="slide-button btn"></a>
</span>
</div>
</div>
<div class="form-group"{if !$useTemplate} style="display: none"{/if}>
<label for="template" class="control-label col-lg-3">
{l s='Dimension template' mod='inpostshipping'}
</label>
<div class="col-lg-9">
<select name="template" id="template">
{foreach $dimensionTemplateChoices as $choice}
<option value="{$choice.value|escape:'html':'UTF-8'}"{if $choice.value == $template} selected="selected"{/if}>
{$choice.text|escape:'html':'UTF-8'}
</option>
{/foreach}
</select>
</div>
</div>
</div>
<div id="js-inpost-package-dimensions"{if $useTemplate} style="display: none"{/if}>
<div class="form-group">
<label for="length" class="control-label col-lg-3 required">
{l s='Length' mod='inpostshipping'}
</label>
<div class="col-lg-9">
<div class="input-group">
<input type="text" name="dimensions[length]" id="length" value="{$length|floatval}" class="text-right">
<span class="input-group-addon fixed-width-xs">mm</span>
</div>
</div>
</div>
<div class="form-group">
<label for="width" class="control-label col-lg-3 required">
{l s='Width' mod='inpostshipping'}
</label>
<div class="col-lg-9">
<div class="input-group">
<input type="text" name="dimensions[width]" id="width" value="{$width|floatval}" class="text-right">
<span class="input-group-addon fixed-width-xs">mm</span>
</div>
</div>
</div>
<div class="form-group">
<label for="height" class="control-label col-lg-3 required">
{l s='Height' mod='inpostshipping'}
</label>
<div class="col-lg-9">
<div class="input-group">
<input type="text" name="dimensions[height]" id="height" value="{$height|floatval}" class="text-right">
<span class="input-group-addon fixed-width-xs">mm</span>
</div>
</div>
</div>
<div class="form-group">
<label for="weight" class="control-label col-lg-3 required">
{l s='Weight' mod='inpostshipping'}
</label>
<div class="col-lg-9">
<div class="input-group">
<input type="text" name="weight" id="weight" value="{$weight|floatval}" class="text-right">
<span class="input-group-addon fixed-width-xs">kg</span>
</div>
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
{l s='Cash on delivery' mod='inpostshipping'}
</label>
<div class="col-lg-9">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio" name="cod" id="cod_on" value="1" {if $cashOnDelivery} checked="checked"{/if}>
<label for="cod_on">{l s='Yes' mod='inpostshipping'}</label>
<input type="radio" name="cod" id="cod_off" value="0"{if !$cashOnDelivery} checked="checked"{/if}>
<label for="cod_off">{l s='No' mod='inpostshipping'}</label>
<a class="slide-button btn"></a>
</span>
</div>
</div>
<div class="form-group">
<label for="cod_amount" class="control-label col-lg-3">
{l s='Cash on delivery amount' mod='inpostshipping'}
</label>
<div class="col-lg-9">
<div class="input-group">
<input type="text" name="cod_amount" id="cod_amount" value="{$orderTotal|floatval}" class="text-right">
<span class="input-group-addon fixed-width-xs">{$currencySign|escape:'html':'UTF-8'}</span>
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
{l s='Insurance' mod='inpostshipping'}
</label>
<div class="col-lg-9">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio" name="insurance" id="insurance_on" value="1">
<label for="insurance_on">{l s='Yes' mod='inpostshipping'}</label>
<input type="radio" name="insurance" id="insurance_off" value="0" checked="checked">
<label for="insurance_off">{l s='No' mod='inpostshipping'}</label>
<a class="slide-button btn"></a>
</span>
</div>
</div>
<div class="form-group" style="display: none">
<label for="insurance_amount" class="control-label col-lg-3">
{l s='Insurance amount' mod='inpostshipping'}
</label>
<div class="col-lg-9">
<div class="input-group">
<input type="text" name="insurance_amount" id="insurance_amount" value="{$orderTotal|floatval}" class="text-right">
<span class="input-group-addon fixed-width-xs">{$currencySign|escape:'html':'UTF-8'}</span>
</div>
</div>
</div>
</div>
</div>
</form>

View File

@@ -0,0 +1,32 @@
<?php
/**
* Copyright 2021-2022 InPost S.A.
*
* NOTICE OF LICENSE
*
* Licensed under the EUPL-1.2 or later.
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence at:
* https://joinup.ec.europa.eu/software/page/eupl
* It is also bundled with this package in the file LICENSE.txt
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the Licence is distributed on an AS IS basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions
* and limitations under the Licence.
*
* @author InPost S.A.
* @copyright 2021-2022 InPost S.A.
* @license https://joinup.ec.europa.eu/software/page/eupl
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;

View File

@@ -0,0 +1,73 @@
{**
* Copyright 2021-2022 InPost S.A.
*
* NOTICE OF LICENSE
*
* Licensed under the EUPL-1.2 or later.
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence at:
* https://joinup.ec.europa.eu/software/page/eupl
* It is also bundled with this package in the file LICENSE.txt
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the Licence is distributed on an AS IS basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions
* and limitations under the Licence.
*
* @author InPost S.A.
* @copyright 2021-2022 InPost S.A.
* @license https://joinup.ec.europa.eu/software/page/eupl
*}
<form id="inpost-print-shipment-label-form"
class="defaultForm form-horizontal"
enctype="multipart/form-data"
action=""
>
<div class="panel-body">
<div class="form-wrapper">
<div class="form-group">
<label class="control-label col-lg-3">
{l s='Label format' mod='inpostshipping'}
</label>
<div class="col-lg-9">
{foreach $labelFormatChoices as $choice}
<div class="radio">
<label>
<input type="radio"
name="label_format"
id="label_format_{$choice.value|escape:'html':'UTF-8'}"
value="{$choice.value|escape:'html':'UTF-8'}"
{if $choice.value === $defaultLabelFormat}checked="checked"{/if}
>
{$choice.text|escape:'html':'UTF-8'}
</label>
</div>
{/foreach}
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
{l s='Label type' mod='inpostshipping'}
</label>
<div class="col-lg-9">
{foreach $labelTypeChoices as $choice}
<div class="radio">
<label>
<input type="radio"
name="label_type"
id="label_type_{$choice.value|escape:'html':'UTF-8'}"
value="{$choice.value|escape:'html':'UTF-8'}"
{if $choice.value === $defaultLabelType}checked="checked"{/if}
>
{$choice.text|escape:'html':'UTF-8'}
</label>
</div>
{/foreach}
</div>
</div>
</div>
</div>
</form>

View File

@@ -0,0 +1,177 @@
{**
* Copyright 2021-2022 InPost S.A.
*
* NOTICE OF LICENSE
*
* Licensed under the EUPL-1.2 or later.
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence at:
* https://joinup.ec.europa.eu/software/page/eupl
* It is also bundled with this package in the file LICENSE.txt
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the Licence is distributed on an AS IS basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions
* and limitations under the Licence.
*
* @author InPost S.A.
* @copyright 2021-2022 InPost S.A.
* @license https://joinup.ec.europa.eu/software/page/eupl
*}
<div class="panel-body">
<div class="form-horizontal">
<div class="form-group">
<label class="col-lg-3 control-label">{l s='Reference' mod='inpostshipping'}</label>
<div class="col-lg-9">
<p class="form-control-static">{$shipment.reference|escape:'html':'UTF-8'}</p>
</div>
</div>
<div class="form-group">
<label class="col-lg-3 control-label">{l s='Shipment number' mod='inpostshipping'}</label>
<div class="col-lg-9">
<p class="form-control-static">{$shipment.tracking_number|escape:'html':'UTF-8'}</p>
</div>
</div>
<div class="form-group">
<label class="col-lg-3 control-label">{l s='Created at' mod='inpostshipping'}</label>
<div class="col-lg-9">
<p class="form-control-static">{$shipment.date_add|escape:'html':'UTF-8'}</p>
</div>
</div>
<div class="form-group">
<label class="col-lg-3 control-label">{l s='State' mod='inpostshipping'}</label>
<div class="col-lg-9">
<p class="form-control-static">
{if $shipment.status.description}
<a data-toggle="tooltip" title="{$shipment.status.description|escape:'html':'UTF-8'}">
{$shipment.status.title|escape:'html':'UTF-8'}
</a>
{else}
{$shipment.status.title|escape:'html':'UTF-8'}
{/if}
</p>
</div>
</div>
<div class="form-group">
<label class="col-lg-3 control-label">{l s='Sending method' mod='inpostshipping'}</label>
<div class="col-lg-9">
<p class="form-control-static">
{$shipment.sending_method|escape:'html':'UTF-8'}
</p>
</div>
</div>
{if $shipment.sending_point}
<div class="form-group">
<label class="col-lg-3 control-label">{l s='Sending point' mod='inpostshipping'}</label>
<div class="col-lg-9">
<p class="form-control-static">
<a class="js-inpost-show-map"
id="inpost-map-{$shipment.sending_point|escape:'html':'UTF-8'}"
data-type="{$shipment.point_type|escape:'html':'UTF-8'}"
data-function="parcel_send"
data-point="{$shipment.sending_point|escape:'html':'UTF-8'}"
title="{l s='Show on map' mod='inpostshipping'}"
>
{$shipment.sending_point|escape:'html':'UTF-8'}
</a>
</p>
</div>
</div>
{/if}
<div class="form-group">
<label class="col-lg-3 control-label">{l s='InPost Service' mod='inpostshipping'}</label>
<div class="col-lg-9">
<p class="form-control-static">
{$shipment.service|escape:'html':'UTF-8'}
{if $shipment.weekend_delivery}
- {l s='Weekend delivery' mod='inpostshipping'}
{/if}
</p>
</div>
</div>
<div class="form-group">
<label class="col-lg-3 control-label">{l s='Receiver email' mod='inpostshipping'}</label>
<div class="col-lg-9">
<p class="form-control-static">{$shipment.email|escape:'html':'UTF-8'}</p>
</div>
</div>
<div class="form-group">
<label class="col-lg-3 control-label">{l s='Receiver phone' mod='inpostshipping'}</label>
<div class="col-lg-9">
<p class="form-control-static">{$shipment.phone|escape:'html':'UTF-8'}</p>
</div>
</div>
{if $shipment.target_point}
<div class="form-group">
<label class="col-lg-3 control-label">{l s='Target point' mod='inpostshipping'}</label>
<div class="col-lg-9">
<p class="form-control-static">
<a class="js-inpost-show-map"
id="inpost-map-{$shipment.target_point|escape:'html':'UTF-8'}"
data-type="parcel_locker"
data-function="parcel_collect"
data-point="{$shipment.target_point|escape:'html':'UTF-8'}"
title="{l s='Show on map' mod='inpostshipping'}"
>
{$shipment.target_point|escape:'html':'UTF-8'}
</a>
</p>
</div>
</div>
{/if}
{if $shipment.template}
<div class="form-group">
<label class="col-lg-3 control-label">{l s='Dimension template' mod='inpostshipping'}</label>
<div class="col-lg-9">
<p class="form-control-static">{$shipment.template|escape:'html':'UTF-8'}</p>
</div>
</div>
{else}
<div class="form-group">
<label class="col-lg-3 control-label">{l s='Dimensions' mod='inpostshipping'}</label>
<div class="col-lg-9">
<p class="form-control-static">
{$shipment.dimensions.length|floatval} x {$shipment.dimensions.width|floatval} x {$shipment.dimensions.height|floatval} mm
</p>
</div>
</div>
<div class="form-group">
<label class="col-lg-3 control-label">{l s='Weight' mod='inpostshipping'}</label>
<div class="col-lg-9">
<p class="form-control-static">{$shipment.dimensions.weight|floatval} kg</p>
</div>
</div>
{/if}
{if $shipment.cod_amount}
<div class="form-group">
<label class="col-lg-3 control-label">{l s='Cash on delivery amount' mod='inpostshipping'}</label>
<div class="col-lg-9">
<p class="form-control-static">{$shipment.cod_amount|escape:'html':'UTF-8'}</p>
</div>
</div>
{/if}
{if $shipment.insurance_amount}
<div class="form-group">
<label class="col-lg-3 control-label">{l s='Insurance amount' mod='inpostshipping'}</label>
<div class="col-lg-9">
<p class="form-control-static">{$shipment.insurance_amount|escape:'html':'UTF-8'}</p>
</div>
</div>
{/if}
</div>
</div>

View File

@@ -0,0 +1,34 @@
{**
* Copyright 2021-2022 InPost S.A.
*
* NOTICE OF LICENSE
*
* Licensed under the EUPL-1.2 or later.
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence at:
* https://joinup.ec.europa.eu/software/page/eupl
* It is also bundled with this package in the file LICENSE.txt
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the Licence is distributed on an AS IS basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions
* and limitations under the Licence.
*
* @author InPost S.A.
* @copyright 2021-2022 InPost S.A.
* @license https://joinup.ec.europa.eu/software/page/eupl
*}
<div class="box">
<div class="row">
<div class="col-xs-9">
<p>{l s='Szybkie Zwroty info text' mod='inpostshipping'}</p>
</div>
<div class="col-xs-3 text-xs-right">
<a class="btn btn-primary" href="{$returnFormUrl|escape:'html':'UTF-8'}" target="_blank">
{l s='Return order' mod='inpostshipping'}
</a>
</div>
</div>
</div>