From 762ef7d2c347524215793fd831d4e0392b8a89f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Thu, 8 Sep 2016 15:12:53 +0200 Subject: [PATCH] admin: fix style of redirect link of disabled forms (#13113) --- wcs/admin/forms.py | 6 ++---- wcs/qommon/static/css/dc2/admin.css | 9 +++++++++ 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/wcs/admin/forms.py b/wcs/admin/forms.py index b7e9ef5..d17c48a 100644 --- a/wcs/admin/forms.py +++ b/wcs/admin/forms.py @@ -1544,11 +1544,9 @@ class FormsDirectory(AccessControlled, Directory): r += htmltext('
  • ') r += htmltext('%s') % (formdef.id, formdef.name) if formdef.disabled and formdef.disabled_redirection: - r += htmltext('

    ') - r += htmltext('(') % formdef.disabled_redirection + r += htmltext('(') % formdef.disabled_redirection r += _('redirection') - r += htmltext(') ') - r += htmltext('

    ') + r += htmltext(')') r += htmltext('
  • ') r += htmltext('') return r.getvalue() diff --git a/wcs/qommon/static/css/dc2/admin.css b/wcs/qommon/static/css/dc2/admin.css index cee654b..23968ef 100644 --- a/wcs/qommon/static/css/dc2/admin.css +++ b/wcs/qommon/static/css/dc2/admin.css @@ -97,6 +97,15 @@ li.biglistitem.disabled, li.biglistitem.disabled .details { background: #eee; } +ul.biglist li.disabled a.redirection { + font-size: 80%; + padding: 0; + background: 0; + position: absolute; + bottom: 0.5ex; + right: 1ex; +} + ul.biglist li.disabled strong { font-weight: normal; } -- 2.9.3