  [% META title = 'Admin &raquo; Edit Anatomical Site' -%]

  [% # PROCESS dumper.tt dump = data %]

  [% anatomical_sites_dfv_js %]

	[% # PROCESS admin/referral_nav.tt page = 'parent-organisations' %]

  <h2 align="center">Edit Anatomical Site Details</h2>

    [% IF dfv_errors %]
    <dl>
        <dt class="error">[% c.cfg('msg').dfv_errors %]</dt>
        [% IF error_site_name %]
            <dd>Site name [% error_site_name %]</dd>[% END %]
        [% IF error_snomed %]
            <dd>Snomed [% error_snomed %]</dd>[% END %]
    </dl>
    [% END %]

    <form method="post" action="[% app_url %]/config/anatomical-sites/update/[% data.id %]"
		[% anatomical_sites_onsubmit %] name="anatomical-sites" id="anatomical-sites">

    <table>
        <tr>
            <th [% IF error_site_name %]class="error"[% END %]>Site Name</th>
            <th [% IF error_snomed %]class="error"[% END %]>Snomed</th>
        </tr>

        <tr>
            <td>
                <input type="text" name="site_name" size="50" value="[% data.site_name %]" />
             </td>
            <td>
                <input type="text" name="snomed" size="6"
					value="[% data.snomed | upper %]" />
             </td>
             <td>
                [% site.html.submit %]
            </td>
        </tr>
    </table>

    </form>

    <p>[% site.html.back_button %]</p>
