0d30c58bf0
Snapshot of the working tree on srv1071960 (branch main), taken during server cleanup. .env files, node_modules, builds, logs and media were excluded.
59 lines
2.4 KiB
HTML
59 lines
2.4 KiB
HTML
{# The approved Daily Call Report — a copy of the company's printed form, filled in. #}
|
|
{% extends "forms/_form_base.html" %}
|
|
{% from "forms/_macros.html" import grid %}
|
|
|
|
{% block form_styles %}
|
|
h1.title { margin: 6mm 0 3mm; font-size: 13pt; text-decoration: none; letter-spacing: .3px; }
|
|
table.grid th { height: 7.5mm; font-size: 9pt; }
|
|
table.grid td { font-size: 10pt; }
|
|
h2.section { margin: 6mm 0 1.5mm; text-align: center; font-size: 11pt; }
|
|
.visit { margin: 6mm 0 0 14mm; font-size: 10.5pt; line-height: 1.7; }
|
|
.visit b { display: inline-block; min-width: 30mm; }
|
|
table.dcr-sign { width: 100%; margin-top: 12mm; border-collapse: collapse; page-break-inside: avoid; }
|
|
table.dcr-sign td { vertical-align: top; padding: 0; }
|
|
table.dcr-sign td.mr { width: 52%; padding-left: 14mm; }
|
|
.sign-label { font-size: 10.5pt; font-weight: bold; }
|
|
.signed { display: inline-block; min-width: 62mm; margin-top: 4mm; padding-bottom: 1mm; border-bottom: .7pt solid #000; font-family: "Liberation Serif", "Times New Roman", serif; font-style: italic; font-size: 12pt; }
|
|
.signed-when { margin-top: 1.2mm; font-size: 8.5pt; }
|
|
{% endblock %}
|
|
|
|
{% block form %}
|
|
{{ grid(grids.doctors, left=True) }}
|
|
<h2 class="section">{{ "CHEMISTS TO VISIT" if is_plan else "CHEMIST VISIT" }}</h2>
|
|
{{ grid(grids.chemists, left=True) }}
|
|
{% if grids.stockists %}
|
|
<h2 class="section">{{ "STOCKISTS TO VISIT" if is_plan else "STOCKIST VISIT" }}</h2>
|
|
{{ grid(grids.stockists, left=True) }}
|
|
{% endif %}
|
|
{% if is_plan %}
|
|
{% if mr_remarks %}<div class="visit"><div><b>REMARKS :</b> {{ mr_remarks }}</div></div>{% endif %}
|
|
{% else %}
|
|
{% if grids.missed %}
|
|
<h2 class="section">PLANNED VISITS NOT MADE</h2>
|
|
{{ grid(grids.missed, left=True) }}
|
|
{% endif %}
|
|
<div class="visit">
|
|
<div><b>STOCKIST VISIT :</b> {{ stockist_visit }}</div>
|
|
<div><b>ORDER :</b> {{ order_value }}</div>
|
|
</div>
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block signature %}
|
|
<table class="dcr-sign">
|
|
<tr>
|
|
<td class="mr">
|
|
<div class="sign-label">{{ signer_label | default("MR Signature") }}</div>
|
|
<div class="signed">{{ mr_signed }}</div>
|
|
</td>
|
|
<td class="am">
|
|
{% if approval %}
|
|
<div class="sign-label">APPROVAL SIGNATURE:</div>
|
|
<div class="signed">{{ approval.name }}</div>
|
|
<div class="signed-when">Area Business Manager · {{ approval.at }}</div>
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
{% endblock %}
|