Browse Source

[WIP] mis_builder refactoring: cleanup widget styles a bit

pull/189/head
Stéphane Bidoul 8 years ago
parent
commit
eca96c9f6c
  1. 10
      mis_builder/static/src/css/custom.css
  2. 22
      mis_builder/static/src/xml/mis_widget.xml

10
mis_builder/static/src/css/custom.css

@ -1,7 +1,15 @@
.openerp .mis_builder_ralign {
.openerp .mis_builder_amount {
text-align: right;
}
.openerp .mis_builder_collabel {
text-align: center;
}
.openerp .mis_builder_rowlabel {
text-align: left;
}
.openerp .mis_builder a {
/* we don't want the link color, to respect user styles */
color: inherit;

22
mis_builder/static/src/xml/mis_widget.xml

@ -14,27 +14,23 @@
<tr class="oe_list_header_columns">
<th class="oe_list_header_char">
</th>
<th t-foreach="h_value.cols" t-as="col" class="oe_list_header_char mis_builder_ralign" t-att-colspan="col.colspan">
<div>
<t t-esc="col.description"/>
<t t-if="col.comment">
<br/>
<t t-esc="col.comment"/>
</t>
</div>
<th t-foreach="h_value.cols" t-as="col" class="oe_list_header_char mis_builder_collabel" t-att-colspan="col.colspan">
<t t-esc="col.description"/>
<t t-if="col.comment">
<br/>
<t t-esc="col.comment"/>
</t>
</th>
</tr>
</t>
</thead>
<tbody>
<tr t-foreach="widget.mis_report_data.content" t-as="c">
<td t-att="{'style': c_value.default_style}">
<div>
<t t-esc="c_value.description"/>
</div>
<td t-att="{'style': c_value.style}">
<t t-esc="c_value.description"/>
</td>
<t t-foreach="c_value.cols" t-as="value">
<td t-att="{'style': c_value.default_style}" class="mis_builder_ralign">
<td t-att="{'style': c_value.style}" class="mis_builder_amount">
<div t-att="{'style': value_value.style, 'title': value_value.val_c}">
<t t-if="value_value.drilldown">
<a href="javascript:void(0)"

Loading…
Cancel
Save