158 return IBackOfficeConfiguration(self.context) |
158 return IBackOfficeConfiguration(self.context) |
159 |
159 |
160 def updateWidgets(self, prefix=None): |
160 def updateWidgets(self, prefix=None): |
161 super(BackOfficePropertiesEditForm, self).updateWidgets(prefix) |
161 super(BackOfficePropertiesEditForm, self).updateWidgets(prefix) |
162 if 'login_header' in self.widgets: |
162 if 'login_header' in self.widgets: |
163 self.widgets['login_header'].label_css_class = 'textarea' |
163 self.widgets['login_header'].widget_css_class = 'textarea' |
164 if 'login_footer' in self.widgets: |
164 if 'login_footer' in self.widgets: |
165 self.widgets['login_footer'].label_css_class = 'textarea' |
165 self.widgets['login_footer'].widget_css_class = 'textarea' |
166 |
166 |
167 |
167 |
168 @view_config(name='back-office-properties.json', context=ISiteRoot, request_type=IPyAMSLayer, |
168 @view_config(name='back-office-properties.json', context=ISiteRoot, request_type=IPyAMSLayer, |
169 permission=MANAGE_SYSTEM_PERMISSION, renderer='json', xhr=True) |
169 permission=MANAGE_SYSTEM_PERMISSION, renderer='json', xhr=True) |
170 class BackOfficePropertiesAJAXEditForm(AJAXEditForm, BackOfficePropertiesEditForm): |
170 class BackOfficePropertiesAJAXEditForm(AJAXEditForm, BackOfficePropertiesEditForm): |