From 22456aa4cd973c8b14e6020a9c32dd427436b5ac Mon Sep 17 00:00:00 2001 From: Agnibho Mondal Date: Sat, 2 Sep 2023 01:17:03 +0530 Subject: [PATCH] Updated default template --- template/default/index.html | 131 +++++++++++++++++++----------------- template/default/style.css | 71 ++++++++++++++----- 2 files changed, 122 insertions(+), 80 deletions(-) diff --git a/template/default/index.html b/template/default/index.html index d283709..f4d5493 100644 --- a/template/default/index.html +++ b/template/default/index.html @@ -5,67 +5,74 @@ - - - - - - - - - - - - - - - - -
- - - - - -
-

{{prescriber.name}}

-

{{prescriber.qualification}}

-

{{prescriber.registration}}

-
-

{{prescriber.address}}

-

{% if prescriber.contact %}Contact: {{prescriber.contact}}{% endif %}

-

{{prescriber.extra}}

-
-
-
- - - - -
{% if id %}ID: {{id}}{% endif %}

Name: {{name}}

Age: {{age}}

Sex: {{sex}}

{% if address %}Address: {{address}}{% endif %} {% if contact %}Contact: {{contact}}{% endif %} {% if extra %}({{extra}}){% endif %}
- - - - - - - - - - -
-
- - - - -
+
+
+ + + + + +
+

{{prescriber.name}}

+

{{prescriber.qualification}}

+

{{prescriber.registration}}

+
+

{{prescriber.address}}

+

{% if prescriber.contact %}Contact: {{prescriber.contact}}{% endif %}

+

{{prescriber.extra}}

+
+
+
+ + + + + + + + +
+ + + + + + + + + + + + + + + +
{% if id %}ID: {{id}}{% endif %}

Name: {{name}}

Age: {{age}}

Sex: {{sex}}

{% if address %}Address: {{address}}{% endif %} {% if contact %}Contact: {{contact}}{% endif %}
{% if extra %}{{extra}}{% endif %}
+ + + + + + + + + +

Clinical Notes

Advice

+

{{note}}

+

{{report}}

+
+

{{medication}}

+

{{investigation}}

+

{{advice}}

+
+
+
+ +
diff --git a/template/default/style.css b/template/default/style.css index 4f483d0..c53bf73 100644 --- a/template/default/style.css +++ b/template/default/style.css @@ -1,39 +1,54 @@ -h1, h2, h3, h4, h5, h6 { - margin-top: 4px; - margin-bottom: 2px; +table { + width: 100%; + border-collapse: collapse; } -table.container { +td { + vertical-align: top; } -table.prescription { +.container { + width: 95%; + margin-left: auto; + margin-right: auto; } -table.collapsed { - border-collapse: collapse; +.header, .footer { + width: 95%; + position: fixed; + left: 50%; + transform: translateX(-50%); + background: white; +} +.header { + top: 0; + border-bottom: 2px solid black; } -table.nobottom { - border-bottom: none; +.footer { + bottom: 0; + border-top: 2px solid black; } -td.header { +.header, .header-space { + height: 200px; } -table.footer { - margin-top: "100px" +.footer, .footer-space { + height: 100px; } -td.sign { - border-top: 2px solid black; +.patient { + border-bottom: 2px solid black; } -td.text { - whites-space: pre-wrap; +.sign { + border-top: 2px solid black; } -.bordered { - border: 2px solid black; +.formatted { + white-space: pre-wrap; + padding: 10px; } .ltxt { @@ -48,6 +63,26 @@ td.text { text-align: center; } +.bordered { + border: 2px solid black; +} + +.lbordered { + border-left: 2px dotted black; +} + +.rbordered { + border-right: 2px dotted black; +} + +.tbordered { + border-top: 2px solid black; +} + +.bbordered { + border-bottom: 2px solid black; +} + .w0 { width: 0%; } -- 2.39.2