5 <h1>[% FORM.title %]</h1>
7 <div id="print_options" style="display:none">
8 <form method="post" action="controller.pl" id="print_options_form">
9 [% SELF.print_options %]
11 [% L.button_tag('kivi.Order.print()', LxERP.t8('Print')) %]
12 <a href="#" onclick="$('#print_options').dialog('close');">[% LxERP.t8("Cancel") %]</a>
16 <form method="post" action="controller.pl" id="order_form">
17 [% L.hidden_tag('callback', FORM.callback) %]
18 [% L.hidden_tag('type', FORM.type) %]
19 [% L.hidden_tag('id', SELF.order.id) %]
21 [%- INCLUDE 'common/flash.html' %]
23 <div class="tabwidget" id="order_tabs">
25 <li><a href="#ui-tabs-basic-data">[% 'Basic Data' | $T8 %]</a></li>
26 [%- IF INSTANCE_CONF.get_webdav %]
27 <li><a href="#ui-tabs-webdav">[% 'WebDAV' | $T8 %]</a></li>
29 [%- IF SELF.order.id AND INSTANCE_CONF.get_doc_storage %]
30 <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>
31 <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>
33 [%- IF SELF.order.id %]
34 <li><a href="controller.pl?action=RecordLinks/ajax_list&object_model=Order&object_id=[% HTML.url(SELF.order.id) %]">[% 'Linked Records' | $T8 %]</a></li>
38 [% PROCESS "order/tabs/basic_data.html" %]
39 [% PROCESS 'webdav/_list.html' %]
41 [%- LxERP.t8("Loading...") %]
47 [% L.hidden_tag('action', 'Order/dispatch') %]
49 [% L.button_tag('kivi.Order.save(' _ INSTANCE_CONF.get_order_warn_duplicate_parts _ ')', LxERP.t8('Save')) %]
50 [% L.button_tag('kivi.Order.show_print_options()', LxERP.t8('Print')) %]
51 [% L.button_tag('kivi.Order.email()', LxERP.t8('E-mail')) %]
52 [% L.button_tag('kivi.Order.save_and_delivery_order(' _ INSTANCE_CONF.get_order_warn_duplicate_parts _ ')', LxERP.t8('Save and Delivery Order')) %]
53 [%- IF SELF.order.id && ( (SELF.cv == 'customer' && INSTANCE_CONF.get_sales_order_show_delete) || (SELF.cv == 'vendor' && INSTANCE_CONF.get_purchase_order_show_delete) ) %]
54 [% L.button_tag('kivi.Order.delete_order()', LxERP.t8('Delete'), confirm=LxERP.t8("Are you sure?")) %]
56 [%- IF SELF.order.id && INSTANCE_CONF.get_doc_storage %]
57 [% L.button_tag('kivi.File.downloadOrderitemsFiles(\'' _ SELF.order.type _'\',' _ SELF.order.id _')',LxERP.t8('Download all Attachments')) %]