Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 

38 linhas
1.3 KiB

  1. {%- if data -%}
  2. {%- set visible_columns = get_visible_columns(doc.get(df.fieldname),
  3. table_meta, df) -%}
  4. <div {{ fieldmeta(df) }}>
  5. <table class="table table-bordered table-condensed">
  6. <thead>
  7. <tr>
  8. <th style="width: 40px" class="table-sr">{{ _("Sr") }}</th>
  9. {% for tdf in visible_columns %}
  10. {% if (data and not print_settings.compact_item_print) or tdf.fieldname in doc.flags.compact_item_fields %}
  11. <th style="width: {{ get_width(tdf) }};" class="{{ get_align_class(tdf) }}" {{ fieldmeta(df) }}>
  12. {{ _(tdf.label) }}</th>
  13. {% endif %}
  14. {% endfor %}
  15. </tr>
  16. </thead>
  17. <tbody>
  18. {% for d in data %}
  19. <tr>
  20. <td class="table-sr">{{ d.idx }}</td>
  21. {% for tdf in visible_columns %}
  22. {% if not print_settings.compact_item_print or tdf.fieldname in doc.flags.compact_item_fields %}
  23. <td class="{{ get_align_class(tdf) }}" {{ fieldmeta(df) }}>
  24. {% if doc.child_print_templates %}
  25. {%- set child_templates = doc.child_print_templates.get(df.fieldname) %}
  26. <div class="value">{{ print_value(tdf, d, doc, visible_columns, child_templates) }}</div></td>
  27. {% else %}
  28. <div class="value">{{ print_value(tdf, d, doc, visible_columns) }}</div></td>
  29. {% endif %}
  30. {% endif %}
  31. {% endfor %}
  32. </tr>
  33. {% endfor %}
  34. </tbody>
  35. </table>
  36. </div>
  37. {%- endif -%}