[% META title = 'Resources &raquo; Stats &amp; Audit &raquo; NHS Number Supplied' %]

<!-- BEGIN [% template.name %] -->
    [% # PROCESS dumper.tt dump = data %]
    
    <h2>NHS number supplied [[% title %]]:</h2>
    
    [% PROCESS site/date_constraints.tt
        func_name = 'get_page'
        target_url = app_url _ '/audit/nhs_number/'
    %]
    
    [% IF data.size %]
    <table class="indent">
        <tr>
            <th>Location</th>
            <th>Total</td>
            <th>+NHSNo</td>
            <th>Percent</td>
        </tr>
        
        [% FOREACH entry IN data;
            class = entry.percent < 90 ? 'red' : 'normal' %]
        <tr>
            <td align="right" class="[% class %]">
                [% INCLUDE site/display_name.tt
                    location = entry.location
                    chars = 45
                %]
            </td>
            <td align="right">[% entry.total %]</td>
            <td align="right">[% entry.has_nhs_number %]</td>
            <td align="right">[% entry.percent %]</td>
        </tr>
        [% END %]
    </table>
    [% ELSE %]
        <p class="info indent">no data for time period specified</p>
    [% END %]
    
    <p class="indent">[% site.html.back_button %]</p>
<!-- END [% template.name %] -->
