Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 251fb566

Von Hans Peter Schlaepfer vor fast 5 Jahren hinzugefügt

  • ID 251fb5669d2cb3b8647a1e434db913e819b19532
  • Vorgänger 945f7eb5
  • Nachfolger b67977cf

Neues kivitendo Design Aenderungen in templates/webpages/common/..

Unterschiede anzeigen:

templates/webpages/common/_print_dialog.html
1
[%- USE LxERP -%][%- USE L -%]
1
[% USE LxERP %]
2
[% USE L %]
3

  
2 4
<div id="print_dialog_print_options"></div>
3 5

  
4
<p>
6
<div class="buttons">
5 7
 [% L.button_tag("kivi.SalesPurchase.print_record()", LxERP.t8("Print"), id="print_dialog_print_button") %]
6
 [% L.button_tag("\$('#print_dialog').dialog('close');", LxERP.t8("Abort"), id="print_dialog_abort_button") %]
7
</p>
8
 [% L.button_tag("\$('#print_dialog').dialog('close');", LxERP.t8("Abort"), id="print_dialog_abort_button", class="neutral") %]
9
</div>
templates/webpages/common/_send_email_dialog.html
1
[%- USE HTML %][%- USE LxERP -%][%- USE L -%][%- USE P -%]
2
[%- SET have_files = 0 %]
1
[% USE HTML %]
2
[% USE LxERP %]
3
[% USE L %]
4
[% USE P %]
5
[% SET have_files = 0 %]
3 6

  
4 7
[% BLOCK attach_file_list %]
5 8
  [% IF files.as_list.size %]
6
   [% SET have_files = 1;
7
      FOREACH file = files.as_list %]
8
    <tr>
9
     <th align="right" nowrap>
10
      [% IF loop.first %]
11
       [% label %]
12
      [% END %]
13
     </th>
14
     <td>
15
      [% IF checked %]
16
        [% P.checkbox_tag("email_form.attach_file_ids[]", label=file.db_file.file_name, value=file.db_file.id, checked="1") %]
17
      [% ELSE %]
18
        [% P.checkbox_tag("email_form.attach_file_ids[]", label=file.db_file.file_name, value=file.db_file.id, checked="0") %]
9
    <table class="tbl-horizontal">
10
      <tbody>
11
      [% SET have_files = 1 ;
12
        FOREACH file = files.as_list %]
13
        <tr>
14
         <th>[% IF loop.first %][% label %][% END %]</th>
15
         <td>[% P.checkbox_tag("email_form.attach_file_ids[]", label=file.db_file.file_name, value=file.db_file.id, checked="1") %]</td>
16
        </tr>
19 17
      [% END %]
20
     </td>
21
    </tr>
22
   [% END %]
18
      </tbody>
19
    </table>
23 20
  [% END %]
24 21
[% END %]
25 22

  
26
<table>
27
 <tbody>
28
  <tr>
29
   <th align="right" nowrap>
30
    [% IF is_invoice_mail  %]
31
      [% LxERP.t8("Invoice to:") %]
32
    [% ELSE %]
33
      [% LxERP.t8("Recipients") %]
34
    [% END %]
35
   </th>
36
   <td>
37
    [% L.input_tag("email_form.to", email_form.to, size="80",readonly=is_invoice_mail ) %]
38
    <span class="interactive cursor-pointer"        onclick="$('[data-toggle-recipients=1]').toggle()" data-toggle-recipients="1">[+]</span>
39
    <span class="interactive cursor-pointer hidden" onclick="$('[data-toggle-recipients=1]').toggle()" data-toggle-recipients="1">[-]</span>
40
   </td>
41
  </tr>
42

  
43
  <tr class="hidden" data-toggle-recipients="1">
44
   <th align="right" nowrap>[% LxERP.t8("Cc") %]</th>
45
   <td>[% L.input_tag("email_form.cc", email_form.cc, size="80") %]</td>
46
  </tr>
47

  
48
 [%- IF show_bcc %]
49
  <tr class="hidden" data-toggle-recipients="1">
50
   <th align="right" nowrap>[% LxERP.t8("Bcc") %]</th>
51
   <td>[% L.input_tag("email_form.bcc", email_form.bcc, size="80") %]</td>
52
  </tr>
53
 [%- END %]
54

  
55
  <tr>
56
   <th align="right" nowrap>[% LxERP.t8("Subject") %]</th>
57
   <td>[% L.input_tag("email_form.subject", email_form.subject, size="80") %]</td>
58
  </tr>
59

  
60
  <tr valign="top">
61
   <th align="right" nowrap>[% LxERP.t8("Message") %]
62
    <sup> [% L.link("generictranslations.pl?action=edit_email_strings", "1)", title=LxERP.t8('Tired of copying always nice phrases for this message? Click here to use the new preset message option!'), target="_blank") %]</sup>
63
  </th>
64
   <td>[% L.textarea_tag("email_form.message", email_form.message, rows="15" cols="80" wrap="soft") %]</td>
65
  </tr>
66 23

  
67
[% IF INSTANCE_CONF.get_doc_storage %]
68
  <tr>
69
   <th align="right" nowrap>[% LxERP.t8("Send printout of record") %]</th>
70
   <td>
71
    [% SET no_file_label = have_files ? LxERP.t8("Don't include a printout of the record with the email, only selected files") : LxERP.t8("Don't include a printout of the record with the email") ;
72
           options       = [
73
             [ "normal",   LxERP.t8("Create and send a new printout for this record") ],
74
             [ "old_file", LxERP.t8("Send the last printout created for this record") ],
75
             [ "no_file",  no_file_label ],
76
           ] ;
77
       L.select_tag("email_form.attachment_policy", options, onchange="kivi.SalesPurchase.activate_send_email_actions_regarding_printout()") %]
78
   </td>
79
  </tr>
80
[% END %]
81

  
82
  <tr>
83
   <th align="right" nowrap>
84
[% IF !INSTANCE_CONF.get_doc_storage %]
85
    [% LxERP.t8("Attachment name") %]
86
[% END %]
87
   </th>
88
   <td>[% L.input_tag("email_form.attachment_filename", email_form.attachment_filename, size="80") %]</td>
89
  </tr>
90

  
91
[% IF INSTANCE_CONF.get_doc_storage %]
92
  [% PROCESS attach_file_list
93
             files = FILES.files
94
             checked = INSTANCE_CONF.get_email_attachment_record_files_checked
95
             label = LxERP.t8("Record's files") %]
96

  
97
  [% PROCESS attach_file_list
98
             files = FILES.vc_files
99
             checked = INSTANCE_CONF.get_email_attachment_vc_files_checked
100
             label = is_customer ? LxERP.t8("Files from customer") : LxERP.t8("Files from vendor") %]
101

  
102
  [% PROCESS attach_file_list
103
             files = FILES.part_files
104
             checked = INSTANCE_CONF.get_email_attachment_part_files_checked
105
             label = LxERP.t8("Files from parts") %]
106
[% END %]
107
 </tbody>
24
<table class="tbl-horizontal">
25
  <tbody>
26
    <tr>
27
      <th>
28
        [% IF is_invoice_mail  %]
29
          [% LxERP.t8("Invoice to:") %]
30
        [% ELSE %]
31
          [% LxERP.t8("Recipients") %]
32
        [% END %]
33
        <span class="interactive cursor-pointer" onclick="$('[data-toggle-recipients=1]').toggle()" data-toggle-recipients="1">[+]</span>
34
        <span class="interactive cursor-pointer hidden" onclick="$('[data-toggle-recipients=1]').toggle()" data-toggle-recipients="1">[-]</span>
35
      </th>
36
      <td>
37
        [% L.input_tag("email_form.to", email_form.to, class="wi-wide", size="50", readonly=is_invoice_mail) %]
38
      </td>
39
    </tr>
40
    <tr class="hidden" data-toggle-recipients="1">
41
      <th>[% LxERP.t8("Cc") %]</th>
42
      <td>[% L.input_tag("email_form.cc", email_form.cc, class="wi-wide", size="50") %]</td>
43
    </tr>
44
    [% IF show_bcc %]
45
      <tr class="hidden" data-toggle-recipients="1">
46
      <th>[% LxERP.t8("Bcc") %]</th>
47
      <td>[% L.input_tag("email_form.bcc", email_form.bcc, class="wi-wide", size="50") %]</td>
48
    </tr>
49
    [% END %]
50
    <tr>
51
      <th>[% LxERP.t8("Subject") %]</th>
52
      <td>[% L.input_tag("email_form.subject", email_form.subject, class="wi-wide", size="50") %]</td>
53
    </tr>
54
    <tr>
55
      <th>[% LxERP.t8("Message") %] <sup> [% L.link("generictranslations.pl?action=edit_email_strings", "1)", title=LxERP.t8('Tired of copying always nice phrases for this message? Click here to use the new preset message option!'), target="_blank") %]</sup> </th>
56
      <td>[% L.textarea_tag("email_form.message", email_form.message, rows="12" cols="50" wrap="soft", class="wi-wide") %]</td>
57
    </tr>
58
    [% IF INSTANCE_CONF.get_doc_storage %]
59
      <tr>
60
      <th>[% LxERP.t8("Send printout of record") %]</th>
