// AdminStockInstantStateController updated

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9982 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
bMancone
2011-11-09 10:02:57 +00:00
parent b0d9a04e95
commit 5336732032
3 changed files with 154 additions and 195 deletions
@@ -1,15 +1,17 @@
{extends file="helper/list/list_header.tpl"}
{block name=leadin}
{if count($list_warehouses) > 1}
<form type="get">
<label for="wareouse">{l s="Select a warehouse:"}</label>
<input type="hidden" name="controller" value="AdminStockInstantState" />
<input type="hidden" name="token" value="{$token}" />
<select name="warehouse" onchange="$(this).parent().submit();">
{foreach $list_warehouses as $warehouse}
<option {if $warehouse.id_warehouse == $current_warehouse}selected="selected"{/if} value="{$warehouse.id_warehouse}">{$warehouse.name}</option>
<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}
<div id="stock_instant_state_form_warehouse">
<label for="instant_state_warehouse">{l s="Select a warehouse:"}</label>
<select name="instant_state_warehouse" onChange="$(this).parent().parent().submit();">
{foreach from=$stock_instant_state_warehouses key=k item=i}
<option {if $i.id_warehouse == $stock_instant_state_cur_warehouse} selected="selected"{/if} value="{$i.id_warehouse}">{$i.name}</option>
{/foreach}
</select>
</form>
</div>
{/if}
{/block}
</form>
{/block}