Created
August 14, 2017 09:43
-
-
Save Nikki0/f945a31924f9711acf6d3596cc1391a3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{if (!isset($customerThread.id_order) || $customerThread.id_order > 0)} | |
<div class="form-group selector1"> | |
<label>{l s='Order reference'}</label> | |
{if !isset($customerThread.id_order) && isset($is_logged) && $is_logged} | |
<select name="id_order" class="form-control"> | |
<option value="0">{l s='-- Choose --'}</option> | |
{foreach from=$orderList item=order} | |
<option value="{$order.value|intval}"{if $order.selected|intval} selected="selected"{/if}>{$order.label|escape:'html':'UTF-8'}</option> | |
{/foreach} | |
</select> | |
{elseif !isset($customerThread.id_order) && empty($is_logged)} | |
<input class="form-control grey" type="text" name="id_order" id="id_order" value="{if isset($customerThread.id_order) && $customerThread.id_order|intval > 0}{$customerThread.id_order|intval}{else}{if isset($smarty.post.id_order) && !empty($smarty.post.id_order)}{$smarty.post.id_order|escape:'html':'UTF-8'}{/if}{/if}" /> | |
{elseif $customerThread.id_order|intval > 0} | |
<input class="form-control grey" type="text" name="id_order" id="id_order" value="{if isset($customerThread.reference) && $customerThread.reference}{$customerThread.reference|escape:'html':'UTF-8'}{else}{$customerThread.id_order|intval}{/if}" readonly="readonly" /> | |
{/if} | |
</div> | |
{/if} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment