//Suppliers view

This commit is contained in:
Jerome Nadaud
2013-09-18 10:29:04 +02:00
parent 8081acb0b5
commit 897f1eafeb
@@ -27,7 +27,7 @@
{block name="override_tpl"} {block name="override_tpl"}
<div class="panel"> <div class="panel">
<div class="panel-heading">{l s='Number of products:'} {count($products)}</div> <div class="panel-heading">{$supplier->name} - {l s='Number of products:'} {count($products)}</div>
<table class="table"> <table class="table">
<thead> <thead>
<tr> <tr>
@@ -45,7 +45,7 @@
{foreach $products AS $product} {foreach $products AS $product}
{if !$product->hasAttributes()} {if !$product->hasAttributes()}
<tr> <tr>
<td><a class="btn btn-default" href="?tab=AdminProducts&id_product={$product->id}&updateproduct&token={getAdminToken tab='AdminProducts'}"><i class="icon-eye-open"></i>&nbsp;{$product->name}</a></td> <td><a class="btn btn-link" href="?tab=AdminProducts&id_product={$product->id}&updateproduct&token={getAdminToken tab='AdminProducts'}">{$product->name}</a></td>
<td>{l s='N/A'}</td> <td>{l s='N/A'}</td>
<td>{if empty($product->product_supplier_reference)}{l s='N/A'}{else}{$product->product_supplier_reference}{/if}</td> <td>{if empty($product->product_supplier_reference)}{l s='N/A'}{else}{$product->product_supplier_reference}{/if}</td>
<td>{if empty($product->product_supplier_price_te)}0{else}{$product->product_supplier_price_te}{/if}</td> <td>{if empty($product->product_supplier_price_te)}0{else}{$product->product_supplier_price_te}{/if}</td>
@@ -57,7 +57,7 @@
{else} {else}
{foreach $product->combination AS $id_product_attribute => $product_attribute} {foreach $product->combination AS $id_product_attribute => $product_attribute}
<tr {if $id_product_attribute %2}class="alt_row"{/if} > <tr {if $id_product_attribute %2}class="alt_row"{/if} >
<td><a class="btn btn-default" href="?tab=AdminProducts&id_product={$product->id}&updateproduct&token={getAdminToken tab='AdminProducts'}"><i class="icon-eye-open"></i>&nbsp;{$product->name}</a></td> <td><a class="btn btn-link" href="?tab=AdminProducts&id_product={$product->id}&updateproduct&token={getAdminToken tab='AdminProducts'}">{$product->name}</a></td>
<td>{if empty($product_attribute.attributes)}{l s='N/A'}{else}{$product_attribute.attributes}{/if}</td> <td>{if empty($product_attribute.attributes)}{l s='N/A'}{else}{$product_attribute.attributes}{/if}</td>
<td>{if empty($product_attribute.product_supplier_reference)}{l s='N/A'}{else}{$product_attribute.product_supplier_reference}{/if}</td> <td>{if empty($product_attribute.product_supplier_reference)}{l s='N/A'}{else}{$product_attribute.product_supplier_reference}{/if}</td>
<td>{if empty($product_attribute.product_supplier_price_te)}0{else}{$product_attribute.product_supplier_price_te}{/if}</td> <td>{if empty($product_attribute.product_supplier_price_te)}0{else}{$product_attribute.product_supplier_price_te}{/if}</td>