raise(e)
return render_template("error.html", data=e)
-
def get_db():
db=getattr(g, "_database", None)
if db is None:
{% extends "base.html" %}
{% block content %}
-<div class="content" style="font-size:8px; line-height:1">
+<div class="content report">
<form>
<div class="mb-2 row">
<div class="col-sm-9">
<table class="table table-bordered">
{% for i in data %}
<tr>
- <td>{{loop.index}}</td>
<td>
+ <a href="/vaccination/view/{{i["vid"]}}">
+ {{loop.index}}<br>
+ {%if not i["given"]%}<span class="text-danger">[PENDING]</span>{%endif%}
+ </a>
+ </td>
+ <td>
+ <a href="/patient/view/{{i["pid"]}}">
{{i["name"]}}({{i["cid"]}})<br>
{{i["sex"]}}/{{i["dob"]}}
+ </a>
</td>
<td>
{{i["contact"]}}<br>
{{i["address"]}}
</td>
<td>
+ <a href="/inventory/view/{{i["iid"]}}">
{{i["vaccine"]}}{% if i["dosage"]>0 %}×{{i["dosage"]}}{% endif %}<br>
{{i["batch"]}} {{i["doe"]}}
+ </a>
</td>
</tr>
{% endfor %}