Files
redline.com.pl/modules/inpostship/views/templates/admin/dispatch-list.tpl
2024-11-11 18:46:54 +01:00

88 lines
3.2 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 2020 PrestaHelp
* @license LICENSE.txt
*}
{include file=$phelpTop}
<script type="text/javascript">
$(function() {
if ($("table .datepicker").length > 0) {
$("table .datepicker").datepicker({
prevText: '',
nextText: '',
altFormat: 'yy-mm-dd'
});
}
});
</script>
<form method="post">
<div class="panel">
<div class="panel-heading"><i class="icon-cog"></i> {l s='Inpost - dispatch order list' mod='inpostship'}</div>
<div class="form-horizontal">
{if empty($dispatch_orders)}
<p class="alert alert-warning">Brak zleceń odbiorów.</p>
{else}
{if isset($errors) && !empty($errors)}
<div class="col-lg-12">
<div class="alert alert-danger">{$errors}</div>
</div>
{/if}
{if isset($success) && !empty($success)}
<div class="col-lg-12">
<div class="alert alert-success">{$success}</div>
</div>
{/if}
<div class="packageLists">
<table class="table tablePackageList">
<thead>
<tr>
<th>Lp.</th>
<th>ID zlecenia</th>
<th>Status</th>
<th>Cena</th>
<th>Adres odbioru</th>
<th>Przesyłki</th>
<th>Data dodania</th>
</tr>
</thead>
<tbody>
{foreach $dispatch_orders as $dispatch}
<tr>
<td>{$dispatch@iteration}.</td>
<td>{$dispatch->id}</td>
<td>{$dispatch->status}</td>
<td>{$dispatch->cena}</td>
<td>{$dispatch->address->street} {$dispatch->address->building_number}, {$dispatch->address->post_code} {$dispatch->address->city}</td>
<td>
<ul>
{foreach $dispatch->shipments as $ship}
<li>{$ship->tracking_number}</li>
{/foreach}
</ul>
</td>
<td>{$dispatch->date}</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
{/if}
</div>
</div>
</form>
{$banersHtml}
{include file=$phelpBtm}