]> wagnertech.de Git - mfinanz.git/blob - templates/design40_webpages/reclamation/form.html
date error in mapping
[mfinanz.git] / templates / design40_webpages / reclamation / form.html
1 [%- USE T8 %]
2 [%- USE LxERP %]
3 [%- USE L %]
4 [%- USE HTML %]
5 [% # L.dump( SELF.reclamation.items_sorted ) %]
6
7 [% IF FORM.workflow_email_journal_id %]
8   [% SET FORM.title = LxERP.t8("Email Journal Workflow") _ " - " _ FORM.title %]
9 [% END %]
10 <h1>[% FORM.title %] <span id='nr_in_title'>[%- SELF.reclamation.record_number -%]</span></h1>
11
12 <div id="print_options" style="display:none">
13   <form method="post" action="controller.pl" id="print_options_form">
14     [% SELF.print_options %]
15     <br>
16     [% L.button_tag('kivi.Reclamation.print()', LxERP.t8('Print')) %]
17     <a href="#" onclick="$('#print_options').dialog('close');">[% LxERP.t8("Cancel") %]</a>
18   </form>
19 </div>
20
21 <div id="shipto_dialog" class="hidden"></div>
22
23 <form method="post" action="controller.pl" id="reclamation_form">
24   [% L.hidden_tag('callback',             FORM.callback) %]
25   [% L.hidden_tag('type',                 FORM.type) %]
26   [% L.hidden_tag('id',                   SELF.reclamation.id) %]
27   [% L.hidden_tag('converted_from_record_type_ref', SELF.reclamation.converted_from_record_type_ref) %]
28   [% L.hidden_tag('converted_from_record_id',       SELF.reclamation.converted_from_record_id) %]
29   [% L.hidden_tag('email_journal_id',               FORM.email_journal_id) %]
30   [% L.hidden_tag('email_attachment_id',            FORM.email_attachment_id) %]
31   [% L.hidden_tag('workflow_email_journal_id',      FORM.workflow_email_journal_id) %]
32   [% L.hidden_tag('workflow_email_attachment_id',   FORM.workflow_email_attachment_id) %]
33   [% L.hidden_tag('workflow_email_callback',        FORM.workflow_email_callback) %]
34
35   [% IF !SELF.reclamation.id %]
36   [%   L.hidden_tag('form_validity_token', FORM.form_validity_token) %]
37   [% END %]
38
39   [%- INCLUDE 'common/flash.html' %]
40
41   <div class="tabwidget" id="reclamation_tabs">
42     <ul>
43       <li><a href="#ui-tabs-basic-data">[% 'Basic Data' | $T8 %]</a></li>
44 [% IF FORM.email_attachment_id || FORM.workflow_email_attachment_id %]
45       <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 [% END %]
47 [%- IF INSTANCE_CONF.get_webdav %]
48       <li><a href="#ui-tabs-webdav">[% 'WebDAV' | $T8 %]</a></li>
49 [%- END %]
50 [%- IF SELF.reclamation.id AND INSTANCE_CONF.get_doc_storage %]
51       <li><a href="controller.pl?action=File/list&file_type=document&object_type=[% HTML.escape(FORM.type) %]&object_id=[% HTML.url(SELF.reclamation.id) %]">[% 'Documents' | $T8 %]</a></li>
52       <li><a href="controller.pl?action=File/list&file_type=attachment&object_type=[% HTML.escape(FORM.type) %]&object_id=[% HTML.url(SELF.reclamation.id) %]">[% 'Attachments' | $T8 %]</a></li>
53 [%- END %]
54 [%- IF SELF.reclamation.id %]
55       <li><a href="controller.pl?action=RecordLinks/ajax_list&object_model=Reclamation&object_id=[% SELF.reclamation.id %]">[% 'Linked Records' | $T8 %]</a></li>
56 [%- END %]
57     </ul>
58
59     [% PROCESS "reclamation/tabs/basic_data.html" %]
60     [% PROCESS 'webdav/_list.html' %]
61     <div id="ui-tabs-1">
62       [%- LxERP.t8("Loading...") %]
63     </div>
64
65     <div id="shipto_inputs" class="hidden">
66       [%- PROCESS 'common/_ship_to_dialog.html'
67         cv_obj=SELF.reclamation.customervendor
68         cs_obj=SELF.reclamation.custom_shipto
69         cvars=SELF.reclamation.custom_shipto.cvars_by_config
70         id_selector='#reclamation_shipto_id' %]
71     </div>
72
73   </div>
74
75 </form>