RSS Git Download  Clone
Raw Blame History
<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-type" content="text/html; charset=[% settings.charset %]" />
    <title>HMDS Draft Reports</title>
    <style type="text/css">
        table 	{ width: 95%; border-collapse: collapse; }
		td, th 	{ font-size: small; border: none; padding: 2px 5px; }
        th 		{ color: #990000; background: #d9edf7; }
		h3 		{ color: #110781; }
    </style>
</head>
<body>
    [% # INCLUDE dumper.tt dump = data %]
    [% # INCLUDE dumper.tt dump = session %]
	[% user = session.user_profile %]
	
    <h3>HMDS draft reports [[% user.first_name.ucfirst %] [% user.last_name.ucfirst %]]</h3>

    [% USE format; zero_padded = format('%02d'); # ensure zero-padded req. num. %]

    <table>
        <tr>
			<td></td>
            <th>Lab Num</th>
            <th>Specimen</th>
            <th align="left">Diagnosis</th>
            <th>Reported</th>
        </tr>
        [% FOREACH r IN data %]
            <tr>
                <td align="right">[% loop.count %].</td>
                <td>[% r.request_number; '/'; zero_padded(r.year - 2000) %]</td>
                <td>[% r.specimen %]</td>
                <td>[% r.diagnosis %]</td>
                <td align="center">[% r.created_at.strftime('%d.%b.%Y') %]</td>
            </tr>
        [% END %]
    </table>
</body>
</html>