// fix tree search / title / manufacturers
This commit is contained in:
@@ -26,12 +26,9 @@
|
||||
{extends file="helpers/view/view.tpl"}
|
||||
|
||||
{block name="override_tpl"}
|
||||
|
||||
<legend>{$manufacturer->name}</legend>
|
||||
|
||||
<div class="panel">
|
||||
<h3>{$manufacturer->name}</h3>
|
||||
<span>{l s='Total addresses'} {count($addresses)}</span>
|
||||
<hr />
|
||||
|
||||
{if !count($addresses)}
|
||||
{l s='No address has been found for this manufacturer.'}
|
||||
{else}
|
||||
@@ -46,23 +43,26 @@
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
{$addresse.address1}<br />
|
||||
{if $addresse.address2}{$addresse.address2}<br />{/if}
|
||||
{$addresse.postcode} {$addresse.city}<br />
|
||||
{if $addresse.state}{$addresse.state}<br />{/if}
|
||||
<b>{$addresse.country}</b><br />
|
||||
{if $addresse.phone}{$addresse.phone}<br />{/if}
|
||||
{if $addresse.phone_mobile}{$addresse.phone_mobile}<br />{/if}
|
||||
{if $addresse.other}<div ><br />
|
||||
<i>{$addresse.other}</i></div>
|
||||
{/if}
|
||||
{$addresse.address1}<br />
|
||||
{if $addresse.address2}{$addresse.address2}<br />{/if}
|
||||
{$addresse.postcode} {$addresse.city}<br />
|
||||
{if $addresse.state}{$addresse.state}<br />{/if}
|
||||
<b>{$addresse.country}</b><br />
|
||||
{if $addresse.phone}{$addresse.phone}<br />{/if}
|
||||
{if $addresse.phone_mobile}{$addresse.phone_mobile}<br />{/if}
|
||||
{if $addresse.other}<div ><br />
|
||||
<i>{$addresse.other}</i></div>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td><a class="btn btn-default pull-right" href="{$link->getAdminLink('AdminManufacturers')}&id_address={$addresse.id_address}&editaddresses=1">
|
||||
<i class="icon-edit"></i> {l s='Edit'}</a></td>
|
||||
<td>
|
||||
<a class="btn btn-default" href="{$link->getAdminLink('AdminManufacturers')}&id_address={$addresse.id_address}&editaddresses=1">
|
||||
<i class="icon-edit"></i>
|
||||
{l s='Edit'}</a>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
@@ -72,58 +72,79 @@
|
||||
<span>{l s='Total products'} {count($products)}</span>
|
||||
|
||||
{foreach $products AS $product}
|
||||
<hr />
|
||||
{if !$product->hasAttributes()}
|
||||
<div>
|
||||
<a href="?tab=AdminProducts&id_product={$product->id}&updateproduct&token={getAdminToken tab='AdminProducts'}" class="btn btn-default"><i class="icon-edit"></i> {l s='Edit'}</a>
|
||||
<a href="?tab=AdminProducts&id_product={$product->id}&deleteproduct&token={getAdminToken tab='AdminProducts'}" class="btn btn-default" onclick="return confirm('{l s='Delete item #'}{$product->id} ?');"><i class="icon-trash"></i> {l s='Delete'}</a>
|
||||
</div>
|
||||
<div class="panel">
|
||||
<div class="panel-heading">
|
||||
{$product->name}
|
||||
<div class="pull-right">
|
||||
<a href="?tab=AdminProducts&id_product={$product->id}&updateproduct&token={getAdminToken tab='AdminProducts'}" class="btn btn-default btn-sm">
|
||||
<i class="icon-edit"></i> {l s='Edit'}
|
||||
</a>
|
||||
<a href="?tab=AdminProducts&id_product={$product->id}&deleteproduct&token={getAdminToken tab='AdminProducts'}" class="btn btn-default btn-sm" onclick="return confirm('{l s='Delete item #'}{$product->id} ?');">
|
||||
<i class="icon-trash"></i> {l s='Delete'}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th >{$product->name}</th>
|
||||
{if !empty($product->reference)}<th>{l s='Ref:'} {$product->reference}</th>{/if}
|
||||
{if !empty($product->ean13)}<th>{l s='EAN13:'} {$product->ean13}</th>{/if}
|
||||
{if !empty($product->upc)}<th>{l s='UPC:'} {$product->upc}</th>{/if}
|
||||
{if $stock_management}<th>{l s='Qty:'} {$product->quantity}</th>{/if}
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
{if !empty($product->reference)}<th><span class="title_box">{l s='Ref:'}</span> {$product->reference}</th>{/if}
|
||||
{if !empty($product->ean13)}<th><span class="title_box">{l s='EAN13:'}</span> {$product->ean13}</th>{/if}
|
||||
{if !empty($product->upc)}<th><span class="title_box">{l s='UPC:'}</span> {$product->upc}</th>{/if}
|
||||
{if $stock_management}<th><span class="title_box">{l s='Qty:'}</span> {$product->quantity}</th>{/if}
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
</div>
|
||||
{else}
|
||||
<div>
|
||||
<a href="?tab=AdminProducts&id_product={$product->id}&updateproduct&token={getAdminToken tab='AdminProducts'}" class="btn btn-default"><i class="icon-edit"></i> {l s='Edit'}</a>
|
||||
<a href="?tab=AdminProducts&id_product={$product->id}&deleteproduct&token={getAdminToken tab='AdminProducts'}" class="btn btn-default" onclick="return confirm('{l s='Delete item #'}{$product->id} ?');"><i class="icon-trash"></i> {l s='Delete'}</a>
|
||||
<div class="panel">
|
||||
<div class="panel-heading">
|
||||
|
||||
<a href="?tab=AdminProducts&id_product={$product->id}&updateproduct&token={getAdminToken tab='AdminProducts'}">
|
||||
{$product->name}
|
||||
</a>
|
||||
<div class="pull-right">
|
||||
<a href="?tab=AdminProducts&id_product={$product->id}&updateproduct&token={getAdminToken tab='AdminProducts'}" class="btn btn-default btn-sm">
|
||||
<i class="icon-edit"></i>
|
||||
{l s='Edit'}
|
||||
</a>
|
||||
<a href="?tab=AdminProducts&id_product={$product->id}&deleteproduct&token={getAdminToken tab='AdminProducts'}" class="btn btn-default btn-sm" onclick="return confirm('{l s='Delete item #'}{$product->id} ?');">
|
||||
<i class="icon-trash"></i>
|
||||
{l s='Delete'}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><span class="title_box">{l s='Attribute name'}</span></th>
|
||||
<th><span class="title_box">{l s='Reference'}</span></th>
|
||||
<th><span class="title_box">{l s='EAN13'}</span></th>
|
||||
<th><span class="title_box">{l s='UPC'}</span></th>
|
||||
{if $stock_management && $shopContext != Shop::CONTEXT_ALL}
|
||||
<th><span class="title_box">{l s='Available Quantity'}</span></th>
|
||||
{/if}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach $product->combination AS $id_product_attribute => $product_attribute}
|
||||
<tr {if $id_product_attribute %2}class="alt_row"{/if} >
|
||||
<td>{$product_attribute.attributes}</td>
|
||||
<td>{$product_attribute.reference}</td>
|
||||
<td>{$product_attribute.ean13}</td>
|
||||
<td>{$product_attribute.upc}</td>
|
||||
{if $stock_management && $shopContext != Shop::CONTEXT_ALL}
|
||||
<td class="right">{$product_attribute.quantity}</td>
|
||||
{/if}
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<span><a href="?tab=AdminProducts&id_product={$product->id}&updateproduct&token={getAdminToken tab='AdminProducts'}">{$product->name}</a></span>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{l s='Attribute name'}</th>
|
||||
<th>{l s='Reference'}</th>
|
||||
<th>{l s='EAN13'}</th>
|
||||
<th>{l s='UPC'}</th>
|
||||
{if $stock_management && $shopContext != Shop::CONTEXT_ALL}
|
||||
<th>{l s='Available Quantity'}</th>
|
||||
{/if}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach $product->combination AS $id_product_attribute => $product_attribute}
|
||||
<tr {if $id_product_attribute %2}class="alt_row"{/if} >
|
||||
<td>{$product_attribute.attributes}</td>
|
||||
<td>{$product_attribute.reference}</td>
|
||||
<td>{$product_attribute.ean13}</td>
|
||||
<td>{$product_attribute.upc}</td>
|
||||
{if $stock_management && $shopContext != Shop::CONTEXT_ALL}
|
||||
<td class="right">{$product_attribute.quantity}</td>
|
||||
{/if}
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</div>
|
||||
{/block}
|
||||
|
||||
@@ -37,6 +37,9 @@
|
||||
});
|
||||
</script>
|
||||
<div class="panel-heading">
|
||||
<input type="checkbox" id="filter-by-category" {if $is_category_filter}checked="checked"{/if} /> <i class="icon-tags"></i> {l s=$title}
|
||||
<div class="pull-right" id="category-tree-toolbar"{if !$is_category_filter} style="display:none"{/if}>{if isset($toolbar)}{$toolbar}{/if}</div>
|
||||
<input type="checkbox" id="filter-by-category" {if $is_category_filter}checked="checked"{/if} />
|
||||
{l s=$title}
|
||||
<div id="category-tree-toolbar" class="tree-actions"{if !$is_category_filter} style="display:none"{/if}>
|
||||
{if isset($toolbar)}{$toolbar}{/if}
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user