[% SET skip_wrappers = 1 %] [% IF ! location_type %]

Referrers & Referral Sources

Choose a resource type to search:

[% END %]

Search: [ hospital ] [ practice ] [ independant ] [ prison ] [ clinician ] [ GP ]

[% IF location_type %]

Lookup new [% location_type %]:

Containing: [% site.html.submit %]

[% END %] [% IF c.query.param('string') %] [% IF matches.size %]

Found [% matches.size %] [% location_type %]s matching "[% c.query.param('string') %]":

[% IF file_data; age = file_data.age; IF age >= 12; class = 'error'; ELSIF age >= 6; class = 'warning'; ELSE; class = 'info'; END; %]

source file: [% file_data.filename %].csv; status: updated [% file_data.age %] months ago [% #IF age <= 6 # need to modified template - no headers & incr. width %] [% #END %]

[% END %] [% FOREACH location IN matches %] [% SET class = location.code.length == 3 ? 'bold' : 'normal' %] [% END %]
  Code Details
[% loop.count %] [% IF class.match('bold') %] [% location.code %] [% ELSE %] [% location.code %] [% END %] [% location.display %]
[% ELSE %]

No matches found for "[% c.query.param('string') %]"

[% END %] [% END %]