Files
2024-11-05 12:22:50 +01:00

574 lines
28 KiB
Smarty

{** 2019 DPD Polska Sp. z o.o.
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* prestashop@dpd.com.pl so we can send you a copy immediately.
*
* @author DPD Polska Sp. z o.o.
* @copyright 2019 DPD Polska Sp. z o.o.
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of DPD Polska Sp. z o.o.
*}
<br />
{if $displayBlock}
<script>
var dpdpoland_ajax_uri = '{$dpdpoland_ajax_uri|escape:'htmlall':'UTF-8'}';
var dpdpoland_pdf_uri = '{$smarty.const._DPDPOLAND_PDF_URI_|escape:'htmlall':'UTF-8'}';
var dpdpoland_token = '{$dpdpoland_token|escape:'htmlall':'UTF-8'}';
var dpdpoland_id_shop = '{$dpdpoland_id_shop|escape:'htmlall':'UTF-8'}';
var dpdpoland_id_lang = '{$dpdpoland_id_lang|escape:'htmlall':'UTF-8'}';
var _DPDPOLAND_DIMENTION_WEIGHT_DIVISOR_ = '{$smarty.const._DPDPOLAND_DIMENTION_WEIGHT_DIVISOR_|escape:'htmlall':'UTF-8'}';
var id_package_ws = '{$package->id_package_ws|escape:'htmlall':'UTF-8'}';
var _PS_ADMIN_DIR_ = '{$smarty.const._PS_ADMIN_DIR_|regex_replace:"/\\\/":"\\\\\\"}';
var dpdpoland_parcels_error_message = "{l s='All products should be assigned to a particular parcel!' mod='dpdpoland'}";
var modified_field_message = "{l s='Modified field' mod='dpdpoland'}";
var redirect_and_open = '{$redirect_and_open|escape:'htmlall':'UTF-8'}';
var printout_format = '{$printout_format|escape:'htmlall':'UTF-8'}';
var current_order_uri = '{$dpdpoland_order_uri|escape:'htmlall':'UTF-8'}';
{if isset($ps14) && $ps14}
var id_order = '{Tools::getValue('id_order')|escape:'htmlall':'UTF-8'}';
{/if}
$(document).ready(function(){
{if isset($smarty.get.scrollToShipment)}
$.scrollTo('#dpdpoland', 400, { offset: { top: -100 }});
{/if}
});
</script>
<div class="row">
<div class="col-lg-7">
<div class="panel dpdpoland-ps16" id="dpdpoland">
<div class="panel-heading">
<img src="{$smarty.const._DPDPOLAND_MODULE_URI_|escape:'htmlall':'UTF-8'}logo.gif" width="16" height="16"> {l s='DPD Polska Sp. z o.o. shipping' mod='dpdpoland'}
<span class="badge"><a href="javascript:toggleShipmentCreationDisplay()" rel="[ {l s='collapse' mod='dpdpoland'} ]">[ {l s='expand' mod='dpdpoland'} ]</a></span>
</div>
{if $smarty.const._DPDPOLAND_DEBUG_MODE_}
<div class="alert alert-warning">
{l s='Module is in DEBUG mode' mod='dpdpoland'}
{if Configuration::get(DpdPolandWS::DEBUG_FILENAME)}
<br>
<strong>
<a target="_blank" href="{$smarty.const._DPDPOLAND_MODULE_URI_|escape:'htmlall':'UTF-8'}{Configuration::get(DpdPolandWS::DEBUG_FILENAME)}">
{l s='View debug file' mod='dpdpoland'}
</a>
</strong>
{/if}
</div>
{/if}
<div id="dpdpoland_shipment_creation"{if isset($smarty.get.scrollToShipment)} class="displayed-element"{/if}>
<div id="dpdpoland_msg_container">{if isset($errors) && $errors}{include file=$smarty.const._PS_MODULE_DIR_|cat:'dpdpoland/views/templates/admin/errors.tpl'}{/if}</div>
{if isset($compatibility_warning_message) && $compatibility_warning_message}
<div class="alert alert-warning">
{$compatibility_warning_message|escape:'htmlall':'UTF-8'}
</div>
{/if}
{if isset($address_warning_message) && $address_warning_message}
<div class="alert alert-warning">
{$address_warning_message|escape:'htmlall':'UTF-8'}
</div>
{/if}
<div class="form-horizontal">
<div class="form-group">
<label for="dpdpoland_SessionType" class="control-label col-lg-3">{l s='Shipment mode:' mod='dpdpoland'}</label>
<div class="col-lg-9">
<select id="dpdpoland_SessionType" name="dpdpoland_SessionType" autocomplete="off">
<option value="domestic"{if (!empty($package->sessionType) && $package->sessionType == 'domestic') || (empty($package->sessionType) && $selected_id_method == $smarty.const._DPDPOLAND_STANDARD_ID_)} selected="selected"{/if}>{l s='DPD domestic shipment - Standard' mod='dpdpoland'}</option>
<option value="domestic_with_cod"{if (!empty($package->sessionType) && $package->sessionType == 'domestic_with_cod') || (empty($package->sessionType) && $selected_id_method == $smarty.const._DPDPOLAND_STANDARD_COD_ID_)} selected="selected"{/if}>{l s='DPD domestic shipment - Standard with COD' mod='dpdpoland'}</option>
<option value="international"{if (!empty($package->sessionType) && $package->sessionType == 'international') || (empty($package->sessionType) && $selected_id_method == $smarty.const._DPDPOLAND_CLASSIC_ID_)} selected="selected"{/if}>{l s='DPD international shipment (DPD Classic)' mod='dpdpoland'}</option>
<option value="pudo"{if (!empty($package->sessionType) && $package->sessionType == 'pudo') || (empty($package->sessionType) && $selected_id_method == $smarty.const._DPDPOLAND_PUDO_ID_)} selected="selected"{/if}>{l s='DPD Poland Reception Point Pickup' mod='dpdpoland'}</option>
</select>
</div>
</div>
<div class="form-group">
<label for="dpdpoland_PayerNumber" class="control-label col-lg-3">{l s='DPD client number (Payer):' mod='dpdpoland'}</label>
<div class="col-lg-9">
<select class="client_number_select" id="dpdpoland_PayerNumber" name="dpdpoland_PayerNumber" autocomplete="off">
{foreach from=$payerNumbers item=payerNumber}
<option value="{$payerNumber.payer_number|escape:'htmlall':'UTF-8'}"{if $selectedPayerNumber == $payerNumber.payer_number} selected="selected"{/if}>{$payerNumber.payer_number|escape:'UTF-8'}</option>
{/foreach}
</select>
</div>
</div>
</div>
<hr />
<div class="row">
<div class="col-lg-6 col-xs-12">
<div class="panel panel-sm clearfix" id="dpdpoland_sender_address_container">
<div class="panel-heading">
<i class="icon-user"></i>
{l s='Sender' mod='dpdpoland'}
</div>
<div class="form-group">
<div class="col-lg-12">
<label class="col-lg-6 col-sm-6 col-xs-12">{l s='Sender address:' mod='dpdpoland'}</label>
<select class="col-lg-6 col-sm-6 col-xs-12" id="sender_address_selection" name="sender_address_selection" autocomplete="off">
{foreach from=$sender_addresses item=address key=id_sender_address}
<option value="{$id_sender_address}"{if $id_sender_address == $package->id_sender_address} selected="selected"{/if}>{$address}</option>
{/foreach}
</select>
</div>
<br /><br /><br />
<div class="dpdpoland_address">
{include file=$smarty.const._DPDPOLAND_TPL_DIR_|cat:'admin/address_16.tpl'}
</div>
<div class="alert alert-info">
{l s='Sender address are managed in module Sender addresses page.' mod='dpdpoland'}
</div>
</div>
</div>
</div>
<div class="col-lg-6 col-xs-12">
<div class="panel panel-sm clearfix" id="dpdpoland_recipient_address_container">
<div class="panel-heading">
<i class="icon-user"></i>
{l s='Recipient' mod='dpdpoland'}
</div>
<div class="form-group">
<div class="col-lg-12">
<label class="col-lg-4 col-sm-4 col-xs-12">{l s='Recipient address:' mod='dpdpoland'}</label>
<select class="col-lg-8 col-sm-8 col-xs-12" id="dpdpoland_recipient_address_selection" name="dpdpoland_id_address_delivery" autocomplete="off">
{foreach from=$recipientAddresses item=address}
{capture assign=address_title|escape:'htmlall':'UTF-8'}{$address['alias']|escape:'UTF-8'} - {$address['address1']|escape:'UTF-8'} {$address['postcode']|escape:'UTF-8'} {$address['city']|escape:'UTF-8'}{if !empty($address['state'])} {$address['state']|escape:'UTF-8'}{/if}, {$address['country']|escape:'UTF-8'}{/capture}
<option value="{$address['id_address']|escape:'htmlall':'UTF-8'}"{if $address['id_address'] == $selectedRecipientIdAddress} selected="selected"{/if}>{$address_title|escape:'UTF-8'}</option>
{/foreach}
</select>
<div class="dpdpoland_address">
{include file=$smarty.const._DPDPOLAND_TPL_DIR_|cat:'admin/address_input_16.tpl' address=$recipientAddress}
</div>
</div>
</div>
</div>
</div>
</div>
<hr />
<input type="hidden" id="dpdpoland_pudo_code_input">
<div class="pudo-map-container">
<script id="dpd-widget" type="text/javascript">
function pointSelected(pointID)
{
$('#dpdpoland_pudo_code_input').val(pointID);
}
</script>
<script type="text/javascript" src="//pudofinder.dpd.com.pl/source/dpd_widget.js?key=1ae3418e27627ab52bebdcc1a958fa04"></script>
<hr />
</div>
<div class="row form-horizontal">
<div class="form-group col-lg-6{if ($package->sessionType && $package->sessionType != 'domestic_with_cod') || (!$package->sessionType && $selected_id_method != $smarty.const._DPDPOLAND_STANDARD_COD_ID_)} hidden-element{/if}" id="dpdpoland_cod_amount_container">
<label for="dpdpoland_COD_amount" class="control-label col-lg-3">
<span title="" data-toggle="tooltip" class="label-tooltip" data-original-title="{l s='Enter the amount of COD' mod='dpdpoland'}">
{l s='COD:' mod='dpdpoland'}
</span>
</label>
<div class="input-group col-lg-5">
<span class="input-group-addon">{$smarty.const._DPDPOLAND_CURRENCY_ISO_|escape:'htmlall':'UTF-8'}</span>
<input type="text" name="dpdpoland_COD_amount" autocomplete="off" onchange="this.value = this.value.replace(/,/g, '.');"
value="{if $package->cod_amount}{$package->cod_amount|escape:'htmlall':'UTF-8'}{else}{if isset($ps14) && $ps14}{Tools::convertPrice($order->total_paid_real, $currency_from, $currency_to)}{else}{Tools::convertPriceFull($order->total_paid_tax_incl, $currency_from, $currency_to)}{/if}{/if}"
maxlength="14" size="11">
</div>
</div>
{if $settings->declared_value}
<div class="form-group col-lg-6" id="dpdpoland_declared_value_amount_container">
<label for="dpdpoland_DeclaredValue_amount" class="control-label col-lg-3">
<span title="" data-toggle="tooltip" class="label-tooltip" data-original-title="{l s='Leave blank if service is not needed' mod='dpdpoland'}">
{l s='Valuable parcel:' mod='dpdpoland'}
</span>
</label>
<div class="input-group col-lg-5">
<span class="input-group-addon">{$smarty.const._DPDPOLAND_CURRENCY_ISO_|escape:'htmlall':'UTF-8'}</span>
<input type="text" name="dpdpoland_DeclaredValue_amount" autocomplete="off" onchange="this.value = this.value.replace(/,/g, '.');" value="{if $package->declaredValue_amount}{$package->declaredValue_amount}{else}{$order_price_pl}{/if}" maxlength="14" size="11">
</div>
</div>
{/if}
{if $settings->duty}
<div class="form-group col-lg-6" id="dpdpoland_declared_value_amount_container">
<label for="dpdpoland_duty" class="control-label col-lg-3">
<span title="" data-toggle="tooltip" class="label-tooltip" >
{l s='Duty' mod='dpdpoland'}
</span>
</label>
<div class="input-group col-lg-9">
<input id="dpdpoland_duty" type="checkbox" name="duty" class="form-check-input" value="1">
<div id="dpdpoland_duty_container" class="hidden">
<select class="form-control" name="dpdpoland_duty_currency">
<option>PLN</option>
<option>EUR</option>
<option>USD</option>
<option>CHF</option>
<option>SEK</option>
<option>NOK</option>
<option>CZK</option>
<option>RON</option>
<option>HUF</option>
<option>HRK</option>
<option>BGN</option>
<option>GBP</option>
<option>RSD</option>
<option>RUB</option>
<option>TRY</option>
</select>
<input type="text" name="dpdpoland_duty_amount" class="form-control"
autocomplete="off" onchange="this.value = this.value.replace(/,/g, '.');"
value="{if $package->duty_amount}{$package->duty_amount}{else}{$order_price_pl}{/if}">
<p class="mt-1">{l s='After generating the shipping number with DUTY service, you must completeing required informations on page:' mod='dpdpoland'}
<a href="https://odprawacelna.dpd.com.pl">odprawacelna.dpd.com.pl</a>
</p>
</div>
</div>
</div>
{/if}
<div class="clearfix"></div>
{if $settings->cud}
<div class="form-group col-lg-6" id="dpdpoland_cud_container">
<label for="dpdpoland_cud" class="control-label col-lg-5">
{l s='Return parcel:' mod='dpdpoland'}
</label>
<div class="input-group col-lg-5">
<input id="dpdpoland_cud" type="checkbox" name="cud" value="1"{if $package->cud} checked="checked"{/if}>
</div>
</div>
{/if}
{if $settings->rod}
<div class="form-group col-lg-6" id="dpdpoland_rod_container">
<label for="dpdpoland_rod" class="control-label col-lg-5">
{l s='Return documents:' mod='dpdpoland'}
</label>
<div class="input-group col-lg-5">
<input id="dpdpoland_rod" type="checkbox" name="rod" value="1"{if $package->rod} checked="checked"{/if}>
</div>
</div>
{/if}
{if $settings->dpde}
<div class="form-group col-lg-6" id="dpdpoland_dpde_container">
<label for="dpdpoland_dpde" class="control-label col-lg-5">
{l s='DPD Express:' mod='dpdpoland'}
</label>
<div class="input-group col-lg-5">
<input id="dpdpoland_dpde" type="checkbox" name="dpde" value="1"{if $package->dpde} checked="checked"{/if}>
</div>
</div>
{/if}
{if $settings->dpdnd}
<div class="form-group col-lg-6" id="dpdpoland_dpdnd_container">
<label for="dpdpoland_dpde" class="control-label col-lg-5">
{l s='DPD Next day:' mod='dpdpoland'}
</label>
<div class="input-group col-lg-5">
<input id="dpdpoland_dpdnd" type="checkbox" name="dpdnd" value="1"{if $package->dpdnd} checked="checked"{/if}>
</div>
</div>
{/if}
</div>
<hr />
<div class="row">
<div class="form-group col-lg-6" id="dpdpoland_additional_info_container">
<label for="additional_info" class="control-label col-lg-3">
{l s='Additional shipment information:' mod='dpdpoland'}
</label>
<div class="input-group col-lg-12 col-sm-12 col-xs-12">
<textarea name="additional_info" autocomplete="off" rows="4">{if $package->additional_info}{$package->additional_info|escape:'htmlall':'UTF-8'}{elseif !$loaded_object}{$default_customer_data_1|escape:'htmlall':'UTF-8'}{/if}</textarea>
</div>
</div>
<div id="dpdpoland_shipment_references_container" class="col-lg-6">
<div class="form-group">
<label for="dpdpoland_ref1" class="control-label col-lg-3">
<span title="" data-toggle="tooltip" class="label-tooltip" data-original-title="{l s='Reference number 1' mod='dpdpoland'}">
{l s='Order ID:' mod='dpdpoland'}
</span>
</label>
<div class="input-group col-lg-4 col-xs-12">
<input type="text" name="dpdpoland_ref1" autocomplete="off" value="{if $package->ref1}{$package->ref1|escape:'htmlall':'UTF-8'}{elseif !$loaded_object}{$default_ref1|escape:'htmlall':'UTF-8'}{/if}" />
</div>
</div>
<div class="form-group">
<label for="dpdpoland_ref2" class="control-label col-lg-3">
<span title="" data-toggle="tooltip" class="label-tooltip" data-original-title="{l s='Reference number 2' mod='dpdpoland'}">
{l s='Invoice number:' mod='dpdpoland'}
</span>
</label>
<div class="input-group col-lg-4 col-xs-12">
<input type="text" name="dpdpoland_ref2" autocomplete="off" value="{if $package->ref2}{$package->ref2|escape:'UTF-8'}{elseif !$loaded_object}{$default_ref2|escape:'htmlall':'UTF-8'}{/if}" />
</div>
</div>
</div>
</div>
<hr />
<div class="row">
<label>{l s='Group the products in your shipment into parcels' mod='dpdpoland'}</label>
<p>{l s='This module lets you organize your products into parcels using the table below. Select parcel number.' mod='dpdpoland'}</p>
</div>
<table width="100%" cellspacing="0" cellpadding="0" class="table row" id="dpdpoland_shipment_products">
<colgroup>
<col width="10%">
<col width="">
<col width="10%">
<col width="20%">
<col width="5%">
</colgroup>
<thead>
<tr>
<th>{l s='ID' mod='dpdpoland'}</th>
<th>{l s='Product' mod='dpdpoland'}</th>
<th>{l s='Weight' mod='dpdpoland'}</th>
<th>{l s='Parcel' mod='dpdpoland'}</th>
<th></th>
</tr>
</thead>
<tbody>
{foreach from=$products item=product name=products}
<tr>
<td class="parcel_reference">
<input type="hidden" name="dpdpoland_products[{$smarty.foreach.products.index|escape:'htmlall':'UTF-8'}][id_product]" value="{$product.id_product|escape:'htmlall':'UTF-8'}">
<input type="hidden" name="dpdpoland_products[{$smarty.foreach.products.index|escape:'htmlall':'UTF-8'}][id_product_attribute]" value="{$product.id_product_attribute|escape:'htmlall':'UTF-8'}">
{$product.id_product|escape:'htmlall':'UTF-8'}_{$product.id_product_attribute|escape:'htmlall':'UTF-8'}
</td>
<td class="product_name">{$product.name|escape:'htmlall':'UTF-8'}</td>
<td class="parcel_weight">
<input type="hidden" name="parcel_weight" value="{$product.weight|escape:'htmlall':'UTF-8'}" />
{$product.weight|string_format:"%.3f"} {$smarty.const._DPDPOLAND_DEFAULT_WEIGHT_UNIT_|escape:'htmlall':'UTF-8'}
</td>
<td>
<select class="parcel_selection" name="dpdpoland_products[{$smarty.foreach.products.index|escape:'htmlall':'UTF-8'}][parcel]" autocomplete="off">
<option value="0">--</option>
{foreach from=$parcels item=parcel}
{if isset($parcel.id_parcel) && isset($product.id_parcel)}
{assign var="selected_parcel" value=$parcel.id_parcel == $product.id_parcel}
{else}
{assign var="selected_parcel" value=$parcel.number == 1}
{/if}
<option value="{$parcel.number|escape:'htmlall':'UTF-8'}"{if $selected_parcel} selected="selected"{/if}>{$parcel.number|escape:'htmlall':'UTF-8'}</option>
{/foreach}
</select>
</td>
<td>
<input id="product_width" type="hidden" value="{$parcels[0].width|escape:'htmlall':'UTF-8'}" />
<input id="product_height" type="hidden" value="{$parcels[0].height|escape:'htmlall':'UTF-8'}" />
<input id="product_length" type="hidden" value="{$parcels[0].length|escape:'htmlall':'UTF-8'}" />
</td>
</tr>
{/foreach}
</tbody>
</table>
<br />
<div class="row form-horizontal" id="dpdpoland_add_product_container">
<div class="form-group">
<label class="control-label col-xs-3 col-sm-3 col-lg-3 margin-top-5">
<span data-original-title="{l s='Begin typing the first letters of the product name, then select the product from the drop-down list.' mod='dpdpoland'}" class="label-tooltip" data-toggle="tooltip" title="">
{l s='Search for a product' mod='dpdpoland'}
</span>
</label>
<div class="col-xs-9 col-sm-6 col-lg-6 margin-top-5">
<input type="hidden" id="dpdpoland_selected_product_id_product" value="0" />
<input type="hidden" id="dpdpoland_selected_product_id_product_attribute" value="0" />
<input type="hidden" id="dpdpoland_selected_product_weight_numeric" value="0" />
<input type="hidden" id="dpdpoland_selected_product_weight" value="0" />
<input type="hidden" id="dpdpoland_selected_product_name" value="0" />
<div class="input-group">
<input type="text" id="dpdpoland_select_product" size="35" autocomplete="off" />
<span class="input-group-addon">
<i class="icon-search"></i>
</span>
</div>
</div>
<div class="col-xs-12 col-sm-2 col-lg-2 margin-top-5">
<input type="button" class="btn btn-primary btn-block" id="dpdpoland_add_product" value="{l s='Add product' mod='dpdpoland'}" />
</div>
</div>
</div>
<hr />
<div class="row">
<label>{l s='Manage parcels' mod='dpdpoland'}</label>
<p>{l s='Here you can change parcel parameters, create new parcels' mod='dpdpoland'}</p>
</div>
<div id="dpdpoland_shipment_parcels_container">
<table width="100%" cellspacing="0" cellpadding="0" class="table row" id="dpdpoland_shipment_parcels">
<colgroup>
<col width="5%">
<col width="">
<col width="10%">
<col width="10%">
<col width="10%">
<col width="10%">
<col width="10%">
<col width="5%">
</colgroup>
<thead>
<tr>
<th class="center">{l s='Parcel' mod='dpdpoland'}</th>
<th>{l s='Content of parcel' mod='dpdpoland'}</th>
<th>{l s='Weight (kg)' mod='dpdpoland'}</th>
<th>{l s='Height (cm)' mod='dpdpoland'}</th>
<th>{l s='Length (cm)' mod='dpdpoland'}</th>
<th>{l s='Width (cm)' mod='dpdpoland'}</th>
<th>{l s='Dimension weight' mod='dpdpoland'}</th>
<th></th>
</tr>
</thead>
<tbody>
{foreach from=$parcels item=parcel}
<tr>
<td class="center">
{$parcel.number|escape:'htmlall':'UTF-8'}
<input type="hidden" name="parcels[{$parcel.number|escape:'htmlall':'UTF-8'}][number]" value="{$parcel.number|escape:'htmlall':'UTF-8'}" />
</td>
<td>
<input type="hidden" name="parcels[{$parcel.number|escape:'htmlall':'UTF-8'}][content]" autocomplete="off" value="{$parcel.content|escape:'htmlall':'UTF-8'}" />
<input type="text" name="parcels[{$parcel.number|escape:'htmlall':'UTF-8'}][content]" size="46" autocomplete="off" value="{$parcel.content|escape:'htmlall':'UTF-8'}" />
<p class="preference_description clear">{l s='Modified field' mod='dpdpoland'}</p>
</td>
<td>
<input type="text" name="parcels[{$parcel.number|escape:'htmlall':'UTF-8'}][weight]" size="10" autocomplete="off" value="{$parcel.weight|escape:'htmlall':'UTF-8'}" />
<p class="preference_description clear">{l s='Modified field' mod='dpdpoland'}</p>
</td>
<td>
<input type="text" name="parcels[{$parcel.number|escape:'htmlall':'UTF-8'}][height]" size="10" autocomplete="off" value="{$parcel.height|escape:'htmlall':'UTF-8'}" />
<p class="preference_description clear">{l s='Modified field' mod='dpdpoland'}</p>
</td>
<td>
<input type="text" name="parcels[{$parcel.number|escape:'htmlall':'UTF-8'}][length]" size="10" autocomplete="off" value="{$parcel.length|escape:'htmlall':'UTF-8'}" />
<p class="preference_description clear">{l s='Modified field' mod='dpdpoland'}</p>
</td>
<td>
<input type="text" name="parcels[{$parcel.number|escape:'htmlall':'UTF-8'}][width]" size="10" autocomplete="off" value="{$parcel.width|escape:'htmlall':'UTF-8'}" />
<p class="preference_description clear">{l s='Modified field' mod='dpdpoland'}</p>
</td>
<td class="parcel_dimension_weight">{sprintf('%.3f', $parcel.length|escape:'htmlall':'UTF-8'*$parcel.width|escape:'htmlall':'UTF-8'*$parcel.height|escape:'htmlall':'UTF-8'/$smarty.const._DPDPOLAND_DIMENTION_WEIGHT_DIVISOR_|escape:'htmlall':'UTF-8')}</td>
<td></td>
</tr>
{/foreach}
</tbody>
</table>
</div>
<br />
<div class="row" id="parcel_addition_container">
<div class="col-lg-10">
<div class="alert alert-info">
{l s='When adding new parcel: Additional fee will be charged by DPD PL depending on your DPD PL contract. Price for shipment that was shown to your customer always includes only one parcel per order.' mod='dpdpoland'}
</div>
</div>
<div class="col-lg-2">
<input type="button" id="add_parcel" class="btn btn-primary btn-block" value="{l s='Add parcel' mod='dpdpoland'}" />
</div>
</div>
<hr />
<div class="row">
<div class="col-lg-3">
</div>
<div id="dpdgeopost_actions" class="form-horizontal">
<div class="col-lg-4">
<div class="form-group">
<label class="control-label col-lg-5">{l s='Printout format:' mod='dpdpoland'}</label>
<div class="col-lg-5">
<p class="radio">
<label for="printout_format_a4">
<input id="printout_format_a4" type="radio" name="dpdpoland_printout_format" checked="checked" value="{DpdPolandConfiguration::PRINTOUT_FORMAT_A4|escape:'htmlall':'UTF-8'}" />
{l s='A4' mod='dpdpoland'}
</label>
</p>
<p class="radio">
<label for="printout_format_label" id="label_out_of_stock_2">
<input id="printout_format_label" type="radio" name="dpdpoland_printout_format" value="{DpdPolandConfiguration::PRINTOUT_FORMAT_LABEL|escape:'htmlall':'UTF-8'}" />
{l s='Label Printer' mod='dpdpoland'}
</label>
</p>
</div>
</div>
</div>
<div class="col-lg-5">
<button class="btn btn-default pull-right" id="save_and_print_labels" type="button"><i class="process-icon-save"></i> {l s='Save and print labels' mod='dpdpoland'}</button>
<button class="btn btn-default pull-right" id="save_labels" type="button"><i class="process-icon-save"></i> {l s='Save' mod='dpdpoland'}</button>
<button class="btn btn-default pull-right{if !$package->id_package_ws} hidden-element{/if}" id="print_labels" type="button"><i class="process-icon-save-status"></i> {l s='Print labels' mod='dpdpoland'}</button>
</div>
</div>
</div>
</div>
<div id="dpdpoland_current_status_accordion" class="panel-group">
<div class="panel">
<div class="panel-heading">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#dpdpoland_current_status_accordion" href="#dpdpoland-status">{l s='Current status' mod='dpdpoland'}</a>
</div>
<div id="dpdpoland-status">
<div class="panel-body">
<table cellspacing="0" cellpadding="10" class="table">
<thead>
<tr>
<th width="200"><span class="title_box">{l s='Action' mod='dpdpoland'}</span></th>
<th width="50"><span class="title_box">{l s='Status' mod='dpdpoland'}</span></th>
</tr>
</thead>
<tbody>
<tr>
<td>{l s='Labels printed' mod='dpdpoland'}</td>
<td>{if $package->labels_printed}{l s='Yes' mod='dpdpoland'}{else}{l s='No' mod='dpdpoland'}{/if}</td>
</tr>
<tr class="alt_row">
<td>{l s='Manifest printed' mod='dpdpoland'}</td>
<td>{if $package->isManifestPrinted()}{l s='Yes' mod='dpdpoland'}{else}{l s='No' mod='dpdpoland'}{/if}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{else}
<div class="row">
<div class="col-lg-7">
<div class="panel dpdpoland-ps16" id="dpdpoland">
<div class="panel-heading">
<img src="{$smarty.const._DPDPOLAND_MODULE_URI_|escape:'htmlall':'UTF-8'}logo.gif" width="16" height="16"> {l s='DPD Polska Sp. z o.o. shipping' mod='dpdpoland'}
</div>
<div class="alert alert-warning">
{l s='Module is not configured yet. Please check required settings' mod='dpdpoland'}<strong><a href="{$moduleSettingsLink|escape:'htmlall':'UTF-8'}"> {l s='here' mod='dpdpoland'}</a></strong>
</div>
</div>
</div>
</div>
{/if}