[% META title="Request View History" %]
<!-- BEGIN history/request_view.tt -->
[% # PROCESS dumper.tt dump = history %]
[% INCLUDE record/patient_summary.tt %]
<p>
<span class="title">Request ViewLog History</span>
[ <a href="[% app_url %]/history/request_print/[% c.param('id') %]">
printlog</a> ]
</p>
[% IF history.size %]
<table class="indent">
<tr>
<td class="borderless"></td>
<th scope="col">UserID</th>
<th scope="col">Date</th>
<th scope="col">Time</th>
<th scope="col">Address</th>
</tr>
[% FOREACH entry IN history %]
<tr>
<td>[% loop.count %]</td>
<td>
[% entry.user.first_name | ucfirst %]
[% entry.user.last_name | upper %]
</td>
<td>
[% entry.time.strftime('%d.%b.%Y') %]
</td>
<td>
[% entry.time.strftime('%T') %]
</td>
<td>
[% entry.ip_address %]
</td>
</tr>
[% END %]
</table>
[% ELSE %]
<p class="info">No log entries available for this record</p>
[% END %]
<p class="indent">[% site.html.back_button %]</p>
<!-- END history/request_view.tt -->