[MERGE] empty lists arrow and help
bzr revid: al@openerp.com-20120418205424-vp0bj5djsou253wk
This commit is contained in:
commit
786f0f2243
|
@ -21,16 +21,13 @@
|
|||
color: #4c4c4c;
|
||||
font-size: 13px;
|
||||
background: white;
|
||||
}
|
||||
.openerp a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.openerp {
|
||||
/* http://www.quirksmode.org/dom/inputfile.html
|
||||
* http://stackoverflow.com/questions/2855589/replace-input-type-file-by-an-image
|
||||
*/
|
||||
}
|
||||
.openerp a {
|
||||
text-decoration: none;
|
||||
}
|
||||
.openerp table {
|
||||
padding: 0;
|
||||
font-size: 13px;
|
||||
|
@ -1620,6 +1617,15 @@
|
|||
height: auto;
|
||||
line-height: 16px;
|
||||
}
|
||||
.openerp .oe_listview_nocontent > img {
|
||||
float: left;
|
||||
margin-right: 1.5em;
|
||||
}
|
||||
.openerp .oe_listview_nocontent > div {
|
||||
overflow: hidden;
|
||||
padding: 6px;
|
||||
font-size: 125%;
|
||||
}
|
||||
.openerp .oe-listview-content {
|
||||
width: 100%;
|
||||
}
|
||||
|
|
|
@ -78,12 +78,10 @@ $colour4: #8a89ba
|
|||
color: #4c4c4c
|
||||
font-size: 13px
|
||||
background: white
|
||||
// }}}
|
||||
// Tag reset {{{
|
||||
a
|
||||
text-decoration: none
|
||||
// }}}
|
||||
|
||||
.openerp
|
||||
// Tag reset {{{
|
||||
table
|
||||
padding: 0
|
||||
font-size: 13px
|
||||
|
@ -1366,6 +1364,15 @@ $colour4: #8a89ba
|
|||
|
||||
// }}}
|
||||
// ListView {{{
|
||||
.oe_listview_nocontent
|
||||
> img
|
||||
float: left
|
||||
margin-right: 1.5em
|
||||
> div
|
||||
// don't encroach on my arrow
|
||||
overflow: hidden
|
||||
padding: 6px
|
||||
font-size: 125%
|
||||
.oe-listview-content
|
||||
width: 100%
|
||||
thead, tfoot
|
||||
|
@ -1480,7 +1487,6 @@ $colour4: #8a89ba
|
|||
.oe_tooltip_technical_title
|
||||
font-weight: bold
|
||||
// }}}
|
||||
|
||||
// Debugging stuff {{{
|
||||
.oe_layout_debugging
|
||||
.oe_form_group
|
||||
|
@ -1519,4 +1525,3 @@ $colour4: #8a89ba
|
|||
|
||||
// au BufWritePost,FileWritePost *.sass :!sass --style expanded --line-numbers <afile> > "%:p:r.css"
|
||||
// vim:tabstop=4:shiftwidth=4:softtabstop=4:fdm=marker:
|
||||
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 2.3 KiB |
Binary file not shown.
Before Width: | Height: | Size: 846 B |
|
@ -770,6 +770,17 @@ instance.web.ListView = instance.web.View.extend( /** @lends instance.web.ListVi
|
|||
.attr('colspan', this.previous_colspan);
|
||||
this.previous_colspan = null;
|
||||
}
|
||||
},
|
||||
no_result: function () {
|
||||
if (this.groups.group_by
|
||||
|| !this.options.action
|
||||
|| !this.options.action.help) {
|
||||
return;
|
||||
}
|
||||
this.$element.children('table').replaceWith(
|
||||
$('<div class="oe_listview_nocontent">')
|
||||
.append($('<img>', { src: '/web/static/src/img/list_empty_arrow.png' }))
|
||||
.append($('<div>').html(this.options.action.help)));
|
||||
}
|
||||
});
|
||||
instance.web.ListView.List = instance.web.Class.extend( /** @lends instance.web.ListView.List# */{
|
||||
|
@ -1367,6 +1378,9 @@ instance.web.ListView.Groups = instance.web.Class.extend( /** @lends instance.we
|
|||
self.records.add(records, {silent: true});
|
||||
list.render();
|
||||
d.resolve(list);
|
||||
if (_.isEmpty(records)) {
|
||||
view.no_result();
|
||||
}
|
||||
});});
|
||||
return d.promise();
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue