diff --git a/src/collective/ifttt/browser/controlpanel.py b/src/collective/ifttt/browser/controlpanel.py index fd99d6b..7e7b00a 100644 --- a/src/collective/ifttt/browser/controlpanel.py +++ b/src/collective/ifttt/browser/controlpanel.py @@ -3,6 +3,7 @@ from collective.ifttt import _ from plone.app.registry.browser.controlpanel import ControlPanelFormWrapper from plone.app.registry.browser.controlpanel import RegistryEditForm +from plone.autoform import directives from plone.z3cform import layout from zope import schema from zope.interface import Interface @@ -10,17 +11,19 @@ class IIftttControlPanel(Interface): + # A field in 'hidden' mode + + directives.mode(secret='hidden') ifttt_secret_key = schema.TextLine( title=_(u'Secret Key'), description=_(u'Register Ifttt"s secret key'), - required=False, ) class IftttControlPanelForm(RegistryEditForm): schema = IIftttControlPanel schema_prefix = 'ifttt' - label = u'Ifttt Settings' + label = _(u'Ifttt Settings') IftttControlPanelView = layout.wrap_form( diff --git a/src/collective/ifttt/profiles/default/controlpanel.xml b/src/collective/ifttt/profiles/default/controlpanel.xml index 5cee6ae..05fc179 100644 --- a/src/collective/ifttt/profiles/default/controlpanel.xml +++ b/src/collective/ifttt/profiles/default/controlpanel.xml @@ -1,5 +1,6 @@ - + + visible="True" + i18n:translate="title"> Manage portal