<!-- BEGIN admin/menu/system.tt -->
  <table class="tree">
    <tr>
      <td>
		[% div_name = 'sysadmin'; INCLUDE site/snippets/toggleview.tt type = 'folder' %]
      </td>
      <td>
        <b>System administration</b>
      </td>
    </tr>
  </table>

    [% INCLUDE site/popup.tt height=680, width=320, top=50 # defines onclick_event %]
    [% cfg = c.cfg('settings') %]

  <div class='itemhidden' id="[% div_name %]">
    <table style="margin-left: 30px">
      <tr>
        <td><img alt="" src="/images/text.gif" class="text" /></td>
        <td><a class="nav" href="[% app_url %]/config/settings">Application settings</a></td>
      </tr>

      <tr>
        <td><img alt="" src="/images/text.gif" class="text" /></td>
        <td><a class="nav" href="[% app_url %]/resources/process_status">
            Process status</a></td>
      </tr>

      <tr>
        <td><img alt="" src="/images/text.gif" class="text" /></td>
        <td><a class="nav" href="[% app_url %]/resources/system_resources"
            onclick="return popup(this.href);">System resources</a>
        </td>
      </tr>

      <tr>
        <td><img alt="" src="/images/text.gif" class="text" /></td>
        <td><a class="nav" href="[% app_url %]/resources/check_speller_words">
            Local dictionary</a>
        </td>
      </tr>

      <tr>
        <td><img alt="" src="/images/text.gif" class="text" /></td>
        <td><a class="nav" href="[% app_url %]/config/anatomical-sites">
		  Anatomical sites</a></td>
      </tr>

      <tr>
        <td><img alt="" src="/images/text.gif" class="text" /></td>
        <td><a class="nav" href="[% app_url %]/config/trials">Clinical trials</a></td>
      </tr>

	[% IF cfg.item('_centre') == cfg.sysadmin_centre %]
      <tr>
        <td><img alt="" src="/images/text.gif" class="text" /></td>
        <td><a class="nav" href="[% app_url %]/resources/view_cron_log">View cron log</a></td>
      </tr>
	  [% IF cfg.have_haematology_data %]
        <tr>
          <td><img alt="" src="/images/text.gif" class="text" /></td>
          <td><a class="nav" href="[% app_url %]/resources/view_sysmex_log">
            Sysmex log</a>
          </td>
        </tr>
	  [% END %]
	[% END %]

      <tr>
        <td><img alt="" src="/images/text.gif" class="text" /></td>
        <td><a class="nav" href="[% app_url %]/config/specimens">Specimens</a></td>
      </tr>

    </table>
  </div>
<!-- END admin/menu/system.tt -->
