You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
3.1 KiB

  1. <template>
  2. <t t-name="mis_builder.MisReport">
  3. <div class="oe_mis_builder_content">
  4. <t t-if="widget.mis_report_data">
  5. <h2><t t-esc="widget.mis_report_data.report_name" /></h2>
  6. <div class="oe_mis_builder_buttons oe_right oe_button_box">
  7. <button class="oe_mis_builder_generate_content btn btn-sm oe_button"><span class="fa fa-refresh"/> Refresh</button>
  8. <button class="oe_mis_builder_print btn btn-sm oe_button"><span class="fa fa-print"/> Print</button>
  9. <button class="oe_mis_builder_export btn btn-sm oe_button"><span class="fa fa-download"/>Export</button>
  10. <button style="display: none;" class="oe_mis_builder_settings btn btn-sm oe_button"><span class="fa fa-cog"/> Settings</button>
  11. </div>
  12. <table class="oe_list_content o_list_view table table-condensed table-striped mis_builder">
  13. <thead>
  14. <tr t-foreach="widget.mis_report_data.header" t-as="row" class="oe_list_header_columns">
  15. <th class="oe_list_header_char">
  16. </th>
  17. <th t-foreach="row.cols" t-as="col" class="oe_list_header_char mis_builder_collabel" t-att-colspan="col.colspan">
  18. <t t-esc="col.label"/>
  19. <t t-if="col.description">
  20. <br/>
  21. <t t-esc="col.description"/>
  22. </t>
  23. </th>
  24. </tr>
  25. </thead>
  26. <tbody>
  27. <tr t-foreach="widget.mis_report_data.body" t-as="row">
  28. <td t-att="{'style': row.style}">
  29. <t t-esc="row.label"/>
  30. <t t-if="row.description">
  31. <br/>
  32. <t t-esc="row.description"/>
  33. </t>
  34. </td>
  35. <td t-foreach="row.cells" t-as="cell" t-att="{'style': cell.style, 'title': cell.val_c}" class="mis_builder_amount">
  36. <t t-if="cell.drilldown_arg">
  37. <a href="javascript:void(0)"
  38. class="mis_builder_drilldown"
  39. t-att-data-drilldown="JSON.stringify(cell.drilldown_arg)"
  40. >
  41. <t t-esc="cell.val_r"/>
  42. </a>
  43. </t>
  44. <t t-if="!cell.drilldown_arg">
  45. <t t-esc="cell.val_r"/>
  46. </t>
  47. </td>
  48. </tr>
  49. </tbody>
  50. <tfoot>
  51. <tr></tr>
  52. </tfoot>
  53. </table>
  54. </t>
  55. </div>
  56. </t>
  57. </template>