[ADD] custom dimensioning of a bunch of form widget for better editable listview compat/styling
bzr revid: xmo@openerp.com-20121107132152-9s6s1n4fn4bwjdm2
This commit is contained in:
parent
8b18d999bd
commit
bfad5ad032
|
@ -25,7 +25,6 @@
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.openerp.openerp_webclient_container {
|
.openerp.openerp_webclient_container {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
@ -2566,7 +2565,7 @@
|
||||||
background-color: #eeeeee;
|
background-color: #eeeeee;
|
||||||
}
|
}
|
||||||
.openerp .oe_list_editable .oe_list_content td.oe_list_field_cell {
|
.openerp .oe_list_editable .oe_list_content td.oe_list_field_cell {
|
||||||
padding: 4px 6px 3px 6px;
|
padding: 4px 6px 3px;
|
||||||
}
|
}
|
||||||
.openerp .oe_list.oe_list_editable.oe_editing .oe_edition .oe_list_field_cell:not(.oe_readonly) {
|
.openerp .oe_list.oe_list_editable.oe_editing .oe_edition .oe_list_field_cell:not(.oe_readonly) {
|
||||||
color: transparent;
|
color: transparent;
|
||||||
|
@ -2647,6 +2646,9 @@
|
||||||
margin: 0 !important;
|
margin: 0 !important;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
.openerp .oe_list .oe_form .oe_form_field_boolean {
|
||||||
|
padding: 1px 6px 3px;
|
||||||
|
}
|
||||||
.openerp .oe_list .oe_list_content .oe_group_header {
|
.openerp .oe_list .oe_list_content .oe_group_header {
|
||||||
background-color: #fcfcfc;
|
background-color: #fcfcfc;
|
||||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#fcfcfc), to(#dedede));
|
background-image: -webkit-gradient(linear, left top, left bottom, from(#fcfcfc), to(#dedede));
|
||||||
|
|
|
@ -2030,10 +2030,8 @@ $sheet-padding: 16px
|
||||||
background-color: #eee
|
background-color: #eee
|
||||||
|
|
||||||
$row-height: 27px
|
$row-height: 27px
|
||||||
.oe_list_editable
|
.oe_list_editable .oe_list_content td.oe_list_field_cell
|
||||||
.oe_list_content
|
padding: 4px 6px 3px
|
||||||
td.oe_list_field_cell
|
|
||||||
padding: 4px 6px 3px 6px
|
|
||||||
.oe_list.oe_list_editable.oe_editing
|
.oe_list.oe_list_editable.oe_editing
|
||||||
.oe_edition .oe_list_field_cell:not(.oe_readonly)
|
.oe_edition .oe_list_field_cell:not(.oe_readonly)
|
||||||
*
|
*
|
||||||
|
@ -2106,6 +2104,10 @@ $sheet-padding: 16px
|
||||||
position: absolute
|
position: absolute
|
||||||
margin: 0 !important // dammit
|
margin: 0 !important // dammit
|
||||||
padding: 0
|
padding: 0
|
||||||
|
.oe_form_field_boolean
|
||||||
|
// use padding similar to actual cell to correctly position the
|
||||||
|
// checkbox
|
||||||
|
padding: 1px 6px 3px
|
||||||
.oe_list_content .oe_group_header
|
.oe_list_content .oe_group_header
|
||||||
@include vertical-gradient(#fcfcfc, #dedede)
|
@include vertical-gradient(#fcfcfc, #dedede)
|
||||||
|
|
||||||
|
|
|
@ -2216,6 +2216,13 @@ instance.web.form.FieldChar = instance.web.form.AbstractField.extend(instance.we
|
||||||
},
|
},
|
||||||
focus: function() {
|
focus: function() {
|
||||||
this.$('input:first').focus();
|
this.$('input:first').focus();
|
||||||
|
},
|
||||||
|
set_dimensions: function (height, width) {
|
||||||
|
this._super(height, width);
|
||||||
|
this.$('input').css({
|
||||||
|
height: height,
|
||||||
|
width: width
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -2502,7 +2509,7 @@ instance.web.form.FieldText = instance.web.form.AbstractField.extend(instance.we
|
||||||
this.$textarea.focus();
|
this.$textarea.focus();
|
||||||
},
|
},
|
||||||
set_dimensions: function (height, width) {
|
set_dimensions: function (height, width) {
|
||||||
this._super();
|
this._super(height, width);
|
||||||
this.$textarea.css({
|
this.$textarea.css({
|
||||||
width: width,
|
width: width,
|
||||||
minHeight: height
|
minHeight: height
|
||||||
|
@ -2664,6 +2671,13 @@ instance.web.form.FieldSelection = instance.web.form.AbstractField.extend(instan
|
||||||
},
|
},
|
||||||
focus: function() {
|
focus: function() {
|
||||||
this.$el.find('select:first').focus();
|
this.$el.find('select:first').focus();
|
||||||
|
},
|
||||||
|
set_dimensions: function (height, width) {
|
||||||
|
this._super(height, width);
|
||||||
|
this.$('select').css({
|
||||||
|
height: height,
|
||||||
|
width: width
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -3146,6 +3160,10 @@ instance.web.form.FieldMany2One = instance.web.form.AbstractField.extend(instanc
|
||||||
this.ed_def.reject();
|
this.ed_def.reject();
|
||||||
return instance.web.form.CompletionFieldMixin._search_create_popup.apply(this, arguments);
|
return instance.web.form.CompletionFieldMixin._search_create_popup.apply(this, arguments);
|
||||||
},
|
},
|
||||||
|
set_dimensions: function (height, width) {
|
||||||
|
this._super(height, width);
|
||||||
|
this.$input.css('height', height);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue