[IMP] better menutips, optional create arrow

bzr revid: fp@openerp.com-20120804151059-f2tot2d2di2k72xu
This commit is contained in:
Fabien Pinckaers 2012-08-04 17:10:59 +02:00
parent 3e3d9db354
commit deeb7a7049
5 changed files with 28 additions and 23 deletions

View File

@ -1808,15 +1808,21 @@
margin: 0 0 0 4px; margin: 0 0 0 4px;
padding: 0; padding: 0;
} }
.openerp .oe_view_nocontent > img { .openerp .oe_view_nocontent {
float: left; padding-left: 15px;
margin: 1.5em; margin-top: 0;
} color: #777777;
.openerp .oe_view_nocontent > div {
overflow: hidden;
padding: 35px 0px 0px 0px;
max-width: 700px;
font-size: 125%; font-size: 125%;
max-width: 700px;
}
.openerp .oe_view_nocontent .oe_view_nocontent_create {
background: transparent url(/web/static/src/img/view_empty_arrow.png) no-repeat 0 0;
padding-top: 35px;
min-height: 35px;
color: #4c4c4c;
}
.openerp .oe_view_nocontent > p {
padding-left: 95px;
} }
.openerp .oe_formview { .openerp .oe_formview {
background: white; background: white;

View File

@ -1400,15 +1400,18 @@ $sheet-max-width: 860px
// }}} // }}}
// Views Common {{{ // Views Common {{{
.oe_view_nocontent .oe_view_nocontent
> img padding-left: 15px
float: left margin-top: 0
margin: 1.5em color: #777777
> div font-size: 125%
// don't encroach on my arrow max-width: 700px
overflow: hidden .oe_view_nocontent_create
padding: 35px 0px 0px 0px background: transparent url(/web/static/src/img/view_empty_arrow.png) no-repeat 0 0
max-width: 700px padding-top: 35px
font-size: 125% min-height: 35px
color: #4c4c4c
> p
padding-left: 95px
// }}} // }}}
// FormView.base and dynamic tags {{{ // FormView.base and dynamic tags {{{
.oe_formview .oe_formview

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB

View File

@ -880,9 +880,7 @@ instance.web.ListView = instance.web.View.extend( /** @lends instance.web.ListVi
} }
this.$element.find('table:first').hide(); this.$element.find('table:first').hide();
this.$element.prepend( this.$element.prepend(
$('<div class="oe_view_nocontent">') $('<div class="oe_view_nocontent">').html(this.options.action.help)
.append($('<img>', { src: '/web/static/src/img/view_empty_arrow.png' }))
.append($('<div>').html(this.options.action.help))
); );
} }
}); });

View File

@ -332,9 +332,7 @@ instance.web_kanban.KanbanView = instance.web.View.extend({
} }
this.$element.find('.oe_view_nocontent').remove(); this.$element.find('.oe_view_nocontent').remove();
this.$element.prepend( this.$element.prepend(
$('<div class="oe_view_nocontent">') $('<div class="oe_view_nocontent">').html(this.options.action.help)
.append($('<img>', { src: '/web/static/src/img/view_empty_arrow.png' }))
.append($('<div>').html(this.options.action.help))
); );
} }
}); });