Revision 8464ada1
Von Hans Peter Schlaepfer vor etwa 4 Jahren hinzugefügt
templates/webpages/customer_vendor/form.html | ||
---|---|---|
18 | 18 |
|
19 | 19 |
[%- SET show_deliveries = ( SELF.cv.id && ((SELF.is_customer && AUTH.assert('sales_all_edit', 1)) || (SELF.is_vendor && AUTH.assert('purchase_all_edit', 1))) ) -%] |
20 | 20 |
<div class="tabwidget" id="customer_vendor_tabs"> |
21 |
<ul> |
|
21 |
<ul class="ui-tabs">
|
|
22 | 22 |
<li><a href="#billing">[% 'Billing Address' | $T8 %]</a></li> |
23 | 23 |
<li><a href="#bank">[% 'Bank account' | $T8 %]</a></li> |
24 | 24 |
<li><a href="#shipto">[% 'Shipping Address' | $T8 %]</a></li> |
templates/webpages/customer_vendor/get_delivery.html | ||
---|---|---|
1 | 1 |
[% USE T8 %] |
2 | 2 |
[% USE HTML %] |
3 | 3 |
[% USE LxERP %] |
4 |
<div id="delivery"> |
|
5 |
<table width="100%"> |
|
6 |
<tr> |
|
7 |
<td> |
|
8 |
<table width="100%"> |
|
9 |
<tr class="listheading"> |
|
10 |
<th class="listheading">[% 'Shipping Address' | $T8 %]</th> |
|
11 |
<th class="listheading">[% 'Invoice' | $T8 %]</th> |
|
12 |
<th class="listheading">[% 'Order' | $T8 %]</th> |
|
13 |
<th class="listheading">[% 'Invdate' | $T8 %]</th> |
|
14 |
<th class="listheading">[% 'Description' | $T8 %]</th> |
|
15 |
<th class="listheading">[% 'Qty' | $T8 %]</th> |
|
16 |
<th class="listheading">[% 'Unit' | $T8 %]</th> |
|
17 |
[% IF ( SELF.is_customer() ) %] |
|
18 |
<th class="listheading">[% 'Sell Price' | $T8 %]</th> |
|
19 |
[% ELSE %] |
|
20 |
<th class="listheading">[% 'Last Cost' | $T8 %]</th> |
|
21 |
[%- END %] |
|
22 |
</tr> |
|
23 | 4 |
|
5 |
<div id="delivery"> |
|
24 | 6 |
|
25 |
[% FOREACH row = SELF.delivery %] |
|
26 |
[% row.script = SELF.is_vendor() ? ( row.invoice ? 'ir' : 'ap' ) : ( row.invoice ? 'is' : 'ar' ) %] |
|
27 |
<tr class="listrow[% loop.count % 2 %]"> |
|
28 |
<td>[% HTML.escape(row.shiptoname) UNLESS loop.prev.shiptoname == row.shiptoname %] </td> |
|
29 |
<td>[% IF row.id %]<a href='[% row.script %].pl?action=edit&id=[% HTML.escape(row.id) %]'>[% END %][% HTML.escape(row.invnumber) || ' ' %][% IF row.id %]</a>[% END %]</td> |
|
7 |
<table> |
|
8 |
<thead> |
|
9 |
<tr> |
|
10 |
<th>[% 'Shipping Address' | $T8 %]</th> |
|
11 |
<th>[% 'Invoice' | $T8 %]</th> |
|
12 |
<th>[% 'Order' | $T8 %]</th> |
|
13 |
<th>[% 'Invdate' | $T8 %]</th> |
|
14 |
<th>[% 'Description' | $T8 %]</th> |
|
15 |
<th>[% 'Qty' | $T8 %]</th> |
|
16 |
<th>[% 'Unit' | $T8 %]</th> |
|
17 |
[% IF ( SELF.is_customer() ) %] |
|
18 |
<th>[% 'Sell Price' | $T8 %]</th> |
|
19 |
[% ELSE %] |
|
20 |
<th>[% 'Last Cost' | $T8 %]</th> |
|
21 |
[%- END %] |
|
22 |
</tr> |
|
23 |
</thead> |
|
24 |
<tbody> |
|
25 |
[% FOREACH row = SELF.delivery %] |
|
26 |
[% row.script = SELF.is_vendor() ? ( row.invoice ? 'ir' : 'ap' ) : ( row.invoice ? 'is' : 'ar' ) %] |
|
27 |
<tr> |
|
28 |
<td>[% HTML.escape(row.shiptoname) UNLESS loop.prev.shiptoname == row.shiptoname %] </td> |
|
29 |
<td> |
|
30 |
[% IF row.id %] |
|
31 |
<a href="[% row.script %].pl?action=edit&id=[% HTML.escape(row.id) %]"> |
|
32 |
[% END %] |
|
33 |
[% HTML.escape(row.invnumber) || ' ' %] |
|
34 |
[% IF row.id %]</a>[% END %] |
|
35 |
</td> |
|
36 |
<td>[% IF row.oe_id %] |
|
30 | 37 |
[%- IF INSTANCE_CONF.get_feature_experimental_order -%] |
31 |
<td>[% IF row.oe_id %]<a href='controller.pl?action=Order/edit&type=[% IF SELF.is_customer %]sales_order[% ELSE %]purchase_order[% END %]&id=[% HTML.escape(row.oe_id) %]'>[% END %][% HTML.escape(row.ordnumber) || ' ' %][% IF row.oe_id %]</a>[% END %]</td>
|
|
38 |
<a href='controller.pl?action=Order/edit&type=[% IF SELF.is_customer %]sales_order[% ELSE %]purchase_order[% END %]&id=[% HTML.escape(row.oe_id) %]'>
|
|
32 | 39 |
[%- ELSE -%] |
33 |
<td>[% IF row.oe_id %]<a href='oe.pl?action=edit&type=[% IF SELF.is_customer %]sales_order[% ELSE %]purchase_order[% END %]&vc=customer&id=[% HTML.escape(row.oe_id) %]'>[% END %][% HTML.escape(row.ordnumber) || ' ' %][% IF row.oe_id %]</a>[% END %]</td>
|
|
40 |
<a href='oe.pl?action=edit&type=[% IF SELF.is_customer %]sales_order[% ELSE %]purchase_order[% END %]&vc=customer&id=[% HTML.escape(row.oe_id) %]'>
|
|
34 | 41 |
[%- END -%] |
42 |
[% END %] |
|
43 |
[% HTML.escape(row.ordnumber) || ' ' %] |
|
44 |
[% IF row.oe_id %]</a>[% END %] |
|
45 |
</td> |
|
35 | 46 |
<td>[% HTML.escape(row.transdate) || ' ' %]</td> |
36 | 47 |
<td>[% HTML.escape(row.description) || ' ' %]</td> |
37 | 48 |
<td>[% HTML.escape(row.qty) || ' ' %]</td> |
... | ... | |
39 | 50 |
<td>[% LxERP.format_amount(row.sellprice, 2) || ' ' %]</td> |
40 | 51 |
</tr> |
41 | 52 |
[% END %] |
53 |
</tbody> |
|
42 | 54 |
|
43 | 55 |
</table> |
44 | 56 |
|
... | ... | |
46 | 58 |
<p>[% 'This list is capped at 15 items to keep it fast. If you need a full list, please use reports.' | $T8 %]</p> |
47 | 59 |
[% END %] |
48 | 60 |
|
49 |
</td> |
|
50 |
</tr> |
|
51 |
</table> |
|
52 | 61 |
</div> |
templates/webpages/customer_vendor/tabs/bank.html | ||
---|---|---|
4 | 4 |
[% USE L %] |
5 | 5 |
|
6 | 6 |
<div id="bank"> |
7 |
<table> |
|
8 |
<tr> |
|
9 |
<th align="right">[% 'Owner of account' | $T8 %]</th> |
|
10 |
|
|
11 |
<td> |
|
12 |
[% L.input_tag('cv.depositor', SELF.cv.depositor, size = 20) %] |
|
13 |
</td> |
|
14 |
|
|
15 |
[%- IF ( SELF.is_customer ) %] |
|
16 |
<th align="right">[% 'Mandator ID' | $T8 %]</th> |
|
17 |
<td> |
|
18 |
[% L.input_tag('cv.mandator_id', SELF.cv.mandator_id, size = 20) %] |
|
19 |
</td> |
|
20 |
|
|
21 |
<th align="right">[% 'Mandate Date of Signature' | $T8 %]</th> |
|
22 |
<td> |
|
23 |
[% L.date_tag('cv.mandate_date_of_signature', SELF.cv.mandate_date_of_signature) %] |
|
24 |
</td> |
|
25 |
[%- END %] |
|
26 |
</tr> |
|
27 |
|
|
28 |
<tr> |
|
29 |
<th align="right">[% 'IBAN' | $T8 %]</th> |
|
30 |
|
|
31 |
<td> |
|
32 |
[% L.input_tag('cv.iban', SELF.cv.iban, size = 34) %] |
|
33 |
</td> |
|
34 |
|
|
35 |
|
|
36 |
<th align="right">[% 'BIC' | $T8 %]</th> |
|
37 |
<td> |
|
38 |
[% L.input_tag('cv.bic', SELF.cv.bic, size = 20) %] |
|
39 |
</td> |
|
40 |
|
|
41 |
<th align="right">[% 'Bank' | $T8 %]</th> |
|
42 |
|
|
43 |
<td> |
|
44 |
[% L.input_tag('cv.bank', SELF.cv.bank, size = 20) %] |
|
45 |
</td> |
|
46 |
</tr> |
|
47 |
|
|
48 |
<tr> |
|
49 |
<th align="right">[% 'Account Number' | $T8 %]</th> |
|
50 |
|
|
51 |
<td> |
|
52 |
[% L.input_tag('cv.account_number', SELF.cv.account_number, size = 20) %] |
|
53 |
</td> |
|
54 |
|
|
55 |
|
|
56 |
<th align="right">[% 'Bank Code Number' | $T8 %]</th> |
|
57 |
|
|
58 |
<td> |
|
59 |
[% L.input_tag('cv.bank_code', SELF.cv.bank_code, size = 20) %] |
|
60 |
</td> |
|
61 |
</tr> |
|
62 |
</table> |
|
7 |
<div class="wrapper"> |
|
8 |
<table class="tbl-horizontal"> |
|
9 |
<caption> [% 'Bank Account' | $T8 %] </caption> |
|
10 |
<tbody> |
|
11 |
<tr> |
|
12 |
<th>[% 'Owner of account' | $T8 %]</th> |
|
13 |
<td>[% L.input_tag('cv.depositor', SELF.cv.depositor, class="wi-wide") %]</td> |
|
14 |
</tr> |
|
15 |
<tr> |
|
16 |
<th>[% 'IBAN' | $T8 %]</th> |
|
17 |
<td>[% L.input_tag('cv.iban', SELF.cv.iban, class="wi-wide") %]</td> |
|
18 |
</tr> |
|
19 |
<tr> |
|
20 |
<th>[% 'Account Number' | $T8 %]</th> |
|
21 |
<td>[% L.input_tag('cv.account_number', SELF.cv.account_number, class="wi-wide") %]</td> |
|
22 |
</tr> |
|
23 |
</tbody> |
|
24 |
</table> |
|
25 |
<table class="tbl-horizontal"> |
|
26 |
<caption> [% 'Bank' | $T8 %] </caption> |
|
27 |
<tbody> |
|
28 |
<tr> |
|
29 |
<th>[% 'Bank' | $T8 %]</th> |
|
30 |
<td>[% L.input_tag('cv.bank', SELF.cv.bank, class="wi-normal") %]</td> |
|
31 |
</tr> |
|
32 |
<tr> |
|
33 |
<th>[% 'BIC' | $T8 %]</th> |
|
34 |
<td>[% L.input_tag('cv.bic', SELF.cv.bic, class="wi-normal") %]</td> |
|
35 |
</tr> |
|
36 |
<tr> |
|
37 |
<th>[% 'Bank Code Number' | $T8 %]</th> |
|
38 |
<td>[% L.input_tag('cv.bank_code', SELF.cv.bank_code, class="wi-normal") %]</td> |
|
39 |
</tr> |
|
40 |
</tbody> |
|
41 |
</table> |
|
42 |
[% IF ( SELF.is_customer ) %] |
|
43 |
<table class="tbl-horizontal"> |
|
44 |
<caption> [% 'Mandator' | $T8 %] </caption> |
|
45 |
<tbody> |
|
46 |
<tr> |
|
47 |
<th>[% 'Mandator ID' | $T8 %]</th> |
|
48 |
<td>[% L.input_tag('cv.mandator_id', SELF.cv.mandator_id, class="wi-normal") %]</td> |
|
49 |
</tr> |
|
50 |
<tr> |
|
51 |
<th>[% 'Mandate Date of Signature' | $T8 %]</th> |
|
52 |
<td>[% L.date_tag('cv.mandate_date_of_signature', SELF.cv.mandate_date_of_signature, class="wi-date") %]</td> |
|
53 |
</tr> |
|
54 |
</tbody> |
|
55 |
</table> |
|
56 |
[% END %] |
|
57 |
</div> |
|
63 | 58 |
</div> |
templates/webpages/customer_vendor/tabs/billing.html | ||
---|---|---|
5 | 5 |
[% USE JavaScript %] |
6 | 6 |
|
7 | 7 |
<div id="billing"> |
8 |
<table width="100%"> |
|
9 | 8 |
|
10 |
<tr height="5"></tr>
|
|
9 |
<div class="wrapper">
|
|
11 | 10 |
|
12 |
[% IF ( INSTANCE_CONF.get_vertreter ) %] |
|
13 |
<tr> |
|
14 |
<th align="right"> |
|
15 |
[% IF SELF.is_vendor() %] |
|
16 |
[% 'Type of Vendor' | $T8 %] |
|
17 |
[% ELSE %] |
|
18 |
[% 'Type of Customer' | $T8 %] |
|
19 |
[% END %] |
|
20 |
</th> |
|
21 |
|
|
22 |
<td> |
|
23 |
[% L.select_tag('cv.business_id', SELF.all_business, value_key = 'id', title_key = 'description', default = SELF.cv.business_id, with_empty = 1) %] |
|
24 |
</td> |
|
25 |
</tr> |
|
26 |
|
|
27 |
<tr> |
|
28 |
<th align="right"> |
|
29 |
[% 'Representative' | $T8 %] |
|
30 |
</th> |
|
31 |
|
|
32 |
<td> |
|
33 |
[% L.select_tag('cv.salesman_id', SELF.all_salesman_customers, default = SELF.cv.salesman_id, value_key = 'id', title_key = 'name', with_empty = 1) %] |
|
34 |
</td> |
|
35 |
</tr> |
|
36 |
|
|
37 |
[%- END %] |
|
11 |
[% IF SELF.cv.name %] |
|
12 |
<h2 class="record-title" title="[% IF SELF.is_vendor() %][% 'Vendor Name' | $T8 %][% ELSE %][% 'Customer Name' | $T8 %][% END %]"> |
|
13 |
[% SELF.cv.name %] <small>[% IF SELF.cv.city; IF SELF.cv.name !=""; ", "; END ; SELF.cv.city ; END; %]</small> |
|
14 |
</h2> |
|
15 |
[% END %] |
|
38 | 16 |
|
17 |
<table class="tbl-horizontal"> |
|
18 |
<caption>[% 'Name and Address' | $T8 %]</caption> |
|
19 |
<colgroup><col class="wi-small"><col class="wi-lightwide"></colgroup> |
|
20 |
<tbody> |
|
39 | 21 |
<tr> |
40 |
[% IF SELF.is_vendor() %] |
|
41 |
<th align="right" nowrap>[% 'Vendor Number' | $T8 %]</th> |
|
42 |
<td> |
|
43 |
[% L.input_tag('cv.vendornumber', SELF.cv.vendornumber) %] |
|
44 |
</td> |
|
45 |
[%- ELSE %] |
|
46 |
<th align="right" nowrap>[% 'Customer Number' | $T8 %]</th> |
|
47 |
<td> |
|
48 |
[% L.input_tag('cv.customernumber', SELF.cv.customernumber) %] |
|
49 |
</td> |
|
50 |
[%- END %] |
|
22 |
<th>[% IF SELF.is_vendor() %] [% 'Vendor Name' | $T8 %] [% ELSE %] [% 'Customer Name' | $T8 %] [% END %]</th> |
|
23 |
<td>[% L.input_tag('cv.name', SELF.cv.name, type='text', class='wi-lightwide') %] |
|
24 |
<label for="cv_natural_person">[% 'natural person' | $T8 %]</label> |
|
25 |
[% L.checkbox_tag('cv.natural_person', checked = SELF.cv.natural_person, for_submit=1) %]</td> |
|
51 | 26 |
</tr> |
52 |
|
|
53 | 27 |
<tr> |
54 |
<th align="right" nowrap>[% 'Greeting' | $T8 %]</th> |
|
55 |
|
|
28 |
<th>[% 'Department' | $T8 %]</th> |
|
56 | 29 |
<td> |
57 |
[%- IF INSTANCE_CONF.get_vc_greetings_use_textfield -%] |
|
58 |
[% L.input_tag('cv.greeting', SELF.cv.greeting) %] |
|
59 |
[% L.select_tag('cv_greeting_select', SELF.all_greetings, default = SELF.cv.greeting, value_key = 'description', title_key = 'description', with_empty = 1, onchange = '$("#cv_greeting").val(this.value);') %] |
|
60 |
[%- ELSE -%] |
|
61 |
[% L.select_tag('cv.greeting', SELF.all_greetings, default = SELF.cv.greeting, value_key = 'description', title_key = 'description', with_empty = 1) %] |
|
62 |
[%- END -%] |
|
30 |
[% L.input_tag('cv.department_1', SELF.cv.department_1, class='wi-lightwide') %]<br> |
|
31 |
[% L.input_tag('cv.department_2', SELF.cv.department_2, class='wi-lightwide addition') %] |
|
32 |
<br> |
|
63 | 33 |
</td> |
64 | 34 |
</tr> |
65 |
|
|
66 | 35 |
<tr> |
67 |
<th align="right" nowrap> |
|
68 |
[% IF SELF.is_vendor() %] |
|
69 |
[% 'Vendor Name' | $T8 %] |
|
70 |
[%- ELSE %] |
|
71 |
[% 'Customer Name' | $T8 %] |
|
72 |
[%- END %] |
|
73 |
</th> |
|
74 |
|
|
75 |
<td> |
|
76 |
[% L.input_tag('cv.name', SELF.cv.name) %] |
|
77 |
<label for="cv_natural_person">[% 'natural person' | $T8 %]</label> |
|
78 |
[% L.checkbox_tag('cv.natural_person', checked = SELF.cv.natural_person, for_submit=1) %] |
|
79 |
</td> |
|
80 |
</tr> |
|
81 |
|
|
82 |
<tr> |
|
83 |
<th align="right" nowrap>[% 'Department' | $T8 %]</th> |
|
84 |
|
|
36 |
<th>[% 'Street' | $T8 %]</th> |
|
85 | 37 |
<td> |
86 |
[% L.input_tag('cv.department_1', SELF.cv.department_1, size = 16) %] |
|
87 |
[% L.input_tag('cv.department_2', SELF.cv.department_2, size = 16) %] |
|
88 |
</td> |
|
89 |
</tr> |
|
90 |
|
|
91 |
<tr> |
|
92 |
<th align="right" nowrap>[% 'Street' | $T8 %]</th> |
|
93 |
|
|
94 |
<td> |
|
95 |
[% L.input_tag('cv.street', SELF.cv.street, size = 35) %] |
|
96 |
<span id="billing_map"></span> |
|
38 |
[% L.input_tag('cv.street', SELF.cv.street, class='wi-lightwide') %]<button id="billing_map" type="button" class="icon"></button> |
|
97 | 39 |
<script type="text/javascript"> |
98 | 40 |
billingMapWidget = new kivi.CustomerVendor.MapWidget('cv_', '[% JavaScript.escape(SELF.home_address_for_google_maps) %]'); |
99 | 41 |
$(function() { |
... | ... | |
102 | 44 |
</script> |
103 | 45 |
</td> |
104 | 46 |
</tr> |
105 |
|
|
106 | 47 |
<tr> |
107 |
<th align="right" nowrap>[% 'Zipcode' | $T8 %]/[% 'City' | $T8 %]</th> |
|
108 |
|
|
109 |
<td> |
|
110 |
[% L.input_tag('cv.zipcode', SELF.cv.zipcode, size = 5) %] |
|
111 |
[% L.input_tag('cv.city', SELF.cv.city, size = 30) %] |
|
112 |
</td> |
|
48 |
<th>[% 'Zipcode' | $T8 %]/[% 'City' | $T8 %]</th> |
|
49 |
<td>[% L.input_tag('cv.zipcode', SELF.cv.zipcode, class='wi-verysmall') %][% L.input_tag('cv.city', SELF.cv.city, class='wi-small', class='wi-lightwide--verysmall') %]</td> |
|
113 | 50 |
</tr> |
114 |
|
|
115 | 51 |
<tr> |
116 |
<th align="right" nowrap>[% 'Country' | $T8 %]</th> |
|
117 |
|
|
118 |
<td> |
|
119 |
[% L.input_tag('cv.country', SELF.cv.country, size = 30) %] |
|
120 |
</td> |
|
52 |
<th>[% 'Country' | $T8 %]</th> |
|
53 |
<td>[% L.input_tag('cv.country', SELF.cv.country, class='wi-lightwide') %]</td> |
|
121 | 54 |
</tr> |
122 |
|
|
123 | 55 |
<tr> |
124 |
<th align="right" nowrap>[% 'GLN' | $T8 %]</th> |
|
125 |
|
|
126 |
<td> |
|
127 |
[% L.input_tag('cv.gln', SELF.cv.gln, size = 30) %] |
|
128 |
</td> |
|
56 |
<th>[% 'GLN' | $T8 %]</th> |
|
57 |
<td>[% L.input_tag('cv.gln', SELF.cv.gln, class='wi-lightwide') %]</td> |
|
129 | 58 |
</tr> |
130 |
|
|
131 | 59 |
<tr> |
132 |
<th align="right" nowrap>[% 'Contact' | $T8 %]</th> |
|
133 |
|
|
60 |
<th>[% 'Greeting' | $T8 %]</th> |
|
134 | 61 |
<td> |
135 |
[% L.input_tag('cv.contact', SELF.cv.contact, size = 28) %] |
|
136 |
</td> |
|
62 |
[% IF INSTANCE_CONF.get_vc_greetings_use_textfield %] |
|
63 |
[% L.input_tag('cv.greeting', SELF.cv.greeting, class='wi-lightwide') %]<br> |
|
64 |
[% L.select_tag('cv_greeting_select', SELF.all_greetings, default = SELF.cv.greeting, value_key = 'description', title_key = 'description', with_empty = 1, onchange = '$("#cv_greeting").val(this.value);', class='wi-lightwide addition') %] |
|
65 |
[% ELSE %] |
|
66 |
[% L.select_tag('cv.greeting', SELF.all_greetings, default = SELF.cv.greeting, value_key = 'description', title_key = 'description', with_empty = 1, class='wi-lightwide') %] |
|
67 |
[% END %] |
|
137 | 68 |
</tr> |
69 |
</tbody> |
|
70 |
</table> |
|
138 | 71 |
|
72 |
<table class="tbl-horizontal"> |
|
73 |
<caption>[% 'Communication' | $T8 %]</caption> |
|
74 |
<colgroup><col class="wi-small"><col class="wi-lightwide"></colgroup> |
|
75 |
<tbody> |
|
139 | 76 |
<tr> |
140 |
<th align="right" nowrap>[% 'Phone' | $T8 %]</th> |
|
141 |
|
|
142 |
<td> |
|
143 |
[% L.input_tag('cv.phone', SELF.cv.phone, size = 30) %] |
|
144 |
</td> |
|
77 |
<th>[% 'Contact' | $T8 %]</th> |
|
78 |
<td>[% L.input_tag('cv.contact', SELF.cv.contact, class='wi-lightwide') %]</td> |
|
145 | 79 |
</tr> |
146 |
|
|
147 | 80 |
<tr> |
148 |
<th align="right" nowrap>[% 'Fax' | $T8 %]</th> |
|
149 |
|
|
150 |
<td> |
|
151 |
[% L.input_tag('cv.fax', SELF.cv.fax, size = 30) %] |
|
152 |
</td> |
|
81 |
<th>[% 'Phone' | $T8 %]</th> |
|
82 |
<td>[% L.input_tag('cv.phone', SELF.cv.phone, class='wi-lightwide') %]</td> |
|
153 | 83 |
</tr> |
154 |
|
|
155 | 84 |
<tr> |
156 |
<th align="right" nowrap>[% 'E-mail' | $T8 %]</th> |
|
157 |
|
|
158 |
<td> |
|
159 |
[% L.input_tag('cv.email', SELF.cv.email, size = 45) %] |
|
160 |
</td> |
|
85 |
<th>[% 'Fax' | $T8 %]</th> |
|
86 |
<td>[% L.input_tag('cv.fax', SELF.cv.fax, class='wi-lightwide') %]</td> |
|
161 | 87 |
</tr> |
162 |
|
|
163 | 88 |
<tr> |
164 |
<th align="right">[% 'Cc E-mail' | $T8 %]</th> |
|
165 |
|
|
166 |
<td> |
|
167 |
[% L.input_tag('cv.cc', SELF.cv.cc, size = 45) %] |
|
168 |
</td> |
|
89 |
<th>[% IF SELF.cv.email %]<a href="mailto:[% SELF.cv.email %]">[% END %][% 'E-mail' | $T8 %][% IF SELF.cv.email %]</a>[% END %]</th> |
|
90 |
<td>[% L.input_tag('cv.email', SELF.cv.email, class='wi-lightwide') %]</td> |
|
169 | 91 |
</tr> |
170 |
|
|
171 | 92 |
<tr> |
172 |
<th align="right">[% 'Bcc E-mail' | $T8 %]</th> |
|
173 |
|
|
174 |
<td> |
|
175 |
[% L.input_tag('cv.bcc', SELF.cv.bcc, size = 45) %] |
|
176 |
</td> |
|
93 |
<th>[% IF SELF.cv.cc %]<a href="mailto:[% SELF.cv.cc %]">[% END %][% 'Cc E-mail' | $T8 %][% IF SELF.cv.cc %]</a>[% END %]</th> |
|
94 |
<td>[% L.input_tag('cv.cc', SELF.cv.cc, class='wi-lightwide') %]</td> |
|
95 |
</tr> |
|
96 |
<tr> |
|
97 |
<th>[% IF SELF.cv.bcc %]<a href="mailto:[% SELF.cv.bcc %]">[% END %][% 'Bcc E-mail' | $T8 %][% IF SELF.cv.bcc %]</a>[% END %]</th> |
|
98 |
<td>[% L.input_tag('cv.bcc', SELF.cv.bcc, class='wi-lightwide') %]</td> |
|
177 | 99 |
</tr> |
100 |
<tr><!-- PENDENT: Funktion der Link-Erzeugung verbessern, z.B. falls z.B. Schema (http:// oder https://) schon angegeben --> |
|
101 |
<th>[% IF SELF.cv.homepage %]<a href="http://[% HTML.escape(SELF.cv.homepage) %]" title="[% 'Open this Website in a new window' | $T8 %]" target="_blank">[% 'Homepage' | $T8 %]</a>[% ELSE %][% 'Homepage' | $T8 %][% END %]</th> |
|
102 |
<td>[% L.input_tag('cv.homepage', SELF.cv.homepage, class='wi-lightwide', title = LxERP.t8('Example: http://kivitendo.de')) %]</td> |
|
103 |
</tr> |
|
104 |
|
|
178 | 105 |
[% IF ( SELF.is_customer() ) %] |
179 | 106 |
<tr> |
180 |
<th align="right">[% 'Email of the invoice recipient' | $T8 %]</th>
|
|
181 |
<td>[% L.input_tag('cv.invoice_mail', SELF.cv.invoice_mail, size = 45) %]</td>
|
|
107 |
<th>[% 'Email of the invoice recipient' | $T8 %]</th> |
|
108 |
<td>[% L.input_tag('cv.invoice_mail', SELF.cv.invoice_mail, class='wi-lightwide') %]</td>
|
|
182 | 109 |
</tr> |
183 | 110 |
<tr> |
184 |
<th align="right">[% 'Email of the delivery order recipient' | $T8 %]</th>
|
|
185 |
<td>[% L.input_tag('cv.delivery_order_mail', SELF.cv.delivery_order_mail, size = 45) %]</td>
|
|
111 |
<th>[% 'Email of the delivery order recipient' | $T8 %]</th> |
|
112 |
<td>[% L.input_tag('cv.delivery_order_mail', SELF.cv.delivery_order_mail, class='wi-lightwide') %]</td>
|
|
186 | 113 |
</tr> |
187 | 114 |
[% END %] |
115 |
[% IF ( SELF.is_customer() ) %] |
|
188 | 116 |
<tr> |
189 |
<th align="right" nowrap> |
|
190 |
[% IF SELF.cv.homepage %] |
|
191 |
<a href="[% HTML.escape(SELF.cv.homepage) %]" title="[% 'Open this Website' | $T8 %]" target="_blank">[% 'Homepage' | $T8 %]</a> |
|
192 |
[% ELSE %] |
|
193 |
[% 'Homepage' | $T8 %] |
|
194 |
[% END %] |
|
195 |
</th> |
|
196 |
|
|
197 |
<td> |
|
198 |
[% L.input_tag('cv.homepage', SELF.cv.homepage, size = 45, title = LxERP.t8('Example: http://kivitendo.de')) %] |
|
199 |
</td> |
|
117 |
<th>[% 'Origin of personal data' | $T8 %]</th> |
|
118 |
<td>[% L.textarea_tag('cv.contact_origin', SELF.cv.contact_origin, rows=6, class='wi-small-lightwide') %]</td> |
|
200 | 119 |
</tr> |
201 |
|
|
120 |
[% END %] |
|
121 |
[% IF ( SELF.is_customer() ) %] |
|
202 | 122 |
<tr> |
203 |
<th align="right" nowrap>[% 'Username' | $T8 %]</th> |
|
204 |
|
|
205 |
<td> |
|
206 |
[% L.input_tag('cv.username', SELF.cv.username, size = 45) %] |
|
207 |
</td> |
|
123 |
<th>[% 'Commercial court' | $T8 %]</th> |
|
124 |
<td>[% L.input_tag('cv.commercial_court', SELF.cv.commercial_court, class='wi-lightwide') %] </td> |
|
208 | 125 |
</tr> |
126 |
[% END %] |
|
209 | 127 |
|
210 |
<tr>
|
|
211 |
<th align="right" nowrap>[% 'Password' | $T8 %]</th>
|
|
128 |
</tbody>
|
|
129 |
</table>
|
|
212 | 130 |
|
213 |
<td> |
|
214 |
[% L.input_tag('cv.user_password', SELF.cv.user_password, size = 45) %] |
|
215 |
</td> |
|
131 |
<table class="tbl-horizontal"> |
|
132 |
<caption>[% IF ( SELF.is_vendor() ) %][% 'Vendor' | $T8 %][% ELSE %][% 'Customer' | $T8 %][% END %] [% 'Info & Status' | $T8 %]</caption> |
|
133 |
<colgroup> <col class="wi-small"><col class="wi-lightwide"> </colgroup> |
|
134 |
<tbody> |
|
135 |
[% IF ( INSTANCE_CONF.get_vertreter ) %] |
|
136 |
<tr> |
|
137 |
<th>[% IF SELF.is_vendor() %] [% 'Type of Vendor' | $T8 %] [% ELSE %] [% 'Type of Customer' | $T8 %] [% END %]</th> |
|
138 |
<td>[% L.select_tag('cv.business_id', SELF.all_business, value_key = 'id', title_key = 'description', default = SELF.cv.business_id, with_empty=1, class='wi-lightwide') %]</td> |
|
139 |
</tr> |
|
140 |
<tr> |
|
141 |
<th>[% 'Representative' | $T8 %]</th> |
|
142 |
<td>[% L.select_tag('cv.salesman_id', SELF.all_salesman_customers, default=SELF.cv.salesman_id, value_key='id', title_key='name', with_empty=1, class='wi-lightwide') %]</td> |
|
143 |
</tr> |
|
144 |
[% END %] |
|
145 |
<!-- PENDENT: zweimal das gleiche Feld aber nicht wirklich angezeigt? Anschauen!!!!!! --> |
|
146 |
[% IF ( !INSTANCE_CONF.get_vertreter ) %] |
|
147 |
<tr> |
|
148 |
<th>[% IF ( SELF.is_vendor() ) %][% 'Type of Vendor' | $T8 %][% ELSE %][% 'Type of Customer' | $T8 %][% END %]</th> |
|
149 |
<td>[% L.select_tag('cv.business_id', SELF.all_business, default = SELF.cv.business_id, value_key = 'id', title_key = 'description', with_empty=1, class='wi-lightwide') %]</td> |
|
150 |
</tr> |
|
151 |
[% END %] |
|
152 |
<tr> |
|
153 |
<th>[% 'Language' | $T8 %]</th> |
|
154 |
<td>[% L.select_tag('cv.language_id', SELF.all_languages, default = SELF.cv.language_id, value_key = 'id', title_key='description', with_empty=1, class='wi-lightwide') %]</td> |
|
216 | 155 |
</tr> |
217 |
</table> |
|
218 |
|
|
219 |
|
|
220 |
<table> |
|
221 |
|
|
222 | 156 |
<tr> |
223 |
<th align="right">[% 'Credit Limit' | $T8 %]</th> |
|
224 |
|
|
225 |
<td> |
|
226 |
[% L.input_tag('cv.creditlimit_as_number', SELF.cv.creditlimit_as_number, size = 9) %] |
|
227 |
</td> |
|
228 |
|
|
229 |
|
|
230 |
<th align="right">[% 'Payment Terms' | $T8 %]</th> |
|
231 |
|
|
232 |
<td> |
|
233 |
[% L.select_tag('cv.payment_id', SELF.all_payment_terms, value_key = 'id', title_key = 'description', default = SELF.cv.payment_id, with_empty = 1) %] |
|
234 |
</td> |
|
235 |
|
|
236 |
|
|
237 |
<th align="right">[% 'Discount' | $T8 %]</th> |
|
238 |
|
|
239 |
<td> |
|
240 |
[% L.input_tag('cv.discount_as_percent', SELF.cv.discount_as_percent, size = 4) %]% |
|
241 |
</td> |
|
157 |
<th><label for="cv_obsolete">[% 'Obsolete' | $T8 %]</label> </th> |
|
158 |
<td>[% L.checkbox_tag('cv.obsolete', checked = SELF.cv.obsolete, for_submit=1) %]</td> |
|
242 | 159 |
</tr> |
243 |
|
|
244 | 160 |
<tr> |
245 |
<th align="right">[% 'Tax Number / SSN' | $T8 %]</th> |
|
246 |
|
|
247 |
<td> |
|
248 |
[% L.input_tag('cv.taxnumber', SELF.cv.taxnumber, size = 20) %] |
|
249 |
</td> |
|
250 |
|
|
251 |
|
|
252 |
<!-- Anm.: R&B 15.11.2008 VAT Reg No ist Ust-ID in GB, aber generell sollte es laut Richardson die sales tax id sein --> |
|
253 |
<th align="right">[% 'sales tax identification number' | $T8 %]</th> |
|
161 |
<th colspan="2"> |
|
162 |
<span class="label above">[% 'Internal Notes' | $T8 %]</span> |
|
163 |
[% L.textarea_tag('cv.notes', SELF.cv.notes, rows=6, class='wi-small-lightwide') %] |
|
164 |
</th> |
|
165 |
</tr> |
|
166 |
</tbody> |
|
167 |
</table> |
|
254 | 168 |
|
255 |
<td> |
|
256 |
[% L.input_tag('cv.ustid', SELF.cv.ustid, size = 20 ) %] |
|
257 |
</td> |
|
169 |
</div><!-- /.wrapper --> |
|
258 | 170 |
|
171 |
<div class="wrapper"> |
|
259 | 172 |
|
260 |
[%- IF ( SELF.is_vendor() ) %] |
|
261 |
<th align="right">[% 'Customer Number' | $T8 %]</th> |
|
262 |
<td> |
|
263 |
[% L.input_tag('cv.v_customer_id', SELF.cv.v_customer_id, size = 10) %] |
|
264 |
</td> |
|
265 |
[%- ELSE %] |
|
266 |
<th align="right">[% 'our vendor number at customer' | $T8 %]</th> |
|
267 |
<td> |
|
268 |
[% L.input_tag('cv.c_vendor_id', SELF.cv.c_vendor_id, size = 10) %] |
|
269 |
</td> |
|
270 |
[%- END %] |
|
271 |
</tr> |
|
173 |
<div class="col"> |
|
272 | 174 |
|
175 |
<table class="tbl-horizontal"> |
|
176 |
<caption>[% 'IDs & Numbers' | $T8 %]</caption> |
|
177 |
<colgroup><col class="wi-small"><col class="wi-lightwide"></colgroup> |
|
178 |
<tbody> |
|
273 | 179 |
<tr> |
274 |
[% IF ( SELF.is_customer() ) %] |
|
275 |
<th align="right">[% 'Commercial court' | $T8 %]</th> |
|
276 |
<td> |
|
277 |
[% L.input_tag('cv.commercial_court', SELF.cv.commercial_court, size = 20) %] |
|
278 |
</td> |
|
279 |
[% END %] |
|
280 |
[% IF ( SELF.all_currencies.size ) %] |
|
281 |
<th align="right">[% 'Currency' | $T8 %]</th> |
|
282 |
<td> |
|
283 |
[% L.select_tag('cv.currency_id', SELF.all_currencies, title_key = 'name', value_key = 'id', default = SELF.cv.currency_id) %] |
|
284 |
</td> |
|
180 |
[% IF SELF.is_vendor() %] |
|
181 |
<th>[% 'Vendor No.' | $T8 %]</th> |
|
182 |
<td>[% L.input_tag('cv.vendornumber', SELF.cv.vendornumber, class='wi-normal') %]</td> |
|
183 |
[% ELSE %] |
|
184 |
<th>[% 'Customer No.' | $T8 %]</th> |
|
185 |
<td>[% L.input_tag('cv.customernumber', SELF.cv.customernumber, class='wi-normal') %]</td> |
|
285 | 186 |
[% END %] |
286 | 187 |
</tr> |
287 | 188 |
<tr> |
288 |
[% IF ( !INSTANCE_CONF.get_vertreter ) %] |
|
289 |
<th align="right"> |
|
290 |
[% IF ( SELF.is_vendor() ) %] |
|
291 |
[% 'Type of Vendor' | $T8 %] |
|
292 |
[% ELSE %] |
|
293 |
[% 'Type of Customer' | $T8 %] |
|
294 |
[% END %] |
|
295 |
</th> |
|
296 |
|
|
297 |
<td> |
|
298 |
[% L.select_tag('cv.business_id', SELF.all_business, default = SELF.cv.business_id, value_key = 'id', title_key = 'description', with_empty = 1) %] |
|
299 |
</td> |
|
189 |
<th>[% 'Tax Number / SSN' | $T8 %]</th> |
|
190 |
<td>[% L.input_tag('cv.taxnumber', SELF.cv.taxnumber, class='wi-normal') %]</td> |
|
191 |
</tr> |
|
192 |
<tr> |
|
193 |
<!-- |
|
194 |
PENDENT: Ist diese Anmerkung noch gueltig?: |
|
195 |
Anm.: R&B 15.11.2008 VAT Reg No ist Ust-ID in GB, aber generell sollte es laut Richardson die sales tax id sein |
|
196 |
--> |
|
197 |
<th>[% 'sales tax identification number' | $T8 %]</th> |
|
198 |
<td>[% L.input_tag('cv.ustid', SELF.cv.ustid, class='wi-normal' ) %]</td> |
|
199 |
</tr> |
|
200 |
<tr> |
|
201 |
[% IF ( SELF.is_vendor() ) %] |
|
202 |
<th>[% 'Customer Number' | $T8 %]</th> |
|
203 |
<td>[% L.input_tag('cv.v_customer_id', SELF.cv.v_customer_id, class='wi-normal') %]</td> |
|
204 |
[% ELSE %] |
|
205 |
<th>[% 'our vendor number at customer' | $T8 %]</th> |
|
206 |
<td>[% L.input_tag('cv.c_vendor_id', SELF.cv.c_vendor_id, class='wi-normal') %]</td> |
|
300 | 207 |
[% END %] |
301 |
|
|
302 |
|
|
303 |
<th align="right">[% 'Language' | $T8 %]</th> |
|
304 |
|
|
305 |
<td> |
|
306 |
[% L.select_tag('cv.language_id', SELF.all_languages, default = SELF.cv.language_id, value_key = 'id', title_key = 'description', with_empty = 1) %] |
|
307 |
</td> |
|
308 |
|
|
309 |
<th align="right">[% 'Delivery Terms' | $T8 %]</th> |
|
310 |
|
|
311 |
<td> |
|
312 |
[% L.select_tag('cv.delivery_term_id', SELF.all_delivery_terms, default = SELF.cv.delivery_term_id, value_key = 'id', title_key = 'description', with_empty = 1) %] |
|
313 |
</td> |
|
314 |
|
|
315 | 208 |
</tr> |
316 |
|
|
209 |
<!-- </tbody> --> |
|
210 |
<!-- </table> --> |
|
211 |
<!-- |
|
212 |
<table class="tbl-horizontal"> |
|
213 |
<colgroup><col class="wi-small"><col class="wi-lightwide"></colgroup> |
|
214 |
<caption>[% #'Login details' | $T8 %]</caption> |
|
215 |
<tbody> |
|
216 |
--> |
|
217 |
</tbody> |
|
218 |
</table> |
|
219 |
|
|
220 |
<table class="tbl-horizontal"> |
|
221 |
<caption>[% 'Login details' | $T8 %]</caption> |
|
222 |
<colgroup> <col class="wi-small"><col class="wi-lightwide"> </colgroup> |
|
223 |
<tbody> |
|
224 |
<!-- |
|
317 | 225 |
<tr> |
318 |
<td align="right"> |
|
319 |
<label for="cv_obsolete">[% 'Obsolete' | $T8 %]</label> |
|
320 |
</td> |
|
321 |
|
|
322 |
<td> |
|
323 |
[% L.checkbox_tag('cv.obsolete', checked = SELF.cv.obsolete, for_submit=1) %] |
|
324 |
</td> |
|
325 |
|
|
326 |
|
|
327 |
<td align="right"> |
|
328 |
<label for="cv_direct_debit">[% 'direct debit' | $T8 %]</label> |
|
329 |
</td> |
|
330 |
|
|
331 |
<td> |
|
332 |
[% L.checkbox_tag('cv.direct_debit', checked = SELF.cv.direct_debit, for_submit=1) %] |
|
333 |
</td> |
|
334 |
|
|
335 |
[% IF ( SELF.is_customer() ) %] |
|
336 |
<th align="right">[% 'Price group' | $T8 %]</th> |
|
337 |
|
|
338 |
<td> |
|
339 |
[% L.select_tag('cv.pricegroup_id', SELF.all_pricegroups, default = SELF.cv.pricegroup_id, value_key = 'id', title_key = 'pricegroup', with_empty = 1) %] |
|
340 |
</td> |
|
341 |
[% END %] |
|
342 |
|
|
226 |
<th class="caption" colspan="2">[% 'Login details' | $T8 %]</th> |
|
343 | 227 |
</tr> |
344 |
|
|
228 |
--> |
|
345 | 229 |
<tr> |
346 |
<th align="right">[% 'Tax rate' | $T8 %]</th> |
|
347 |
|
|
348 |
<td> |
|
349 |
[% L.select_tag('cv.taxzone_id', SELF.all_taxzones, default = SELF.cv.taxzone_id, value_key = 'id', title_key = 'description') %] |
|
350 |
</td> |
|
351 |
|
|
352 |
|
|
353 |
[% IF ( SELF.is_customer() && !INSTANCE_CONF.get_vertreter ) %] |
|
354 |
<th align="right">[% 'Salesman' | $T8 %]</th> |
|
355 |
|
|
356 |
<td> |
|
357 |
[% L.select_tag('cv.salesman_id', SELF.all_salesmen, default = SELF.cv.salesman_id, value_key = 'id', title_key = 'safe_name', with_empty = 1) %] |
|
358 |
</td> |
|
359 |
[%- END %] |
|
230 |
<th>[% 'Username' | $T8 %]</th> |
|
231 |
<td>[% L.input_tag('cv.username', SELF.cv.username, class='wi-normal') %]</td> |
|
232 |
</tr> |
|
233 |
<tr> |
|
234 |
<th>[% 'Password' | $T8 %]</th> |
|
235 |
<td>[% L.input_tag('cv.user_password', SELF.cv.user_password, class='wi-normal') %]</td> |
|
236 |
</tr> |
|
237 |
</tbody> |
|
238 |
</table> |
|
360 | 239 |
|
361 |
[% IF ( SELF.is_customer() ) %] |
|
362 |
<td>[% 'taxincluded checked' | $T8 %]</td> |
|
240 |
</div><!-- /.col --> |
|
363 | 241 |
|
364 |
<td> |
|
365 |
[% L.select_tag('cv.taxincluded_checked', [[undef, LxERP.t8('use user config')], ['1', LxERP.t8('Yes')], ['0', LxERP.t8('No')]], default = SELF.cv.taxincluded_checked) %] |
|
366 |
</td> |
|
367 |
[% END %] |
|
368 | 242 |
|
369 |
</tr> |
|
370 | 243 |
|
244 |
<table class="tbl-horizontal"> |
|
245 |
<caption>[% 'Currency, Prices & Taxes' | $T8 %]</caption> |
|
246 |
<colgroup><col class="wi-small"><col class="wi-lightwide"></colgroup> |
|
247 |
<tbody> |
|
248 |
[% IF ( SELF.all_currencies.size ) %] |
|
249 |
<tr> |
|
250 |
<th>[% 'Currency' | $T8 %]</th> |
|
251 |
<td>[% L.select_tag('cv.currency_id', SELF.all_currencies, title_key = 'name', value_key = 'id', default = SELF.cv.currency_id, class='wi-small') %]</td> |
|
252 |
</tr> |
|
253 |
[% END %] |
|
371 | 254 |
[% IF ( SELF.is_customer() ) %] |
372 |
<tr> |
|
373 |
<th align="right">[%- LxERP.t8("Hourly rate") %]</th> |
|
374 |
<td>[% L.input_tag("cv.hourly_rate_as_number", SELF.cv.hourly_rate_as_number) %]</td> |
|
375 |
<th align="right" valign="top" nowrap>[% 'Shoporderlock' | $T8 %]</th> |
|
376 |
<td> |
|
377 |
[% L.checkbox_tag('cv.order_lock', checked = SELF.cv.order_lock, for_submit=1) %] |
|
378 |
</td> |
|
379 |
<th align="right">[% LxERP.t8("Create sales invoices with ZUGFeRD data") %]</th> |
|
380 |
<td>[% L.select_tag("cv.create_zugferd_invoices", |
|
381 |
[ [ -1, LxERP.t8('Use settings from client configuration') ], |
|
382 |
[ 0, LxERP.t8('Do not create ZUGFeRD invoices') ], |
|
383 |
[ 1, LxERP.t8('Create ZUGFeRD invoices') ], |
|
384 |
[ 2, LxERP.t8('Create ZUGFeRD invoices in test mode') ] ], |
|
385 |
default=SELF.cv.create_zugferd_invoices) %]</td> |
|
386 |
</tr> |
|
255 |
<tr> |
|
256 |
<th>[% 'Price group' | $T8 %]</th> |
|
257 |
<td>[% L.select_tag('cv.pricegroup_id', SELF.all_pricegroups, default = SELF.cv.pricegroup_id, value_key = 'id', title_key = 'pricegroup', with_empty = 1, class='wi-lightwide') %]</td> |
|
258 |
</tr> |
|
387 | 259 |
[% END %] |
388 |
</table> |
|
389 |
|
|
390 |
<table> |
|
391 | 260 |
<tr> |
392 |
<th align="left" nowrap>[% 'Internal Notes' | $T8 %]</th> |
|
261 |
<th>[% 'Tax rate' | $T8 %]</th> |
|
262 |
<td>[% L.select_tag('cv.taxzone_id', SELF.all_taxzones, default = SELF.cv.taxzone_id, value_key = 'id', title_key = 'description', class='wi-lightwide') %]</td> |
|
263 |
</tr> |
|
264 |
<tr> |
|
393 | 265 |
[% IF ( SELF.is_customer() ) %] |
394 |
<th align="left">[% 'Origin of personal data' | $T8 %]</th> |
|
266 |
<th>[% 'taxincluded checked' | $T8 %]</th> |
|
267 |
<td>[% L.select_tag('cv.taxincluded_checked', [[undef, LxERP.t8('use user config')], ['1', LxERP.t8('Yes')], ['0', LxERP.t8('No')]], default = SELF.cv.taxincluded_checked, class='wi-lightwide') %]</td> |
|
395 | 268 |
[% END %] |
396 | 269 |
</tr> |
397 | 270 |
<tr> |
398 |
<td>
|
|
399 |
[% L.textarea_tag('cv.notes', SELF.cv.notes, rows = 3 cols = 60 wrap = soft) %]
|
|
400 |
</td>
|
|
271 |
<th>[% 'Discount' | $T8 %]</th>
|
|
272 |
<td>[% L.input_tag('cv.discount_as_percent', SELF.cv.discount_as_percent, class='wi-small numeric') %]% </td>
|
|
273 |
</tr>
|
|
401 | 274 |
[% IF ( SELF.is_customer() ) %] |
402 |
<td> |
|
403 |
[% L.textarea_tag('cv.contact_origin', SELF.cv.contact_origin, rows = 3 cols = 60 wrap = soft) %] |
|
404 |
</td> |
|
275 |
<tr> |
|
276 |
<th>[% LxERP.t8("Hourly rate") %]</th> |
|
277 |
<td>[% L.input_tag("cv.hourly_rate_as_number", SELF.cv.hourly_rate_as_number, class='wi-small numeric') %]</td> |
|
278 |
<tr> |
|
279 |
<th>[% LxERP.t8("Create sales invoices with ZUGFeRD data") %]</th> |
|
280 |
<td>[% L.select_tag("cv.create_zugferd_invoices", |
|
281 |
[ [ -1, LxERP.t8('Use settings from client configuration') ], |
|
282 |
[ 0, LxERP.t8('Do not create ZUGFeRD invoices') ], |
|
283 |
[ 1, LxERP.t8('Create ZUGFeRD invoices') ], |
|
284 |
[ 2, LxERP.t8('Create ZUGFeRD invoices in test mode') ] ], |
|
285 |
default=SELF.cv.create_zugferd_invoices, class='wi-lightwide') %]</td> |
|
286 |
</tr> |
|
287 |
[% END %] |
|
288 |
</tbody> |
|
289 |
</table> |
|
290 |
|
|
291 |
|
|
292 |
<table class="tbl-horizontal"> |
|
293 |
<caption>[% 'Conditions' | $T8 %]</caption> |
|
294 |
<colgroup><col class="wi-small"><col class="wi-lightwide"></colgroup> |
|
295 |
<tbody> |
|
296 |
<tr> |
|
297 |
<th>[% 'Credit Limit' | $T8 %]</th> |
|
298 |
<td>[% L.input_tag('cv.creditlimit_as_number', SELF.cv.creditlimit_as_number, class='wi-small numeric') %]</td> |
|
299 |
</tr> |
|
300 |
[% IF ( SELF.is_customer() ) %] |
|
301 |
<tr> |
|
302 |
<th><label for="cv_order_lock">[% 'Shoporderlock' | $T8 %]</label></th> |
|
303 |
<td>[% L.checkbox_tag('cv.order_lock', checked = SELF.cv.order_lock, for_submit=1) %]</td> |
|
304 |
</tr> |
|
405 | 305 |
[% END %] |
306 |
<tr> |
|
307 |
<th><label for="cv_direct_debit">[% 'direct debit' | $T8 %]</label></th> |
|
308 |
<td>[% L.checkbox_tag('cv.direct_debit', checked = SELF.cv.direct_debit, for_submit=1) %]</td> |
|
406 | 309 |
</tr> |
407 |
</table> |
|
310 |
<tr> |
|
311 |
<td colspan="2"> |
|
312 |
<span class="label above">[% 'Payment Terms' | $T8 %]</span> |
|
313 |
[% L.select_tag('cv.payment_id', SELF.all_payment_terms, value_key = 'id', title_key = 'description', default = SELF.cv.payment_id, with_empty = 1, class='wi-small-lightwide') %]</td> |
|
314 |
</tr> |
|
315 |
<tr> |
|
316 |
<td colspan="2"> |
|
317 |
<span class="label above">[% 'Delivery Terms' | $T8 %]</span> |
|
318 |
[% L.select_tag('cv.delivery_term_id', SELF.all_delivery_terms, default = SELF.cv.delivery_term_id, value_key = 'id', title_key = 'description', with_empty = 1, class='wi-small-lightwide') %]</td> |
|
319 |
</tr> |
|
320 |
</tbody> |
|
321 |
</table> |
|
322 |
|
|
323 |
|
|
324 |
</div><!-- /.wrapper --> |
|
408 | 325 |
</div> |
templates/webpages/customer_vendor/tabs/contacts.html | ||
---|---|---|
4 | 4 |
[% USE L %] |
5 | 5 |
|
6 | 6 |
<div id="contacts"> |
7 |
<table> |
|
8 |
<tr> |
|
9 |
<th align="right">[% 'Contacts' | $T8 %]</th> |
|
10 |
|
|
11 |
<td> |
|
12 |
[% |
|
13 |
L.select_tag( |
|
14 |
'contact.cp_id', |
|
15 |
SELF.contacts, |
|
16 |
default = SELF.contact.cp_id, |
|
17 |
with_empty = 1, |
|
18 |
empty_title = LxERP.t8('New contact'), |
|
19 |
value_key = 'cp_id', |
|
20 |
title_key = 'full_name', |
|
21 |
onchange = "kivi.CustomerVendor.selectContact({onFormSet: function(){ contactsMapWidget.testInputs(); kivi.reinit_widgets(); }});", |
|
22 |
) |
|
23 |
%] |
|
24 |
</td> |
|
25 |
</tr> |
|
26 |
<tr> |
|
27 |
<th align="right" nowrap>[% 'Main Contact Person' | $T8 %]</th> |
|
28 |
<td>[% L.yes_no_tag('contact.cp_main', SELF.contact.cp_main) %]</td> |
|
29 |
</tr> |
|
30 |
<tr> |
|
31 |
<th align="right" nowrap>[% 'Gender' | $T8 %]</th> |
|
32 |
|
|
33 |
<td> |
|
34 |
[% |
|
35 |
L.select_tag( |
|
36 |
'contact.cp_gender', |
|
37 |
[['m', LxERP.t8('male')], ['f', LxERP.t8('female')]], |
|
38 |
default = SELF.contact.cp_gender |
|
39 |
) |
|
40 |
%] |
|
41 |
</td> |
|
42 |
</tr> |
|
43 |
|
|
44 |
<tr> |
|
45 |
<th align="right" nowrap>[% 'Title' | $T8 %]</th> |
|
46 | 7 |
|
47 |
<td> |
|
48 |
[%- IF INSTANCE_CONF.get_contact_titles_use_textfield -%] |
|
49 |
[% L.input_tag('contact.cp_title', SELF.contact.cp_title, size = 40) %] |
|
50 |
[% L.select_tag('contact_cp_title_select', SELF.all_contact_titles, default = SELF.contact.cp_title, value_key = 'description', title_key = 'description', with_empty = 1, onchange = '$("#contact_cp_title").val(this.value);') %] |
|
51 |
[%- ELSE -%] |
|
52 |
[% L.select_tag('contact.cp_title', SELF.all_contact_titles, default = SELF.contact.cp_title, value_key = 'description', title_key = 'description', with_empty = 1) %] |
|
53 |
[%- END -%] |
|
54 |
</td> |
|
55 |
</tr> |
|
56 |
|
|
57 |
<tr> |
|
58 |
<th align="right" nowrap>[% 'Department' | $T8 %]</th> |
|
59 |
|
|
60 |
<td> |
|
61 |
[%- IF INSTANCE_CONF.get_contact_departments_use_textfield -%] |
|
62 |
[% L.input_tag('contact.cp_abteilung', SELF.contact.cp_abteilung, size = 40) %] |
|
63 |
[% L.select_tag('contact_cp_abteilung_select', SELF.all_contact_departments, default = SELF.contact.cp_abteilung, value_key = 'description', title_key = 'description', with_empty = 1, onchange = '$("#contact_cp_abteilung").val(this.value);') %] |
|
64 |
[%- ELSE -%] |
|
65 |
[% L.select_tag('contact.cp_abteilung', SELF.all_contact_departments, default = SELF.contact.cp_abteilung, value_key = 'description', title_key = 'description', with_empty = 1) %] |
|
66 |
[%- END -%] |
|
67 |
</td> |
|
68 |
</tr> |
|
69 |
|
|
70 |
<tr> |
|
71 |
<th align="right" nowrap>[% 'Function/position' | $T8 %]</th> |
|
8 |
<div class="select-item control-panel"> |
|
9 |
[% 'Select contacts' | $T8 %][% |
|
10 |
L.select_tag( |
|
11 |
'contact.cp_id', |
|
12 |
SELF.contacts, |
|
13 |
default = SELF.contact.cp_id, |
|
14 |
with_empty = 1, |
|
15 |
empty_title = LxERP.t8('New contact'), |
|
16 |
value_key = 'cp_id', |
|
17 |
title_key = 'full_name', |
|
18 |
onchange = "kivi.CustomerVendor.selectContact({onFormSet: function(){ contactsMapWidget.testInputs(); kivi.reinit_widgets(); }});", |
|
19 |
)%] |
|
20 |
</div> |
|
72 | 21 |
|
73 |
<td> |
|
74 |
[% L.input_tag('contact.cp_position', SELF.contact.cp_position, size = 40) %] |
|
75 |
</td> |
|
76 |
</tr> |
|
22 |
<div class="wrapper"> |
|
77 | 23 |
|
24 |
<table class="tbl-horizontal"> |
|
25 |
<caption>[% 'Personal details' | $T8 %]</caption> |
|
26 |
<tbody> |
|
78 | 27 |
<tr> |
79 |
<th align="right" nowrap>[% 'Given Name' | $T8 %]</th> |
|
80 |
|
|
81 |
<td> |
|
82 |
[% L.input_tag('contact.cp_givenname', SELF.contact.cp_givenname, size = 40) %] |
|
83 |
</td> |
|
28 |
<th>[% 'Given Name' | $T8 %]</th> |
|
29 |
<td>[% L.input_tag('contact.cp_givenname', SELF.contact.cp_givenname, class="wi-wide") %]</td> |
|
84 | 30 |
</tr> |
85 |
|
|
86 | 31 |
<tr> |
87 |
<th align="right" nowrap>[% 'Surname' | $T8 %]</th> |
|
88 |
|
|
89 |
<td> |
|
90 |
[% L.input_tag('contact.cp_name', SELF.contact.cp_name, size = 40) %] |
|
91 |
</td> |
|
32 |
<th>[% 'Surname' | $T8 %]</th> |
|
33 |
<td>[% L.input_tag('contact.cp_name', SELF.contact.cp_name, class="wi-wide") %]</td> |
|
92 | 34 |
</tr> |
93 |
|
|
94 | 35 |
<tr> |
95 |
<th align="right" nowrap>[% 'E-mail' | $T8 %]</th> |
|
96 |
|
|
97 |
<td> |
|
98 |
[% L.input_tag('contact.cp_email', SELF.contact.cp_email, size = 40) %] |
|
99 |
</td> |
|
36 |
<th[% 'Main Contact Person' | $T8 %]</th> |
|
37 |
<td>[% L.yes_no_tag('contact.cp_main', SELF.contact.cp_main) %]</td> |
|
100 | 38 |
</tr> |
101 |
|
|
102 | 39 |
<tr> |
103 |
<th align="right" nowrap>[% 'Phone1' | $T8 %]</th> |
|
104 |
|
|
40 |
<th>[% 'Gender' | $T8 %]</th> |
|
105 | 41 |
<td> |
106 |
[% L.input_tag('contact.cp_phone1', SELF.contact.cp_phone1, size = 40) %] |
|
42 |
[% L.select_tag( |
|
43 |
'contact.cp_gender', |
|
44 |
[['m', LxERP.t8('male')], ['f', LxERP.t8('female')]], |
|
45 |
default = SELF.contact.cp_gender, |
|
46 |
class = 'wi-normal', |
|
47 |
) %] |
|
107 | 48 |
</td> |
108 | 49 |
</tr> |
109 |
|
|
110 | 50 |
<tr> |
111 |
<th align="right" nowrap>[% 'Phone2' | $T8 %]</th> |
|
112 |
|
|
113 |
<td> |
|
114 |
[% L.input_tag('contact.cp_phone2', SELF.contact.cp_phone2, size = 40) %] |
|
115 |
</td> |
|
51 |
<th>[% 'Birthday' | $T8 %]</th> |
|
52 |
<td>[% L.date_tag('contact.cp_birthday', SELF.contact.cp_birthday, class='wi-date') %]</td> |
|
116 | 53 |
</tr> |
117 |
|
|
118 | 54 |
<tr> |
119 |
<th align="right" nowrap>[% 'Fax' | $T8 %]</th> |
|
120 |
|
|
55 |
<th>[% 'Title' | $T8 %]</th> |
|
121 | 56 |
<td> |
122 |
[% L.input_tag('contact.cp_fax', SELF.contact.cp_fax, size = 40) %] |
|
57 |
[% IF INSTANCE_CONF.get_contact_titles_use_textfield %] |
|
58 |
[% L.select_tag('contact_cp_title_select', SELF.all_contact_titles, default = SELF.contact.cp_title, value_key = 'description', title_key = 'description', with_empty = 1, onchange = '$("#contact_cp_title").val(this.value);', class="wi-wide helper") %] |
|
59 |
[% L.input_tag('contact.cp_title', SELF.contact.cp_title, size = 40, class="wi-wide addition") %] |
|
60 |
[% ELSE %] |
|
61 |
[% L.select_tag('contact.cp_title', SELF.all_contact_titles, default = SELF.contact.cp_title, value_key = 'description', title_key = 'description', with_empty = 1, class="wi-wide helper") %] |
|
62 |
[% END %] |
|
123 | 63 |
</td> |
124 | 64 |
</tr> |
125 |
|
|
126 | 65 |
<tr> |
127 |
<th align="right" nowrap>[% 'Mobile1' | $T8 %]</th> |
|
128 |
|
|
129 |
<td> |
|
130 |
[% L.input_tag('contact.cp_mobile1', SELF.contact.cp_mobile1, size = 40) %] |
|
131 |
</td> |
|
66 |
<th>[% 'Project' | $T8 %]</th> |
|
67 |
<td>[% L.input_tag('contact.cp_project', SELF.contact.cp_project, class="wi-wide") %]</td> |
|
132 | 68 |
</tr> |
133 |
|
|
134 | 69 |
<tr> |
135 |
<th align="right" nowrap>[% 'Mobile2' | $T8 %]</th> |
|
136 |
|
|
137 |
<td> |
|
138 |
[% L.input_tag('contact.cp_mobile2', SELF.contact.cp_mobile2, size = 40) %] |
|
139 |
</td> |
|
70 |
<th class="caption" colspan="2">[% 'Department & Function' | $T8 %]</th> |
|
140 | 71 |
</tr> |
141 |
|
|
142 | 72 |
<tr> |
143 |
<th align="right" nowrap>[% 'Sat. Phone' | $T8 %]</th> |
|
144 |
|
|
73 |
<th>[% 'Department' | $T8 %]</th> |
|
145 | 74 |
<td> |
146 |
[% L.input_tag('contact.cp_satphone', SELF.contact.cp_satphone, size = 40) %] |
|
75 |
[% IF INSTANCE_CONF.get_contact_departments_use_textfield %] |
|
76 |
[% L.select_tag('contact_cp_abteilung_select', SELF.all_contact_departments, default = SELF.contact.cp_abteilung, value_key = 'description', title_key = 'description', with_empty = 1, onchange = '$("#contact_cp_abteilung").val(this.value);', class='wi-wide helper') %] |
|
77 |
[% L.input_tag('contact.cp_abteilung', SELF.contact.cp_abteilung, size = 40, class="wi-wide addition") %] |
|
78 |
[% ELSE %] |
|
79 |
[% L.select_tag('contact.cp_abteilung', SELF.all_contact_departments, default = SELF.contact.cp_abteilung, value_key = 'description', title_key = 'description', with_empty = 1, class='wi-wide helper') %] |
|
80 |
[% END %] |
|
147 | 81 |
</td> |
148 | 82 |
</tr> |
149 |
|
|
150 | 83 |
<tr> |
151 |
<th align="right" nowrap>[% 'Sat. Fax' | $T8 %]</th> |
|
152 |
|
|
153 |
<td> |
|
154 |
[% L.input_tag('contact.cp_satfax', SELF.contact.cp_satfax, size = 40) %] |
|
155 |
</td> |
|
84 |
<th>[% 'Function/position' | $T8 %]</th> |
|
85 |
<td>[% L.input_tag('contact.cp_position', SELF.contact.cp_position, class="wi-wide") %]</td> |
|
156 | 86 |
</tr> |
157 |
|
|
158 | 87 |
<tr> |
159 |
<th align="right" nowrap>[% 'Project' | $T8 %]</th> |
|
160 |
|
|
161 |
<td> |
|
162 |
[% L.input_tag('contact.cp_project', SELF.contact.cp_project, size = 40) %] |
|
163 |
</td> |
|
88 |
<th class="caption" colspan="2">[% 'Address' | $T8 %]</th> |
|
164 | 89 |
</tr> |
165 |
|
|
166 | 90 |
<tr> |
167 |
<th align="right" nowrap>[% 'Street' | $T8 %]</th> |
|
168 |
|
|
91 |
<th>[% 'Street' | $T8 %]</th> |
|
169 | 92 |
<td> |
170 |
[% L.input_tag('contact.cp_street', SELF.contact.cp_street, size = 40) %]
|
|
93 |
[% L.input_tag('contact.cp_street', SELF.contact.cp_street, class="wi-wide") %]
|
|
171 | 94 |
<span id="contact_map"></span> |
172 | 95 |
<script type="text/javascript"> |
173 | 96 |
var contactsMapWidget = new kivi.CustomerVendor.MapWidget('contact_cp_'); |
... | ... | |
177 | 100 |
</script> |
178 | 101 |
</td> |
179 | 102 |
</tr> |
180 |
|
|
181 |
<tr> |
|
182 |
<th align="right" nowrap>[% 'Zip, City' | $T8 %]</th> |
|
183 |
|
|
184 |
<td> |
|
185 |
[% L.input_tag('contact.cp_zipcode', SELF.contact.cp_zipcode, size = 5) %] |
|
186 |
[% L.input_tag('contact.cp_city', SELF.contact.cp_city, size = 25) %] |
|
187 |
</td> |
|
188 |
</tr> |
|
189 |
|
|
190 |
<tr> |
|
191 |
<th align="right" nowrap>[% 'Private Phone' | $T8 %]</th> |
|
192 |
|
|
193 |
<td> |
|
194 |
[% L.input_tag('contact.cp_privatphone', SELF.contact.cp_privatphone, size = 40) %] |
|
195 |
</td> |
|
196 |
</tr> |
|
197 |
|
|
198 |
<tr> |
|
199 |
<th align="right" nowrap>[% 'Private E-mail' | $T8 %]</th> |
|
200 |
|
|
201 |
<td> |
|
202 |
[% L.input_tag('contact.cp_privatemail', SELF.contact.cp_privatemail, size = 40) %] |
|
203 |
</td> |
|
204 |
</tr> |
|
205 |
|
|
206 | 103 |
<tr> |
207 |
<th align="right" nowrap>[% 'Birthday' | $T8 %]</th> |
|
208 |
|
|
104 |
<th>[% 'Zip, City' | $T8 %]</th> |
|
209 | 105 |
<td> |
210 |
[% L.date_tag('contact.cp_birthday', SELF.contact.cp_birthday) %]
|
|
106 |
[% L.input_tag('contact.cp_zipcode', SELF.contact.cp_zipcode, class="wi-verysmall") %][% L.input_tag('contact.cp_city', SELF.contact.cp_city, class="wi-wide--verysmall") %]
|
|
211 | 107 |
</td> |
212 | 108 |
</tr> |
213 |
|
|
214 | 109 |
[% contact_cvars = SELF.contact.cvars_by_config %] |
215 |
|
|
216 | 110 |
[% IF ( contact_cvars.size ) %] |
217 |
<tr> |
|
218 |
<td colspan="2"> |
|
219 |
<hr> |
|
220 |
</td> |
|
221 |
</tr> |
|
222 |
|
|
111 |
<!-- PENDENT: Horizontal Rule --> |
|
223 | 112 |
[% FOREACH var = contact_cvars %] |
224 | 113 |
<tr> |
225 |
<th align="right" valign="top" nowrap>[% var.config.description | html %]</th> |
|
226 |
|
|
227 |
<td valign="top"> |
|
114 |
<th>[% var.config.description | html %]</th> |
|
115 |
<td> |
|
228 | 116 |
[% INCLUDE 'common/render_cvar_input.html' |
229 | 117 |
cvar_name_prefix = 'contact_cvars.' |
230 | 118 |
%] |
... | ... | |
232 | 120 |
</tr> |
233 | 121 |
[% END %] |
234 | 122 |
[% END %] |
123 |
</tbody> |
|
124 |
</table> |
|
235 | 125 |
|
236 |
</table> |
|
126 |
<table class="tbl-horizontal"> |
|
127 |
<caption>[% 'Communication' | $T8 %]</caption> |
|
128 |
<tbody> |
|
129 |
<tr> |
|
130 |
<th>[% 'E-mail' | $T8 %]</th> |
|
131 |
<td>[% L.input_tag('contact.cp_email', SELF.contact.cp_email, class="wi-wide") %]</td> |
|
132 |
</tr> |
|
133 |
<tr> |
|
134 |
<th>[% 'Phone1' | $T8 %]</th> |
|
135 |
<td>[% L.input_tag('contact.cp_phone1', SELF.contact.cp_phone1, class="wi-wide") %]</td> |
|
136 |
</tr> |
|
137 |
<tr> |
|
138 |
<th>[% 'Phone2' | $T8 %]</th> |
|
139 |
<td>[% L.input_tag('contact.cp_phone2', SELF.contact.cp_phone2, class="wi-wide") %]</td> |
|
140 |
</tr> |
|
141 |
<tr> |
|
142 |
<th>[% 'Fax' | $T8 %]</th> |
|
143 |
<td>[% L.input_tag('contact.cp_fax', SELF.contact.cp_fax, class="wi-wide") %]</td> |
|
144 |
</tr> |
|
145 |
<tr> |
|
146 |
<th>[% 'Mobile1' | $T8 %]</th> |
|
147 |
<td>[% L.input_tag('contact.cp_mobile1', SELF.contact.cp_mobile1, class="wi-wide") %]</td> |
|
148 |
</tr> |
|
149 |
<tr> |
|
150 |
<th>[% 'Mobile2' | $T8 %]</th> |
|
151 |
<td>[% L.input_tag('contact.cp_mobile2', SELF.contact.cp_mobile2, class="wi-wide") %]</td> |
|
152 |
</tr> |
|
153 |
<tr> |
|
154 |
<th>[% 'Sat. Phone' | $T8 %]</th> |
|
155 |
<td>[% L.input_tag('contact.cp_satphone', SELF.contact.cp_satphone, class="wi-wide") %]</td> |
|
156 |
</tr> |
|
157 |
<tr> |
|
158 |
<th>[% 'Sat. Fax' | $T8 %]</th> |
|
159 |
<td>[% L.input_tag('contact.cp_satfax', SELF.contact.cp_satfax, class="wi-wide") %]</td> |
|
160 |
</tr> |
|
161 |
<tr> |
|
162 |
<th>[% 'Private Phone' | $T8 %]</th> |
|
163 |
<td>[% L.input_tag('contact.cp_privatphone', SELF.contact.cp_privatphone, class="wi-wide") %]</td> |
|
164 |
</tr> |
|
165 |
<tr> |
|
166 |
<th>[% 'Private E-mail' | $T8 %]</th> |
|
167 |
<td>[% L.input_tag('contact.cp_privatemail', SELF.contact.cp_privatemail, class="wi-wide") %]</td> |
|
168 |
</tr> |
|
169 |
</tbody> |
|
170 |
</table> |
|
237 | 171 |
|
172 |
<div class="buttons"> |
|
238 | 173 |
[% L.button_tag('submitInputButton("delete_contact");', LxERP.t8('Delete Contact'), id = 'action_delete_contact', class = 'submit') %] |
239 | 174 |
[% IF ( !SELF.contact.cp_id ) %] |
240 | 175 |
<script type="text/javascript"> |
... | ... | |
242 | 177 |
</script> |
243 | 178 |
[% END %] |
244 | 179 |
</div> |
180 |
|
|
181 |
</div><!-- /.cols --> |
|
182 |
|
|
183 |
</div><!-- /#contacts --> |
templates/webpages/customer_vendor/tabs/custom_variables.html | ||
---|---|---|
1 | 1 |
[% USE HTML %] |
2 |
[% USE T8 %] |
|
2 | 3 |
|
3 | 4 |
<div id="custom_variables"> |
4 |
<p> |
|
5 |
<table> |
|
6 |
[% FOREACH var = SELF.cv.cvars_by_config %] |
|
7 |
<tr> |
|
8 |
<th align="right" valign="top" nowrap>[% var.config.description | html %]</th> |
|
9 |
|
|
10 |
<td valign="top"> |
|
11 |
[% INCLUDE 'common/render_cvar_input.html' |
|
12 |
cvar_name_prefix = 'cv_cvars.' |
|
13 |
var_name = '' |
|
14 |
%] |
|
15 |
</td> |
|
16 |
</tr> |
|
17 |
[% END %] |
|
5 |
<div class="wrapper"> |
|
6 |
<table class="tbl-horizontal"> |
|
7 |
<caption>[% 'Custom variables' | $T8 %]</caption> |
|
8 |
<tbody> |
|
9 |
[% FOREACH var = SELF.cv.cvars_by_config %] |
|
10 |
<tr> |
|
11 |
<th>[% var.config.description | html %]</th> |
|
12 |
<td>[% INCLUDE 'common/render_cvar_input.html', cvar_name_prefix = 'cv_cvars.', var_name = '' %]</td> |
|
13 |
</tr> |
|
14 |
[% END %] |
|
15 |
</tbody> |
|
18 | 16 |
</table> |
19 |
</p>
|
|
17 |
</div>
|
|
20 | 18 |
</div> |
templates/webpages/customer_vendor/tabs/deliveries.html | ||
---|---|---|
1 | 1 |
[% USE T8 %] |
2 | 2 |
[% USE LxERP %] |
3 | 3 |
[% USE L %] |
4 |
|
|
4 |
<!-- PENDENT: Element-Klassen neu definieren --> |
|
5 | 5 |
<div id="deliveries"> |
6 |
<table> |
|
7 |
<tr> |
|
8 |
<th align="right">[% 'Shipping Address' | $T8 %]</th> |
|
9 |
<td colspan="3"> |
|
10 |
[% temp = [{shipto_id = 'all', displayable_id = LxERP.t8('All')}] %] |
|
11 |
[% temp = temp.merge(SELF.shiptos) %] |
|
12 |
[% |
|
13 |
L.select_tag( |
|
14 |
'delivery_id', |
|
15 |
temp, |
|
16 |
value_key = 'shipto_id', |
|
17 |
title_key = 'displayable_id', |
|
18 |
with_empty = 1, |
|
19 |
onchange = "kivi.CustomerVendor.selectDelivery();" |
|
20 |
) |
|
21 |
%] |
|
22 |
</td> |
|
23 |
</tr> |
|
24 |
|
|
25 |
<tr> |
|
26 |
<th align="right" nowrap>[% 'From' | $T8 %]</th> |
|
27 |
|
|
28 |
<td> |
|
29 |
[% |
|
30 |
L.date_tag( |
|
31 |
'delivery_from', |
|
32 |
FORM.delivery_from, |
|
33 |
onchange => "kivi.CustomerVendor.selectDelivery(this.form.delivery_from.value, this.form.delivery_to.value);" |
|
34 |
) |
|
35 |
%] |
|
36 |
</td> |
|
37 | 6 |
|
7 |
<div class="select-item control-panel"> |
|
8 |
<span class="formelement"> |
|
9 |
[% temp = [{shipto_id = 'all', displayable_id = LxERP.t8('All')}] %] |
|
10 |
[% temp = temp.merge(SELF.shiptos) %] |
|
11 |
[% 'Select Deliveries' | $T8 %] [% |
|
12 |
L.select_tag( |
|
13 |
'delivery_id', |
|
14 |
temp, |
|
15 |
value_key = 'shipto_id', |
|
16 |
title_key = 'displayable_id', |
|
17 |
with_empty = 1, |
|
18 |
onchange = "kivi.CustomerVendor.selectDelivery();", |
|
19 |
class='wi-lightwide', |
|
20 |
id='delivery_id' |
|
21 |
) |
|
22 |
%] |
|
23 |
</span> |
|
24 |
<span class="formelement"> |
|
25 |
[% 'From' | $T8 %] [% |
|
26 |
L.date_tag( |
|
27 |
'delivery_from', |
|
28 |
FORM.delivery_from, |
|
29 |
onchange => "kivi.CustomerVendor.selectDelivery(this.form.delivery_from.value, this.form.delivery_to.value);", |
|
30 |
class='wi-date' |
|
31 |
) |
|
32 |
%] |
|
33 |
</span> |
|
34 |
<span class="formelement"> |
|
35 |
[% 'To (time)' | $T8 %] [% |
|
36 |
L.date_tag( |
|
37 |
'delivery_to', |
|
38 |
FORM.delivery_to, |
|
39 |
onchange => "kivi.CustomerVendor.selectDelivery(this.form.delivery_from.value, this.form.delivery_to.value);", |
|
40 |
class='wi-date' |
|
41 |
) |
|
42 |
%] |
|
43 |
</span> |
|
44 |
</div> |
|
45 |
<!-- PENDENT: ein No-Result-Feature wuerde sich hier noch gut machen --> |
|
46 |
<div class="wrapper"> |
|
47 |
<div id="delivery">[% 'Please wait!' | $T8 %]</div> |
|
48 |
</div> |
|
38 | 49 |
|
39 |
<th align="right" nowrap>[% 'To (time)' | $T8 %]</th> |
|
40 |
|
|
41 |
<td> |
|
42 |
[% |
|
43 |
L.date_tag( |
|
44 |
'delivery_to', |
|
45 |
FORM.delivery_to, |
|
46 |
onchange => "kivi.CustomerVendor.selectDelivery(this.form.delivery_from.value, this.form.delivery_to.value);" |
|
47 |
) |
|
48 |
%] |
|
49 |
</td> |
|
50 |
</tr> |
|
51 |
|
|
52 |
<tr> |
|
53 |
<td colspan="4"> |
|
54 |
<div id="delivery"></div> |
|
55 |
</td> |
|
56 |
</tr> |
|
57 |
</table> |
|
58 | 50 |
</div> |
51 |
|
|
52 |
<script type="text/javascript"> |
|
53 |
$('#delivery_id option[value=all]').attr('selected','selected'); |
|
54 |
kivi.CustomerVendor.selectDelivery(); |
|
55 |
</script> |
templates/webpages/customer_vendor/tabs/price_rules.html | ||
---|---|---|
3 | 3 |
[% USE L %] |
4 | 4 |
|
5 | 5 |
<div id="price_rules"> |
6 |
<div class="wrapper"> |
|
6 | 7 |
<div id='price_rules_customer_report'></div> |
7 | 8 |
<div id='price_rules_vendor_report'></div> |
8 |
|
|
9 | 9 |
<script type='text/javascript'> |
10 | 10 |
$(function() { |
11 | 11 |
window.setTimeout(function(){ |
... | ... | |
26 | 26 |
}, 200); |
27 | 27 |
}) |
28 | 28 |
</script> |
29 |
</div> |
|
30 |
|
|
29 |
</div><!-- /.wrapper --> |
|
30 |
</div><!-- /#price_rules --> |
templates/webpages/customer_vendor/tabs/shipto.html | ||
---|---|---|
3 | 3 |
[% USE L %] |
4 | 4 |
|
5 | 5 |
<div id="shipto"> |
6 |
<table width="100%" id="shipto_table"> |
|
7 |
<tr> |
|
8 |
<th align="right">[% 'Shipping Address' | $T8 %]</th> |
|
9 |
|
|
10 |
<td> |
|
11 |
[% L.select_tag( |
|
12 |
'shipto.shipto_id', |
|
13 |
SELF.shiptos, |
|
14 |
default = SELF.shipto.shipto_id, |
|
15 |
value_key = 'shipto_id', |
|
16 |
title_key = 'displayable_id', |
|
17 |
with_empty = 1, |
|
18 |
empty_title = LxERP.t8('New shipto'), |
|
19 |
onchange = "kivi.CustomerVendor.selectShipto({onFormSet: function(){ shiptoMapWidget.testInputs(); kivi.reinit_widgets(); }});", |
|
20 |
) |
|
21 |
%] |
|
22 |
</td> |
|
23 |
</tr> |
|
24 |
|
|
25 |
<tr> |
|
26 |
<th align="right" nowrap>[% 'Name' | $T8 %]</th> |
|
27 |
|
|
28 |
<td> |
|
29 |
[% L.input_tag('shipto.shiptoname', SELF.shipto.shiptoname, size = 35) %] |
|
30 |
</td> |
|
31 |
</tr> |
|
32 |
|
|
33 |
<tr> |
|
34 |
<th align="right" nowrap>[% 'Department' | $T8 %]</th> |
|
35 |
|
|
36 |
<td> |
|
37 |
[% L.input_tag('shipto.shiptodepartment_1', SELF.shipto.shiptodepartment_1, size = 16) %] |
|
38 |
[% L.input_tag('shipto.shiptodepartment_2', SELF.shipto.shiptodepartment_2, size = 16) %] |
|
39 |
</td> |
|
40 |
</tr> |
|
41 |
|
|
42 |
<tr> |
|
43 |
<th align="right" nowrap>[% 'Street' | $T8 %]</th> |
|
44 |
|
|
45 |
<td> |
|
46 |
[% L.input_tag('shipto.shiptostreet', SELF.shipto.shiptostreet, size = 35) %] |
|
47 |
|
|
48 |
<span id="shipto_map"></span> |
|
49 |
<script type="text/javascript"> |
|
50 |
shiptoMapWidget = new kivi.CustomerVendor.MapWidget('shipto_shipto'); |
|
51 |
$(function() { |
|
52 |
shiptoMapWidget.render($('#shipto_map')); |
|
53 |
}); |
|
54 |
</script> |
|
55 |
</td> |
|
56 |
</tr> |
|
57 |
|
|
58 |
<tr> |
|
59 |
<th align="right" nowrap>[% 'Zipcode' | $T8 %]/[% 'City' | $T8 %]</th> |
|
60 |
|
|
61 |
<td> |
|
62 |
[% L.input_tag('shipto.shiptozipcode', SELF.shipto.shiptozipcode, size = 5) %] |
|
63 |
[% L.input_tag('shipto.shiptocity', SELF.shipto.shiptocity, size = 30) %] |
|
64 |
</td> |
|
65 |
</tr> |
|
66 |
|
|
67 |
<tr> |
|
68 |
<th align="right" nowrap>[% 'Country' | $T8 %]</th> |
|
69 |
|
|
70 |
<td> |
|
71 |
[% L.input_tag('shipto.shiptocountry', SELF.shipto.shiptocountry, size = 35) %] |
|
72 |
</td> |
|
73 |
</tr> |
|
74 |
|
|
75 |
<tr> |
|
76 |
<th align="right" nowrap>[% 'GLN' | $T8 %]</th> |
|
77 |
|
|
78 |
<td> |
|
79 |
[% L.input_tag('shipto.shiptogln', SELF.shipto.shiptogln, size = 35) %] |
|
80 |
</td> |
|
81 |
</tr> |
|
82 |
|
|
83 |
<tr> |
|
84 |
<th align="right" nowrap>[% 'Contact' | $T8 %]</th> |
|
85 |
|
|
86 |
<td> |
|
87 |
[% L.input_tag('shipto.shiptocontact', SELF.shipto.shiptocontact, size = 30) %] |
|
88 |
</td> |
|
89 |
</tr> |
|
90 |
|
|
91 |
<tr> |
|
92 |
<th align="right" nowrap>[% 'Phone' | $T8 %]</th> |
|
93 |
|
|
94 |
<td> |
|
95 |
[% L.input_tag('shipto.shiptophone', SELF.shipto.shiptophone, size = 30) %] |
|
96 |
</td> |
|
97 |
</tr> |
|
98 |
|
Auch abrufbar als: Unified diff
Design 4.0: Aenderungen in templates/webpages/customer_vendor/..