--
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
{% extends "forms/_form_base.html" %}
|
||||
{% from "forms/_macros.html" import grid %}
|
||||
|
||||
{# Arial throughout, title tucked directly under the company name — as printed. #}
|
||||
{% block form_styles %}
|
||||
@@ -10,11 +9,35 @@
|
||||
font-size: 14pt;
|
||||
}
|
||||
table.grid th, table.grid td { font-family: "Liberation Sans", Arial, "DejaVu Sans", sans-serif; }
|
||||
table.grid th { height: 10mm; font-size: 9.5pt; }
|
||||
table.grid th { height: 7mm; font-size: 9.5pt; }
|
||||
table.grid th.sub { height: 6mm; font-size: 8.5pt; }
|
||||
table.grid td { font-size: 9.5pt; }
|
||||
table.grid td:nth-child(2) { font-weight: bold; }
|
||||
table.grid tr.total td { font-weight: bold; }
|
||||
table.grid tr.total td:nth-child(2) { text-align: right; }
|
||||
{% endblock %}
|
||||
|
||||
{# Two heading rows: CLOSING and PROJECTION each span their QUANTITY and VALUE. #}
|
||||
{% block form %}
|
||||
{{ grid(grids.main) }}
|
||||
{% set g = grids.main %}
|
||||
<table class="grid" style="width:{{ g.width }}">
|
||||
<colgroup>{% for w in g.widths %}<col style="width:{{ w }}">{% endfor %}</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
{% for h in g.headers[:3] %}<th rowspan="2">{{ h }}</th>{% endfor %}
|
||||
<th colspan="2">CLOSING</th>
|
||||
<th colspan="2">PROJECTION</th>
|
||||
</tr>
|
||||
<tr>{% for h in g.headers[3:] %}<th class="sub">{{ h }}</th>{% endfor %}</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for r in g.rows %}
|
||||
<tr>{% for c in r.cells %}<td class="{{ g.aligns[loop.index0] }}">{{ c }}</td>{% endfor %}</tr>
|
||||
{% endfor %}
|
||||
<tr class="total">
|
||||
<td></td><td>TOTAL</td><td></td>
|
||||
{% for t in totals %}<td class="{{ g.aligns[loop.index0 + 3] }}">{{ t }}</td>{% endfor %}
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user