]> wagnertech.de Git - mfinanz.git/blob - templates/design40_webpages/delivery_order/form.html
date error in mapping
[mfinanz.git] / templates / design40_webpages / delivery_order / form.html
1 [%- USE T8 %]
2 [%- USE LxERP %]
3 [%- USE L %]
4 [%- USE HTML %]
5
6 [% IF FORM.workflow_email_journal_id %]
7   [% SET FORM.title = LxERP.t8("Email Journal Workflow") _ " - " _ FORM.title %]
8 [% END %]
9 <h1>[% FORM.title %] <span id='nr_in_title'>[%- SELF.order.number -%]</span></h1>
10
11 <div id="print_options" style="display:none">
12   <form method="post" action="controller.pl" id="print_options_form">
13     [% SELF.print_options %]
14     <br>
15     [% L.button_tag('kivi.DeliveryOrder.print()', LxERP.t8('Print')) %]
16     <a href="#" onclick="$('#print_options').dialog('close');">[% LxERP.t8("Cancel") %]</a>
17   </form>
18 </div>
19
20 <div id="shipto_dialog" class="hidden"></div>
21
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) %]
33
34   [% IF !SELF.order.id %]
35   [%   L.hidden_tag('form_validity_token', FORM.form_validity_token) %]
36   [% END %]
37
38   [%- INCLUDE 'common/flash.html' %]
39
40   <div class="tabwidget" id="order_tabs">
41     <ul>
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>
45 [% END %]
46 [%- IF INSTANCE_CONF.get_webdav %]
47       <li><a href="#ui-tabs-webdav">[% 'WebDAV' | $T8 %]</a></li>
48 [%- END %]
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>
52 [%- END %]
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>
55 [%- END %]
56     </ul>
57
58     [% PROCESS "delivery_order/tabs/basic_data.html" %]
59     [% PROCESS 'webdav/_list.html' %]
60     <div id="ui-tabs-1">
61       [%- LxERP.t8("Loading...") %]
62     </div>
63
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' %]
70     </div>
71
72   </div>
73
74 </form>