61
      <td>
62
        [% SET no_file_label = have_files ? LxERP.t8("Don't include a printout of the record with the email, only selected files") : LxERP.t8("Don't include a printout of the record with the email") ; options = [ [ "normal", LxERP.t8("Create and send a new printout for this record") ], [ "old_file", LxERP.t8("Send the last printout created for this record") ], [ "no_file", no_file_label ], ] ; L.select_tag("email_form.attachment_policy", options, onchange="kivi.SalesPurchase.activate_send_email_actions_regarding_printout()",class="wi-wide",size="50") %] </td>
63
    </tr>
64
    [% END %]
65
    <tr>
66
      <th>[% IF !INSTANCE_CONF.get_doc_storage %] [% LxERP.t8("Attachment name") %] [% END %] </th>
67
      <td>[% L.input_tag("email_form.attachment_filename", email_form.attachment_filename, size="50") %]</td>
68
    </tr>
69
    [% IF INSTANCE_CONF.get_doc_storage %]
70
      [% PROCESS attach_file_list files = FILES.files label = LxERP.t8("Record's files") %]
71
      [% PROCESS attach_file_list files = FILES.vc_files label = is_customer ? LxERP.t8("Files from customer") : LxERP.t8("Files from vendor") %]
72
      [% PROCESS attach_file_list files = FILES.part_files label = LxERP.t8("Files from parts") %]
73
    [% END %]
74
  </tbody>
108 75
</table>
109 76

  
77

  
110 78
<div id="email_form_print_options"></div>
111 79

  
112
<p>
113
 [% L.button_tag(email_form.js_send_function, LxERP.t8("Send email")) %]
114
 [% L.button_tag("\$('#send_email_dialog').dialog('close');", LxERP.t8("Abort")) %]
115
</p>
80
<div class="buttons">
81
  [% L.button_tag(email_form.js_send_function, LxERP.t8("Send email")) %]
82
  [% L.button_tag("\$('#send_email_dialog').dialog('close');", LxERP.t8("Abort"), class="button neutral") %]
