OCA reporting engine fork for dev and update.
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.

183 lines
6.9 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <template>
  3. <t t-name="bi_view_editor.Frame">
  4. <div class="oe_form_field_bi_editor">
  5. <div class="body">
  6. <div class="left">
  7. </div>
  8. <div class="right">
  9. </div>
  10. <div class="clear"></div>
  11. </div>
  12. <div class="footer">
  13. <div class="left"></div>
  14. <div class="right"><button class="clear-btn hidden"><span class="fa fa-eraser"></span> Clear</button></div>
  15. </div>
  16. </div>
  17. </t>
  18. <!-- Join Node Dialog -->
  19. <t t-name="bi_view_editor.JoinNodeDialog">
  20. <div class="oe_bi_view_editor_join_node_dialog">
  21. <ul class="list-group" >
  22. <t t-foreach="choices" t-as="choice">
  23. <t t-if="choice.join_node !== -1 and choice.table_alias !== -1">
  24. <li class="list-group-item list-group-item-action text-primary" t-attf-data-index="#{choice.index}">
  25. <b>Use the existing node</b>
  26. </li>
  27. </t>
  28. <t t-elif="choice.join_node !== -1">
  29. <li class="list-group-item list-group-item-action text-success" t-attf-data-index="#{choice.index}">
  30. Use the field
  31. <b><t t-esc="choice.model_name"/></b>
  32. <i class="fa fa-caret-right"/>
  33. <b><t t-esc="choice.description"/></b>
  34. <span class="badge">new</span>
  35. </li>
  36. </t>
  37. <t t-else="">
  38. <li class="list-group-item list-group-item-action" t-attf-data-index="#{choice.index}">
  39. Use the field
  40. <b><t t-esc="choice.model_name"/></b>
  41. <i class="fa fa-caret-right"/>
  42. <b><t t-esc="choice.description"/></b>
  43. </li>
  44. </t>
  45. </t>
  46. </ul>
  47. </div>
  48. </t>
  49. <!-- ModelList -->
  50. <t t-name="bi_view_editor.ModelList">
  51. <div>
  52. <div class="search-bar">
  53. <span class="fa fa-search"></span>
  54. <input type="text" class="search-bar" />
  55. </div>
  56. <div class="class-list">
  57. </div>
  58. </div>
  59. </t>
  60. <!-- ModelListItem -->
  61. <t t-name="bi_view_editor.ModelListItem">
  62. <div class="class-container">
  63. <div class="class" t-attf-title="#{model}" t-attf-data-id="#{id}"><t t-esc="name"/></div>
  64. </div>
  65. </t>
  66. <!-- ModelListFieldItem-->
  67. <t t-name="bi_view_editor.ModelListFieldItem">
  68. <div class="field" t-attf-title="#{name}" t-attf-data-id="#{name}"><t t-esc="description"/></div>
  69. </t>
  70. <!-- FieldList -->
  71. <t t-name="bi_view_editor.FieldList">
  72. <div>
  73. <table class="field-list">
  74. <thead>
  75. <tr>
  76. <th>Name</th>
  77. <th>Model</th>
  78. <th>Options</th>
  79. <th></th>
  80. </tr>
  81. </thead>
  82. <tbody>
  83. </tbody>
  84. </table>
  85. </div>
  86. </t>
  87. <!-- FieldContextMenu -->
  88. <t t-name="bi_view_editor.FieldList.FieldContextMenu">
  89. <ul class="context-menu hidden">
  90. <li>
  91. <div class="checkbox">
  92. <label>
  93. <input type="checkbox" data-for="column" class="checkbox-column"/> Column
  94. </label>
  95. </div>
  96. </li>
  97. <li>
  98. <div class="checkbox">
  99. <label>
  100. <input type="checkbox" data-for="row" class="checkbox-row"/> Row
  101. </label>
  102. </div>
  103. </li>
  104. <li>
  105. <div class="checkbox">
  106. <label>
  107. <input type="checkbox" data-for="measure" class="checkbox-measure"/> Measure
  108. </label>
  109. </div>
  110. </li>
  111. <li>
  112. <div class="checkbox">
  113. <label>
  114. <input type="checkbox" data-for="list" class="checkbox-list"/> List
  115. </label>
  116. </div>
  117. </li>
  118. </ul>
  119. </t>
  120. <!-- JoinContextMenu -->
  121. <t t-name="bi_view_editor.FieldList.JoinContextMenu">
  122. <ul class="context-menu hidden">
  123. <li>
  124. <div class="checkbox">
  125. <label>
  126. <input type="checkbox" data-for="join_left" class="checkbox-join-left"/> Join Left
  127. </label>
  128. </div>
  129. </li>
  130. </ul>
  131. </t>
  132. <!-- FieldListItem -->
  133. <t t-name="bi_view_editor.FieldListItem">
  134. <tr t-attf-data-id="#{field._id}" class="field-node">
  135. <td>
  136. <input t-attf-data-id="#{field._id}" t-attf-title="#{field.model_name} (#{field.model})" class="form-control input-sm" type="text" name="description" t-attf-value="#{field.description}"/>
  137. </td>
  138. <td>
  139. <t t-esc="field.model_name" />
  140. </td>
  141. <td>
  142. <span data-for="column" t-attf-class="#{field.column and 'fa fa-columns' or 'fa fa-columns hidden'}" title='Column'></span>
  143. <span data-for="row" t-attf-class="#{field.row and 'fa fa-bars' or 'fa fa-bars hidden'}" title='Row'></span>
  144. <span data-for="measure" t-attf-class="#{field.measure and 'fa fa-bar-chart-o' or 'fa fa-bar-chart-o hidden'}" title='Measure'></span>
  145. <span data-for="list" t-attf-class="#{field.list and 'fa fa-list' or 'fa fa-list hidden'}" title='List'></span>
  146. </td>
  147. <td>
  148. <span t-attf-data-id="#{field._id}" class="delete-button fa fa-trash-o"/>
  149. </td>
  150. </tr>
  151. </t>
  152. <t t-name="bi_view_editor.JoinListItem">
  153. <tr t-attf-data-id="#{field._id}" class="join-node">
  154. <td colspan="4">
  155. <input class="hidden" type="text" name="description" t-attf-value="#{field.description}"/>
  156. <t t-if="field.join_node > field.table_alias">
  157. <b><t t-esc="field.model_name" /></b>
  158. <i class="fa fa-caret-right"/>
  159. <small><t t-esc="field.description" /></small>
  160. </t>
  161. <t t-else="">
  162. <small><t t-esc="field.description" /></small>
  163. <i class="fa fa-caret-left"/>
  164. <b><t t-esc="field.model_name" /></b>
  165. </t>
  166. <span t-attf-class="#{!field.join_left and 'hidden' or ''}" data-for="join_left"><i>(join left)</i></span>
  167. </td>
  168. </tr>
  169. </t>
  170. </template>