6 [% IF FORM.workflow_email_journal_id %]
7 [% SET FORM.title = LxERP.t8("Email Journal Workflow") _ " - " _ FORM.title %]
9 <h1>[% FORM.title %] <span id='nr_in_title'>[%- SELF.order.number -%]</span></h1>
11 <div id="print_options" style="display:none">
12 <form method="post" action="controller.pl" id="print_options_form">
13 [% SELF.print_options %]
15 [% L.button_tag('kivi.DeliveryOrder.print()', LxERP.t8('Print')) %]
16 <a href="#" onclick="$('#print_options').dialog('close');">[% LxERP.t8("Cancel") %]</a>
20 <div id="shipto_dialog" class="hidden"></div>
22 <form method="post" action="controller.pl" id="order_form">
23 [% L.hidden_tag('callback', FORM.callback) %]
24 [% L.hidden_tag('type', FORM.type) %]
25 [% L.hidden_tag('id', SELF.order.id) %]
26 [% L.hidden_tag('converted_from_record_type_ref', SELF.order.converted_from_record_type_ref) %]
27 [% L.hidden_tag('converted_from_record_id', SELF.order.converted_from_record_id) %]
28 [% L.hidden_tag('email_journal_id', FORM.email_journal_id) %]
29 [% L.hidden_tag('email_attachment_id', FORM.email_attachment_id) %]
30 [% L.hidden_tag('workflow_email_journal_id', FORM.workflow_email_journal_id) %]
31 [% L.hidden_tag('workflow_email_attachment_id', FORM.workflow_email_attachment_id) %]
32 [% L.hidden_tag('workflow_email_callback', FORM.workflow_email_callback) %]
34 [% IF !SELF.order.id %]
35 [% L.hidden_tag('form_validity_token', FORM.form_validity_token) %]
38 [%- INCLUDE 'common/flash.html' %]
40 <div class="tabwidget" id="order_tabs">
42 <li><a href="#ui-tabs-basic-data">[% 'Basic Data' | $T8 %]</a></li>
43 [% IF FORM.email_attachment_id || FORM.workflow_email_attachment_id %]
44 <li><a href="controller.pl?action=EmailJournal/attachment_preview&attachment_id=[% HTML.url(FORM.email_attachment_id || FORM.workflow_email_attachment_id) %]">[% 'Email Attachment Preview' | $T8 %]</a></li>
46 [%- IF INSTANCE_CONF.get_webdav %]
47 <li><a href="#ui-tabs-webdav">[% 'WebDAV' | $T8 %]</a></li>
49 [%- IF SELF.order.id AND INSTANCE_CONF.get_doc_storage %]
50 <li><a href="controller.pl?action=File/list&file_type=document&object_type=[% HTML.escape(FORM.type) %]&object_id=[% HTML.url(SELF.order.id) %]">[% 'Documents' | $T8 %]</a></li>
51 <li><a href="controller.pl?action=File/list&file_type=attachment&object_type=[% HTML.escape(FORM.type) %]&object_id=[% HTML.url(SELF.order.id) %]">[% 'Attachments' | $T8 %]</a></li>
53 [%- IF SELF.order.id %]
54 <li><a href="controller.pl?action=RecordLinks/ajax_list&object_model=DeliveryOrder&object_id=[% HTML.url(SELF.order.id) %]">[% 'Linked Records' | $T8 %]</a></li>
58 [% PROCESS "delivery_order/tabs/basic_data.html" %]
59 [% PROCESS 'webdav/_list.html' %]
61 [%- LxERP.t8("Loading...") %]
64 <div id="shipto_inputs" class="hidden">
65 [%- PROCESS 'common/_ship_to_dialog.html'
66 vc_obj=SELF.order.customervendor
67 cs_obj=SELF.order.custom_shipto
68 cvars=SELF.order.custom_shipto.cvars_by_config
69 id_selector='#order_shipto_id' %]