[% PROCESS "elements.html"; PROCESS "dynatable.html"; FORMATS = LIST_FORMATS(); %]
[% text('Report Name') %]: [% name %]
[% text('Company') %]: [% SETTINGS.company_name %]
[% FOREACH LINE IN hlines %]
[% LINE.text %]: [% LINE.value %]
[% END %]
[% content %] [% PROCESS input element_data = { name = 'form_id' value = FORM_ID type = 'hidden' } %] [% FOREACH K IN HIDDENS.keys; PROCESS input element_data = { name = K type = 'hidden' value = HIDDENS.$K }; END; %] [% PROCESS dynatable tbody = {rows = rows } attributes = {class = 'report', order_url = order_url } %]
[% FOREACH OPTION IN options; PROCESS select element_data = OPTION; END; %]
[% FOREACH BUTTON IN buttons; PROCESS button element_data = BUTTON; END; %]
[[% text('permalink') %]] [% IF FORMATS.grep('PDF').size() %] [[% text('PDF') %]] [% END; IF FORMATS.grep('TXT').size(); %] [[% text('CSV') %]] [% END; IF FORMATS.grep('ODS').size() %] [[% text('ODS') %]] [% END; IF FORMATS.grep('XLS').size(); %] [[% text('XLS') %]] [% END; IF FORMATS.grep('XLSX').size(); %] [[% text('XLSX') %]] [% END; %]