Commit ffdf6143 authored by bMancone's avatar bMancone

// Stock : updated styles in templates

parent 8127cdad
......@@ -12,7 +12,7 @@
{/foreach}
</select>
{/if}
{if count($stock_cover_warehouses) > 1}
{if count($stock_cover_warehouses) > 0}
<select name="id_warehouse" onChange="$(this).parent().submit();">
{foreach from=$stock_cover_warehouses key=k item=i}
<option {if $i.id_warehouse == $stock_cover_cur_warehouse} selected="selected"{/if} value="{$i.id_warehouse}">{$i.name}</option>
......
......@@ -4,7 +4,7 @@
<form id="stock_instant_state" type="get">
<input type="hidden" name="controller" value="AdminStockInstantState" />
<input type="hidden" name="token" value="{$token}" />
{if count($stock_instant_state_warehouses) > 1}
{if count($stock_instant_state_warehouses) > 0}
<div id="stock_instant_state_form_warehouse">
<label for="id_warehouse">{l s="Select a warehouse:"}</label>
<select name="id_warehouse" onChange="$(this).parent().parent().submit();">
......
{extends file="helper/list/list_header.tpl"}
{block name=leadin}
{if count($list_warehouses) > 1}
{block name=override_header}
{if count($list_warehouses) > 0}
<div class="filter-stock">
<form type="get">
<label for="id_warehouse">{l s="Select a warehouse:"}</label>
<input type="hidden" name="controller" value="AdminStockMvt" />
......@@ -12,4 +13,5 @@
</select>
</form>
{/if}
</div>
{/block}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment