- LSformElement_select : ajout de l'id à l'<ul>

This commit is contained in:
Benjamin Renard 2008-10-27 10:56:19 +00:00
parent a74c503391
commit 3b0f980c69

View file

@ -1,17 +1,15 @@
<ul class='LSform' id='{$attr_name}'>
{if $freeze}
<ul class='LSform'>
{foreach from=$values item=value}
<li>{$possible_values.$value}</li>
{foreachelse}
<li>{$noValueTxt}</li>
{/foreach}
</ul>
{foreach from=$values item=value}
<li>{$possible_values.$value}</li>
{foreachelse}
<li>{$noValueTxt}</li>
{/foreach}
{else}
<ul class='LSform'>
<li>
<select name='{$attr_name}[]' {if $multiple}multiple{/if} class='LSformElement_select'>
{html_options options=$possible_values selected=$values}
</select>
</li>
</ul>
<li>
<select name='{$attr_name}[]' {if $multiple}multiple{/if} class='LSformElement_select'>
{html_options options=$possible_values selected=$values}
</select>
</li>
{/if}
</ul>