I am currently using this for my new user form:
class UserForm(AdminPage):
entity = Model.User
title = 'User'
class child(ListForm):
css_class = 'form-horizontal'
buttons = [SaveButton(),CancelButton()]
...
phone = TextField(
label = 'Phone',
validator = twc.Required
)
...
I am assuming that I will have to use something else than a ListForm to do
what I want. Here is what I need:
I would like to customize the length of certain form fields, put two form
fields next to one another rather than below and change the label on these
two fields to appear above the fields rather then on their left.
I spent hours wading through the different versions of tg docs and the 1.0
API, but I could find nothing that worked. I tried adding:
__field_attrs__={'phone':{'rows':'2'}}
but nothing changed. I am assuming a ListForm does not have *field_attrs*!?
Can anyone point me in the right direction on how to achieve what I am
looking for?
Thanks a lot!
I also asked the same question here:
http://stackoverflow.com/questions/17726700/turbogears2-how-to-customize-layout-for-new-user-form
--
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/groups/opt_out.