Projet

Général

Profil

0001-admin-fix-style-of-redirect-link-of-disabled-forms-1.patch

Frédéric Péters, 08 septembre 2016 15:13

Télécharger (1,81 ko)

Voir les différences:

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(-)
wcs/admin/forms.py
1544 1544
                r += htmltext('<li>')
1545 1545
            r += htmltext('<strong class="label"><a href="%s/">%s</a></strong>') % (formdef.id, formdef.name)
1546 1546
            if formdef.disabled and formdef.disabled_redirection:
1547
                r += htmltext('<p class="details">')
1548
                r += htmltext('(<a href="%s">') % formdef.disabled_redirection
1547
                r += htmltext('<a class="redirection" href="%s">(') % formdef.disabled_redirection
1549 1548
                r += _('redirection')
1550
                r += htmltext('</a>) ')
1551
                r += htmltext('</p>')
1549
                r += htmltext(')</a>')
1552 1550
            r += htmltext('</li>')
1553 1551
        r += htmltext('</ul>')
1554 1552
        return r.getvalue()
wcs/qommon/static/css/dc2/admin.css
97 97
	background: #eee;
98 98
}
99 99

  
100
ul.biglist li.disabled a.redirection {
101
	font-size: 80%;
102
	padding: 0;
103
	background: 0;
104
	position: absolute;
105
	bottom: 0.5ex;
106
	right: 1ex;
107
}
108

  
100 109
ul.biglist li.disabled strong {
101 110
	font-weight: normal;
102 111
}
103
-