Re: [Zope3-Users] Overriding cssClass on all input widgets

2007-08-25 Thread Adam Groszer
Hello Greg,

You can do your own widgets where you just override the cssClass property,
then in an overrides.zcml you register them instead of the stock
widgets. See zope.app.form.browser/configure.zcml.
An alternative way could be to create a new zope skin and adapdt your css
according to what the widgets use.

Friday, August 24, 2007, 9:01:07 PM, you wrote:

 I'm trying to make a skin for my program, but am having trouble getting the
 input forms converted over.  I have a skin created by a graphic artist, my
 problem now is figuring out how to change the cssClass attribute for all my
 widgets.

 Currently my forms are registered like this:
 browser:page
 for=zope.app.container.interfaces.IAdding
 name=ship.IncidentReport
 class=.incidentreport.IncidentReportAddForm
 permission=zope.View /

 where .incidentreport.IncidentReportAddForm specifies the template for the
 form.  I plan to register all the forms like this.

 Any ideas as to how I can do this?
 Greg
 ___
 Zope3-users mailing list
 Zope3-users@zope.org
 http://mail.zope.org/mailman/listinfo/zope3-users



-- 
Best regards,
 Adammailto:[EMAIL PROTECTED]

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


[Zope3-Users] Overriding cssClass on all input widgets

2007-08-24 Thread Greg Baker
I'm trying to make a skin for my program, but am having trouble getting the 
input forms converted over.  I have a skin created by a graphic artist, my 
problem now is figuring out how to change the cssClass attribute for all my 
widgets.

Currently my forms are registered like this:
browser:page
for=zope.app.container.interfaces.IAdding
name=ship.IncidentReport
class=.incidentreport.IncidentReportAddForm
permission=zope.View /

where .incidentreport.IncidentReportAddForm specifies the template for the 
form.  I plan to register all the forms like this.

Any ideas as to how I can do this?
Greg
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users