Production
This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
{% 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) %}
|
||||
<table class="items">
|
||||
{% for label, value in rows %}
|
||||
<tr>
|
||||
<td class="bul">o</td>
|
||||
<td class="lbl" style="width:{{ label_width }}">{{ label }}</td>
|
||||
<td>: <span class="ln">{{ value }}</span></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
{% 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 %}
|
||||
<div class="weekly">
|
||||
{{ letterhead(false) }}
|
||||
<h1 class="title" style="text-decoration: underline">{{ title }}</h1>
|
||||
<table class="wmeta">
|
||||
{% for pair in report.meta_rows %}
|
||||
<tr>
|
||||
{% for slot in pair %}<td><b>{{ slot[0] }}</b> {{ slot[1] }}</td>{% endfor %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
<h2>1. Work Summary & Sales Performance</h2>
|
||||
{{ items(report.summary, "40mm") }}
|
||||
<h2 class="gap">2. Additional Schemes & Projects</h2>
|
||||
{{ items(report.schemes, "64mm") }}
|
||||
{{ sign_right("Signature") }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user