Add LSattr_html::select_box
[ldapsaisie.git] / public_html / templates / default / LSformElement_select_box.tpl
1 <ul class='LSform' id='{$attr_name}'>
2 {if $freeze}
3   {foreach from=$values item=value}
4     {if array_key_exists($value,$possible_values)}
5     <li>{$possible_values.$value}</li>
6     {else}
7     <li class='LSform-errors'>{getFData format=$unrecognized_value_label_format data=$value}</li>
8     {/if}
9   {foreachelse}
10     <li>{$noValueTxt}</li>
11   {/foreach}
12 {else}
13     {foreach from=$possible_values item=label key=value name=LSformElement_selectbox}
14       <li>
15         <input type='{if $multiple}checkbox{else}radio{/if}' name='{$attr_name}[]' class='LSformElement_selectbox' id='LSformElement_selectbox_{$attr_name}_{$smarty.foreach.LSformElement_selectbox.index}' value="{$value}" {if in_array($value,$values)}checked{/if}/> <label for='LSformElement_selectbox_{$attr_name}_{$smarty.foreach.LSformElement_selectbox.index}'>{tr msg=$label}</label>
16       </li>
17     {/foreach}
18 {/if}
19 </ul>