[% META title = 'Admin » Referral Sources' -%] [% # PROCESS dumper.tt dump = c.stash.errs %] [% # PROCESS admin/system_nav.tt page = 'trials' %] [% referral_sources_dfv_js %] [% PROCESS site/autosuggest.tt varname = 'organisation' param_id = 'organisation_id' param_name = 'parent_organisation' method_name = 'get_parent_organisations' %] [% PROCESS site/autosuggest.tt varname = 'practice' param_id = 'parent_practice_id' param_name = 'parent_practice' method_name = 'get_parent_organisations' no_autosuggest_js = 1 # already loaded above %] [% PROCESS admin/referral_nav.tt page = 'referral-sources' %]

Referral Sources

[% IF dfv_errors %]

[% c.config('msg').dfv_errors %]

[% END %]

[% div_name = 'new'; INCLUDE site/snippets/toggleview.tt %] Add new entry

[% INCLUDE site/lookup.tt fname = 'popup2' # avoid interfering with 'help' %] [% INCLUDE site/snippets/help.tt file = 'newrefsrc' %]
Organisation Code: [% PROCESS site/ajax_input.tt field = 'organisation_code' size = 6 %] [% error_organisation_code %]
Active: [% error_is_active %]

Location Type: [% error_referral_type %]

[% # need to see errors if dfv_errors IF dfv_errors; IF c.query.param('referral_type').match('hospital'); display = 'visible'; ELSE; display = 'none'; END; ELSE; display ='none'; END; %]
Display name: [% PROCESS site/ajax_input.tt field = 'display_name', id = 'ref_source_name', size = 65 %] [% error_display_name %] [% error_source_name # 'require_some' name %]
Parent Organisation:
[% # need to see errors if dfv_errors IF dfv_errors; IF c.query.param('referral_type').match('practice'); display = 'visible'; ELSE; display = 'none'; END; ELSE; display ='none'; END; %]
Practice name: [% error_source_name # 'require_some' name %]
Practice address: [% error_practice_address %]
Post code: [% error_practice_zip %]
Branch practice?


Search for an existing referral source:

[% PROCESS search/referral_source_search.tt %]