On Sep 17, 2010, at 2:18 PM, bloeper wrote:

> Hi All,
> 
> I have the following form in toscawidgets:
> 
> from tw.api import CSSLink
> from tw.forms import ListForm, TextField, TextArea, Form, HiddenField,
> Label
> from tw.api import WidgetsList
> from tw.forms.validators import Int, NotEmpty, DateConverter, Email,
> NoDefault, All, MinLength
> from tg import url
> 
> from nextrus.model.blog import Reaction, Blog
> 
> 
> class ReactionForm( ListForm ):
> 
> 
>  show_errors = True
>  show_children_errors = True
>  css = [CSSLink(link=url('/css/form.css'))]
> 
>  class fields(WidgetsList):
>         blog_id = HiddenField( 'blog_id', label_text='blog_id')
>         authorlabel= Label(text='Author*:')
>         author = TextField( 'author', label_text='Author', validator=
> All(NotEmpty, MinLength(3) ) )
>         emaillabel= Label(text='Emailadres*:')
>         email=TextField( 'email', label_text='Email', validator =
> All( Email( resolve_domain=True ), NotEmpty ) )
>         websitelabel= Label(text='Website:')
>         website=TextField( 'website', label_text='Website' )
>         subjectlabel= Label(text='Subject:')
>         subject=TextField( 'subject', label_text='Subject')
>         contentlabel= Label(text='Message*:')
>         content=TextArea( 'content', attrs=dict(rows=3,cols=3),
> validator=NotEmpty )
>         url = HiddenField( 'url', label_text='url' )
> 
>  template = "nextrus.templates.new.forms.form"
>  submit_text = 'Post'
> 
> reaction_form = ReactionForm( "reactform",  action='/addReaction' )
> 
> These labels are put in an div, is there a possibility that the labels
> are set using a paragraph instead of the div?
> I have search the documentation of tosawidgets, but couldn't find some
> usefull information there..
> 
> Hope someone can help.

Not by configuration. You need to instantiate or subclass the widgets in 
question with changed markup. 

Diez

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en.

Reply via email to