[html-formfu] error in select_tag tt template

Gabor HALASZ halasz.g at freemail.hu
Tue Feb 23 15:29:26 GMT 2010


Hi!

I tries to generate <select> with tt templates, and I got the next html 
  code:

     <div class="select">






<select name="sex">

	<
	    option value="m">
		Male
	    </option>
	

	<
	    option value="f">
		Female
	    </option>
	

</select>



     </div>



and rendered as an empty select (tested with ie and firefox). This 
caused by a typo in the select_tag template:


         [% ELSE %] <
		option value="[% option.value %]"[% process_attrs(option.attributes) %]>
                 [% option.label %]
             </option>
         [% END %]

I simply changed to the next version:

         [% ELSE %]
	    <option value="[% option.value %]"[%
process_attrs(option.attributes) %]>
                 [% option.label %]
             </option>
         [% END %]

and the selectable list works. I'm using HTML-FormFu-0.06001.


-- 
Gabor HALASZ <halasz.g at freemail.hu>



More information about the HTML-FormFu mailing list