interesting problem while using formbuild with pylons

1 view
Skip to first unread message

Krishnakant

unread,
Nov 20, 2009, 11:51:03 AM11/20/09
to pylons-...@googlegroups.com

Hello all,
I have been evalueating different form building librarys.
Thanks to many friends on the list I have a pritty nice understanding of
how different libraries render forms.

I am trying my hand at formbuild right now. The most striking feature
to me was that unlike to.Forms I did not need to alter the middleware.py
for configuring tw.Forms with pylons.
I also find that it blends with mako very well.
Now my question is that I want to alter the attributes of form elements
generated by formbuild. I checked the html generated by the library and
figure out that it uses css as classes inside the body of the template
itself.

I will like to alter the css and have different shades, gradients and
other effects to my form fields. Is it possible to alter the css for
the form build so that the fields get the desired effect?
I can create my css files and link them from the /public directory of my
app, But I would like to know how can I associate the classes I generate
for text fields, buttons etc.

Since I am not writing html directly I expect there must be some way in
which the attributes of the fields can be changed in formbuild.

Can someone help with this problem?

Another problem though relatively small is that I don't know how to
generate a reset button using the fields of formbuild?
I cancreate submit but not reset button.

Happy hacking.
Krishnakant.





Reply all
Reply to author
Forward
0 new messages