diff --git a/src/eestec/portal/content/event.py b/src/eestec/portal/content/event.py index 3b708ea..caffcfb 100644 --- a/src/eestec/portal/content/event.py +++ b/src/eestec/portal/content/event.py @@ -7,17 +7,26 @@ from five import grok from plone.directives import form, dexterity from zope import schema +from plone.app.textfield import RichText from zope.interface.declarations import alsoProvides class IEvent(form.Schema): """ """ + title = schema.TextLine( + title=u'Name', + required=True, + ) deadline = schema.Datetime( title=u'Deadline', description=u'Deadline to apply to this event', required=True, ) + description = RichText( + title=u'Description', + required=True, + ) alsoProvides(IEvent, form.IFormFieldProvider) diff --git a/src/eestec/portal/profiles/default/types/eestec.portal.event.xml b/src/eestec/portal/profiles/default/types/eestec.portal.event.xml index 39b1753..0134747 100644 --- a/src/eestec/portal/profiles/default/types/eestec.portal.event.xml +++ b/src/eestec/portal/profiles/default/types/eestec.portal.event.xml @@ -28,7 +28,6 @@ -