83
</div>
templates/webpages/common/_ship_to_dialog.html
1
[% USE HTML %][% USE L %][% USE LxERP %][%- USE JavaScript -%]
1
[% USE HTML %]
2
[% USE L %]
3
[% USE LxERP %]
4
[% USE JavaScript %]
2 5

  
3 6
<script type="text/javascript">
4 7
  $(function() {
......
44 47
</script>
45 48

  
46 49
[% select_options = [ [ 0, LxERP.t8("Billing Address") ] ] ;
47
   FOREACH shipto = vc_obj.shipto ;
48
     tmpcity  = shipto.shiptozipcode _ ' ' _ shipto.shiptocity ;
49
     tmptitle = [ shipto.shiptoname, shipto.shiptostreet, tmpcity ] ;
50
     CALL select_options.import([ [ loop.count, tmptitle.grep('\S').join("; ") ] ]) ;
51
   END ;
52
   '' %]
50
    FOREACH shipto = vc_obj.shipto ;
51
      tmpcity  = shipto.shiptozipcode _ ' ' _ shipto.shiptocity ;
52
      tmptitle = [ shipto.shiptoname, shipto.shiptostreet, tmpcity ] ;
53
      CALL select_options.import([ [ loop.count, tmptitle.grep('\S').join("; ") ] ]) ;
54
    END ;
55
   ''
56
%]
57
<form action="#" name="fake-shipto-dialog" id="fake-shipto-dialog">
53 58

  
54
<p>
55
 [% LxERP.t8("Copy address from master data") %]:
56
 [% L.select_tag("", select_options, id="shipto_to_copy", style="width: 300px") %]
57
 [% L.button_tag("kivi.SalesPurchase.copy_shipto_address()", LxERP.t8("Copy")) %]
58
</p>
59
<div class="select-item control-panel">
60
  [% LxERP.t8("Copy address from master data") %]:
61
  [% L.select_tag("", select_options, id="shipto_to_copy", class="wi-normal") %]
62
  [% L.button_tag("kivi.SalesPurchase.copy_shipto_address()", LxERP.t8("Copy"), type="button", class="button neutral") %]
63
</div>
59 64

  
60
<table>
61
 <tr class="listheading">
62
  <th></th>
63
  <th>[% LxERP.t8('Billing Address') %]</th>
64
  <th>[% LxERP.t8('Shipping Address') %]</th>
65
 </tr>
66
 <tr height="5"></tr>
67
 <tr>
68
  <th align="right" nowrap>[%- IF vc == "customer" %][%- LxERP.t8('Customer Number') %][%- ELSE %][%- LxERP.t8('Vendor Number') %][%- END %]</th>
69
  <td>[%- IF vc == "customer" %][%- HTML.escape(vc_obj.customernumber) %][%- ELSE %][%- HTML.escape(vc_obj.vendornumber) %][%- END %]</td>
70
 </tr>
71
 <tr>
72
  <th align="right" nowrap>[% LxERP.t8('Company Name') %]</th>
73
  <td>[% HTML.escape(vc_obj.name) %]</td>
74
  <td>[% L.input_tag("shiptoname", shiptoname, "size", "35") %]</td>
75
 </tr>
76
 <tr>
77
  <th align="right" nowrap>[% LxERP.t8('Department') %]</th>
78
  <td>[% HTML.escape(vc_obj.department_1) %]</td>
79
  <td>[% L.input_tag("shiptodepartment_1", shiptodepartment_1, "size", "35") %]</td>
80
 </tr>
81
 <tr>
82
  <th align="right" nowrap>&nbsp;</th>
83
  <td>[% HTML.escape(vc_obj.department_2) %]</td>
84
  <td>[% L.input_tag("shiptodepartment_2", shiptodepartment_2, "size", "35") %]</td>
85
 </tr>
86
 <tr>
87
  <th align="right" nowrap>[% LxERP.t8('Street') %]</th>
88
  <td>[% HTML.escape(vc_obj.street) %]</td>
89
  <td>[% L.input_tag("shiptostreet", shiptostreet, "size", "35") %]</td>
90
 </tr>
91
 <tr>
92
  <th align="right" nowrap>[% LxERP.t8('Zipcode') %]</th>
93
  <td>[% HTML.escape(vc_obj.zipcode) %]</td>
94
  <td>[% L.input_tag("shiptozipcode", shiptozipcode, "size", "35") %]</td>
95
 </tr>
96
 <tr>
97
  <th align="right" nowrap>[% LxERP.t8('City') %]</th>
98
  <td>[% HTML.escape(vc_obj.city) %]</td>
99
  <td>[% L.input_tag("shiptocity", shiptocity, "size", "35") %]</td>
100
 </tr>
101
 <tr>
102
  <th align="right" nowrap>[% LxERP.t8('Country') %]</th>
103
  <td>[% HTML.escape(vc_obj.country) %]</td>
104
  <td>[% L.input_tag("shiptocountry", shiptocountry, "size", "35") %]</td>
105
 </tr>
106
 <tr>
107
  <th align="right" nowrap>[% LxERP.t8('GLN') %]</th>
108
  <td>[% HTML.escape(vc_obj.gln) %]</td>
109
  <td>[% L.input_tag("shiptogln", shiptogln, "size", "35") %]</td>
110
 </tr>
111
 <tr>
112
  <th align="right" nowrap>[% LxERP.t8('Contact') %]</th>
113
  <td>[% HTML.escape(vc_obj.contact) %]</td>
114
  <td>[% L.input_tag("shiptocontact", shiptocontact, "size", "35") %]</td>
115
 </tr>
116
 <tr>
117
  <th align="right" nowrap>[% LxERP.t8('Gender') %]</th>
118
  <td></td>
119
  <td>
120
   [% L.select_tag('shiptocp_gender', [ [ 'm', LxERP.t8('male') ], [ 'f', LxERP.t8('female') ] ], 'default' = shiptocp_gender) %]
121
  </td>
122
 </tr>
123
 <tr>
124
  <th align="right" nowrap>[% LxERP.t8('Phone') %]</th>
125
  <td>[% HTML.escape(vc_obj.phone) %]</td>
126
  <td>[% L.input_tag("shiptophone", shiptophone, "size", "35") %]</td>
127
 </tr>
128
 <tr>
129
  <th align="right" nowrap>[% LxERP.t8('Fax') %]</th>
130
  <td>[% HTML.escape(vc_obj.fax) %]</td>
131
  <td>[% L.input_tag("shiptofax", shiptofax, "size", "35") %]</td>
132
 </tr>
133
 <tr>
134
  <th align="right" nowrap>[% LxERP.t8('E-mail') %]</th>
135
  <td>[% HTML.escape(vc_obj.email) %]</td>
136
  <td>[% L.input_tag("shiptoemail", shiptoemail, "size", "35") %]</td>
137
 </tr>
138
[% FOREACH var = cvars %]
139
 <tr valign="top">
140
  <th align="right" nowrap>[% HTML.escape(var.config.description) %]</th>
141
  <td></td>
142
  <td>[% INCLUDE 'common/render_cvar_input.html' cvar_name_prefix='shiptocvar_' %]</td>
143
 </tr>
144
[% END %]
65
<table class="tbl-horizontal checkered wi-moderate">
66
  <thead>
67
    <tr>
68
      <td></td>
69
      <th>[% LxERP.t8('Billing Address') %]</th>
70
      <th>[% LxERP.t8('Shipping Address') %]</th>
71
    </tr>
72
  </thead>
73
   <tbody>
74
   <tr>
75
    <th>[% IF vc == "customer" %][% LxERP.t8('Customer Number') %][% ELSE %][% LxERP.t8('Vendor Number') %][% END %]</th>
76
    <td>[% IF vc == "customer" %][% HTML.escape(vc_obj.customernumber) %][% ELSE %][% HTML.escape(vc_obj.vendornumber) %][% END %]</td>
77
    <td></td>
78
   </tr>
79
   <tr>
80
    <th>[% LxERP.t8('Company Name') %]</th>
81
    <td>[% HTML.escape(vc_obj.name) %]</td>
82
    <td>[% L.input_tag("shiptoname", shiptoname, "size", "35", class="wi-normal") %]</td>
83
   </tr>
84
   <tr>
85
    <th>[% LxERP.t8('Department') %]</th>
86
    <td>[% HTML.escape(vc_obj.department_1) %]</td>
87
    <td>[% L.input_tag("shiptodepartment_1", shiptodepartment_1, "size", "35") %]</td>
88
   </tr>
89
   <tr>
90
    <th>[% LxERP.t8('Department') %] 2</th>
91
    <td>[% HTML.escape(vc_obj.department_2) %]</td>
92
    <td>[% L.input_tag("shiptodepartment_2", shiptodepartment_2, "size", "35") %]</td>
93
   </tr>
94
   <tr>
95
    <th>[% LxERP.t8('Street') %]</th>
96
    <td>[% HTML.escape(vc_obj.street) %]</td>
97
    <td>[% L.input_tag("shiptostreet", shiptostreet, "size", "35") %]</td>
98
   </tr>
99
   <tr>
100
    <th>[% LxERP.t8('Zipcode') %]</th>
101
    <td>[% HTML.escape(vc_obj.zipcode) %]</td>
102
    <td>[% L.input_tag("shiptozipcode", shiptozipcode, "size", "35") %]</td>
103
   </tr>
104
   <tr>
105
    <th>[% LxERP.t8('City') %]</th>
106
    <td>[% HTML.escape(vc_obj.city) %]</td>
107
    <td>[% L.input_tag("shiptocity", shiptocity, "size", "35") %]</td>
108
   </tr>
109
   <tr>
110
    <th>[% LxERP.t8('Country') %]</th>
111
    <td>[% HTML.escape(vc_obj.country) %]</td>
112
    <td>[% L.input_tag("shiptocountry", shiptocountry, "size", "35") %]</td>
113
   </tr>
114
   <tr>
115
    <th>[% LxERP.t8('GLN') %]</th>
116
    <td>[% HTML.escape(vc_obj.gln) %]</td>
117
    <td>[% L.input_tag("shiptogln", shiptogln, "size", "35") %]</td>
118
   </tr>
119
   <tr>
120
    <th>[% LxERP.t8('Contact') %]</th>
121
    <td>[% HTML.escape(vc_obj.contact) %]</td>
122
    <td>[% L.input_tag("shiptocontact", shiptocontact, "size", "35") %]</td>
123
   </tr>
124
   <tr>
125
    <th>[% LxERP.t8('Gender') %]</th>
126
    <td></td>
127
    <td>
128
     [% L.select_tag('shiptocp_gender', [ [ 'm', LxERP.t8('male') ], [ 'f', LxERP.t8('female') ] ], 'default' = shiptocp_gender) %]
129
    </td>
130
   </tr>
131
   <tr>
132
    <th>[% LxERP.t8('Phone') %]</th>
133
    <td>[% HTML.escape(vc_obj.phone) %]</td>
134
    <td>[% L.input_tag("shiptophone", shiptophone, "size", "35") %]</td>
135
   </tr>
136
   <tr>
137
    <th>[% LxERP.t8('Fax') %]</th>
138
    <td>[% HTML.escape(vc_obj.fax) %]</td>
139
    <td>[% L.input_tag("shiptofax", shiptofax, "size", "35") %]</td>
140
   </tr>
141
   <tr>
142
    <th>[% LxERP.t8('E-mail') %]</th>
143
    <td>[% HTML.escape(vc_obj.email) %]</td>
144
    <td>[% L.input_tag("shiptoemail", shiptoemail, "size", "35") %]</td>
145
   </tr>
146
  [% FOREACH var = cvars %]
147
   <tr>
148
    <th>[% HTML.escape(var.config.description) %]</th>
149
    <td></td>
150
    <td>[% INCLUDE 'common/render_cvar_input.html' cvar_name_prefix='shiptocvar_' %]</td>
151
   </tr>
152
  [% END %]
153
  </tbody>
145 154
</table>
146 155

  
147
<p>
156
<div class="buttons">
148 157
 [% L.button_tag("kivi.SalesPurchase.submit_custom_shipto()", LxERP.t8("Apply")) %]
149
 [% L.button_tag("kivi.SalesPurchase.reset_shipto_fields()", LxERP.t8("Reset")) %]
150
 [% L.button_tag("kivi.SalesPurchase.clear_shipto_fields()", LxERP.t8("Clear fields")) %]
151
 [% L.button_tag("\$('#shipto_dialog').dialog('close');", LxERP.t8("Abort")) %]
152
</p>
158
 [% L.button_tag("kivi.SalesPurchase.reset_shipto_fields()", LxERP.t8("Reset"), class="neutral") %]
159
 [% L.button_tag("kivi.SalesPurchase.clear_shipto_fields()", LxERP.t8("Clear fields"), class="neutral") %]
160
 [% L.button_tag("\$('#shipto_dialog').dialog('close');", LxERP.t8("Abort"), class="neutral") %]
161
</div>
162
</form>
templates/webpages/common/flash.html
1
[%- USE HTML -%][%- USE LxERP %][%- USE T8 %]
2
[%- BLOCK output %]
3
 <div id="flash_[% type %]" class="flash_message_[% type %]"[% IF !messages || !messages.size %] style="display: none"[% END %]>
4
  <a href='#' style='float:right'
5
     onclick='$("#flash_[% type %]_content").empty();$("#flash_[% type %]_detail").empty();$("#flash_[% type %]").hide()'>
6
     <img src='image/close.png' border='0' alt='[% 'Close Flash' | $T8 %]'></a>
7
  <span class="flash_title">[%- title %]:</span>
8
  <span id="flash_[% type %]_content">
9
   [% FOREACH message = messages %]
10
    [%- HTML.escape(message) %]
11
    [%- UNLESS loop.last %]<br>[% END %]
12
   [%- END %]
1
[% USE HTML %]
2
[% USE LxERP %]
3
[% USE T8 %]
4

  
5
[% BLOCK output %]
6
<div id="flash_[% type %]" class="flash_message flash_message_[% type %]" [% IF !messages || !messages.size %] style="display: none" [% END %]>
7
<div class="icon-container">
8
  <a href="#" onclick='$("#flash_[% type %]_content").empty();$("#flash_[% type %]_detail").empty();$("#flash_[% type %]").hide()' class="icon-close"> &#10005;</a>
9
  <span id="flash_[% type %]_disp" class="display" style="display: none">
10
    <a href="#" onclick='$("#flash_detail_[% type %]").toggle();' class="button"> [% 'Details' | $T8 %] </a>
13 11
  </span>
14
  <span id="flash_[% type %]_disp" style="display: none">
15
  <a href='#' style='float:left' onclick='$("#flash_detail_[% type %]").toggle();'>
16
     [[% 'Details' | $T8 %]]</a>&nbsp;&nbsp;</span>
17
  <div id="flash_detail_[% type %]" style="display: none">
18
    <br>
19
    <span id="flash_[% type %]_detail"></span><br>
20
    <a href='#' style='float:left'
21
      onclick='$("#flash_detail_[% type %]").hide()'>
22
      <img src='image/close.png' border='0' alt='[% 'Close Details' | $T8 %]'></a><br>
23
  </div>
24
 </div>
25
[%- END %]
26
[%- PROCESS output title=LxERP.t8('Error')       type='error'   messages = FLASH.error %]
27
[%- PROCESS output title=LxERP.t8('Warning')     type='warning' messages = FLASH.warning %]
28
[%- PROCESS output title=LxERP.t8('Information') type='info'    messages = FLASH.info %]
29
[%- PROCESS output title=LxERP.t8('Ok')          type='ok'      messages = FLASH.ok %]
12
</div>
13
<div class="message-container">
14
  <span class="flash_title">[% title %]:</span>
15
  <div class="flash_notification">
16
    <span id="flash_[% type %]_content" class="content">
17
      [% FOREACH message = messages %] [% HTML.escape(message) %] [% UNLESS loop.last %]<br>[% END %] [% END %]
18
    </span>
19
    <div id="flash_detail_[% type %]" class="detail" style="display: none">
20
      <span id="flash_[% type %]_detail"></span>
21
      <a href="#" style="float:left" onclick='$("#flash_detail_[% type %]").hide()' class="icon-close">&#10005;</a>
22
    </div>
23
  </div><!-- /.flash_notification -->
24
</div>
25
</div>
26
[% END #BLOCK output %]
27

  
28
[% PROCESS output title=LxERP.t8('Error') type='error' messages = FLASH.error %]
29
[% PROCESS output title=LxERP.t8('Warning') type='warning' messages = FLASH.warning %]
30
[% PROCESS output title=LxERP.t8('Information') type='info' messages = FLASH.info %]
31
[% PROCESS output title=LxERP.t8('Ok') type='ok' messages = FLASH.ok %]
templates/webpages/common/paginate.html
1
[%- USE T8 %]
2
[%- MACRO build_url BLOCK %]
3
 [%- IF base_url %]
4
  [%- base_url %]&page=[% page %]
5
 [%- ELSE %]
1
[% USE T8 %]
2
[% MACRO build_url BLOCK %]
3
 [% IF base_url %]
4
  [% base_url %]&page=[% page %]
5
 [% ELSE %]
6 6
  [% url_maker('page' => page) %]
7
 [%- END %]
8
[%- END %]
9
[%- IF pages.max > 1 %]
10
<div class='paginate'>
11
[%- IF pages.page > 1 %]<a class='paginate-link paginate-prev' href='[% build_url(page=pages.page - 1) %]'>&laquo; [% 'prev' | $T8 %]</a> [% ELSE %]<b>&laquo;</b> [% END %]
12
[%- FOR p = pages.common %]
13
  [%- NEXT UNLESS p.visible %]
14
  [%- IF p.active %]<a class='paginate-link paginate-page' href="[% build_url(page=p.page) %]">[% p.page %]</a> [% ELSE %]<b>[% p.page %]</b> [%- END %]
15
[%- END %]
16
[%- IF pages.page < pages.max %]<a class='paginate-link paginate-next' href='[% build_url(page=pages.page + 1) %]'>[% 'next' | $T8 %] &raquo;</a>[% ELSE %]<b>&raquo;</b>[%- END %]
7
 [% END %]
8
[% END %]
9

  
10
[% IF pages.max > 1 %]
11
<div class="paginate control-panel">
12
[% IF pages.page > 1 %]
13
  <a class="paginate-link paginate-prev" href="[% build_url(page=pages.page - 1) %]" title="[% 'prev' | $T8 %]"></a> [% ELSE %]<span class="paginate-prev"></span> [% END %]
14
  [% FOR p = pages.common %]
15
    [% NEXT UNLESS p.visible %]
16
    [% IF p.active %]
17
      <a class="paginate-link paginate-page" href="[% build_url(page=p.page) %]">[% p.page %]</a>
18
    [% ELSE %]
19
      <span class="paginate-page">[% p.page %]</span>
20
    [% END %]
21
  [% END %]
22
  [% IF pages.page < pages.max %]
23
    <a class="paginate-link paginate-next" href="[% build_url(page=pages.page + 1) %]" title="[% 'next' | $T8 %]"></a>
24
  [% ELSE %]
25
    <span class="paginate-next"></span>
26
  [% END %]
17 27
</div>
18
[%- END %]
19
[%- IF target %]
20
<script type='text/javascript'>
28
[% END %]
29

  
30
[% IF target %]
31
<script type="text/javascript">
21 32
  var target   = '[% target %]';
22 33
  $(function(){
23 34
    $('.paginate-link').click(function(event){
......
33 44
    });
34 45
  });
35 46
</script>
36
[%- END %]
47
[% END %]
templates/webpages/common/render_cvar_filter_input.html
1
[%- USE HTML -%][%- USE L -%][%- USE LxERP -%][%- USE T8 -%][%- USE P -%]
2
[%- SET id__    = cvar_cfg.id
1
[% USE HTML %]
2
[% USE L %]
3
[% USE LxERP %]
4
[% USE T8 %]
5
[% USE P %]
6

  
7
[% SET id__    = cvar_cfg.id
3 8
        name__  = 'filter.cvar.' _ id__
4 9
        value__ = filter.cvar.$id__ %]
5
[%- IF cvar_cfg.type == 'bool' %]
6
 [%- L.select_tag(name__, [ '', [ 1, LxERP.t8('Yes') ], [ 0, LxERP.t8('No') ] ], default=value__, class=cvar_class) %]
10
[% IF cvar_cfg.type == 'bool' %]
11
 [% L.select_tag(name__, [ '', [ 1, LxERP.t8('Yes') ], [ 0, LxERP.t8('No') ] ], default=value__, class=cvar_class) %]
7 12

  
8
[%- ELSIF cvar_cfg.type == 'number' %]
13
[% ELSIF cvar_cfg.type == 'number' %]
9 14
 [% L.select_tag(name__ _ '::', [ [ 'eq', '==' ], [ 'ne', '=/=' ], [ 'gt', '>' ], [ 'ge', '>=' ], [ 'lt', '<' ], [ 'le', '<=' ] ], default=filter.cvar.item(cvar_cfg.id _ '__')) %]
10 15
 [% L.input_tag(name__, value__, class=cvar_class) %]
11 16

  
12
[%- ELSIF cvar_cfg.type == 'date' %]
17
[% ELSIF cvar_cfg.type == 'date' %]
13 18
 [% L.select_tag(name__ _ '::', [ [ 'eq', '==' ], [ 'ne', '=/=' ], [ 'gt', '>' ], [ 'ge', '>=' ], [ 'lt', '<' ], [ 'le', '<=' ] ], default=filter.cvar.item(cvar_cfg.id _ '__')) %]
14 19
 [% L.date_tag(name__, value__, class=cvar_class) %]
15 20

  
......
19 24
    L.select_tag(name__, options__, default=value__, class=cvar_class) %]
20 25

  
21 26
[% ELSIF cvar_cfg.type == 'customer' %]
22
 [%- P.customer_vendor.picker(name__, value__, type='customer', class=cvar_class) %]
27
 [% P.customer_vendor.picker(name__, value__, type='customer', class=cvar_class) %]
23 28

  
24 29
[% ELSIF cvar_cfg.type == 'vendor' %]
25
 [%- P.customer_vendor.picker(name__, value__, type='vendor', class=cvar_class) %]
30
 [% P.customer_vendor.picker(name__, value__, type='vendor', class=cvar_class) %]
26 31

  
27 32
[% ELSIF cvar_cfg.type == 'part' %]
28
 [%- P.part.picker(name__, value__, class=cvar_class) %]
33
 [% P.part.picker(name__, value__, class=cvar_class) %]
29 34

  
30
[%- ELSE %]
35
[% ELSE %]
31 36
 [% SET value_name__ = id__ _ '_substr__ilike'
32 37
        value__      = filter.cvar.$value_name__ %]
33
 [%- L.input_tag(name__ _ ':substr::ilike', value__, maxlength=cvar_cfg.maxlength, class=cvar_class) %]
38
 [% L.input_tag(name__ _ ':substr::ilike', value__, maxlength=cvar_cfg.maxlength, class=cvar_class) %]
34 39

  
35
[%- END %]
40
[% END %]
templates/webpages/common/render_cvar_input.html
1
[%- USE T8 %]
2
[%- USE HTML %]
3
[%- USE L %]
4
[%- USE P %]
5
[%- USE LxERP %]
1
[% USE T8 %]
2
[% USE HTML %]
3
[% USE L %]
4
[% USE P %]
5
[% USE LxERP %]
6 6

  
7
[%- DEFAULT var_name = HTML.escape(cvar_name_prefix) _ HTML.escape(var.config.name) _ HTML.escape(cvar_name_postfix) %]
7
[% DEFAULT var_name = HTML.escape(cvar_name_prefix) _ HTML.escape(var.config.name) _ HTML.escape(cvar_name_postfix) %]
8 8

  
9
[%- IF ( hide_non_editable && !var.config.is_flag('editable') ) %]
9
[% IF ( hide_non_editable && !var.config.is_flag('editable') ) %]
10 10
  [% L.hidden_tag(var_name, var.value) %]
11
[%- ELSIF ( !var.is_valid ) %]
12
  [%- IF ( show_disabled_message ) %]
11
[% ELSIF ( !var.is_valid ) %]
12
  [% IF ( show_disabled_message ) %]
13 13
    [% 'Element disabled' | $T8 %]
14
  [%- END %]
15
[%- ELSIF ( var.config .type == 'bool' ) %]
14
  [% END %]
15
[% ELSIF ( var.config .type == 'bool' ) %]
16 16
  [% L.checkbox_tag(var_name, checked = var.value) %]
17
[%- ELSIF ( var.config .type == 'textfield' ) %]
17
[% ELSIF ( var.config .type == 'textfield' ) %]
18 18
  [% L.textarea_tag(var_name, var.value, cols = var.config.processed_options.WIDTH, rows = var.config.processed_options.HEIGHT) %]
19
[%- ELSIF ( var.config.type == 'date' ) %]
20
  [% L.date_tag(var_name, var.value) %]
21
[%- ELSIF ( var.config.type == 'timestamp' ) %]
19
[% ELSIF ( var.config.type == 'date' ) %]
20
  [% L.date_tag(var_name, var.value, class='wi-date') %]
21
[% ELSIF ( var.config.type == 'timestamp' ) %]
22 22
  [% L.input_tag(var_name, var.value) %]
23
[%- ELSIF ( var.config.type == 'customer' ) %]
23
[% ELSIF ( var.config.type == 'customer' ) %]
24 24
  [% P.customer_vendor.picker(var_name, var.value, type='customer') %]
25
[%- ELSIF ( var.config.type == 'vendor' ) %]
25
[% ELSIF ( var.config.type == 'vendor' ) %]
26 26
  [% P.customer_vendor.picker(var_name, var.value, type='vendor') %]
27
[%- ELSIF ( var.config.type == 'part' ) %]
28
  [% P.part.picker(var_name, var.value) %]
29
[%- ELSIF ( var.config.type == 'select' ) %]
30
  [% L.select_tag(var_name, var.config.processed_options, default = var.value) %]
31
[%- ELSIF ( var.config.type == 'number' ) %]
32
  [%- L.input_tag(var_name, LxERP.format_amount(var.value, -2)) %]
33
[%- ELSE %]
34
  [% L.input_tag(var_name, var.value, maxlength = var.config.processed_options.MAXLENGTH) %]
35
[%- END %]
27
[% ELSIF ( var.config.type == 'part' ) %]
28
  [% P.part.picker(var_name, var.value, class='wi-wide') %]
29
[% ELSIF ( var.config.type == 'select' ) %]
30
  [% L.select_tag(var_name, var.config.processed_options, default = var.value, class='wi-wide') %]
31
[% ELSIF ( var.config.type == 'number' ) %]
32
  [% L.input_tag(var_name, LxERP.format_amount(var.value, -2), class='wi-small numeric') %]
33
[% ELSE %]
34
  [% L.input_tag(var_name, var.value, maxlength = var.config.processed_options.MAXLENGTH, class='wi-wide') %]
35
[% END %]
templates/webpages/common/show_history.html
1
[%- USE T8 %]
1
[% USE T8 %]
2 2
[% USE HTML %]
3

  
3 4
[% IF SUCCESS %]
4 5

  
5
[% BLOCK column_header %]
6
            <table height="0" width="0" cellpadding="0" cellspacing="0" marginheight="0" marginwidth="0" valign="top" border="0">
7
             [% IF THIS_COLUMN && !THIS_COLUMN_DOWN %]
8
               <tr><td><a title="[% 'order' | $T8 %]" style="background: #ccccff; border: solid 1px #aaaade;">&and;</a></td></tr>
9
             [% ELSE %]
10
               <tr><td><a href="[% callback %]&order=[% column %]--0" title="[% 'order' | $T8 %]" style="border: solid 1px #aaaade;">&and;</a></td></tr>
11
             [% END %]
12
             [% IF THIS_COLUMN &&  THIS_COLUMN_DOWN %]
13
               <tr><td><a title="[% 'order' | $T8 %]" style="background: #ccccff; border: solid 1px #aaaade;">&or;</a></td></tr>
14
             [% ELSE %]
15
               <tr><td><a href="[% callback %]&order=[% column %]--1" title="[% 'order' | $T8 %]" style="border: solid 1px #aaaade;">&or;</a></td></tr>
16
             [% END %]
17
            </table>
18
[% END %]
6
  [% BLOCK column_header %]
7
    <span class="sort_symbol">
8
      [% IF THIS_COLUMN && !THIS_COLUMN_DOWN %]
9
       <a title="[% 'order' | $T8 %]" class="ascending active">&and;</a>
10
      [% ELSE %]
11
       <a href="[% callback %]&order=[% column %]--0" title="[% 'order' | $T8 %]" class="ascending">&and;</a>
12
      [% END %]
13
      [% IF THIS_COLUMN &&  THIS_COLUMN_DOWN %]
14
       <a title="[% 'order' | $T8 %]" class="descending active">&or;</a>
15
      [% ELSE %]
16
       <a href="[% callback %]&order=[% column %]--1" title="[% 'order' | $T8 %]" class="descending">&or;</a>
17
      [% END %]
18
    </span>
19
  [% END %]
19 20

  
20
<table>
21
  <tr class='listheading'>
22
    <th>
23
      <table height="0" width="0" cellpadding="0" cellspacing="0" marginheight="0" marginwidth="0" border="0">
24
        <tr>
25
          <td align="center" valign="middle">
26
           &nbsp;[% 'Time' | $T8 %]&nbsp;
27
          </td>
28
          <td valign="top">
29
           [% PROCESS column_header THIS_COLUMN=ITIME THIS_COLUMN_DOWN=ITIMEBY column='h.itime' %]
30
          </td>
31
        </tr>
32
      </table>
33
    </th>
34
    <th>
35
      <table height="0" width="0" cellpadding="0" cellspacing="0" marginheight="0" marginwidth="0" border="0">
36
        <tr>
37
          <td align="center" valign="middle">
38
            &nbsp;[% 'Employee' | $T8 %]&nbsp;
39
          </td>
40
          <td valign="top">
41
           [% PROCESS column_header THIS_COLUMN=NAME THIS_COLUMN_DOWN=NAMEBY column='emp.name' %]
42
          </td>
43
        </tr>
44
      </table>
45
    </th>
46
    <th>
47
      <table>
21
  <table class="tbl-list">
22
    <thead>
23
      <tr>
24
        <th><span class="sort">[% 'Time' | $T8 %]</span>[% PROCESS column_header THIS_COLUMN=ITIME THIS_COLUMN_DOWN=ITIMEBY column='h.itime' %]</th>
25
        <th><span class="sort">[% 'Employee' | $T8 %]</span>[% PROCESS column_header THIS_COLUMN=NAME THIS_COLUMN_DOWN=NAMEBY column='emp.name' %]</th>
26
        <th><span class="sort">[% 'Action' | $T8 %]</span></th>
27
        <th><span class="sort">[% 'Addition' | $T8 %]</span></th>
28
        <th><span class="sort">[% 'ID number' | $T8 %]</span>[% PROCESS column_header THIS_COLUMN=TRANS_ID THIS_COLUMN_DOWN=TRANS_IDBY column='h.trans_id' %]</th>
29
        <th><span class="sort">[% 'Record number' | $T8 %]</span>[% PROCESS column_header THIS_COLUMN=SNUMBERS THIS_COLUMN_DOWN=SNUMBERSBY column='h.snumbers' %]</th>
30
      </tr>
31
    </thead>
32
    <tbody>
33
      [% FOREACH row = DATEN %]
48 34
        <tr>
35
          <td>[% HTML.escape(row.itime) %] </td>
36
          <td> [% HTML.escape(row.name) %] </td>
37
          <td> [% HTML.escape(row.addition) %] </td>
38
          <td> [% HTML.escape(row.what_done) %] </td>
39
          <td> [% HTML.escape(row.id) %] </td>
49 40
          <td>
50
            &nbsp;[% 'Action' | $T8 %]&nbsp;
41
            [% IF row.haslink %]
42
              <a href="[% row.haslink %]" target="_blank">[% HTML.escape(row.snumbers) %]</a>
43
            [% ELSE %]
44
              [% HTML.escape(row.snumbers) %]
45
            [% END %]
51 46
          </td>
52 47
        </tr>
53
      </table>
54
    </th>
55
    <th>
56
      <table>
57
        <tr>
58
          <td>
59
            &nbsp;[% 'Addition' | $T8 %]&nbsp;
60
          </td>
61
        </tr>
62
      </table>
63
    </th>
64
    <th>
65
      <table height="0" width="0" cellpadding="0" cellspacing="0" marginheight="0" marginwidth="0" border="0">
66
        <tr>
67
          <td align="center" valign="middle">
68
           &nbsp;[% 'ID number' | $T8 %]&nbsp;
69
          </td>
70
          <td valign="top">
71
            [% PROCESS column_header THIS_COLUMN=TRANS_ID THIS_COLUMN_DOWN=TRANS_IDBY column='h.trans_id' %]
72
          </td>
73
        </tr>
74
      </table>
75
    </th>
76
    <th>
77
      <table height="0" width="0" cellpadding="0" cellspacing="0" marginheight="0" marginwidth="0" border="0">
78
        <tr>
79
          <td align="center" valign="middle">
80
           &nbsp;[% 'Record number' | $T8 %]&nbsp;
81
          </td>
82
          <td valign="top">
83
            [% PROCESS column_header THIS_COLUMN=SNUMBERS THIS_COLUMN_DOWN=SNUMBERSBY column='h.snumbers' %]
84
          </td>
85
        </tr>
86
      </table>
87
    </th>
88
  </tr>
89
  <tbody>
90
[% FOREACH row = DATEN %]
91
  <tr class="listrow[% loop.count % 2 %]">
92
    <td nowrap>
93
      &nbsp;[% HTML.escape(row.itime) %]&nbsp;
94
    </td>
95
    <td nowrap>
96
      &nbsp;[% HTML.escape(row.name) %]&nbsp;
97
    </td>
98
    <td>
99
      &nbsp;[% HTML.escape(row.addition) %]&nbsp;
100
    </td>
101
    <td>
102
      &nbsp;[% HTML.escape(row.what_done) %]&nbsp;
103
    </td>
104
    <td>
105
      &nbsp;[% HTML.escape(row.id) %]&nbsp;
106
    </td>
107
    <td>
108
      &nbsp;
109
      [% IF row.haslink %]
110
      <a href="[% row.haslink %]" target="_blank">[% HTML.escape(row.snumbers) %]</a>
111
      [% ELSE %]
112
      [% HTML.escape(row.snumbers) %]
113 48
      [% END %]
114
      &nbsp;
115
    </td>
116
  </tr>
117
[% END %]
118
</tbody>
119
</table>
49
    </tbody>
50
  </table>
120 51
[% ELSE %]
121
<b>[% 'No search results found!' | $T8 %]</b><br>
52
  <b>[% 'No search results found!' | $T8 %]</b><br>
122 53
[% END %]
123
<p>
124
[% IF NONEWWINDOW %]
125
<input type="button" onclick="javascript:history.back(-1);" value="[% 'back' | $T8 %]">
126
[% ELSE %]
127
<input type="button" onclick="javascript:window.close();" value="[% 'close' | $T8 %]">
128
[% END %]
129
</p>
54

  
55
<div class="buttons">
56
  [% IF NONEWWINDOW %]
57
    <input type="button" onclick="javascript:history.back(-1);" value="[% 'back' | $T8 %]">
58
  [% ELSE %]
59
    <input type="button" onclick="javascript:window.close();" value="[% 'close' | $T8 %]">
60
  [% END %]
61
</div>
templates/webpages/common/show_vc_details.html
1
[%- USE T8 %]
1
[% USE T8 %]
2 2
[% USE HTML %]
3
<h1>[% IF is_customer %][% 'Customer details' | $T8 %][% ELSE %][% 'Vendor details' | $T8 %][% END %] &quot;[% HTML.escape(name) %]&quot;</h1>
4 3

  
5
[% BLOCK jump_block %]
6
[%- IF SHIPTO.size || CONTACTS.size %]
7
 <p>
8
  [% 'Jump to' | $T8 %] <a href="#billing">[% 'Billing Address' | $T8 %]</a>
9
  [%- FOREACH shipto = SHIPTO %]
10
   ,
11
   <a href="#shipping[% loop.count %]">
12
    [% 'Shipping Address' | $T8 %]
13
    &quot;[% HTML.escape(shipto.shiptoname) %]&quot;
14
   </a>
15
  [%- END %]
16
  [%- FOREACH contact = CONTACTS %]
17
   ,
18
   <a href="#contact[% loop.count %]">
19
    [% 'Contact Person' | $T8 %]
20
    &quot;[% HTML.escape(contact.cp_name) %]&quot;
21
   </a>
22
  [%- END %]
23
 </p>
24

  
25
 <hr>
26
[%- END %]
4
<h1>
5
[% IF is_customer %][% 'Customer details' | $T8 %]
6
[% ELSE           %][% 'Vendor details'   | $T8 %]
7
[% END %] &quot;[% HTML.escape(name) %]&quot;
8
</h1>
9

  
10
[% IF SHIPTO.size || CONTACTS.size %]
11
  [% BLOCK jump_block %]
12
      <table class="select-item control-panel float-cells-table jump-to right">
13
        <caption>[% 'Jump to' | $T8 %]</caption>
14
        <tbody>
15
          <tr><td colspan="2"><a href="#billing">[% 'Billing Address' | $T8 %]</a></td></tr>
16
          [% FOREACH shipto = SHIPTO %]
17
            <tr>
18
              <td class="cell"><a href="#shipping[% loop.count %]"> [% 'Shipping Address' | $T8 %]</a></td>
19
              <td><a href="#shipping[% loop.count %]">&quot;[% HTML.escape(shipto.shiptoname) %]&quot;</a></td>
20
            </tr>
21
          [% END %]
22
          [% FOREACH contact = CONTACTS %]
23
            <tr>
24
              <td><a href="#contact[% loop.count %]">[% 'Contact Person' | $T8 %] </a></td>
25
              <td><a href="#contact[% loop.count %]">&quot;[% HTML.escape(contact.cp_name) %]&quot;</a></td>
26
            </tr>
27
          [% END %]
28
        </tbody>
29
      </table>
30
  [% END # BLOCK jump_block %]
27 31
[% END %]
28 32

  
29
 [%- INCLUDE jump_block CONTACTS = CONTACTS, SHIPTO = SHIPTO %]
30

  
31
 <a name="billing"><h1>[% 'Billing Address' | $T8 %]</h1></a>
32

  
33
 <table>
34
  <tr>
35
  [% IF is_customer %]
36
   <td align="right">[% 'Customer Number' | $T8 %]</td>
37
   <td>[% HTML.escape(customernumber) %]</td>
38
  [% ELSE %]
39
   <td align="right">[% 'Vendor Number' | $T8 %]</td>
40
   <td>[% HTML.escape(vendornumber) %]</td>
41
  [% END %]
42
  </tr>
43

  
44
  <tr>
45
   <td align="right">[% 'Company Name' | $T8 %]</td>
46
   <td>[% HTML.escape(name) %]</td>
47
  </tr>
48

  
49
  <tr>
50
   <td align="right">[% 'Department' | $T8 %]</td>
51
   <td>[% HTML.escape(department_1) %][% IF department_2 %][% IF department_1 %]; [% END %][% HTML.escape(department_2) %][% END %]</td>
52
  </tr>
53

  
54
  <tr>
55
   <td align="right">[% 'Street' | $T8 %]</td>
56
   <td>[% HTML.escape(street) %]</td>
57
  </tr>
58

  
59
  <tr>
60
   <td align="right">[% 'Zip, City' | $T8 %]</td>
61
   <td>[% HTML.escape(zipcode) %] [% HTML.escape(city) %]</td>
62
  </tr>
63

  
64
  <tr>
65
   <td align="right">[% 'Country' | $T8 %]</td>
66
   <td>[% HTML.escape(country) %]</td>
67
  </tr>
68

  
69
  <tr>
70
   <td align="right">[% 'GLN' | $T8 %]</td>
71
   <td>[% HTML.escape(gln) %]</td>
72
  </tr>
73

  
74
  <tr>
75
   <td align="right">[% 'Contact Person' | $T8 %]</td>
76
   <td>[% IF greeting %][% HTML.escape(greeting) %] [% END %][% HTML.escape(contact) %]</td>
77
  </tr>
78

  
79
  <tr>
80
   <td align="right">[% 'Phone' | $T8 %]</td>
81
   <td>[% HTML.escape(phone) %]</td>
82
  </tr>
83

  
84
  <tr>
85
   <td align="right">[% 'Fax' | $T8 %]</td>
86
   <td>[% HTML.escape(fax) %]</td>
87
  </tr>
88

  
89
  <tr>
90
   <td align="right">[% 'E-mail' | $T8 %]</td>
91
   <td>[% HTML.escape(email) %]</td>
92
  </tr>
93

  
94
  <tr>
95
   <td align="right">[% 'Homepage' | $T8 %]</td>
96
   <td>[% HTML.escape(homepage) %]</td>
97
  </tr>
98

  
99
  <tr>
100
   <td align="right">[% 'Credit Limit' | $T8 %]</td>
101
   <td>[% HTML.escape(creditlimit) %]</td>
102
  </tr>
103

  
104
  <tr>
105
   <td align="right">[% 'Discount' | $T8 %]</td>
106
   <td>[% HTML.escape(discount_as_percent) %]%</td>
107
  </tr>
108

  
109
  [% IF is_customer %]
110
  <tr>
111
   <td align="right">[% 'Pricegroup' | $T8 %]</td>
112
   <td>[% HTML.escape(pricegroup) %]</td>
113
  </tr>
114
  [% END %]
115

  
116
  <tr>
117
   <td align="right">[% 'Payment Terms' | $T8 %]</td>
118
   <td>[% HTML.escape(payment_terms) %]</td>
119
  </tr>
120

  
121
  <tr>
122
   <td align="right">[% 'Delivery Terms' | $T8 %]</td>
123
   <td>[% HTML.escape(delivery_terms) %]</td>
124
  </tr>
125

  
126
  <tr>
127
   <td align="right">[% 'Tax Number' | $T8 %]</td>
128
   <td>[% HTML.escape(taxnumber) %]</td>
129
  </tr>
130

  
131
  <tr>
132
   <td align="right">[% 'USt-IdNr.' | $T8 %]</td>
133
   <td>[% HTML.escape(ustid) %]</td>
134
  </tr>
135

  
136
  [% IF is_customer %]
137
   <tr>
138
    <td align="right">[% 'KNr. beim Kunden' | $T8 %]</td>
139
    <td>[% HTML.escape(c_vendor_id) %]</td>
140
   </tr>
141
  [% END %]
142

  
143
  <tr>
144
   <td align="right">[% 'Account Number' | $T8 %]</td>
145
   <td>[% HTML.escape(account_number) %]</td>
146
  </tr>
147

  
148
  <tr>
149
   <td align="right">[% 'Bank Code' | $T8 %]</td>
150
   <td>[% HTML.escape(bank_code) %]</td>
151
  </tr>
152

  
153
  <tr>
154
   <td align="right">[% 'Bank' | $T8 %]</td>
155
   <td>[% HTML.escape(bank) %]</td>
156
  </tr>
157

  
158
  <tr>
159
   <td align="right">[% 'IBAN' | $T8 %]</td>
160
   <td>[% HTML.escape(iban) %]</td>
161
  </tr>
162

  
163
  <tr>
164
   <td align="right">[% 'BIC' | $T8 %]</td>
165
   <td>[% HTML.escape(bic) %]</td>
166
  </tr>
167
  <tr>
168
   <td align="right">[% IF is_customer %][% 'Customer type' | $T8 %][% ELSE %][% 'Vendor type' | $T8 %][% END %]</td>
169
   <td>[% HTML.escape(business) %]</td>
170
  </tr>
171

  
172
  <tr>
173
   <td align="right">[% 'Language' | $T8 %]</td>
174
   <td>[% HTML.escape(language) %]</td>
175
  </tr>
176

  
177
  <tr>
178
   <td align="right" valign="top">[% 'Notes' | $T8 %]</td>
179
   <td valign="top">[% HTML.escape(notes) %]</td>
180
  </tr>
181

  
182
 </table>
183

  
184

  
185

  
186

  
187
 [% FOREACH row = SHIPTO %]
188

  
189
  <hr>
190

  
191
  [%- INCLUDE jump_block CONTACTS = CONTACTS, SHIPTO = SHIPTO %]
192

  
193
  <a name="shipping[% loop.count %]"><h1>[% 'Shipping Address' | $T8 %] &quot;[% HTML.escape(row.shiptoname) %]&quot;</h1></a>
194 33

  
195
  <table>
196
   <tr>
197
    <td align="right">[% 'Company Name' | $T8 %]</td>
198
    <td>[% HTML.escape(row.shiptoname) %]</td>
199
   </tr>
200

  
201
   <tr>
202
    <td align="right">[% 'Department' | $T8 %]</td>
203
    <td>[% HTML.escape(row.shiptodepartment_1) %][% IF row.shiptodepartment_2 %][% IF row.shiptodepartment_1 %]; [% END %][% HTML.escape(row.shiptodepartment_2) %][% END %]</td>
204
   </tr>
205

  
206
   <tr>
207
    <td align="right">[% 'Street' | $T8 %]</td>
208
    <td>[% HTML.escape(row.shiptostreet) %]</td>
209
   </tr>
210

  
211
   <tr>
212
    <td align="right">[% 'Zip, City' | $T8 %]</td>
213
    <td>[% HTML.escape(row.shiptozipcode) %] [% HTML.escape(row.shiptocity) %]</td>
214
   </tr>
215

  
216
   <tr>
217
    <td align="right">[% 'Country' | $T8 %]</td>
218
    <td>[% HTML.escape(row.shiptocountry) %]</td>
219
   </tr>
220

  
221
   <tr>
222
    <td align="right">[% 'GLN' | $T8 %]</td>
223
    <td>[% HTML.escape(row.shiptogln) %]</td>
224
   </tr>
225

  
226
   <tr>
227
    <td align="right">[% 'Contact Person' | $T8 %]</td>
228
    <td>[% HTML.escape(row.shiptocontact) %]</td>
229
   </tr>
230

  
231
   <tr>
232
    <td align="right">[% 'Phone' | $T8 %]</td>
233
    <td>[% HTML.escape(row.shiptophone) %]</td>
234
   </tr>
235

  
236
   <tr>
237
    <td align="right">[% 'Fax' | $T8 %]</td>
238
    <td>[% HTML.escape(row.shiptofax) %]</td>
239
   </tr>
240

  
241
   <tr>
242
    <td align="right">[% 'E-mail' | $T8 %]</td>
243
    <td>[% HTML.escape(row.shiptoemail) %]</td>
244
   </tr>
245

  
246
  </table>
247
 [% END %]
248

  
249

  
250

  
251

  
252

  
253

  
254

  
255

  
256

  
257

  
258
 [% FOREACH row = CONTACTS %]
259

  
260
  <hr>
261

  
262
  [%- INCLUDE jump_block CONTACTS = CONTACTS, SHIPTO = SHIPTO %]
263

  
264
  <a name="contact[% loop.count %]"><h1>[% 'Contact Person' | $T8 %] &quot;[% HTML.escape(row.cp_name) %]&quot;</h1></a>
265

  
266
  <table>
267
   <tr>
268
    <td align="right">[% 'Greeting' | $T8 %]</td>
269
    <td>[% HTML.escape(row.cp_greeting) %]</td>
270
   </tr>
271

  
272
   <tr>
273
    <td align="right">[% 'Title' | $T8 %]</td>
274
    <td>[% HTML.escape(row.cp_title) %]</td>
275
   </tr>
276

  
277
   <tr>
278
    <td align="right">[% 'Given Name' | $T8 %]</td>
279
    <td>[% HTML.escape(row.cp_givenname) %]</td>
280
   </tr>
281

  
282
   <tr>
283
    <td align="right">[% 'Name' | $T8 %]</td>
284
    <td>[% HTML.escape(row.cp_name) %]</td>
285
   </tr>
286

  
287
   <tr>
288
    <td align="right">[% 'Department' | $T8 %]</td>
289
    <td>[% HTML.escape(row.cp_abteilung) %]</td>
290
   </tr>
291

  
292
   <tr>
293
    <td align="right">[% 'Phone1' | $T8 %]</td>
294
    <td>[% HTML.escape(row.cp_phone1) %]</td>
295
   </tr>
296

  
297
   <tr>
298
    <td align="right">[% 'Phone2' | $T8 %]</td>
299
    <td>[% HTML.escape(row.cp_phone2) %]</td>
300
   </tr>
301

  
302
   <tr>
303
    <td align="right">[% 'Fax' | $T8 %]</td>
304
    <td>[% HTML.escape(row.cp_fax) %]</td>
305
   </tr>
306

  
307
   <tr>
308
    <td align="right">[% 'Mobile1' | $T8 %]</td>
309
    <td>[% HTML.escape(row.cp_mobile1) %]</td>
310
   </tr>
311

  
312
   <tr>
313
    <td align="right">[% 'Mobile2' | $T8 %]</td>
314
    <td>[% HTML.escape(row.cp_mobile2) %]</td>
315
   </tr>
316

  
317
   <tr>
318
    <td align="right">[% 'Sat. Phone' | $T8 %]</td>
319
    <td>[% HTML.escape(row.cp_satphone) %]</td>
320
   </tr>
321

  
322
   <tr>
323
    <td align="right">[% 'Sat. Fax' | $T8 %]</td>
324
    <td>[% HTML.escape(row.cp_satfax) %]</td>
325
   </tr>
34
<div class="wrapper">
35

  
36
[% INCLUDE jump_block CONTACTS = CONTACTS, SHIPTO = SHIPTO %]
37

  
38
<table class="tbl-horizontal checkered">
39
  <caption><a name="billing">[% 'Billing Address' | $T8 %]</a></caption>
40
  <colgroup><col class="wi-small"><col class="wi-lightwide"></colgroup>
41
  <tbody>
42
    <tr>
43
      [% IF is_customer %]
44
      <th>[% 'Customer Number' | $T8 %]</th>
45
      <td>[% HTML.escape(customernumber) %]</td>
46
      [% ELSE %]
47
      <th>[% 'Vendor Number' | $T8 %]</th>
48
      <td>[% HTML.escape(vendornumber) %]</td>
49
      [% END %]
50
    </tr>
51
    <tr>
52
      <th>[% 'Company Name' | $T8 %]</th>
53
      <td>[% HTML.escape(name) %]</td>
54
    </tr>
55
    <tr>
56
      <th>[% 'Department' | $T8 %]</th>
57
      <td>[% HTML.escape(department_1) %][% IF department_2 %][% IF department_1 %]; [% END %][% HTML.escape(department_2) %][% END %]</td>
58
    </tr>
59
    <tr>
60
      <th>[% 'Street' | $T8 %]</th>
61
      <td>[% HTML.escape(street) %]</td>
62
    </tr>
63
    <tr>
64
      <th>[% 'Zip, City' | $T8 %]</th>
65
      <td>[% HTML.escape(zipcode) %] [% HTML.escape(city) %]</td>
66
    </tr>
67
    <tr>
68
      <th>[% 'Country' | $T8 %]</th>
69
      <td>[% HTML.escape(country) %]</td>
70
    </tr>
71
    <tr>
72
      <th>[% 'GLN' | $T8 %]</th>
73
      <td>[% HTML.escape(gln) %]</td>
74
    </tr>
75
    <tr>
76
      <th>[% 'Contact Person' | $T8 %]</th>
77
      <td>[% IF greeting %][% HTML.escape(greeting) %] [% END %][% HTML.escape(contact) %]</td>
78
    </tr>
79
    <tr>
80
      <th>[% 'Phone' | $T8 %]</th>
81
      <td>[% HTML.escape(phone) %]</td>
82
    </tr>
83
    <tr>
84
      <th>[% 'Fax' | $T8 %]</th>
85
      <td>[% HTML.escape(fax) %]</td>
86
    </tr>
87
    <tr>
88
      <th>[% 'E-mail' | $T8 %]</th>
89
      <td>[% HTML.escape(email) %]</td>
90
    </tr>
91
    <tr>
92
      <th>[% 'Homepage' | $T8 %]</th>
93
      <td>[% HTML.escape(homepage) %]</td>
94
    </tr>
95
    <tr>
96
      <th>[% 'Credit Limit' | $T8 %]</th>
97
      <td>[% HTML.escape(creditlimit) %]</td>
98
    </tr>
99
    <tr>
100
      <th>[% 'Discount' | $T8 %]</th>
101
      <td>[% HTML.escape(discount_as_percent) %]%</td>
102
    </tr>
103
    [% IF is_customer %]
104
    <tr>
105
      <th>[% 'Pricegroup' | $T8 %]</th>
106
      <td>[% HTML.escape(pricegroup) %]</td>
107
    </tr>
108
    [% END %]
109
    <tr>
110
      <th>[% 'Payment Terms' | $T8 %]</th>
111
      <td>[% HTML.escape(payment_terms) %]</td>
112
    </tr>
113
    <tr>
114
      <th>[% 'Delivery Terms' | $T8 %]</th>
115
      <td>[% HTML.escape(delivery_terms) %]</td>
116
    </tr>
117
    <tr>
118
      <th>[% 'Tax Number' | $T8 %]</th>
119
      <td>[% HTML.escape(taxnumber) %]</td>
120
    </tr>
121
    <tr>
122
      <th>[% 'USt-IdNr.' | $T8 %]</th>
123
      <td>[% HTML.escape(ustid) %]</td>
124
    </tr>
125
    [% IF is_customer %]
126
    <tr>
127
      <th>[% 'KNr. beim Kunden' | $T8 %]</th>
128
      <td>[% HTML.escape(c_vendor_id) %]</td>
129
    </tr>
130
    [% END %]
131
    <tr>
132
      <th>[% 'Account Number' | $T8 %]</th>
133
      <td>[% HTML.escape(account_number) %]</td>
134
    </tr>
135
    <tr>
136
      <th>[% 'Bank Code' | $T8 %]</th>
137
      <td>[% HTML.escape(bank_code) %]</td>
138
    </tr>
139
    <tr>
140
      <th>[% 'Bank' | $T8 %]</th>
141
      <td>[% HTML.escape(bank) %]</td>
142
    </tr>
143
    <tr>
144
      <th>[% 'IBAN' | $T8 %]</th>
145
      <td>[% HTML.escape(iban) %]</td>
146
    </tr>
147
    <tr>
148
      <th>[% 'BIC' | $T8 %]</th>
149
      <td>[% HTML.escape(bic) %]</td>
150
    </tr>
151
    <tr>
152
      <th>[% IF is_customer %][% 'Customer type' | $T8 %][% ELSE %][% 'Vendor type' | $T8 %][% END %]</th>
153
      <td>[% HTML.escape(business) %]</td>
154
    </tr>
155
    <tr>
156
      <th>[% 'Language' | $T8 %]</th>
157
      <td>[% HTML.escape(language) %]</td>
158
    </tr>
159
    <tr>
160
      <th>[% 'Notes' | $T8 %]</th>
161
      <td>[% HTML.escape(notes) %]</td>
162
    </tr>
163
  </tbody>
164
</table>
165

  
166
</div><!-- /.wrapper -->
167

  
168

  
169

  
170
[% FOREACH row = SHIPTO %]
171
<div class="wrapper">
172

  
173
[% INCLUDE jump_block CONTACTS = CONTACTS, SHIPTO = SHIPTO %]
174

  
175
<table class="tbl-horizontal checkered">
176
  <caption><a id="shipping[% loop.count %]">[% 'Shipping Address' | $T8 %] &quot;[% HTML.escape(row.shiptoname) %]&quot;</a></caption>
177
  <tbody>
178
    <tr>
179
      <th>[% 'Company Name' | $T8 %]</th>
180
      <td>[% HTML.escape(row.shiptoname) %]</td>
181
    </tr>
182
    <tr>
183
      <th>[% 'Department' | $T8 %]</th>
184
      <td>
185
        [% HTML.escape(row.shiptodepartment_1) %]
186
        [% IF row.shiptodepartment_2 %]
187
          [% IF row.shiptodepartment_1 %]; [% END %]
188
          [% HTML.escape(row.shiptodepartment_2) %]
189
        [% END %]
190
      </td>
191
    </tr>
192
    <tr>
193
      <th>[% 'Street' | $T8 %]</th>
194
      <td>[% HTML.escape(row.shiptostreet) %]</td>
195
    </tr>
196
    <tr>
197
      <th>[% 'Zip, City' | $T8 %]</th>
198
      <td>[% HTML.escape(row.shiptozipcode) %] [% HTML.escape(row.shiptocity) %]</td>
199
    </tr>
200
    <tr>
201
      <th>[% 'Country' | $T8 %]</th>
202
      <td>[% HTML.escape(row.shiptocountry) %]</td>
203
    </tr>
204
    <tr>
205
      <th>[% 'GLN' | $T8 %]</th>
206
      <td>[% HTML.escape(row.shiptogln) %]</td>
207
    </tr>
208
    <tr>
209
      <th>[% 'Contact Person' | $T8 %]</th>
210
      <td>[% HTML.escape(row.shiptocontact) %]</td>
211
    </tr>
212
    <tr>
213
      <th>[% 'Phone' | $T8 %]</th>
214
      <td>[% HTML.escape(row.shiptophone) %]</td>
215
    </tr>
216
    <tr>
217
      <th>[% 'Fax' | $T8 %]</th>
218
      <td>[% HTML.escape(row.shiptofax) %]</td>
219
    </tr>
220
    <tr>
221
      <th>[% 'E-mail' | $T8 %]</th>
222
      <td>[% HTML.escape(row.shiptoemail) %]</td>
223
    </tr>
224
  </tbody>
225
</table>
226

  
227
</div><!-- /.wrapper -->
228
[% END %]
326 229

  
327
   <tr>
328
    <td align="right">[% 'Project' | $T8 %]</td>
329
    <td>[% HTML.escape(row.cp_project) %]</td>
330
   </tr>
331 230

  
332
   <tr>
333
    <td align="right">[% 'E-mail' | $T8 %]</td>
334
    <td>[% HTML.escape(row.cp_email) %]</td>
335
   </tr>
336 231

  
337
   <tr>
338
    <td align="right">[% 'Private Phone' | $T8 %]</td>
339
    <td>[% HTML.escape(row.cp_privatphone) %]</td>
340
   </tr>
341 232

  
342
   <tr>
343
    <td align="right">[% 'Private E-mail' | $T8 %]</td>
344
    <td>[% HTML.escape(row.cp_privatemail) %]</td>
345
   </tr>
346 233

  
347
   <tr>
348
    <td align="right">[% 'Birthday' | $T8 %]</td>
349
    <td>[% HTML.escape(row.cp_birthday) %]</td>
350
   </tr>
234
[% FOREACH row = CONTACTS %]
235
<div class="wrapper">
236

  
237
[% INCLUDE jump_block CONTACTS = CONTACTS, SHIPTO = SHIPTO %]
238

  
239
<table class="tbl-horizontal checkered">
240
  <caption><a id="contact[% loop.count %]">[% 'Contact Person' | $T8 %] &quot;[% HTML.escape(row.cp_name) %]&quot;</a></caption>
241
  <tbody>
242
    <tr>
243
      <th>[% 'Greeting' | $T8 %]</th>
244
      <td>[% HTML.escape(row.cp_greeting) %]</td>
245
    </tr>
246
    <tr>
247
      <th>[% 'Title' | $T8 %]</th>
248
      <td>[% HTML.escape(row.cp_title) %]</td>
249
    </tr>
250
    <tr>
251
      <th>[% 'Given Name' | $T8 %]</th>
252
      <td>[% HTML.escape(row.cp_givenname) %]</td>
253
    </tr>
254
    <tr>
255
      <th>[% 'Name' | $T8 %]</th>
256
      <td>[% HTML.escape(row.cp_name) %]</td>
257
    </tr>
258
    <tr>
259
      <th>[% 'Department' | $T8 %]</th>
260
      <td>[% HTML.escape(row.cp_abteilung) %]</td>
261
    </tr>
262
    <tr>
263
      <th>[% 'Phone1' | $T8 %]</th>
264
      <td>[% HTML.escape(row.cp_phone1) %]</td>
265
    </tr>
266
    <tr>
267
      <th>[% 'Phone2' | $T8 %]</th>
268
      <td>[% HTML.escape(row.cp_phone2) %]</td>
269
    </tr>
270
    <tr>
271
      <th>[% 'Fax' | $T8 %]</th>
272
      <td>[% HTML.escape(row.cp_fax) %]</td>
273
    </tr>
274
    <tr>
275
      <th>[% 'Mobile1' | $T8 %]</th>
276
      <td>[% HTML.escape(row.cp_mobile1) %]</td>
277
    </tr>
278
    <tr>
... Dieser Diff wurde abgeschnitten, weil er die maximale Anzahl anzuzeigender Zeilen überschreitet.

Auch abrufbar als: Unified diff