[%- USE L -%][%- USE LxERP -%][%- USE JavaScript -%] [%- SET style='width: 500px' %]

[%- LxERP.t8("Add link: select records to link with") %]

[% L.hidden_tag('object_model', SELF.object_model) %] [% L.hidden_tag('object_id', SELF.object_id) %]
[%- LxERP.t8("Link to") %]: [% L.select_tag('link_type', LINK_TYPES, default=DEFAULT_LINK_TYPE, style=style, id='record_links_add_filter_link_type') %]
[%- LxERP.t8("Link direction") %]: [% L.select_tag('link_direction', [ [ 'from', LxERP.t8("The link target to add has been created from the existing record."), ], [ 'to', LxERP.t8("The existing record has been created from the link target to add."), ], ], style=style) %]
[%- LxERP.t8("Customer/Vendor Number") %]: [% L.input_tag('vc_number', is_sales ? SELF.object.customer.customernumber : SELF.object.vendor.vendornumber, style=style) %]
[%- LxERP.t8("Customer/Vendor Name") %]: [% L.input_tag('vc_name', is_sales ? SELF.object.customer.name : SELF.object.vendor.name, style=style) %]
[%- LxERP.t8("Project") %]: [% L.select_tag('project_id', PROJECTS, default=SELF.object.globalproject_id, with_empty=1, style=style) %]
[%- LxERP.t8("Transaction description") %]: [% L.input_tag('transaction_description', '', style=style) %]

[% L.button_tag('filter_record_links()', LxERP.t8("Search")) %] [% L.button_tag('add_selected_record_links()', LxERP.t8("Add links"), id='add_selected_record_links_button', disabled=1) %] [%- LxERP.t8("Reset") %] [% LxERP.t8("Cancel") %]