Browse Source

[IMP] mis_builder: do not use th and label tag

This was indeed putting all lignes in bold, and I want to leave bold
as a way for user to highllight lines or cells.
pull/86/head
Stéphane Bidoul 10 years ago
parent
commit
ce9d9ad364
  1. 2
      mis_builder/static/src/css/custom.css
  2. 14
      mis_builder/static/src/xml/mis_widget.xml

2
mis_builder/static/src/css/custom.css

@ -1,4 +1,4 @@
.openerp .rallign {
.openerp .ralign {
text-align: right; text-align: right;
} }
.openerp a.mis_builder { .openerp a.mis_builder {

14
mis_builder/static/src/xml/mis_widget.xml

@ -6,7 +6,7 @@
<tr class="oe_list_header_columns"> <tr class="oe_list_header_columns">
<th class="oe_list_header_char"></th> <th class="oe_list_header_char"></th>
<t t-foreach="widget.mis_report_data.header" t-as="h"> <t t-foreach="widget.mis_report_data.header" t-as="h">
<th t-foreach="h_value.cols" t-as="header" class="oe_list_header_char rallign">
<th t-foreach="h_value.cols" t-as="header" class="oe_list_header_char ralign">
<div> <div>
<t t-esc="header.name"/> <t t-esc="header.name"/>
</div> </div>
@ -19,15 +19,15 @@
</thead> </thead>
<tbody> <tbody>
<tr t-foreach="widget.mis_report_data.content" t-as="c"> <tr t-foreach="widget.mis_report_data.content" t-as="c">
<th t-att="{'style': c_value.default_style}">
<td t-att="{'style': c_value.default_style}">
<div> <div>
<t t-esc="c_value.kpi_name"/> <t t-esc="c_value.kpi_name"/>
</div> </div>
</th>
</td>
<t t-foreach="c_value.cols" t-as="value"> <t t-foreach="c_value.cols" t-as="value">
<td class="rallign open_account_move" t-att="{'style': c_value.default_style + ';' + value_value.style}">
<label t-att="{'title': value_value.val_c}" class=" oe_form_label_help oe_align_right">
<a t-att="{'style': c_value.default_style + ';' + value_value.style}"
<td class="ralign open_account_move" t-att="{'style': c_value.default_style}">
<div t-att="{'style': value_value.style}">
<a t-att="{'title': value_value.val_c}"
class="mis_builder" class="mis_builder"
href="javascript:void(0)" href="javascript:void(0)"
t-att-data-val="JSON.stringify(value_value.val)" t-att-data-val="JSON.stringify(value_value.val)"
@ -36,7 +36,7 @@
t-att-data-period-name="JSON.stringify(value_value.period_name)"> t-att-data-period-name="JSON.stringify(value_value.period_name)">
<t t-esc="value_value.val_r"/> <t t-esc="value_value.val_r"/>
</a> </a>
</label>
</div>
</td> </td>
</t> </t>
</tr> </tr>

Loading…
Cancel
Save