[% # PROCESS dumper.tt dump = is_locked %]
[% IF c.query.param('_return'); site.html.back_button; END %]
[% # PROCESS dumper.tt dump = data.status_option %]
[% # either auth not required, or authorised:
can_view_if_reported = status_options.authorised.is_active.match('no') OR
( status_options.authorised.is_active.match('yes') AND history.authorised )
? 1 : 0;
%]
Record status:
[% IF is_locked %]
[% IF c.user_can('edit_pid') %]
[% ELSE %]
[% END %]
[% ELSE %]
[% END %]
[% IF c.user_can('view_history') %]
History
[% ELSE %]
History
[% END %]
::
[% IF c.user_can('modify_results') # AND NOT is_locked # moved to results tmpl %]
Results
[% ELSE %]
Results
[% END %]
::
[% PROCESS site/report_link_options.tt # Report link - complex options %]
::
[% IF c.user_can('log_errors') %]
Errors
[% ELSE %]
Errors
[% END %]
::
[% IF c.user_can('modify_results') %]
[% class = has_phonelog ? 'red' : 'normal' %]
PhoneLog
[% ELSE %]
PhoneLog
[% END %]
::
[% IF c.user_can('view_history') %]
DataFiles
::
[% END %]
[% IF c.user_can('view_clinical_data') AND clinical_data_link.is_elegible;
class = clinical_data_link.has_data ? 'red' : 'normal' %]
HMRN
::
[% END %]
[% IF c.user_can('print_one') AND has_optional.report %]
[% IF can_view_if_reported %]
Print
[% ELSIF c.user_can('report') # reported but not authorised: %]
Draft
[% END %]
[% ELSE %]
Print
[% END %]
[% IF c.user_can('email_report') AND has_optional.report AND can_view_if_reported %]
::
Email
[% END %]