[% META title="Request Print History" %]
<!-- BEGIN history/request_print.tt -->
    [% # PROCESS dumper.tt dump = history %]
    
    <p>
        <span class="title">Request PrintLog History</span>
        [ <a href="[% app_url %]/history/request_view/[% c.param('id') %]">
            viewlog</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>
            </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>
            </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_print.tt -->
