7 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED |
7 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED |
8 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
8 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
9 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS |
9 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS |
10 # FOR A PARTICULAR PURPOSE. |
10 # FOR A PARTICULAR PURPOSE. |
11 # |
11 # |
|
12 from zope.schema._field import ASCIILine |
12 |
13 |
13 __docformat__ = 'restructuredtext' |
14 __docformat__ = 'restructuredtext' |
14 |
15 |
15 |
16 |
16 # import standard library |
17 # import standard library |
48 class IContactParagraph(IBaseParagraph): |
49 class IContactParagraph(IBaseParagraph): |
49 """Contact paragraph interface""" |
50 """Contact paragraph interface""" |
50 |
51 |
51 name = TextLine(title=_("Contact identity"), |
52 name = TextLine(title=_("Contact identity"), |
52 description=_("Name of the contact"), |
53 description=_("Name of the contact"), |
53 required=True) |
54 required=False) |
54 |
55 |
55 charge = I18nTextLineField(title=_("In charge of"), |
56 charge = I18nTextLineField(title=_("In charge of"), |
56 description=_("Label of contact function"), |
57 description=_("Label of contact function"), |
|
58 required=False) |
|
59 |
|
60 company = TextLine(title=_("Company"), |
|
61 description=_("Business name of the employer"), |
57 required=False) |
62 required=False) |
58 |
63 |
59 contact_email = MailAddressField(title=_("Email address"), |
64 contact_email = MailAddressField(title=_("Email address"), |
60 description=_("Contact email address"), |
65 description=_("Contact email address"), |
61 required=False) |
66 required=False) |
62 |
67 |
63 contact_form = InternalReferenceField(title=_("Contact form"), |
68 contact_form = InternalReferenceField(title=_("Contact form"), |
64 description=_("Reference of contact form"), |
69 description=_("Reference of contact form"), |
65 required=False, |
70 required=False, |
66 content_type=FORM_CONTENT_TYPE) |
71 content_type=FORM_CONTENT_TYPE) |
|
72 |
|
73 phone_number = ASCIILine(title=_('Phone number'), |
|
74 description=_('Phone number in international format.\n E.g. +33 ....'), |
|
75 required=False, ) |
67 |
76 |
68 photo = ImageField(title=_("Photo"), |
77 photo = ImageField(title=_("Photo"), |
69 description=_("Use 'browse' button to select contact picture"), |
78 description=_("Use 'browse' button to select contact picture"), |
70 required=False) |
79 required=False) |
71 |
80 |