184 lines
8.9 KiB
Smarty
184 lines
8.9 KiB
Smarty
{**
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This file is licenced under the Software License Agreement.
|
|
* With the purchase or the installation of the software in your application
|
|
* you accept the licence agreement.
|
|
*
|
|
* You must not modify, adapt or create derivative works of this source code
|
|
*
|
|
* @author PrestaHelp.com
|
|
* @copyright 2019 PrestaHelp
|
|
* @license LICENSE.txt
|
|
*}
|
|
|
|
<br />
|
|
<fieldset style="width: 98%;">
|
|
<legend><img src="../img/admin/delivery.gif" > {l s='Wysyłaj z Inpost' mod='inpostship'}</legend>
|
|
<div>
|
|
<div class="row">
|
|
{if $errors}
|
|
<div class="alert">{$errors}</div>
|
|
{/if}
|
|
<div class="col-lg-12">
|
|
|
|
{if !empty($packageList)}
|
|
<div class="packageList">
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>Usługa</th>
|
|
<th>Numer przesyłki</th>
|
|
<th>Data utworzenia</th>
|
|
<th> </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{foreach $packageList as $pl}
|
|
<tr>
|
|
<td><img src="{$pl.image}" alt="" /></td>
|
|
<td>{$pl.reference_number}</td>
|
|
<td>{$pl.date_add}</td>
|
|
<td>
|
|
<form method="post">
|
|
<button type="submit" name="submitPrintLabel" value="{$pl.id_pack}" class="btn btn-warning pull-left" style="margin-right: 10px;"><i class="icon-file-text"></i> {l s='Drukuj etykietę' mod='inpostship'}</button>
|
|
{if !empty($pl.reference_number)}<a href="https://inpost.pl/sledzenie-przesylek?number={$pl.reference_number}" target="_blank" class="btn btn-info pull-left">Śledź przesyłkę</a>{/if}
|
|
{if $pl.dispatch == 1}<button type="submit" name="submitOrderCourier" value="{$pl.id_pack}" class="btn btn-success pull-left" style="margin-left: 10px;">{l s='Pickup order' mod='inpostship'}</button>{/if}
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
{/foreach}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{/if}
|
|
|
|
<div class="">
|
|
<button type="button" class="add-package btn btn-default"><span class="">Dodaj nową przesyłkę</span></button>
|
|
</div>
|
|
|
|
<div class="packageCreate">
|
|
<form method="post">
|
|
|
|
<div class="">
|
|
<label>Dane odbiorcy</label>
|
|
<div>
|
|
<div class="form-group">
|
|
<div class="col-lg-12">
|
|
<div class="input-group">
|
|
<span class="input-group-addon"><i class="icon icon-envelope"></i></span>
|
|
<input type="text" name="inpostship[receiver_email]" class="form-control medium-input" value="{$customer->email}" />
|
|
</div>
|
|
<div class="input-group">
|
|
<span class="input-group-addon">+48</span>
|
|
<input type="text" name="inpostship[receiver_mobile]" class="form-control medium-input" value="{$address_delivery->phones}" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="">
|
|
<label>Usługa</label>
|
|
<div>
|
|
<div class="form-group">
|
|
<img src="{$image}" alt="" style="height: 60px;" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="">
|
|
<label>Dostawa do</label>
|
|
<div>
|
|
<div class="form-group">
|
|
<div class="col-lg-12">
|
|
<input type="text" name="inpostship[receiver_machine]" class="form-control" value="{$point->name}, {$point->address->line1}, {$point->address->line2}" disabled="disabled" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="">
|
|
<label>Rozmiar</label>
|
|
<div>
|
|
<div class="form-group">
|
|
<select name="inpostship[packtype]" class="">
|
|
{foreach $packtype as $p}
|
|
<option value="{$p.value}" {if $p.value == $packtype_default}selected="selected"{/if}>{$p.name}: {$p.description}</option>
|
|
{/foreach}
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="">
|
|
<label>Nadanie</label>
|
|
<div>
|
|
<div class="form-group">
|
|
<select name="inpostship[sendtype]" class="sendtypeinput">
|
|
{foreach $sendingMethods as $sm}
|
|
{if $sm->id == 'dispatch_order' || $sm->id == 'parcel_locker' || $sm->id == 'pop'}
|
|
<option value="{$sm->id}"{if $sm->id == $dispatch} selected="selected"{/if}>{$sm->name} ({$sm->description})</option>
|
|
{/if}
|
|
{/foreach}
|
|
</select>
|
|
|
|
<div class="par-box sendtypebox"{if $dispatch != 'parcel_locker'} style="display: none;"{/if}>
|
|
<input type="text" name="inpostship[sender_machine]" class="form-control" value="{$point2->name}, {$point2->address->line1}, {$point2->address->line2}" disabled="disabled" />
|
|
</div>
|
|
<div class="pop-box sendtypebox"{if $dispatch != 'pop'} style="display: none;"{/if}>
|
|
<select name="inpostship[pop_point]">
|
|
{foreach $pop_points as $pp}
|
|
<option value="{$pp.point_code}">{$pp.point_code}, {$pp.point_address1}, {$pp.point_address2} - {$pp.point_desc}</option>
|
|
{/foreach}
|
|
</select>
|
|
</div>
|
|
<div class="pok-box sendtypebox"{if $dispatch != 'pok'} style="display: none;"{/if}>
|
|
<select name="inpostship[pok_point]">
|
|
{foreach $pok_points as $pp}
|
|
<option value="{$pp.point_code}">{$pp.point_code}, {$pp.point_address1}, {$pp.point_address2} - {$pp.point_desc}</option>
|
|
{/foreach}
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="">
|
|
<label>Numer referencyjny</label>
|
|
<div>
|
|
<div class="form-group">
|
|
<input type="text" name="inpostship[reference_number]" class="form-control medium-input" value="{$order->reference}" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="">
|
|
<label>Ubezpieczenie</label>
|
|
<div>
|
|
<div class="form-group">
|
|
<select name="inpostship[ins]" class="">
|
|
<option value="">{l s='lack of insurance' mod='inpostship'}</option>
|
|
{foreach $insurance as $i}
|
|
<option value="{$i.value}">{$i.name}</option>
|
|
{/foreach}
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="">
|
|
<label>Pobranie</label>
|
|
<div>
|
|
<div class="form-group">
|
|
<input type="text" name="inpostship[cod_value]" class="form-control small-input" value="{$order->total_paid|number_format:2:'.':''}" disabled="disabled" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<input type="hidden" name="inpostship[id_cart]" value="{$cart_id}" />
|
|
<input type="hidden" name="inpostship[id_order]" value="{$order->id}" />
|
|
<button type="submit" name="submitPackage" value="1" class="btn btn-success pull-left btnToAll" style="margin-right: 10px;"><span>{l s='Utwórz przesyłkę' mod='inpostship'}</span> <i class="icon-AdminInpostship" style="float: right;"></i></button>
|
|
</form>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</fieldset> |