// Added translations + new design for AdminStockCover & AdminStockInstantState

This commit is contained in:
bMancone
2011-11-23 14:21:25 +00:00
parent a88c10050c
commit fd1f3ba908
4 changed files with 495 additions and 493 deletions
@@ -1,27 +1,24 @@
{extends file="helper/list/list_header.tpl"}
{block name=leadin}
{block name=override_header}
<div class="filter-stock">
<form id="stock_cover" type="get">
<input type="hidden" name="controller" value="AdminStockCover" />
<input type="hidden" name="token" value="{$token}" />
{if count($stock_cover_periods) > 1}
<div id="stock_cover_form_period">
<label for="coverage_period">{l s="Select a period:"}</label>
<select name="coverage_period" onChange="$(this).parent().parent().submit();">
<label for="coverage_period">{l s="Select a period and a warehouse:"}</label>
<select name="coverage_period" onChange="$(this).parent().submit();">
{foreach from=$stock_cover_periods key=k item=i}
<option {if $i == $stock_cover_cur_period} selected="selected"{/if} value="{$i}">{$k}</option>
{/foreach}
</select>
</div>
{/if}
{if count($stock_cover_warehouses) > 1}
<div id="stock_cover_form_warehouse">
<label for="id_warehouse">{l s="Select a warehouse:"}</label>
<select name="id_warehouse" onChange="$(this).parent().parent().submit();">
<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>
{/foreach}
</select>
</div>
{/if}
</form>
</div>
{/block}
@@ -1,5 +1,6 @@
{extends file="helper/list/list_header.tpl"}
{block name=leadin}
{block name=override_header}
<div class="filter-stock">
<form id="stock_instant_state" type="get">
<input type="hidden" name="controller" value="AdminStockInstantState" />
<input type="hidden" name="token" value="{$token}" />
@@ -14,4 +15,5 @@
</div>
{/if}
</form>
</div>
{/block}