[% IF credit_act.id;
IF request.for_credit;
attach_to = 3;
ELSE;
attach_to = 1;
END;
INCLUDE select element_data = {
name = "attach_to"
id = 'attach-contact-to'
default_values = [attach_to]
options = attach_level_options
label = text('Attach To') #'
};
ELSE %]
[% END; %]
[% PROCESS select element_data = {
name = "class_id"
label = "Type"
text_attr = "class"
value_attr = "id"
default_values = [request.class_id]
options = contact_class_list
} %]
[% PROCESS input element_data = {
label = text('Description'),
name = "description"
id = 'contact_description'
value = request.description
type = "text"
size = "20"
} %]
[% PROCESS input element_data = {
label = text('Contact Info'),
name = "contact"
value = request.contact
type = "text"
size = "20"
required = 'true'
} #' %]
[% PROCESS button element_data = {
name = "__action",
value = "save_contact",
text = text('Save Contact'),
class = "submit"
} #' %]
[% IF request.contact.defined %]
[% PROCESS button element_data = {
name = "__action",
value = "save_contact_new",
text = text('Save As New'),
class = "submit"
} #' %]
[% END # IF old_contact.defined %]