Re: css_class value not propagates to subfields of DateTime form
kit blake <kitblake-IsuZpU9mC/[email protected]> Mon, 8 Dec 2003 07:18:56 +0100
| Newsgroups | gmane.comp.web.zope.formulator.devel |
|---|---|
| Organization | _infrae_ |
| Message-ID | <[email protected]> |
Hi Clemens, > recently there has been a bug report that the "css_class" value is in > fact ignored when rendering DateTime fields: > > http://sourceforge.net/mailarchive/forum.php?thread_id=3547899&forum_id=1702 > > Indeed the problem is that the value needs to be propagated to the > subfields embedded in the DateTime field. > > The bug can be fixed via a simple "on_value_css_class_changed" helper; > however on the formulator-general list I have been uncarefully discussed > the option of having different css-classes for the date and time values. > > As nobody came up with a real use case for this I guess there is no use > case for it. Uhm, there is one in my head. Required fields get a different background color. The datetime field can have required date fields, but the time fields can be optional. It would good to make this visually apparent. > So if nobody objects on this list I will check in the simple fix > sometime near the end of the next week (after I found the times to write > tests for it :-> ) I hope I haven't made your simple fix more complicated :) kit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Infrae . . . kit blake . . . infrae.com . t +31 10 243 7051 Hoevestraat 10 . 3033 GC Rotterdam . NL . f +31 10 243 7052