Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {%- from "templates/print_formats/standard_macros_daniel_new.html" import add_header,
- render_field, bottom -%}
- {% for page in layout %}
- <div class="page-break" style="margin:1cm;">
- {{ add_header(loop.index, layout|len, doc, letter_head, no_letterhead) }}
- {% for section in page %}
- <div class="row">
- {% for column in section %}
- <div class="col-xs-{{ (12 / section|len)|int }}">
- {% for df in column %}
- {{ render_field(df, doc, num_page, max_pages) }}
- {% endfor %}
- </div>
- {% endfor %}
- </div>
- {% endfor %}
- {{ bottom(doc, page_num, max_pages) }}
- </div>
- {% endfor %}
- {%- if trigger_print -%}
- <script>
- window.print();
- window.close();
- </script>
- {%- endif -%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement