ldapsaisie/public_html/templates/default/LSformElement_select.tpl

19 lines
537 B
Smarty

<ul class='LSform' id='{$attr_name}'>
{if $freeze}
{foreach from=$values item=value}
{if $possible_values.$value}
<li>{$possible_values.$value}</li>
{else}
<li class='LSform-errors'>{getFData format=$unrecognized_value_label_format data=$value}</li>
{/if}
{foreachelse}
<li>{$noValueTxt}</li>
{/foreach}
{else}
<li>
<select name='{$attr_name}[]' {if $multiple}multiple{/if} class='LSformElement_select'>
{html_options options=$possible_values selected=$values}
</select>
</li>
{/if}
</ul>