On Fri, Dec 5, 2014 at 6:38 AM, Bill McCormick <wpmccorm...@gmail.com>
wrote:

> I'm trying to find a slick way to make my radio buttons checked.
>

For another slick approach take a look at HTML::FillInForm
<http://search.cpan.org/dist/HTML-FillInForm/> and the filter
<http://search.cpan.org/dist/Template-Plugin-FillInForm/>.



> Doing something like ...
>
> [% IF flags && 16 %]
>   <input class="radio" type="radio" name="recipe_type" value="Warmup"
> checked="1" />Warmup
> [% ELSE %]
>   <input class="radio" type="radio" name="recipe_type" value="Warmup"
> />Warmup
> [% END %]
>
> ... just seems wrong.
>
> Suggestions?
>
> Thanks,
>
> Bill
>
>
> _______________________________________________
> templates mailing list
> templates@template-toolkit.org
> http://mail.template-toolkit.org/mailman/listinfo/templates
>
>


-- 
Bill Moseley
mose...@hank.org
_______________________________________________
templates mailing list
templates@template-toolkit.org
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to