{% import "templates/print_format/macros.html" as macros %} {{ doc.doctype }}: {{ doc.name }} {{ include_style('print_format.bundle.css') }} {%- if print_style and print_style.css -%} {%- endif -%} {%- if print_format.css -%} {%- endif -%} {{ header or '' }} {% for section in layout.sections %}
{% if section.label %}
{{ section.label }}
{% endif %}
{% for column in section.columns %}
{% for df in column.fields %} {{ macros.render_field(df, doc) }} {% endfor %}
{% endfor %}
{% endfor %} {{ footer or '' }}