LSformElement : Added autocomplete="off" in fields templates
[ldapsaisie.git] / public_html / templates / default / LSformElement_valueWithUnit_field.tpl
1 {if $freeze}
2   {if $value}
3     {if $values_and_units[$value].unknown}
4       <span class='LSformElement_valueWithUnit_unknown'>{$values_and_units[$value].unknown}</span>
5     {else}
6       {if $values_and_units[$value].valueWithUnit}
7         {$values_and_units[$value].valueWithUnit}{$values_and_units[$value].unitLabel}
8       {else}
9         {$values_and_units[$value].value}
10       {/if}
11     {/if}
12   {else}
13     {$noValueTxt}
14   {/if}
15 {else}
16   {if $values_and_units[$value].valueWithUnit || !$values_and_units[$value]}
17     <input name='{$attr_name}_valueWithUnit[]' type=text class='LSformElement_valueWithUnit' value="{$values_and_units[$value].valueWithUnit}"/>
18     <select name='{$attr_name}_unitFact[]' class='LSform LSformElement_valueWithUnit'>
19       {html_options options=$units selected=$values_and_units[$value].unitSill}
20     </select>
21   {else}
22     <input name='{$attr_name}_value[]' type=text class='LSformElement_valueWithUnit' value="{$values_and_units[$value].value}" autocomplete="off"/>
23   {/if}
24   {if $values_and_units[$value].unknown}
25     <span class='LSformElement_valueWithUnit_unknown'>{$values_and_units[$value].unknown}</span>
26   {/if}
27 {/if}