[% PROCESS "elements.html"; PROCESS 'report_base.html'; batch_classes = [ { text = text('AP'), value = 'ap'}, { text = text('AR'), value = 'ar'}, { text = text('GL'), value = 'gl'}, ]; script = 'drafts.pl'; action = 'list_drafts'; %]
[% text('Search Unapproved Transactions') %]
[% INCLUDE select element_data = { label = text('Transaction Type') options = batch_classes value_attr = "value" text_attr = "text" name = "type" default_values = [class_id] default_blank = 1 } %] [% INCLUDE input element_data = { label = text('Reference') size = 20 value = reference name = "reference" } %] [% INCLUDE input element_data = { label = text('From Date') type = "text", class = "date", size = 12, value = from_date, name = "from_date" } %] [% INCLUDE input element_data = { label = text('To Date') type = "text", class = "date", size = 12, value = to_date, name = "to_date" } %] [% INCLUDE input element_data = { label = "Minimum Value" name = "amount_gt" class = "numeric" size = 20 value = amount_gt type = "text" } %] [% INCLUDE input element_data = { label = "Maximum Value" name = "amount_lt" value = amount_lt size = 20 class = "numeric" type = "text" } %]
[% INCLUDE button element_data = { text = text('Search') name = "__action" value = action class = "submit" type = "submit" } %]