Files
PrestaShop/admin-dev/themes/default/template/controllers/warehouses/view.tpl
T
2012-01-09 17:23:42 +00:00

110 lines
3.6 KiB
Smarty

{*
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 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/afl-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
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2011 PrestaShop SA
* @version Release: $Revision$
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{extends file="helper/view/view.tpl"}
{block name="override_tpl"}
{if isset($warehouse)}
<div>
<fieldset>
<legend><img src="/img/t/AdminPreferences.gif" alt="" /> {l s='General informations'}</legend>
<table style="width: 400px;" classe="table">
<tr>
<td>{l s='Reference:'}</td>
<td>{$warehouse->reference}</td>
</tr>
<tr>
<td>{l s='Name:'}</td>
<td>{$warehouse->name}</td>
</tr>
<tr>
<td>{l s='Manager:'}</td>
<td>{$employee->lastname} {$employee->firstname}</td>
</tr>
<tr>
<td>{l s='Country:'}</td>
<td>{if $address->country != ''}{$address->country}{else}{l s='N/D'}{/if}</td>
</tr>
<tr>
<td>{l s='Phone:'}</td>
<td>{if $address->phone != ''}{$address->phone}{else}{l s='N/D'}{/if}</td>
</tr>
<tr>
<td>{l s='Management type:'}</td>
<td>{$warehouse->management_type}</td>
</tr>
<tr>
<td>{l s='Valuation currency:'}</td>
<td>{$currency->name} ({$currency->sign})</td>
</tr>
<tr>
<td>{l s='Products:'}</td>
<td>{$warehouse_num_products} {l s='references'}</td>
</tr>
<tr>
<td>{l s='Products physical quantities:'}</td>
<td>{$warehouse_quantities}</td>
</tr>
<tr>
<td>{l s='Stock valuation:'}</td>
<td>{$currency->prefix} {$warehouse_value} {$currency->suffix}</td>
</tr>
</table>
</fieldset>
</div>
<div style="margin-top: 30px">
<fieldset>
<legend><img src="/img/t/AdminShop.gif" alt="" /> {l s='Shops'}</legend>
{l s='The following are the shops associated to this warehouse.'}
<table style="width: 400px; margin-top:20px" classe="table">
<tr>
<th>{l s='ID'}</th>
<th>{l s='Name'}</th>
{foreach $shops as $shop}
<tr>
<td>{$shop.id_shop}</td>
<td>{$shop.name}</td>
</tr>
{/foreach}
</table>
</fieldset>
</div>
<div style="margin-top: 30px">
<fieldset>
<legend><img src="/img/t/AdminStock.gif" alt="" /> {l s='Stock'}</legend>
<a href="index.php?controller=adminstockinstantstate&id_warehouse={$warehouse->id}&token={getAdminToken tab='AdminStockInstantState'}">{l s='Click here if you want details on products in this warehouse'}</a>
</fieldset>
</div>
<div style="margin-top: 30px">
<fieldset>
<legend><img src="/img/t/AdminLogs.gif" alt="" /> {l s='History'}</legend>
<a href="index.php?controller=adminstockmvt&id_warehouse={$warehouse->id}&token={getAdminToken tab='AdminStockMvt'}">{l s='Click here if you want details on what happened in this warehouse'}</a>
</fieldset>
</div>
{else}
{l s='This warehouse does not exist'}
{/if}
{/block}