table.html 568 B

123456789101112131415
  1. {% macro get_table(headers,rows,table_height,table_width,lock_column_count,width) %}
  2. {% set all_headers = headers|split_row|add_width(width) %}
  3. {% set data_type = all_headers[0] %}
  4. {% set first_head = all_headers[1] %}
  5. {% set second_head = all_headers[2] %}
  6. {% if data_type==1 %}
  7. {% import 'single_head_table.html' as t %}
  8. {{t.get_table(first_head,rows,table_height,table_width,lock_column_count)}}
  9. {% else %}
  10. {% import 'multi_head_table.html' as t %}
  11. {{t.get_table(first_head,second_head,rows,table_height,table_width,lock_column_count)}}
  12. {% endif %}
  13. {% endmacro %}