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
2.5 KiB

7 years ago
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Copyright (C) 2017 MuK IT GmbH
  4. This program is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU Affero General Public License as
  6. published by the Free Software Foundation, either version 3 of the
  7. License, or (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU Affero General Public License for more details.
  12. You should have received a copy of the GNU Affero General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>.
  14. -->
  15. <templates id="template" xml:space="preserve">
  16. <div t-name="HierarchyView" class="table-responsive">
  17. <table class="o_list_view table table-condensed table-striped">
  18. <t t-set="columns_count" t-value="visible_columns.length + (options.selectable ? 1 : 0) + (options.deletable ? 1 : 0)"/>
  19. <thead>
  20. <tr t-if="options.header">
  21. <t t-foreach="columns" t-as="column">
  22. <th t-if="column.meta">
  23. <t t-esc="column.string"/>
  24. </th>
  25. </t>
  26. <th t-if="options.selectable" class="o_list_record_selector" width="1">
  27. <div class="o_checkbox">
  28. <input type="checkbox"/><span/>
  29. </div>
  30. </th>
  31. <t t-foreach="columns" t-as="column">
  32. <th t-if="!column.meta and column.invisible !== '1'" t-att-data-id="column.id"
  33. t-attf-class="#{((options.sortable and column.sortable and column.tag !== 'button') ? 'o_column_sortable' : '')}"
  34. t-att-width="column.width()">
  35. <t t-if="column.tag !== 'button'"><t t-raw="column.heading()"/></t>
  36. </th>
  37. </t>
  38. <th t-if="options.deletable" class="o_list_record_delete"/>
  39. </tr>
  40. </thead>
  41. <tfoot>
  42. <tr>
  43. <td t-if="options.selectable"/>
  44. <td t-foreach="aggregate_columns" t-as="column" t-att-data-field="column.id" t-att-title="column.label">
  45. </td>
  46. <td t-if="options.deletable" class="o_list_record_delete"/>
  47. </tr>
  48. </tfoot>
  49. </table>
  50. </div>
  51. </templates>