Re: Provide forms field/widget type information for use in templates

2017-03-20 Thread Paweł Adamczak
Huh, don't know how I missed that. Thanks! In that case, I would add the information to the docs, to the ticket, and close it : -) On Monday, March 20, 2017 at 4:36:17 PM UTC, Collin Anderson wrote: > > Hi, > > If it helps It looks like there's a widget.input_type attribute, so you > can at lea

Re: Provide forms field/widget type information for use in templates

2017-03-20 Thread Collin Anderson
Hi, If it helps It looks like there's a widget.input_type attribute, so you can at least do {% if theform.thefield.field.widget.input_type == "checkbox" %} etc. Collin On Mon, Mar 20, 2017 at 9:46 AM, Paweł Adamczak wrote: > Hiya, > > I would like to 'resurrect' ticket #13009 >

Provide forms field/widget type information for use in templates

2017-03-20 Thread Paweł Adamczak
Hiya, I would like to 'resurrect' ticket #13009 , or at least discuss it. I think that the suggested feature would be beneficial, as it comes up every time I'm implementing HTML flats different types of fields require different rendering (the most c