Revision 5c40e64a
Von Hans Peter Schlaepfer vor etwa 5 Jahren hinzugefügt
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> </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> |
Auch abrufbar als: Unified diff
Neues kivitendo Design Aenderungen in templates/webpages/common/..