Re: How to create a newforms label unattached to an input field?

2009-05-12 Thread Nash-t
Thanks for the help. I created the custom widget. It works OK but I cannot figure out how to get my custom class (for css) to render . Please check this out when you get a chance. class NakedLabelWidget(forms.Widget): """ A widget that produces a naked label """ def __init__(self, attrs=N

Re: How to create a newforms label unattached to an input field?

2009-05-11 Thread George Song
On 5/11/2009 12:29 PM, Nash-t wrote: > I apologize if this is a dumb newbie question... > I am trying to create a newform label that doesn't have an associated > input field. This label is used as a title for a set of input fields. > I don't want to use django templates because of the way the for

How to create a newforms label unattached to an input field?

2009-05-11 Thread Nash-t
I apologize if this is a dumb newbie question... I am trying to create a newform label that doesn't have an associated input field. This label is used as a title for a set of input fields. I don't want to use django templates because of the way the form/data is passed around and saved on the serv

newforms label

2007-06-12 Thread va:patrick.kranzlmueller
is it possible to have a label-class with newforms? e.g., when a field is required, it´d be nice to show that with the label being bold or red or whatever. moreover, it´d be possible to style individual labels (which is not a common use-case, but it gives the designer more flexibility). than