Revision 37a322ba
Von Hans Peter Schlaepfer vor mehr als 5 Jahren hinzugefügt
templates/webpages/customer_vendor/tabs/shipto.html | ||
---|---|---|
1 |
[%- USE T8 %]
|
|
2 |
[%- USE LxERP %]
|
|
3 |
[%- USE L %]
|
|
1 |
[% USE T8 %] |
|
2 |
[% USE LxERP %] |
|
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 |
|
|
99 |
<tr> |
|
100 |
<th align="right" nowrap>[% 'Fax' | $T8 %]</th> |
|
101 |
|
|
102 |
<td> |
|
103 |
[% L.input_tag('shipto.shiptofax', SELF.shipto.shiptofax, size = 30) %] |
|
104 |
</td> |
|
105 |
</tr> |
|
106 |
|
|
107 |
<tr> |
|
108 |
<th align="right" nowrap>[% 'E-mail' | $T8 %]</th> |
|
6 |
<div class="select-item control-panel"> |
|
7 |
[% 'Select Shipping Address' | $T8 %] |
|
8 |
[% L.select_tag( |
|
9 |
'shipto.shipto_id', |
|
10 |
SELF.shiptos, |
|
11 |
default = SELF.shipto.shipto_id, |
|
12 |
value_key = 'shipto_id', |
|
13 |
title_key = 'displayable_id', |
|
14 |
with_empty = 1, |
|
15 |
empty_title = LxERP.t8('New shipto'), |
|
16 |
onchange = "kivi.CustomerVendor.selectShipto({onFormSet: function(){ shiptoMapWidget.testInputs(); kivi.reinit_widgets(); }});", |
|
17 |
) |
|
18 |
%] |
|
19 |
</div> |
|
109 | 20 |
|
110 |
<td> |
|
111 |
[% L.input_tag('shipto.shiptoemail', SELF.shipto.shiptoemail, size = 45) %] |
|
112 |
</td> |
|
113 |
</tr> |
|
21 |
<div class="wrapper"> |
|
114 | 22 |
|
115 |
[% shipto_cvars = SELF.shipto.cvars_by_config %]
|
|
23 |
<div class="item">
|
|
116 | 24 |
|
117 |
[% IF ( shipto_cvars.size ) %] |
|
25 |
<table id="shipto_table" class="tbl-horizontal"> |
|
26 |
<caption>[% 'Name and address' | $T8 %]</caption> |
|
27 |
<tbody> |
|
118 | 28 |
<tr> |
119 |
<td colspan="2"> |
|
120 |
<hr> |
|
29 |
<th>[% 'Name' | $T8 %]</th> |
|
30 |
<td>[% L.input_tag('shipto.shiptoname', SELF.shipto.shiptoname, class="wi-wide") %]</td> |
|
31 |
</tr> |
|
32 |
<tr> |
|
33 |
<th>[% 'Department' | $T8 %]</th> |
|
34 |
<td> |
|
35 |
[% L.input_tag('shipto.shiptodepartment_1', SELF.shipto.shiptodepartment_1, class="wi-wide") %] <br> |
|
36 |
[% L.input_tag('shipto.shiptodepartment_2', SELF.shipto.shiptodepartment_2, class="wi-wide addition") %] |
|
121 | 37 |
</td> |
122 | 38 |
</tr> |
39 |
<tr> |
|
40 |
<th>[% 'Street' | $T8 %]</th> |
|
41 |
<td>[% L.input_tag('shipto.shiptostreet', SELF.shipto.shiptostreet, class="wi-wide") %] |
|
42 |
<span id="shipto_map"></span> |
|
43 |
<script type="text/javascript"> |
|
44 |
shiptoMapWidget = new kivi.CustomerVendor.MapWidget('shipto_shipto'); |
|
45 |
$(function() { |
|
46 |
shiptoMapWidget.render($('#shipto_map')); |
|
47 |
}); |
|
48 |
</script> |
|
49 |
</td> |
|
50 |
</tr> |
|
51 |
<tr> |
|
52 |
<th>[% 'Zipcode' | $T8 %]/[% 'City' | $T8 %]</th> |
|
53 |
<td> |
|
54 |
[% L.input_tag('shipto.shiptozipcode', SELF.shipto.shiptozipcode, class="wi-verysmall") %][% L.input_tag('shipto.shiptocity', SELF.shipto.shiptocity, class="wi-wide--verysmall", style='width:13.1em;') %] |
|
55 |
</td> |
|
56 |
</tr> |
|
57 |
<tr> |
|
58 |
<th>[% 'Country' | $T8 %]</th> |
|
59 |
<td>[% L.input_tag('shipto.shiptocountry', SELF.shipto.shiptocountry, class="wi-wide") %]</td> |
|
60 |
</tr> |
|
61 |
<tr> |
|
62 |
<th>[% 'GLN' | $T8 %]</th> |
|
63 |
<td>[% L.input_tag('shipto.shiptogln', SELF.shipto.shiptogln, class="wi-wide") %]</td> |
|
64 |
</tr> |
|
65 |
</tbody> |
|
66 |
</table> |
|
123 | 67 |
|
124 |
[% FOREACH var = shipto_cvars %] |
|
68 |
<table class="tbl-horizontal"> |
|
69 |
<caption>[% 'Communication' | $T8 %]</caption> |
|
70 |
<tbody> |
|
71 |
<tr> |
|
72 |
<th>[% 'Contact' | $T8 %]</th> |
|
73 |
<td>[% L.input_tag('shipto.shiptocontact', SELF.shipto.shiptocontact, class="wi-wide") %]</td> |
|
74 |
</tr> |
|
75 |
<tr> |
|
76 |
<th>[% 'Phone' | $T8 %]</th> |
|
77 |
<td>[% L.input_tag('shipto.shiptophone', SELF.shipto.shiptophone, class="wi-wide") %]</td> |
|
78 |
</tr> |
|
79 |
<tr> |
|
80 |
<th>[% 'Fax' | $T8 %]</th> |
|
81 |
<td>[% L.input_tag('shipto.shiptofax', SELF.shipto.shiptofax, class="wi-wide") %]</td> |
|
82 |
</tr> |
|
83 |
<tr> |
|
84 |
<th>[% 'E-mail' | $T8 %]</th> |
|
85 |
<td>[% L.input_tag('shipto.shiptoemail', SELF.shipto.shiptoemail, class="wi-wide") %]</td> |
|
86 |
</tr> |
|
87 |
[% shipto_cvars = SELF.shipto.cvars_by_config %] |
|
88 |
[% IF ( shipto_cvars.size ) %] |
|
89 |
<!-- PENDENT: Horizontal Rule --> |
|
90 |
[% FOREACH var = shipto_cvars %] |
|
125 | 91 |
<tr> |
126 |
<th align="right" valign="top" nowrap>[% var.config.description | html %]</th> |
|
127 |
|
|
128 |
<td valign="top"> |
|
129 |
[% INCLUDE 'common/render_cvar_input.html' |
|
130 |
cvar_name_prefix = 'shipto_cvars.' |
|
131 |
%] |
|
92 |
<th>[% var.config.description | html %]</th> |
|
93 |
<td> |
|
94 |
[% INCLUDE 'common/render_cvar_input.html', cvar_name_prefix='shipto_cvars.' %] |
|
132 | 95 |
</td> |
133 | 96 |
</tr> |
97 |
[% END %] |
|
134 | 98 |
[% END %] |
135 |
[% END %]
|
|
99 |
</tbody>
|
|
136 | 100 |
</table> |
137 | 101 |
|
102 |
</div><!-- /.item --> |
|
103 |
|
|
104 |
<div class="buttons"> |
|
138 | 105 |
[% L.button_tag('submitInputButton("delete_shipto");', LxERP.t8('Delete Shipto'), class = 'submit') %] |
139 |
[% IF ( !SELF.shipto.shipto_id ) %] |
|
140 |
<script type="text/javascript"> |
|
141 |
$('#action_delete_shipto').hide(); |
|
142 |
</script> |
|
143 |
[% END %] |
|
144 | 106 |
</div> |
107 |
|
|
108 |
</div><!-- /.wrapper --> |
|
109 |
</div> |
|
110 |
[% IF ( !SELF.shipto.shipto_id ) %] |
|
111 |
<script type="text/javascript"> |
|
112 |
$('#action_delete_shipto').hide(); |
|
113 |
</script> |
|
114 |
[% END %] |
|
115 |
|
|
116 |
|
Auch abrufbar als: Unified diff
Neues kivitendo Design Aenderungen in templates/webpages/customer_vendor/..