Skip to content

Commit

Permalink
use datepicker widget for datetime input smcmahon#164
Browse files Browse the repository at this point in the history
  • Loading branch information
tomgross committed May 9, 2016
1 parent af24c55 commit cf16bef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ Change History
1.8.2 (unreleased)
------------------

- Nothing changed yet.
- Use datepicker widget for datetime input
[tomgross]


1.8.1 (2016-05-01)
Expand Down
5 changes: 3 additions & 2 deletions Products/PloneFormGen/content/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

from Products.Archetypes.public import *
from Products.Archetypes.utils import shasattr
from Products.Archetypes.Widget import DatetimeWidget

from Products.ATContentTypes.content.base import registerATCT
from Products.ATContentTypes.content.base import ATCTContent
Expand Down Expand Up @@ -505,11 +506,11 @@ def __init__(self, oid, **kwargs):
self.fgField = DateTimeField('fg_date_field',
searchable=0,
required=0,
accessor = 'nullAccessor',
write_permission = View,
widget=CalendarWidget(),
widget=DatetimeWidget(),
)


security.declareProtected(ModifyPortalContent, 'setFgShowHM')
def setFgShowHM(self, value, **kw):
""" set show_hm """
Expand Down

0 comments on commit cf16bef

Please sign in to comment.