web/formfields.py
changeset 4374 ff3efacfea42
parent 4370 75c610a85949
child 4377 0e9cf6593382
--- a/web/formfields.py	Tue Jan 26 16:47:07 2010 +0100
+++ b/web/formfields.py	Tue Jan 26 16:47:45 2010 +0100
@@ -661,8 +661,9 @@
 
 
 class DateField(StringField):
+    widget = fw.JQueryDatePicker
     format_prop = 'ui.date-format'
-    widget = DateTimePicker
+    etype = 'Date'
 
     def format_single_value(self, req, value):
         return value and ustrftime(value, req.property_value(self.format_prop)) or u''
@@ -680,11 +681,13 @@
 
 
 class DateTimeField(DateField):
+    widget = fw.JQueryDateTimePicker
     format_prop = 'ui.datetime-format'
     etype = 'Datetime'
 
 
 class TimeField(DateField):
+    widget = fw.JQueryTimePicker
     format_prop = 'ui.time-format'
     etype = 'Time'