206 self.widgets['author_comments'].widget_css_class = 'textarea' |
206 self.widgets['author_comments'].widget_css_class = 'textarea' |
207 if 'pif_number' in self.widgets: |
207 if 'pif_number' in self.widgets: |
208 self.widgets['pif_number'].input_css_class = 'col-md-3' |
208 self.widgets['pif_number'].input_css_class = 'col-md-3' |
209 if 'sound_description' in self.widgets: |
209 if 'sound_description' in self.widgets: |
210 self.widgets['sound_description'].widget_css_class = 'textarea' |
210 self.widgets['sound_description'].widget_css_class = 'textarea' |
|
211 |
|
212 def updateGroups(self): |
211 self.add_group(NamedWidgetsGroup(self, 'audio_file', self.widgets, |
213 self.add_group(NamedWidgetsGroup(self, 'audio_file', self.widgets, |
212 ('sound', 'sound_title', 'sound_description'), |
214 ('sound', 'sound_title', 'sound_description'), |
213 bordered=False, |
215 bordered=False, |
214 legend=_("Audio content"), |
216 legend=_("Audio content"), |
215 css_class='inner', |
217 css_class='inner', |
216 switch=True, |
218 switch=True, |
217 hide_if_empty=True)) |
219 hide_if_empty=True)) |
|
220 super(GalleryFilePropertiesEditForm, self).updateGroups() |
218 |
221 |
219 |
222 |
220 @view_config(name='gallery-file-properties.json', context=IGalleryFile, request_type=IPyAMSLayer, |
223 @view_config(name='gallery-file-properties.json', context=IGalleryFile, request_type=IPyAMSLayer, |
221 permission=MANAGE_CONTENT_PERMISSION, renderer='json', xhr=True) |
224 permission=MANAGE_CONTENT_PERMISSION, renderer='json', xhr=True) |
222 class GalleryFileInfoPropertiesAJAXEditForm(AJAXEditForm, GalleryFilePropertiesEditForm): |
225 class GalleryFileInfoPropertiesAJAXEditForm(AJAXEditForm, GalleryFilePropertiesEditForm): |