[ADD] Add class on oe_form when no <sheet> is present
bzr revid: fme@openerp.com-20120604101145-5o9ssysf6lx4o450
This commit is contained in:
parent
d69df82d01
commit
4d80adac5b
|
@ -1698,6 +1698,10 @@
|
|||
height: inherit !important;
|
||||
font-size: inherit;
|
||||
}
|
||||
.openerp .oe_form_nosheet > *:not(.oe_form_topbar) {
|
||||
margin-left: 10px !important;
|
||||
margin-right: 10px !important;
|
||||
}
|
||||
.openerp .oe_form .oe_form_label_help[for], .openerp .oe_form .oe_form_label[for] {
|
||||
font-weight: bold;
|
||||
white-space: nowrap;
|
||||
|
|
|
@ -1348,6 +1348,9 @@ $colour4: #8a89ba
|
|||
input
|
||||
height: inherit !important
|
||||
font-size: inherit
|
||||
.oe_form_nosheet > *:not(.oe_form_topbar)
|
||||
margin-left: 10px !important
|
||||
margin-right: 10px !important
|
||||
|
||||
// }}}
|
||||
// FormView.label {{{
|
||||
|
|
|
@ -1004,6 +1004,9 @@ instance.web.form.FormRenderingEngine = instance.web.form.FormRenderingEngineInt
|
|||
this.process($new_sheet);
|
||||
},
|
||||
process_form: function($form) {
|
||||
if ($form.find('> sheet').length == 0) {
|
||||
$form.addClass('oe_form_nosheet');
|
||||
}
|
||||
var $new_form = this.render_element('FormRenderingForm', $form.getAttributes());
|
||||
this.handle_common_properties($new_form, $form);
|
||||
$form.contents().appendTo($new_form);
|
||||
|
|
Loading…
Reference in New Issue