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.Order.print()', LxERP.t8('Print')) %]
16 <a href="#" onclick="$('#print_options').dialog('close');" class="button neutral">[% LxERP.t8("Cancel") %]</a>
20 <div id="shipto_dialog" class="hidden"></div>
22 <form method="post" action="controller.pl" id="order_form"
23 data-transport-cost-reminder-article-id="[% HTML.escape(transport_cost_reminder_article.id) %]"
24 data-transport-cost-reminder-article-description="[% HTML.escape(transport_cost_reminder_article.displayable_name) %]">
25 [% L.hidden_tag('callback', FORM.callback) %]
26 [% L.hidden_tag('type', FORM.type) %]
27 [% L.hidden_tag('id', SELF.order.id) %]
28 [% L.hidden_tag('converted_from_record_type_ref', SELF.order.converted_from_record_type_ref) %]
29 [% L.hidden_tag('converted_from_record_id', SELF.order.converted_from_record_id) %]
30 [% L.hidden_tag('email_journal_id', FORM.email_journal_id) %]
31 [% L.hidden_tag('email_attachment_id', FORM.email_attachment_id) %]
32 [% L.hidden_tag('workflow_email_journal_id', FORM.workflow_email_journal_id) %]
33 [% L.hidden_tag('workflow_email_attachment_id', FORM.workflow_email_attachment_id) %]
34 [% L.hidden_tag('workflow_email_callback', FORM.workflow_email_callback) %]
36 [% IF !SELF.order.id %]
37 [% L.hidden_tag('form_validity_token', FORM.form_validity_token) %]
40 [% INCLUDE 'common/flash.html' %]
42 <div class="tabwidget" id="order_tabs">
45 <li><a href="#ui-tabs-basic-data">[% 'Basic Data' | $T8 %]</a></li>
46 [% IF FORM.email_attachment_id || FORM.workflow_email_attachment_id %]
47 <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>
49 [% IF INSTANCE_CONF.get_webdav %]
50 <li><a href="#ui-tabs-webdav">[% 'WebDAV' | $T8 %]</a></li>
52 [% IF SELF.order.id AND INSTANCE_CONF.get_doc_storage %]
53 <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>
54 <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>
56 [% IF SELF.order.id %]
57 <li><a href="controller.pl?action=RecordLinks/ajax_list&object_model=Order&object_id=[% HTML.url(SELF.order.id) %]">[% 'Linked Records' | $T8 %]</a></li>
59 [% IF SELF.order.id %]
60 <li><a href="#ui-tabs-phone-notes">[% 'Phone Notes' | $T8 %]<span id="num_phone_notes">[%- num_phone_notes ? ' (' _ num_phone_notes _ ')' : '' -%]</span></a></li>
64 [% PROCESS "order/tabs/basic_data.html" %]
65 [% PROCESS 'webdav/_list.html' %]
67 [% LxERP.t8("Loading...") %]
69 [% IF SELF.order.id %]
70 <div id="ui-tabs-phone-notes">
71 [% PROCESS "order/tabs/phone_notes.html" %]
74 <div id="shipto_inputs" class="hidden">
75 [%- PROCESS 'common/_ship_to_dialog.html'
76 vc_obj=SELF.order.customervendor
77 cs_obj=SELF.order.custom_shipto
78 cvars=SELF.order.custom_shipto.cvars_by_config
79 id_selector='#order_shipto_id' %]
82 </div><!-- /.tabwidget -->