109 lines
3.1 KiB
HTML
109 lines
3.1 KiB
HTML
{# Base for every company form. Standalone on purpose: the forms copy the printed
|
|
originals and must not inherit the DCR report's look (base.html). #}
|
|
{% from "forms/_macros.html" import letterhead, meta_block, grid, sign_right, sign_approval %}
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>{{ label }}{% if title_suffix %} — {{ title_suffix }}{% endif %}</title>
|
|
<style>
|
|
@page {
|
|
size: A4;
|
|
margin: 12mm 16mm;
|
|
{% block page_box %}{% endblock %}
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
|
|
body {
|
|
margin: 0;
|
|
font-family: Carlito, Calibri, "Liberation Sans", "DejaVu Sans", sans-serif;
|
|
font-size: 11.5pt;
|
|
line-height: 1.2;
|
|
color: #000;
|
|
}
|
|
|
|
.company { text-align: center; }
|
|
.company .name {
|
|
font-family: "Liberation Sans", Arial, Helvetica, "DejaVu Sans", sans-serif;
|
|
font-size: 21pt;
|
|
font-weight: bold;
|
|
line-height: 1.15;
|
|
color: #000;
|
|
}
|
|
.company .line { font-size: 11pt; line-height: 1.35; }
|
|
|
|
h1.title {
|
|
margin: 7mm 0 4mm;
|
|
text-align: center;
|
|
font-size: 18pt;
|
|
line-height: 1.1;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
table.meta { width: 100%; border-collapse: collapse; margin: 0 0 2.5mm; }
|
|
table.meta td { padding: .6mm 0; font-size: 12pt; vertical-align: top; }
|
|
table.meta td.ml { width: 62%; padding-left: 1.5mm; }
|
|
|
|
table.grid { border-collapse: collapse; table-layout: fixed; margin: 0 auto; }
|
|
table.grid.left { margin: 0; }
|
|
table.grid th, table.grid td { border: .7pt solid #000; padding: 0 1.6mm; }
|
|
table.grid th {
|
|
background: #fff;
|
|
height: 9mm;
|
|
font-size: 11.5pt;
|
|
line-height: 1.15;
|
|
text-align: center;
|
|
}
|
|
table.grid td {
|
|
height: 6.4mm;
|
|
font-size: 11.5pt;
|
|
line-height: 1.15;
|
|
vertical-align: middle;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
table.grid tr { page-break-inside: avoid; }
|
|
th.l, td.l { text-align: left; }
|
|
th.c, td.c { text-align: center; }
|
|
th.r, td.r { text-align: right; }
|
|
|
|
/* A fill-in line: the printed underscore rule, holding the value when there is one. */
|
|
.ln {
|
|
display: inline-block;
|
|
min-width: 42mm;
|
|
height: 4.4mm;
|
|
border-bottom: .7pt solid #000;
|
|
text-align: center;
|
|
font-weight: normal;
|
|
vertical-align: bottom;
|
|
}
|
|
|
|
.sign-right {
|
|
margin: 16mm 0 0 68%;
|
|
font-size: 10.5pt;
|
|
font-weight: bold;
|
|
page-break-inside: avoid;
|
|
}
|
|
table.sign-approval { width: 100%; margin-top: 14mm; border-collapse: collapse; page-break-inside: avoid; }
|
|
table.sign-approval td { padding: 0; font-size: 8.5pt; font-weight: bold; }
|
|
table.sign-approval td:first-child { width: 56%; }
|
|
table.sign-approval .sign-when { margin: 1.5mm 0 0 0; font-size: 8pt; font-weight: normal; text-align: right; }
|
|
table.sign-approval .ln { font-size: 9pt; }
|
|
|
|
{% block form_styles %}{% endblock %}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
{% block body %}
|
|
{{ letterhead(full_letterhead) }}
|
|
<h1 class="title">{{ title }}</h1>
|
|
{{ meta_block(meta_rows) }}
|
|
{% block form %}{% endblock %}
|
|
{% block signature %}{{ sign_right() }}{% endblock %}
|
|
{% endblock %}
|
|
</body>
|
|
|
|
</html>
|