[% PROCESS elements.html %]
[% text('Search Budgets') %]
[% INCLUDE input element_data = { name = "reference", value = reference, type = "text", size = "20", class = 'reference', label = text('Reference') } %]
[% INCLUDE input element_data = { name = "description", value = description, type = "text", size = "50", class = 'description' label = text('Description') } %]
[% INCLUDE input element_data = { name = "start_date" value = start_date type = "text" size = "11" class = 'date' label = text('Start Date') #' } %]
[% INCLUDE input element_data = { name = "end_date" value = end_date type = "text" size = "11" class = 'date' label = text('End Date') #' } %]
[% FOREACH BUC IN bu_classes %]
[% PROCESS select element_data = { name = 'business_unit_' _ loop.count options = b_units.${BUC.id} default_blank = 1 text_attr = 'text' value_attr = 'id' class = 'business_unit' label = text(BUC.label) } %]
[% max_class=loop.count; END; # FOREACH BUC PROCESS input element_data = { name = 'bclass_count' type = 'hidden' value = max_class } %]
[% PROCESS button element_data = { text = text('Search') value = 'search' name = '__action' type = 'submit' class = 'submit' } %]