[% META title = 'Admin &raquo; Outreach Practices' %]

<!-- BEGIN [% template.name %] -->

    [% # PROCESS dumper.tt dump = practices %]
    
    <h2>Configure Outreach Practice Blood Tube Types:</h2>

	<table class="indent">
		<tr>
			<td class="borderless">&nbsp;</td>
			<th>Practice Address</th>
			<th>Code</th>
			<th>Default</th>
			<th>Selected</th>
			<td class="borderless">&nbsp;</td>
		</tr>

    [% FOREACH practice IN practices %]
		<tr>
			<td>[% loop.count %]</td>
			<td class="">
                [% INCLUDE site/display_name.tt
                    location = practice.display_name
                    chars = 80
                %]
            </td>
			<td class="">[% practice.organisation_code %]</td>
			<td class="">[% tube_type(practice.post_code) # callback %]</td>
            <td class="">[% practice.tube_type | upper %]</td>
            <td class="">
                <a href="[% app_url %]/config/outreach-practices/edit/[% practice.id %]">
                    Edit
                </a>
            </td>
		</tr>    
    [% END %]
    </table>
