// Revert birthday input type

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13610 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mDeflotte
2012-02-24 15:21:55 +00:00
parent c9ba6a7214
commit d9ae59a2a5
2 changed files with 37 additions and 3 deletions
@@ -281,9 +281,31 @@
{foreach $input.options as $key => $select}
<select name="{$key}" class="">
<option value="">-</option>
{foreach $select as $v}
<option value="{$v}" {if $v == $fields_value[$key]}selected="selected"{/if}>{$v}</option>
{/foreach}
{if $key == 'months'}
{*
This comment is useful to the translator tools /!\ do not remove them
{l s='January'}
{l s='February'}
{l s='March'}
{l s='April'}
{l s='May'}
{l s='June'}
{l s='July'}
{l s='August'}
{l s='September'}
{l s='October'}
{l s='November'}
{l s='December'}
*}
{foreach $select as $k => $v}
<option value="{$k}" {if $k == $fields_value[$key]}selected="selected"{/if}>{l s=$v}</option>
{/foreach}
{else}
{foreach $select as $v}
<option value="{$v}" {if $v == $fields_value[$key]}selected="selected"{/if}>{$v}</option>
{/foreach}
{/if}
</select>
{/foreach}
{elseif $input.type == 'group'}