From 178c09dc948720d92c40ff3594a70374d9dae841 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Wed, 2 Mar 2016 21:33:33 +0100 Subject: [PATCH] backoffice: add link to switch from global view to "forms view" (#10167) --- wcs/backoffice/management.py | 5 +++++ wcs/qommon/static/css/dc2/admin.css | 20 ++++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/wcs/backoffice/management.py b/wcs/backoffice/management.py index bd0654c..3431124 100644 --- a/wcs/backoffice/management.py +++ b/wcs/backoffice/management.py @@ -755,7 +755,12 @@ class ManagementDirectory(Directory): get_response().filter['sidebar'] = self.get_global_listing_sidebar( limit=limit, offset=offset, order_by=order_by) rt = TemplateIO(html=True) + rt += htmltext('
') rt += htmltext('

%s

') % _('Global View') + rt += htmltext('
') + rt += htmltext('%s') % _('Forms View') + rt += htmltext('
') + rt += htmltext('
') rt += get_session().display_message() rt += r.getvalue() r = rt diff --git a/wcs/qommon/static/css/dc2/admin.css b/wcs/qommon/static/css/dc2/admin.css index 4257e0a..82d77c0 100644 --- a/wcs/qommon/static/css/dc2/admin.css +++ b/wcs/qommon/static/css/dc2/admin.css @@ -586,6 +586,26 @@ div.bo-block h2 { margin: 0; } +.top-title h2 { + font-size: 200%; + margin: 0; +} + +.top-title { + position: relative; + background: #fcfcfc; + padding: 1.5rem 1rem 1rem 1rem; + border: 1px solid #bcbcbc; + margin-bottom: -1px; + margin-top: 0.5ex; +} + +div.alt-views { + position: absolute; + right: 1rem; + top: 2.5rem; +} + div.bo-block ul.biglist li { border-width: 1px 0 0 0; border-color: #e4e4e4; -- 2.7.0