0001-backoffice-add-hide-form-sidebar-actions-option-4185.patch
wcs/backoffice/management.py | ||
---|---|---|
1065 | 1065 | |
1066 | 1066 |
def get_formdata_sidebar(self, qs=''): |
1067 | 1067 |
r = TemplateIO(html=True) |
1068 |
r += htmltext('<ul id="sidebar-actions">') |
|
1069 |
r += self.get_formdata_sidebar_actions(qs=qs) |
|
1070 |
r += htmltext('</ul>') |
|
1068 |
if not get_publisher().has_site_option('hide-form-sidebar-actions'): |
|
1069 |
r += htmltext('<ul id="sidebar-actions">') |
|
1070 |
r += self.get_formdata_sidebar_actions(qs=qs) |
|
1071 |
r += htmltext('</ul>') |
|
1071 | 1072 |
views = list(self.get_custom_views()) |
1072 | 1073 |
if views: |
1073 | 1074 |
r += htmltext('<h3>%s</h3>') % _('Custom Views') |
1074 |
- |