src/pyams_content/shared/logo/interfaces/__init__.py
changeset 951 9395a088cd46
parent 841 d50743e69693
--- a/src/pyams_content/shared/logo/interfaces/__init__.py	Mon Sep 17 17:37:46 2018 +0200
+++ b/src/pyams_content/shared/logo/interfaces/__init__.py	Tue Sep 18 15:40:16 2018 +0200
@@ -15,19 +15,18 @@
 
 # import standard library
 
+from zope.interface import Interface
+from zope.schema import URI, Choice, TextLine
+
+from pyams_content import _
 # import interfaces
 from pyams_content.component.paragraph import IBaseParagraph
 from pyams_content.shared.common.interfaces import ISharedTool, IWfSharedContent, ISharedContent
-from pyams_sequence.interfaces import IInternalReferencesList
-
 # import packages
 from pyams_file.schema import ImageField
+from pyams_i18n.schema import I18nTextLineField
+from pyams_sequence.interfaces import IInternalReferencesList
 from pyams_sequence.schema import InternalReferencesListField
-from zope.interface import Interface
-from zope.schema import URI, Choice
-
-from pyams_content import _
-
 
 LOGO_CONTENT_TYPE = 'logo'
 LOGO_CONTENT_NAME = _("Logo")
@@ -44,6 +43,18 @@
 class IWfLogo(IWfSharedContent):
     """Logo interface"""
 
+    title = I18nTextLineField(title=_("Title"),
+                              description=_("Full name of logo organization"),
+                              required=True)
+
+    acronym = TextLine(title=_("Acronym"),
+                       description=_("Matching logo acronym, without spaces or separators"),
+                       required=False)
+
+    url = URI(title=_("Target URL"),
+              description=_("URL used to access external resource"),
+              required=False)
+
     image = ImageField(title=_("Image (colored)"),
                        description=_("Image data"),
                        required=True)
@@ -53,10 +64,6 @@
                                                 "presentation templates"),
                                   required=False)
 
-    url = URI(title=_("Target URL"),
-              description=_("URL used to access external resource"),
-              required=False)
-
 
 class IWfLogoFactory(Interface):
     """Logo factory interface"""