hi there!

I have a Dexterity-based content type similar to this one:

from collective.z3cform.datagridfield import DataGridFieldFactory
from collective.z3cform.datagridfield import DictRow
from my.content import _
from plone.autoform import directives as form
from plone.supermodel import model
from zope import schema


class ITeamItem(model.Schema):

    team = schema.TextLine(
        title=_(u'Team'),
        required=True,
    )

    date_start = schema.Date(
        title=_(u'Start date'),
        required=True,
    )

    date_end = schema.Date(
        title=_(u'End date'),
        required=True,
    )


class IPerson(model.Schema):

    full_name = schema.TextLine(
        title=_(u'Full Name'),
        required=True,
    )

    form.widget(teams=DataGridFieldFactory)
    teams = schema.List(
        title=_(u'Teams affiliation'),
        required=True,
        value_type=DictRow(title=u'teams_row', schema=ITeamItem),
    )

when I create the object, the date widget of the table is not working: a row is added when I click the calendar image and no date is filled on the field; no JS errors on the console.

on editing mode, the widget works normally.

any hint?

this is Plone 4.3.2, collective.z3cform.datagridfield 0.15 and, as you can see, I'm inheriting from plone.supermodel and not from z3c.forms.

by the way, I saw a hack on collective.z3cform.datagridfield_demo that could be related with this:

https://github.com/collective/collective.z3cform.datagridfield_demo/blob/master/collective/z3cform/datagridfield_demo/browser/simple.py#L31

best regards
--
Héctor Velarde


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
Product-Developers mailing list
[email protected]
https://lists.plone.org/mailman/listinfo/plone-product-developers

Reply via email to