File: //proc/self/cwd/nueva/modules/roja45quotationsprofree/views/templates/admin/_product_line.tpl
{*
* 2016 ROJA45.COM
* All rights reserved.
*
* DISCLAIMER
*
* Changing this file will render any support provided by us null and void.
*
* @author Roja45 <support@roja45.com>
* @copyright 2016 roja45.com
*}
<table class="quotation-content table" id="quotationProducts">
<thead>
<tr>
<th class="column-select">
<label class="checkbox-container">
<input id="product_quotation_select_all" type="checkbox" class="select-quotation-product-all" name="product_quotation_select_all">
<span class="checkbox-checkmark"></span>
</label>
</th>
<th class="column-image"></th>
<th class="column-title"><span class="title_box">{l s='Product' mod='roja45quotationspro'}</span></th>
<th class="column-wholesale">
<span class="title_box ">{l s='Wholesale' mod='roja45quotationspro'}</span>
</th>
<th class="column-unitprice">
<span class="title_box">{l s='Unit Price' mod='roja45quotationspro'}</span>
<small class="text-muted">{if ($use_taxes)}{l s='tax incl.' mod='roja45quotationspro'}{else}{l s='tax excl.' mod='roja45quotationspro'}{/if}</small>
</th>
<th class="column-quoteprice">
<span class="title_box ">{l s='Quote' mod='roja45quotationspro'}</span>
<small class="text-muted">{if ($use_taxes)}{l s='tax incl.' mod='roja45quotationspro'}{else}{l s='tax excl.' mod='roja45quotationspro'}{/if}</small>
</th>
<th class="column-quantity"><span class="title_box ">{l s='Qty' mod='roja45quotationspro'}</span></th>
<th class="column-total">
<span class="title_box ">{l s='Total' mod='roja45quotationspro'}</span>
<small class="text-muted">{if ($use_taxes)}{l s='tax incl.' mod='roja45quotationspro'}{else}{l s='tax excl.' mod='roja45quotationspro'}{/if}</small>
</th>
<th class="column-buttons add_product_quotation_fields"></th>
</tr>
</thead>
<tbody>
{foreach from=$quotation_products item=product key=k}
<tr class="product-line-row" data-id-roja45-quotation-product="{$product['id_roja45_quotation_product']|escape:'html':'UTF-8'}">
<input type="hidden" name="product_quotation[product_quotation_id]" class="product_quotation_id" value="{$product['id_roja45_quotation_product']|escape:'html':'UTF-8'}"/>
<input type="hidden" name="product_quotation[id_product]" class="product_id" value="{$product['id_product']|escape:'html':'UTF-8'}"/>
<td class="column-select">
<label class="checkbox-container">
<input type="checkbox" class="select-quotation-product" name="product_quotation[selected]">
<span class="checkbox-checkmark"></span>
</label>
</td>
<td class="column-image">{if isset($product.image_tag)}<img src="{$product.image_tag|escape:'htmlall':'UTF-8'}" alt="{$product['product_title']|escape:'html':'UTF-8'}" class="img img-thumbnail" width="{$product['image_width']}" height="{$product['image_height']}"/>{/if}</td>
<td class="column-title">
<span class="productName">{$product['product_title']|escape:'html':'UTF-8'}</span><br/>
</td>
<td class="column-wholesale wholesale_price" data-wholesale-price="{$product.wholesale_price}">
{$product.wholesale_price}
</td>
<td class="column-unitprice">
{if ($use_taxes)}
<span>{$product.list_price_incl}</span>
{else}
<span>{$product.list_price_excl}</span>
{/if}
</td>
<td class="column-quoteprice">
{if ($use_taxes)}
<div class="fixed-width-md">
<div class="input-group">
<div class="input-group-addon">{$currency->sign|escape:'html':'UTF-8'}</div>
<input type="text"
name="product_quotation[product_price_tax_incl]"
{if ($quotation->isLocked())}disabled="disabled"{/if}
class="product_quotation_editable product_quotation_price_tax_incl product_price"
value="{$product['unit_price_tax_incl']|escape:'html':'UTF-8'}"/>
</div>
</div>
{else}
<div class="fixed-width-md">
<div class="input-group">
<div class="input-group-addon">{$currency->sign|escape:'html':'UTF-8'}</div>
<input type="text"
name="product_quotation[product_price_tax_excl]"
{if ($quotation->isLocked())}disabled="disabled"{/if}
class="product_quotation_editable product_quotation_price_tax_excl product_price"
value="{$product['unit_price_tax_excl_currency']|escape:'html':'UTF-8'}"/>
</div>
</div>
{/if}
</td>
<td class="column-quantity productQuantity">
<input type="number"
name="product_quotation[product_quantity]"
{if ($quotation->isLocked())}disabled="disabled"{/if}
class="product_quotation_editable form-control product_quotation_quantity"
value="{$product['qty']|escape:'html':'UTF-8'}"/>
</td>
<td class="column-total total_product hide-when-dirty">
{if ($use_taxes)}
{$product['product_price_subtotal_incl_formatted']}
{else}
{$product['product_price_subtotal_excl_formatted']}
{/if}
</td>
<td class="column-buttons quotation_action text-right">
</td>
</tr>
{/foreach}
</tbody>
</table>