\[% PROCESS "elements.html" -%]
[% text('New Asset Report Search') %]
[% PROCESS select element_data = { name = "asset_class" default_values = [asset_report.asset_class] default_blank = 1 options = asset_report.asset_classes text_attr = "label" value_attr = "id" label = text('Asset Class') #' } %]
[% PROCESS input element_data = { name = "start_date" class = "date" value = asset_report.start_date label = text("From") } %]
[% PROCESS input element_data = { name = "end_date" class = "date" value = asset_report.end_date label = text("To") } %]
[% IF request.depreciation %] [% ELSE %]
[% PROCESS select element_data = { name = "gain_acct" class = "account" value_attr = "id" options = asset_report.gain_accounts default_values = [asset_report.gain_acct] label = text('Gain Account') #' } %]
[% PROCESS select element_data = { name = "loss_acct" class = "account" options = asset_report.loss_accounts value_attr = "id" default_values = [asset_report.loss_acct] label = text('Loss Account') #' } %]
[% PROCESS select element_data = { name = "cash_acct" class = "account" options = asset_report.cash_accounts value_attr = "id" default_blank = 1 label = text('Cash Account') #' } %]
[% END %]
[% PROCESS button element_data = { name = "__action" text = text("Continue") value = "report_results" type = "submit" class = "submit" } %]
[% PROCESS input element_data = { name = "approved" type = "hidden" value = "0" } %] [% PROCESS input element_data = { name = "depreciation" type = "hidden" value = asset_report.depreciation } %]