[%- BLOCK business_classes;
FOREACH BUC IN bu_classes %]
[% text(BUC.label) %]
[% PROCESS select element_data = {
name = 'business_unit_' _ loop.count
id = 'business_unit_' _ loop.count
options = b_units.${BUC.id}
text_attr = 'text'
value_attr = 'id'
default_blank = 1
class = 'business_unit'
} %]
[% END; # FOREACH BUC
PROCESS input element_data = {
type = 'hidden'
name = 'bc_count'
value = bu_classes.size
};
END # BLOCK -%]
[%- BLOCK business_classes_div;
FOREACH BUC IN bu_classes; %]
[% PROCESS select element_data = {
name = 'business_unit_' _ loop.count
id = 'business_unit_' _ loop.count
options = b_units.${BUC.id}
text_attr = 'text'
value_attr = 'id'
default_blank = 1
class = 'business_unit'
label = text(BUC.label)
} %]
[% END; # FOREACH BUC
PROCESS input element_data = {
type = 'hidden'
name = 'bc_count'
value = bu_classes.size
};
END # BLOCK -%]
[%- BLOCK entity_class %]
[% text('Entity Class') %]
[%
PROCESS select element_data = {
name = "entity_class"
id = "entity_class"
options = entity_classes
default_values = [entity_class]
default_blank = 1
text_attr = 'class'
value_attr = 'id'
} %]
[% END # BLOCK -%]
[%- BLOCK gifi_or_standard %]
[% text('Accounts') %]
[% PROCESS input element_data={
type = 'radio',
name = 'accounttype',
id = 'accounttype-standard',
value = 'standard',
label = text('Standard'),
checked = 'checked',
} -%]
[% PROCESS input element_data={
type = 'radio',
name = 'accounttype',
id = 'accounttype-gifi',
value = 'gifi',
label = text('GIFI'),
} -%]
[% END # BLOCK -%]
[%- BLOCK ignore_yearend %]
[% text('Ignore Year-ends'); %]
[% PROCESS select element_data = {
options = form.yearend_options,
default_values = [form.ignore_yearend],
name = 'ignore_yearend',
id = 'ignore_yearend',
text_attr = 'label',
value_attr = 'id',
}%]
[% END # BLOCK -%]
[%- BLOCK _date_block %]
[% INCLUDE input element_data = {
type = "date"
label = label
name = name _ SUFFIX
id = name _ SUFFIX
size = 11
required = required
title = datestyle } %]
[% END #BLOCK -%]
[% BLOCK date_from_date %]
[%
IF !label.defined(); label = text('From'); END;
IF !name.defined(); name = 'from_date'; END;
IF !required.defined(); required = 'false'; END;
%]
[% INCLUDE _date_block label=label name=name required=required SUFFIX=SUFFIX %]
[% END # BLOCK %]
[% BLOCK date_to_date %]
[%
IF !label.defined(); label = text('To'); END;
IF !name.defined(); name = 'to_date'; END;
IF !required.defined(); required = 'false'; END;
%]
[% INCLUDE _date_block label=label name=name required=required SUFFIX=SUFFIX %]