Telefonnotizen Angebot/Auftrag
[kivitendo-erp.git] / templates / webpages / order / form.html
1 [%- USE T8 %]
2 [%- USE LxERP %]
3 [%- USE L %]
4 [%- USE HTML %]
5 <h1>[% FORM.title %] <span id='nr_in_title'>[%- SELF.order.number -%]</span></h1>
6
7 <div id="print_options" style="display:none">
8   <form method="post" action="controller.pl" id="print_options_form">
9     [% SELF.print_options %]
10     <br>
11     [% L.button_tag('kivi.Order.print()', LxERP.t8('Print')) %]
12     <a href="#" onclick="$('#print_options').dialog('close');">[% LxERP.t8("Cancel") %]</a>
13   </form>
14 </div>
15
16 <div id="shipto_dialog" class="hidden"></div>
17
18 <form method="post" action="controller.pl" id="order_form"
19       data-transport-cost-reminder-article-id="[% HTML.escape(transport_cost_reminder_article.id) %]"
20       data-transport-cost-reminder-article-description="[% HTML.escape(transport_cost_reminder_article.displayable_name) %]">
21   [% L.hidden_tag('callback',             FORM.callback) %]
22   [% L.hidden_tag('type',                 FORM.type) %]
23   [% L.hidden_tag('id',                   SELF.order.id) %]
24   [% L.hidden_tag('converted_from_oe_id', SELF.converted_from_oe_id) %]
25
26   [%- INCLUDE 'common/flash.html' %]
27
28   <div class="tabwidget" id="order_tabs">
29     <ul>
30       <li><a href="#ui-tabs-basic-data">[% 'Basic Data' | $T8 %]</a></li>
31 [%- IF INSTANCE_CONF.get_webdav %]
32       <li><a href="#ui-tabs-webdav">[% 'WebDAV' | $T8 %]</a></li>
33 [%- END %]
34 [%- IF SELF.order.id AND INSTANCE_CONF.get_doc_storage %]
35       <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>
36       <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>
37 [%- END %]
38 [%- IF SELF.order.id %]
39       <li><a href="controller.pl?action=RecordLinks/ajax_list&object_model=Order&object_id=[% HTML.url(SELF.order.id) %]">[% 'Linked Records' | $T8 %]</a></li>
40 [%- END %]
41 [% IF SELF.order.id %]
42       <li><a href="#ui-tabs-phone-notes">[% 'Phone Notes' | $T8 %]<span id="num_phone_notes">[%- num_phone_notes ? ' (' _ num_phone_notes _ ')' : '' -%]</span></a></li>
43 [% END %]
44     </ul>
45
46     [% PROCESS "order/tabs/basic_data.html" %]
47     [% PROCESS 'webdav/_list.html' %]
48     <div id="ui-tabs-1">
49       [%- LxERP.t8("Loading...") %]
50     </div>
51 [% IF SELF.order.id %]
52     <div id="ui-tabs-phone-notes">
53       [% PROCESS "order/tabs/phone_notes.html" %]
54     </div>
55 [% END %]
56     <div id="shipto_inputs" class="hidden">
57       [%- PROCESS 'common/_ship_to_dialog.html'
58         vc_obj=SELF.order.customervendor
59         cs_obj=SELF.order.custom_shipto
60         cvars=SELF.order.custom_shipto.cvars_by_config
61         id_selector='#order_shipto_id' %]
62     </div>
63
64   </div>
65
66 </form>