Re: determining newforms field type in a template

2007-12-18 Thread Malcolm Tredinnick
On Mon, 2007-12-17 at 22:10 -0800, MrJogo wrote: > If I pass a form into my template as a variable, is there a way to > tell what input type a field is in the template? My template creates > pretty boxes for the form fields, but I don't want them around hidden > inputs. I was hoping for something

determining newforms field type in a template

2007-12-17 Thread MrJogo
If I pass a form into my template as a variable, is there a way to tell what input type a field is in the template? My template creates pretty boxes for the form fields, but I don't want them around hidden inputs. I was hoping for something like {% ifequal field.type "hidden" %} but I can't seem t