[% IF credit_act.id;
IF is_for_credit;
attach_to = 3;
ELSE;
attach_to = 1;
END;
INCLUDE select element_data = {
name = "attach_to"
id = 'attach_address_to'
default_values = [attach_to]
options = attach_level_options
title = text('Attach To') #'
label = "_none_"
};
ELSE %]
[% INCLUDE select element_data = {
name = "location_class"
default_values = [DISPLAY.location_class]
options = location_class_list
text_attr = "class"
value_attr = "id"
title = text('Type')
label = "_none_"
} %]
[% INCLUDE input element_data = {
title = text('Address'),
label = "_none_"
name = "line_one",
value = DISPLAY.line_one,
type = "text",
size = "20",
required = 'true',
} %]
[% PROCESS input element_data = {
name = "line_two"
class = "addl-address"
value = DISPLAY.line_two
type = "text"
size = "20"
} %]
[% PROCESS input element_data = {
name = "line_three"
class = "addl-address"
value = DISPLAY.line_three
type = "text"
size = "20"
} %]
[% PROCESS input element_data = {
title = text('City'),
label = "_none_"
name = "city",
value = DISPLAY.city,
type = "text",
required = 'true',
size = "20"
} %]
[% PROCESS input element_data = {
title = text('State/Province'),
label = "_none_"
name = "state",
value = DISPLAY.state,
type = "text",
size = "20"
} %]
[% PROCESS input element_data = {
title = text('Zip/Post Code'),
label = "_none_"
name = "mail_code",
value = DISPLAY.mail_code,
type = "text",
size = "20"
} #' %]
[% IF !country_id; country_id = default_country; END -%]
[% INCLUDE select_country element_data = {
id = "address-country-select"
text_attr = "name"
value_attr = "id"
default_values = [DISPLAY.country_id]
options = country_list
name = "country_id"
title = text('Country')
label = "_none_"
required = 'true'
} %]
[%
IF request.location_class;
PROCESS button element_data = {
class = "submit"
name = "action"
value = "save_location"
id = "loc_save_location"
text = text('Save Location') #'
};
END; %]
[% PROCESS button element_data = {
class = "submit"
name = "action"
value = "save_new_location"
id = "loc_save_new_location"
text = text('Save New Location')
} #' %]