Stock : Add new tpl for leadin intregration
This commit is contained in:
1 parent
543f84b029
commit
499658e005
3 files changed
+57
No files matched your search
@@ -0,0 +1,27 @@
|
|||||||
|
{extends file="helper/list/list_header.tpl"}
|
||||||
|
{block name=leadin}
|
||||||
|
<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();">
|
||||||
|
{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="coverage_warehouse">{l s="Select a warehouse:"}</label>
|
||||||
|
<select name="coverage_warehouse" onChange="$(this).parent().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>
|
||||||
|
{/block}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
{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>
|
||||||
|
{/foreach}
|
||||||
|
</select>
|
||||||
|
</form>
|
||||||
|
{/if}
|
||||||
|
{/block}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
{extends file="helper/list/list_header.tpl"}
|
||||||
|
{block name=leadin}
|
||||||
|
{if count($list_warehouses) > 1}
|
||||||
|
<form type="get" onchange="submit();">
|
||||||
|
<label for="warehouse">{l s="Select a warehouse:"}</label>
|
||||||
|
<input type="hidden" name="controller" value="AdminStockMvt" />
|
||||||
|
<input type="hidden" name="token" value="{$token}" />
|
||||||
|
<select name="warehouse">
|
||||||
|
{foreach $list_warehouses as $warehouse}
|
||||||
|
<option {if $warehouse.id_warehouse == $current_warehouse}selected="selected"{/if} value="{$warehouse.id_warehouse}">{$warehouse.name}</option>
|
||||||
|
{/foreach}
|
||||||
|
</select>
|
||||||
|
</form>
|
||||||
|
{/if}
|
||||||
|
{/block}
|
||||||
Reference in new issue
Block a user