[views] a 'div' with 'display: inline' screams 'span' stable
authorRémi Cardona <remi.cardona@logilab.fr>
Mon, 02 Jun 2014 12:23:18 +0200
branchstable
changeset 9869 e2f96b16c3bd
parent 9734 f61bb1a033e4
child 9870 d30ff49d4a94
[views] a 'div' with 'display: inline' screams 'span' (grafted from af6e3db801fcfbd6f562c4a7cfdc89f187042792)
web/data/cubicweb.css
web/data/cubicweb.old.css
web/views/autoform.py
--- a/web/data/cubicweb.css	Tue May 13 18:47:52 2014 +0200
+++ b/web/data/cubicweb.css	Mon Jun 02 12:23:18 2014 +0200
@@ -208,10 +208,6 @@
   padding: 0px 0px 1px 1px;
 }
 
-li.invisible div{
-  display: inline;
-}
-
 .caption {
     font-weight: bold;
 }
--- a/web/data/cubicweb.old.css	Tue May 13 18:47:52 2014 +0200
+++ b/web/data/cubicweb.old.css	Mon Jun 02 12:23:18 2014 +0200
@@ -225,10 +225,6 @@
   padding: 0px 0px 1px 1px;
 }
 
-li.invisible div {
-  display: inline;
-}
-
 .caption {
   font-weight: bold;
 }
--- a/web/views/autoform.py	Tue May 13 18:47:52 2014 +0200
+++ b/web/views/autoform.py	Mon Jun 02 12:23:18 2014 +0200
@@ -506,7 +506,7 @@
                 w(u'<td>')
                 w(u'<ul>')
                 for viewparams in related:
-                    w(u'<li class="invisible">%s<div id="span%s" class="%s">%s</div></li>'
+                    w(u'<li class="invisible">%s<span id="span%s" class="%s">%s</span></li>'
                       % (viewparams[1], viewparams[0], viewparams[2], viewparams[3]))
                 if not form.force_display and form.maxrelitems < len(related):
                     link = (u'<span class="invisible">'