ToutPratique 1d1a2def5f push prod
2016-05-17 15:54:37 +02:00

55 lines
2.2 KiB
Smarty

{include file="$GLS_local_path/views/templates/admin/post_action.tpl"}
<div>
<fieldset>
<legend><img src="../modules/gls/views/img/logo.png" />{l s='Import' mod='gls'}</legend>
<label for="id_order_state">{l s='Order state' mod='gls'}</label>
<div class="margin-form">
<select id="id_order_state_import" name="id_order_state" style="width:250px">
{foreach from=$GLS_orders_states_list key=num_state item=order_state}
{assign var='selected_option' value=''}
{if $order_state.id_order_state == $GLS_order_state_import}
{assign var='selected_option' value='selected="selected"'}
{/if}
<option value="{$order_state.id_order_state}" style="background-color:{$order_state.color};" {$selected_option}>{$order_state.name}</option>
{/foreach}
</select>
<p>
{l s='Choose the order state after the import.' mod='gls'}
</p>
</div>
<div class="submit_button">
<button name="importOrders" id="importOrders" value="{l s='Save' mod='gls'}" class="button">{l s='Import orders' mod='gls'}</button>
</div>
</fieldset>
</div>
<br />
<div>
<form action="{$smarty.server.REQUEST_URI}" method="post" class="form">
<fieldset>
<legend><img src="../modules/gls/views/img/logo.png" />{l s='Export Filter' mod='gls'}</legend>
<label for="id_order_state">{l s='Order state' mod='gls'}</label>
<div class="margin-form">
<select id="id_order_state" name="id_order_state" style="width:250px">
{foreach from=$GLS_orders_states_list key=num_state item=order_state}
{assign var='selected_option' value=''}
{if $order_state.id_order_state == $GLS_order_state.id_order_state}
{assign var='selected_option' value='selected="selected"'}
{/if}
<option value="{$order_state.id_order_state}" style="background-color:{$order_state.color};" {$selected_option}>{$order_state.name}</option>
{/foreach}
</select>
<p>
{l s='Choose the order state for export.' mod='gls'}
</p>
</div>
<div class="clear"></div>
<div class="margin-form">
<input type="submit" name="submit_order_state" value="{l s='Filter' mod='gls'}" class="button" />
</div>
</fieldset>
<input type="hidden" name="GLS_action_name" value="{l s='Settings'}" />
</form>
</div>