[%# HTML Snippet, for import only %]
[%- BLOCK business_classes;
FOREACH BUC IN bu_classes %]
[% text(BUC.label) %] |
[% b_units.${BUC.id}.unshift({}) %]
[% 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'
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;
b_units.${BUC.id}.unshift({}) %]
[% END; # FOREACH BUC
PROCESS input element_data = {
type = 'hidden'
name = 'bc_count'
value = bu_classes.size
};
END # BLOCK -%]
[%- BLOCK entity_class %]
[% text('Entity Class') %] |
[%
entity_classes.unshift({text = '', value_attr = ''});
PROCESS select element_data = {
name = "entity_class"
id = "entity_class"
options = entity_classes
default_values = [entity_class]
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 = "text"
label = label
class = "date"
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 %]
|
[% END # BLOCK %]
[% BLOCK date_period %]
[% text('Period') %] |
[%
all_months.unshift({});
all_years.unshift({});
PROCESS select element_data = {
name = "from_month" _ SUFFIX
id = "from_month" _ SUFFIX
options = all_months
};
PROCESS select element_data = {
name="from_year" _ SUFFIX
id="from_year" _ SUFFIX
options = all_years
text_attr = "date_get_all_years"
value_attr = "date_get_all_years"
};
PROCESS input element_data = {
name="interval" _ SUFFIX
id="interval" _ SUFFIX _ "current"
class="radio"
type="radio"
value="none"
checked="checked" } %] [% text('Current');
PROCESS input element_data = {
name="interval" _ SUFFIX
id="interval" _ SUFFIX _ "day"
class="radio"
type="radio"
value="month" } %] [% text('Day');
PROCESS input element_data = {
name="interval" _ SUFFIX
id="interval" _ SUFFIX _ "week"
class="radio"
type="radio"
value="month" } %] [% text('Week');
PROCESS input element_data = {
name="interval" _ SUFFIX
id="interval" _ SUFFIX _ "month"
class="radio"
type="radio"
value="month" } %] [% text('Month');
PROCESS input element_data = {
name="interval" _ SUFFIX
id="interval" _ SUFFIX _ "quarter"
class="radio"
type="radio"
value="quarter" } %] [% text('Quarter');
PROCESS input element_data = {
name="interval" _ SUFFIX
id="interval" _ SUFFIX _ "year"
class="radio"
type="radio"
value="year" } %] [% text('Year') %]
|
[% END # BLOCK %]
[%- BLOCK date_row %]
[% text('Date Range') %] |
[% INCLUDE date_from_date required=required SUFFIX=SUFFIX %]
[% INCLUDE date_to_date required=required SUFFIX=SUFFIX %]
[% PROCESS date_period %]
[% END #BLOCK -%]
[%- BLOCK date_from_date_div %]
[%
IF !label.defined(); label = text('From'); END;
IF !name.defined(); name = text('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_div %]
[%
IF !label.defined(); label = text('To'); END;
IF !name.defined(); name = text('to_date'); END;
IF !required.defined(); required = 'false'; END;
%]
[% INCLUDE _date_block label=label name=name required=required SUFFIX=SUFFIX %]
[% END #BLOCK %]
[%- BLOCK date_period_div %]
[% END #BLOCK -%]
[%- BLOCK date_row_div %]
[% INCLUDE date_from_date_div required=required SUFFIX=SUFFIX %]
[% INCLUDE date_to_date_div required=required SUFFIX=SUFFIX %]
[% PROCESS date_period_div %]
[% END #BLOCK -%]
[% BLOCK employee_row;
# DEFAULTS
IF ! SELECTNAME.defined;
#SELECTNAME = 'employee_id';
SELECTNAME = 'person_id';
END;
FOREACH e IN employees;
e.text = e.first_name _ ' ' _ e.last_name;
END;
#employees.push({})
employees.unshift({}) %]
[% text('Employees') %] |
[% PROCESS select element_data = {
name = SELECTNAME
id = SELECTNAME
default_values = [$SELECTNAME]
options = employees
value_attr = 'person_id' #??
class = 'employee'
} %] |
[% END # BLOCK employees %]