[% META title = 'Resources » Dashboard View' -%] [% addcss = [ 'dashboard.css?v1.3' ] %] [% # INCLUDE dumper.tt dump = data %] [% # INCLUDE dumper.tt dump = data.incomplete_section_tests %] [% # some common data blocks: lab_test_data = data.incomplete_section_tests %] [% BLOCK series_data; total = 0; FOREACH test IN section.value; total = total + data.sum_this(test.value); END; id = section.key.replace(' ','-').lower; %] { name: '[% section.key %]', y: [% total %], drilldown: '[% id %]' }, [% END %] [% BLOCK drilldown_series_data; # '+' chars for html source readability # omit trailing comma on data block for IE8-compatibility %] ['[% test.key %]',[% data.sum_this(test.value) %]][% ',' UNLESS loop.last +%] [% END %]
Lab sections - incomplete tests: [% div_name = 'incomplete'; INCLUDE site/snippets/toggleview.tt %]
Lab sections - totals for lab-tests: [% div_name = 'test-totals'; INCLUDE site/snippets/toggleview.tt %]
Lab sections - lab-test status: [% div_name = 'tests-status'; INCLUDE site/snippets/toggleview.tt %]