<!-- BEGIN [% component.name %] -->
  [%
    centre = c.cfg('settings').item('_centre') || argv; # argv from index.html ssi exec cmd
    DEFAULT class = 'itemhidden'; # maybe defined in login/default.tt if called from there
    lrf = [
        'resources/menu/local/request_forms', centre
    ];
    local_request_form = lrf.join('.'); # contains $request_forms hashref
    PROCESS $local_request_form; # PROCESS dumper.tt dump = request_forms
    # create hash to sort on keys (link name):
    FOREACH entry IN request_forms;
        h.${entry.0} = entry.1;
    END; # PROCESS dumper.tt dump = h;
  %]

  <table class="tree">
    <tr>
      <td>
		[% div_name = 'forms'; INCLUDE site/snippets/toggleview.tt type = 'folder' %]
     </td>
      <td>
        <span class="title">Documents [inc. request forms]</span>
      </td>
    </tr>
  </table>

  <div class="[% class %]" id="[% div_name %]">
    <table class="tree" style="margin-left: 30px">
        [% FOREACH entry IN h.keys.sort;
            title = entry; addr = h.${entry};
        %]
      <tr>
        <td><img alt="" src="/images/text.gif" class="text" /></td>
        <td>
			<a class="nav" href="[% addr | url %]" target="_blank">[% title %]</a>
		</td>
      </tr>
        [% END %]
    </table>
  </div>
<!-- END [% component.name %] -->
