{% extends "forms/_form_base.html" %}
{% from "forms/_macros.html" import letterhead, sign_right %}
{# The weekly report is boxed: the whole page carries a border, as printed. #}
{% block page_box %}margin: 8mm; padding: 9mm 8mm 6mm; border: .8pt solid #000;{% endblock %}
{% macro items(rows, label_width) %}
{% for label, value in rows %}
| o |
{{ label }} |
: {{ value }} |
{% endfor %}
{% endmacro %}
{% block form_styles %}
.weekly + .weekly { page-break-before: always; }
.weekly h1.title { margin: 2mm 0 0; font-family: "Liberation Sans", Arial, "DejaVu Sans", sans-serif; font-size: 11pt; }
table.wmeta { width: 100%; margin: 9mm 0 7mm; border: .75pt solid #000; border-collapse: collapse; }
table.wmeta td { padding: 1.4mm 3mm; font-size: 10.5pt; }
table.wmeta td:first-child { width: 68%; }
.weekly h2 {
margin: 0 0 .6mm;
font-family: "Liberation Serif", "Times New Roman", "DejaVu Serif", serif;
font-size: 11.5pt;
}
.weekly h2.gap { margin-top: 2mm; }
table.items { width: 100%; margin: 0 0 4mm; border: .75pt solid #000; border-collapse: collapse; }
table.items td {
padding: .5mm 0;
font-family: "Liberation Serif", "Times New Roman", "DejaVu Serif", serif;
font-size: 11pt;
line-height: 1.25;
white-space: nowrap;
}
table.items tr:last-child td { padding-bottom: 2mm; }
table.items td.bul { width: 9mm; padding-left: 3mm; font-family: "Liberation Mono", "Courier New", monospace; }
table.items .ln { min-width: 60mm; text-align: left; height: 4.6mm; }
.weekly .sign-right { margin-top: 26mm; font-size: 10.5pt; }
{% endblock %}
{% block body %}
{% for report in reports %}
{{ letterhead(false) }}
{{ title }}
1. Work Summary & Sales Performance
{{ items(report.summary, "40mm") }}
2. Additional Schemes & Projects
{{ items(report.schemes, "64mm") }}
{{ sign_right("Signature") }}
{% endfor %}
{% endblock %}