Revision 6051a1b8
Von Hans P. Schlaepfer vor etwa 4 Jahren hinzugefügt
templates/webpages/shop_order/show.html | ||
---|---|---|
3 | 3 |
[% USE L %] |
4 | 4 |
[% USE T8 %] |
5 | 5 |
[% L.stylesheet_tag('webshop') %] |
6 |
[%- INCLUDE 'common/flash.html' %] |
|
6 |
|
|
7 | 7 |
<h1>[% title %]</h1> |
8 | 8 |
|
9 |
<div class="shop_table shop_main"> |
|
10 |
<div class="shop_table-row"> |
|
11 |
<div class="shop_table-cell"> |
|
12 |
<form method="post" action="controller.pl" id="customer">[% L.hidden_tag('create_customer','customer') %][% L.hidden_tag('import_id', IMPORT.id) %] |
|
13 |
<div class="shop_table shop_table_address"> |
|
14 |
<div class="shop_table-row listheading"> |
|
15 |
<div class="shop_table-cell">[% 'Shop Customer Address' | $T8 %]</div> |
|
16 |
<div class="shop_table-cell"></div> |
|
17 |
</div> |
|
18 |
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Greeting' | $T8 %]</div><div class="shop_table-cell">[% HTML.escape(IMPORT.customer_greeting) %]</div></div> |
|
19 |
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Firstname' | $T8 %]</div><div class="shop_table-cell">[% HTML.escape(IMPORT.customer_firstname) %]</div></div> |
|
20 |
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Lastname' | $T8 %]</div><div class="shop_table-cell">[% HTML.escape(IMPORT.customer_lastname) %]</div></div> |
|
21 |
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Company' | $T8 %]</div><div class="shop_table-cell">[% HTML.escape(IMPORT.customer_company) %]</div></div> |
|
22 |
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Department' | $T8 %]</div><div class="shop_table-cell">[% HTML.escape(IMPORT.customer_department) %]</div></div> |
|
23 |
[% SET customer = IMPORT.customer_firstname _ ' ' _ IMPORT.customer_lastname %] |
|
24 |
<hr> |
|
25 |
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Greeting' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('customer_greeting', IMPORT.customer_greeting) %]</div></div> |
|
26 |
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Customer' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('customer_name', customer) %]</div></div> |
|
27 |
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Name 2' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('customer_company', IMPORT.customer_company) %]</div></div> |
|
28 |
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Name 3' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('customer_department', IMPORT.customer_department) %]</div></div> |
|
29 |
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Street' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('customer_street', IMPORT.customer_street) %]</div></div> |
|
30 |
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Zipcode' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('customer_zipcode', IMPORT.customer_zipcode) %]</div></div> |
|
31 |
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'City' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('customer_city', IMPORT.customer_city) %]</div></div> |
|
32 |
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Country' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('customer_country', IMPORT.customer_country) %]</div></div> |
|
33 |
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Phone' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('customer_phone', IMPORT.customer_phone) %]</div></div> |
|
34 |
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Email' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('customer_email', IMPORT.customer_email) %]</div></div> |
|
35 |
[% IF C_ADDRESS %] |
|
36 |
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Customernumber' | $T8 %]</div><div class="shop_table-cell">[% C_ADDRESS.customernumber %]</div></div> |
|
37 |
[% ELSE %] |
|
38 |
<div>[% L.ajax_submit_tag("controller.pl?action=ShopOrder/apply_customer", "#customer", LxERP.t8("Apply customer")) %]</div> |
|
39 |
[% END %] |
|
9 |
[% INCLUDE 'common/flash.html' %] |
|
10 |
|
|
11 |
<!-- |
|
12 |
PENDENT: Die DIV-Tables umwandeln in horizontale Tabellen. |
|
13 |
Vielleicht vorher mit Werner Hahn absprechen. |
|
14 |
Einzuege bitte so belassen wie hier, sonst hat man keine Uebersicht und findet die HTML-Fehler kaum! |
|
15 |
Solches Zeugs bitte schoener formatiert programmieren. Als Programmierer findet ja man sich so auch besser zurecht. |
|
16 |
--> |
|
17 |
<div class="shop_table shop_main"> |
|
18 |
<div class="shop_table-row"> |
|
19 |
|
|
20 |
<div class="shop_table-cell"> |
|
21 |
|
|
22 |
<form method="post" action="controller.pl" id="customer"> |
|
23 |
[% L.hidden_tag('create_customer','customer') %] |
|
24 |
[% L.hidden_tag('import_id', IMPORT.id) %] |
|
25 |
<div class="shop_table shop_table_address"> |
|
26 |
<div class="shop_table-row listheading"> |
|
27 |
<div class="shop_table-cell">[% 'Shop Customer Address' | $T8 %]</div> |
|
28 |
<div class="shop_table-cell"></div> |
|
40 | 29 |
</div> |
41 |
</form> |
|
42 |
</div> |
|
43 |
<div class="shop_table-cell"> |
|
44 |
<form method="post" action="controller.pl" id="billing">[% L.hidden_tag('create_customer','billing') %][% L.hidden_tag('import_id', IMPORT.id) %] |
|
45 |
<div class="shop_table shop_table_address"> |
|
46 |
<div class="shop_table-row listheading"> |
|
47 |
<div class="shop_table-cell">[% 'Shop Billing Address' | $T8 %]</div> |
|
48 |
<div class="shop_table-cell"></div> |
|
30 |
<div class="shop_table-row"> |
|
31 |
<div class="shop_table-cell listheading">[% 'Greeting' | $T8 %]</div> |
|
32 |
<div class="shop_table-cell">[% HTML.escape(IMPORT.customer_greeting) %]</div> |
|
33 |
</div> |
|
34 |
<div class="shop_table-row"> |
|
35 |
<div class="shop_table-cell listheading">[% 'Firstname' | $T8 %]</div> |
|
36 |
<div class="shop_table-cell">[% HTML.escape(IMPORT.customer_firstname) %]</div> |
|
37 |
</div> |
|
38 |
<div class="shop_table-row"> |
|
39 |
<div class="shop_table-cell listheading">[% 'Lastname' | $T8 %]</div> |
|
40 |
<div class="shop_table-cell">[% HTML.escape(IMPORT.customer_lastname) %]</div> |
|
41 |
</div> |
|
42 |
<div class="shop_table-row"> |
|
43 |
<div class="shop_table-cell listheading">[% 'Company' | $T8 %]</div> |
|
44 |
<div class="shop_table-cell">[% HTML.escape(IMPORT.customer_company) %]</div> |
|
45 |
</div> |
|
46 |
<div class="shop_table-row"> |
|
47 |
<div class="shop_table-cell listheading">[% 'Department' | $T8 %]</div> |
|
48 |
<div class="shop_table-cell">[% HTML.escape(IMPORT.customer_department) %]</div> |
|
49 |
</div> |
|
50 |
|
|
51 |
[% SET customer = IMPORT.customer_firstname _ ' ' _ IMPORT.customer_lastname %] |
|
52 |
<hr> |
|
53 |
|
|
54 |
<div class="shop_table-row"> |
|
55 |
<div class="shop_table-cell listheading">[% 'Greeting' | $T8 %]</div> |
|
56 |
<div class="shop_table-cell">[% L.input_tag('customer_greeting', IMPORT.customer_greeting) %]</div> |
|
57 |
</div> |
|
58 |
<div class="shop_table-row"> |
|
59 |
<div class="shop_table-cell listheading">[% 'Customer' | $T8 %]</div> |
|
60 |
<div class="shop_table-cell">[% L.input_tag('customer_name', customer) %]</div> |
|
61 |
</div> |
|
62 |
<div class="shop_table-row"> |
|
63 |
<div class="shop_table-cell listheading">[% 'Name 2' | $T8 %]</div> |
|
64 |
<div class="shop_table-cell">[% L.input_tag('customer_company', IMPORT.customer_company) %]</div> |
|
65 |
</div> |
|
66 |
<div class="shop_table-row"> |
|
67 |
<div class="shop_table-cell listheading">[% 'Name 3' | $T8 %]</div> |
|
68 |
<div class="shop_table-cell">[% L.input_tag('customer_department', IMPORT.customer_department) %]</div> |
|
69 |
</div> |
|
70 |
<div class="shop_table-row"> |
|
71 |
<div class="shop_table-cell listheading">[% 'Street' | $T8 %]</div> |
|
72 |
<div class="shop_table-cell">[% L.input_tag('customer_street', IMPORT.customer_street) %]</div> |
|
73 |
</div> |
|
74 |
<div class="shop_table-row"> |
|
75 |
<div class="shop_table-cell listheading">[% 'Zipcode' | $T8 %]</div> |
|
76 |
<div class="shop_table-cell">[% L.input_tag('customer_zipcode', IMPORT.customer_zipcode) %]</div> |
|
77 |
</div> |
|
78 |
<div class="shop_table-row"> |
|
79 |
<div class="shop_table-cell listheading">[% 'City' | $T8 %]</div> |
|
80 |
<div class="shop_table-cell">[% L.input_tag('customer_city', IMPORT.customer_city) %]</div> |
|
81 |
</div> |
|
82 |
<div class="shop_table-row"> |
|
83 |
<div class="shop_table-cell listheading">[% 'Country' | $T8 %]</div> |
|
84 |
<div class="shop_table-cell">[% L.input_tag('customer_country', IMPORT.customer_country) %]</div> |
|
85 |
</div> |
|
86 |
<div class="shop_table-row"> |
|
87 |
<div class="shop_table-cell listheading">[% 'Phone' | $T8 %]</div> |
|
88 |
<div class="shop_table-cell">[% L.input_tag('customer_phone', IMPORT.customer_phone) %]</div> |
|
89 |
</div> |
|
90 |
<div class="shop_table-row"> |
|
91 |
<div class="shop_table-cell listheading">[% 'Email' | $T8 %]</div> |
|
92 |
<div class="shop_table-cell">[% L.input_tag('customer_email', IMPORT.customer_email) %]</div> |
|
93 |
</div> |
|
94 |
|
|
95 |
[% IF C_ADDRESS %] |
|
96 |
<div class="shop_table-row"> |
|
97 |
<div class="shop_table-cell listheading">[% 'Customernumber' | $T8 %]</div> |
|
98 |
<div class="shop_table-cell">[% C_ADDRESS.customernumber %]</div> |
|
49 | 99 |
</div> |
50 |
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Greeting' | $T8 %]</div><div class="shop_table-cell">[% HTML.escape(IMPORT.billing_greeting) %]</div></div> |
|
51 |
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Firstname' | $T8 %]</div><div class="shop_table-cell">[% HTML.escape(IMPORT.billing_firstname) %]</div></div> |
|
52 |
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Lastname' | $T8 %]</div><div class="shop_table-cell">[% HTML.escape(IMPORT.billing_lastname) %]</div></div> |
|
53 |
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Company' | $T8 %]</div><div class="shop_table-cell">[% HTML.escape(IMPORT.billing_company) %]</div></div> |
|
54 |
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Department' | $T8 %]</div><div class="shop_table-cell">[% HTML.escape(IMPORT.billing_department) %]</div></div> |
|
55 |
[% SET billing = IMPORT.billing_firstname _ ' ' _ IMPORT.billing_lastname %] |
|
56 |
<hr> |
|
57 |
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Greeting' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('billing_greeting', IMPORT.billing_greeting) %]</div></div> |
|
58 |
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Customer' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('billing_name', billing) %]</div></div> |
|
59 |
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Name 2' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('billing_company', IMPORT.billing_company) %]</div></div> |
|
60 |
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Name 3' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('billing_department', IMPORT.billing_department) %]</div></div> |
|
61 |
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Street' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('billing_street', IMPORT.billing_street) %]</div></div> |
|
62 |
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Zipcode' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('billing_zipcode', IMPORT.billing_zipcode) %]</div></div> |
|
63 |
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'City' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('billing_city', IMPORT.billing_city) %]</div></div> |
|
64 |
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Country' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('billing_country', IMPORT.billing_country) %]</div></div> |
|
65 |
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Phone' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('billing_phone', IMPORT.billing_phone) %]</div></div> |
|
66 |
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Email' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('billing_email', IMPORT.billing_email) %]</div></div> |
|
67 |
[% IF B_ADDRESS %] |
|
68 |
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Customernumber' | $T8 %]</div><div class="shop_table-cell">[% B_ADDRESS.customernumber %]</div></div> |
|
69 |
[% ELSE %] |
|
70 |
<div>[% L.ajax_submit_tag("controller.pl?action=ShopOrder/apply_customer", "#billing", LxERP.t8("Apply customer")) %]</div> |
|
71 |
[% END %] |
|
100 |
[% ELSE %] |
|
101 |
<div> |
|
102 |
[% L.ajax_submit_tag("controller.pl?action=ShopOrder/apply_customer", "#customer", LxERP.t8("Apply customer")) %] |
|
103 |
</div> |
|
104 |
[% END %] |
|
105 |
</div><!-- /.shop_table /.shop_table_address --> |
|
106 |
</form><!-- /#customer --> |
|
107 |
</div><!-- /.shop_table-cell --> |
|
108 |
|
|
109 |
<div class="shop_table-cell"> |
|
110 |
|
|
111 |
<form method="post" action="controller.pl" id="billing"> |
|
112 |
[% L.hidden_tag('create_customer','billing') %] |
|
113 |
[% L.hidden_tag('import_id', IMPORT.id) %] |
|
114 |
|
|
115 |
<div class="shop_table shop_table_address"> |
|
116 |
|
|
117 |
<div class="shop_table-row listheading"> |
|
118 |
<div class="shop_table-cell">[% 'Shop Billing Address' | $T8 %]</div> |
|
119 |
<div class="shop_table-cell"></div> |
|
72 | 120 |
</div> |
73 |
</form> |
|
74 |
</div> |
|
75 |
<div class="shop_table-cell"> |
|
76 |
<form method="post" action="controller.pl" id="delivery">[% L.hidden_tag('create_customer','delivery') %][% L.hidden_tag('import_id', IMPORT.id) %] |
|
121 |
<div class="shop_table-row"> |
|
122 |
<div class="shop_table-cell listheading">[% 'Greeting' | $T8 %]</div> |
|
123 |
<div class="shop_table-cell">[% HTML.escape(IMPORT.billing_greeting) %]</div> |
|
124 |
</div> |
|
125 |
<div class="shop_table-row"> |
|
126 |
<div class="shop_table-cell listheading">[% 'Firstname' | $T8 %]</div> |
|
127 |
<div class="shop_table-cell">[% HTML.escape(IMPORT.billing_firstname) %]</div> |
|
128 |
</div> |
|
129 |
<div class="shop_table-row"> |
|
130 |
<div class="shop_table-cell listheading">[% 'Lastname' | $T8 %]</div> |
|
131 |
<div class="shop_table-cell">[% HTML.escape(IMPORT.billing_lastname) %]</div> |
|
132 |
</div> |
|
133 |
<div class="shop_table-row"> |
|
134 |
<div class="shop_table-cell listheading">[% 'Company' | $T8 %]</div> |
|
135 |
<div class="shop_table-cell">[% HTML.escape(IMPORT.billing_company) %]</div> |
|
136 |
</div> |
|
137 |
<div class="shop_table-row"> |
|
138 |
<div class="shop_table-cell listheading">[% 'Department' | $T8 %]</div> |
|
139 |
<div class="shop_table-cell">[% HTML.escape(IMPORT.billing_department) %]</div> |
|
140 |
</div> |
|
141 |
|
|
142 |
<!-- PENDENT: vielleicht neue Tabelle --> |
|
143 |
[% SET billing = IMPORT.billing_firstname _ ' ' _ IMPORT.billing_lastname %] |
|
144 |
<hr> |
|
145 |
|
|
146 |
<div class="shop_table-row"> |
|
147 |
<div class="shop_table-cell listheading">[% 'Greeting' | $T8 %]</div> |
|
148 |
<div class="shop_table-cell">[% L.input_tag('billing_greeting', IMPORT.billing_greeting) %]</div> |
|
149 |
</div> |
|
150 |
<div class="shop_table-row"> |
|
151 |
<div class="shop_table-cell listheading">[% 'Customer' | $T8 %]</div> |
|
152 |
<div class="shop_table-cell">[% L.input_tag('billing_name', billing) %]</div> |
|
153 |
</div> |
|
154 |
<div class="shop_table-row"> |
|
155 |
<div class="shop_table-cell listheading">[% 'Name 2' | $T8 %]</div> |
|
156 |
<div class="shop_table-cell">[% L.input_tag('billing_company', IMPORT.billing_company) %]</div> |
|
157 |
</div> |
|
158 |
<div class="shop_table-row"> |
|
159 |
<div class="shop_table-cell listheading">[% 'Name 3' | $T8 %]</div> |
|
160 |
<div class="shop_table-cell">[% L.input_tag('billing_department', IMPORT.billing_department) %]</div> |
|
161 |
</div> |
|
162 |
<div class="shop_table-row"> |
|
163 |
<div class="shop_table-cell listheading">[% 'Street' | $T8 %]</div> |
|
164 |
<div class="shop_table-cell">[% L.input_tag('billing_street', IMPORT.billing_street) %]</div> |
|
165 |
</div> |
|
166 |
<div class="shop_table-row"> |
|
167 |
<div class="shop_table-cell listheading">[% 'Zipcode' | $T8 %]</div> |
|
168 |
<div class="shop_table-cell">[% L.input_tag('billing_zipcode', IMPORT.billing_zipcode) %]</div> |
|
169 |
</div> |
|
170 |
<div class="shop_table-row"> |
|
171 |
<div class="shop_table-cell listheading">[% 'City' | $T8 %]</div> |
|
172 |
<div class="shop_table-cell">[% L.input_tag('billing_city', IMPORT.billing_city) %]</div> |
|
173 |
</div> |
|
174 |
<div class="shop_table-row"> |
|
175 |
<div class="shop_table-cell listheading">[% 'Country' | $T8 %]</div> |
|
176 |
<div class="shop_table-cell">[% L.input_tag('billing_country', IMPORT.billing_country) %]</div> |
|
177 |
</div> |
|
178 |
<div class="shop_table-row"> |
|
179 |
<div class="shop_table-cell listheading">[% 'Phone' | $T8 %]</div> |
|
180 |
<div class="shop_table-cell">[% L.input_tag('billing_phone', IMPORT.billing_phone) %]</div> |
|
181 |
</div> |
|
182 |
<div class="shop_table-row"> |
|
183 |
<div class="shop_table-cell listheading">[% 'Email' | $T8 %]</div> |
|
184 |
<div class="shop_table-cell">[% L.input_tag('billing_email', IMPORT.billing_email) %]</div> |
|
185 |
</div> |
|
186 |
[% IF D_ADDRESS %] |
|
187 |
<div class="shop_table-row"> |
|
188 |
<div class="shop_table-cell listheading">[% 'Customernumber' | $T8 %]</div> |
|
189 |
<div class="shop_table-cell">[% D_ADDRESS.customernumber %]</div> |
|
190 |
</div> |
|
191 |
[% ELSE %] |
|
192 |
<div>[% L.ajax_submit_tag("controller.pl?action=ShopOrder/apply_customer", "#delivery", LxERP.t8("Apply customer")) %]</div> |
|
193 |
[% END %] |
|
194 |
|
|
195 |
</div><!-- /.shop_table /.shop_table_address --> |
|
196 |
|
|
197 |
</form><!-- /#billing --> |
|
198 |
</div><!-- /.shop_table-cell --> |
|
199 |
|
|
200 |
<div class="shop_table-cell"> |
|
201 |
|
|
202 |
<form method="post" action="controller.pl" id="delivery"> |
|
203 |
[% L.hidden_tag('create_customer','delivery') %] |
|
204 |
[% L.hidden_tag('import_id', IMPORT.id) %] |
|
205 |
|
|
77 | 206 |
<div class="shop_table shop_table_address"> |
207 |
|
|
78 | 208 |
<div class="shop_table-row listheading"> |
79 | 209 |
<div class="shop_table-cell">[% 'Shop Delivery Address' | $T8 %]</div> |
80 | 210 |
<div class="shop_table-cell"></div> |
81 | 211 |
</div> |
82 |
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Greeting' | $T8 %]</div><div class="shop_table-cell">[% HTML.escape(IMPORT.delivery_greeting) %]</div></div> |
|
83 |
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Firstname' | $T8 %]</div><div class="shop_table-cell">[% HTML.escape(IMPORT.delivery_firstname) %]</div></div> |
|
84 |
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Lastname' | $T8 %]</div><div class="shop_table-cell">[% HTML.escape(IMPORT.delivery_lastname) %]</div></div> |
|
85 |
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Company' | $T8 %]</div><div class="shop_table-cell">[% HTML.escape(IMPORT.delivery_company) %]</div></div> |
|
86 |
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Department' | $T8 %]</div><div class="shop_table-cell">[% HTML.escape(IMPORT.delivery_department) %]</div></div> |
|
87 |
[% SET delivery = IMPORT.delivery_firstname _ ' ' _ IMPORT.delivery_lastname %] |
|
212 |
<div class="shop_table-row"> |
|
213 |
<div class="shop_table-cell listheading">[% 'Greeting' | $T8 %]</div> |
|
214 |
<div class="shop_table-cell">[% HTML.escape(IMPORT.delivery_greeting) %]</div> |
|
215 |
</div> |
|
216 |
<div class="shop_table-row"> |
|
217 |
<div class="shop_table-cell listheading">[% 'Firstname' | $T8 %]</div> |
|
218 |
<div class="shop_table-cell">[% HTML.escape(IMPORT.delivery_firstname) %]</div> |
|
219 |
</div> |
|
220 |
<div class="shop_table-row"> |
|
221 |
<div class="shop_table-cell listheading">[% 'Lastname' | $T8 %]</div> |
|
222 |
<div class="shop_table-cell">[% HTML.escape(IMPORT.delivery_lastname) %]</div> |
|
223 |
</div> |
|
224 |
<div class="shop_table-row"> |
|
225 |
<div class="shop_table-cell listheading">[% 'Company' | $T8 %]</div> |
|
226 |
<div class="shop_table-cell">[% HTML.escape(IMPORT.delivery_company) %]</div> |
|
227 |
</div> |
|
228 |
<div class="shop_table-row"> |
|
229 |
<div class="shop_table-cell listheading">[% 'Department' | $T8 %]</div> |
|
230 |
<div class="shop_table-cell">[% HTML.escape(IMPORT.delivery_department) %]</div> |
|
231 |
</div> |
|
232 |
|
|
233 |
[% SET delivery = IMPORT.delivery_firstname _ ' ' _ IMPORT.delivery_lastname %] |
|
88 | 234 |
<hr> |
89 |
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Greeting' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('delivery_greeting', IMPORT.delivery_greeting) %]</div></div> |
|
90 |
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Customer' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('delivery_name', delivery) %]</div></div> |
|
91 |
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Name 2' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('delivery_company', IMPORT.delivery_company) %]</div></div> |
|
92 |
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Name 3' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('delivery_department', IMPORT.delivery_department) %]</div></div> |
|
93 |
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Street' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('delivery_street', IMPORT.delivery_street) %]</div></div> |
|
94 |
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Zipcode' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('delivery_zipcode', IMPORT.delivery_zipcode) %]</div></div> |
|
95 |
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'City' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('delivery_city', IMPORT.delivery_city) %]</div></div> |
|
96 |
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Country' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('delivery_country', IMPORT.delivery_country) %]</div></div> |
|
97 |
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Phone' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('delivery_phone', IMPORT.delivery_phone) %]</div></div> |
|
98 |
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Email' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('delivery_email', IMPORT.delivery_email) %]</div></div> |
|
235 |
|
|
236 |
<div class="shop_table-row"> |
|
237 |
<div class="shop_table-cell listheading">[% 'Greeting' | $T8 %]</div> |
|
238 |
<div class="shop_table-cell">[% L.input_tag('delivery_greeting', IMPORT.delivery_greeting) %]</div> |
|
239 |
</div> |
|
240 |
<div class="shop_table-row"> |
|
241 |
<div class="shop_table-cell listheading">[% 'Customer' | $T8 %]</div> |
|
242 |
<div class="shop_table-cell">[% L.input_tag('delivery_name', delivery) %]</div> |
|
243 |
</div> |
|
244 |
<div class="shop_table-row"> |
|
245 |
<div class="shop_table-cell listheading">[% 'Name 2' | $T8 %]</div> |
|
246 |
<div class="shop_table-cell">[% L.input_tag('delivery_company', IMPORT.delivery_company) %]</div> |
|
247 |
</div> |
|
248 |
<div class="shop_table-row"> |
|
249 |
<div class="shop_table-cell listheading">[% 'Name 3' | $T8 %]</div> |
|
250 |
<div class="shop_table-cell">[% L.input_tag('delivery_department', IMPORT.delivery_department) %]</div> |
|
251 |
</div> |
|
252 |
<div class="shop_table-row"> |
|
253 |
<div class="shop_table-cell listheading">[% 'Street' | $T8 %]</div> |
|
254 |
<div class="shop_table-cell">[% L.input_tag('delivery_street', IMPORT.delivery_street) %]</div> |
|
255 |
</div> |
|
256 |
<div class="shop_table-row"> |
|
257 |
<div class="shop_table-cell listheading">[% 'Zipcode' | $T8 %]</div> |
|
258 |
<div class="shop_table-cell">[% L.input_tag('delivery_zipcode', IMPORT.delivery_zipcode) %]</div> |
|
259 |
</div> |
|
260 |
<div class="shop_table-row"> |
|
261 |
<div class="shop_table-cell listheading">[% 'City' | $T8 %]</div> |
|
262 |
<div class="shop_table-cell">[% L.input_tag('delivery_city', IMPORT.delivery_city) %]</div> |
|
263 |
</div> |
|
264 |
<div class="shop_table-row"> |
|
265 |
<div class="shop_table-cell listheading">[% 'Country' | $T8 %]</div> |
|
266 |
<div class="shop_table-cell">[% L.input_tag('delivery_country', IMPORT.delivery_country) %]</div> |
|
267 |
</div> |
|
268 |
<div class="shop_table-row"> |
|
269 |
<div class="shop_table-cell listheading">[% 'Phone' | $T8 %]</div> |
|
270 |
<div class="shop_table-cell">[% L.input_tag('delivery_phone', IMPORT.delivery_phone) %]</div> |
|
271 |
</div> |
|
272 |
<div class="shop_table-row"> |
|
273 |
<div class="shop_table-cell listheading">[% 'Email' | $T8 %]</div> |
|
274 |
<div class="shop_table-cell">[% L.input_tag('delivery_email', IMPORT.delivery_email) %]</div> |
|
275 |
</div> |
|
99 | 276 |
[% IF D_ADDRESS %] |
100 |
<div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Customernumber' | $T8 %]</div><div class="shop_table-cell">[% D_ADDRESS.customernumber %]</div></div> |
|
277 |
<div class="shop_table-row"> |
|
278 |
<div class="shop_table-cell listheading">[% 'Customernumber' | $T8 %]</div> |
|
279 |
<div class="shop_table-cell">[% D_ADDRESS.customernumber %]</div> |
|
280 |
</div> |
|
101 | 281 |
[% ELSE %] |
102 |
<div>[% L.ajax_submit_tag("controller.pl?action=ShopOrder/apply_customer", "#delivery", LxERP.t8("Apply customer")) %]</div> |
|
282 |
<div>[% L.ajax_submit_tag("controller.pl?action=ShopOrder/apply_customer", "#delivery", LxERP.t8("Apply customer")) %]</div>
|
|
103 | 283 |
[% END %] |
104 |
</div> |
|
105 |
</form> |
|
106 |
</div> |
|
107 |
</div> |
|
108 |
</div> |
|
109 |
<hr> |
|
110 |
<table width="100%"> |
|
284 |
|
|
285 |
</div><!-- /.shop_table /.shop_table_address --> |
|
286 |
|
|
287 |
</form><!-- /#delivery --> |
|
288 |
|
|
289 |
</div><!-- /.shop_table-cell --> |
|
290 |
|
|
291 |
</div><!-- /.shop_table-row --> |
|
292 |
</div><!-- /.shop_table shop_main --> |
|
293 |
|
|
294 |
|
|
295 |
<hr> |
|
296 |
|
|
297 |
|
|
298 |
<table class="tbl-horizontal"> |
|
299 |
<caption>[% 'Shop Headdata' | $T8 %]</caption> |
|
300 |
<tbody> |
|
111 | 301 |
<tr> |
112 |
<td width="35%"> |
|
113 |
<table> |
|
114 |
<tr class="listheading"> |
|
115 |
<th colspan="2">[% 'Shop Headdata' | $T8 %]</th> |
|
116 |
</tr> |
|
117 |
<tr><td><b>[% 'Shop Ordernumber' | $T8 %]</b></td><td>[% HTML.escape(IMPORT.shop_ordernumber) %]</td></tr> |
|
118 |
<tr><td><b>[% 'Shop Orderdate' | $T8 %]</b></td><td>[% HTML.escape(IMPORT.order_date.dmy('.')) _ ' ' _ HTML.escape(IMPORT.order_date.hms(':')) %]</td></tr> |
|
119 |
<tr><td><b>[% 'Shop Host' | $T8 %]</b></td><td>[% HTML.escape(IMPORT.host) %]</td></tr> |
|
120 |
<tr><td><b>[% 'Shop OrderIP' | $T8 %]</b></td><td>[% HTML.escape(IMPORT.remote_ip) %]</td></tr> |
|
121 |
<tr><td><b>[% 'Shop Ordernotes' | $T8 %]</b></td><td>[% HTML.escape(IMPORT.shop_customer_comment) %]</td></tr> |
|
122 |
<tr><td><b>[% 'Shop Orderamount' | $T8 %]</b></td><td>[% HTML.escape(IMPORT.amount_as_number) %]</td></tr> |
|
123 |
<tr><td><b>[% 'Shipping costs' | $T8 %]</b></td><td>[% HTML.escape(IMPORT.shipping_costs_as_number) %]</td></tr> |
|
124 |
</table> |
|
125 |
</td> |
|
126 |
<td style="padding-left: 20px; vertical-align: top;"> |
|
127 |
[% IF IMPORT.obsolete %] |
|
128 |
<b>[% 'Shoporder deleted -- ' | $T8 %]</b><a href="controller.pl?action=ShopOrder/undelete_order&import_id=[% IMPORT.id %]">[% 'revert deleted' | $T8 %]</a> |
|
129 |
[% ELSE %] |
|
130 |
[% UNLESS IMPORT.transferred %] |
|
131 |
[% IF PROPOSALS %] |
|
132 |
<form method="post" action="controller.pl" id="create_order"> |
|
133 |
[% L.hidden_tag('import_id', IMPORT.id) %] |
|
134 |
<div style="height: 125px; overflow:auto;"> |
|
135 |
<table> |
|
136 |
<tr class="listheading"> |
|
137 |
<th colspan="7">Customer Proposals</td> |
|
138 |
</tr> |
|
139 |
[% FOREACH prop = PROPOSALS %][% IF prop.order_lock %][% SET orderlock_class = 'style="background:rgba(232, 32, 23, 0.2);"' %][% ELSE %][% SET orderlock_class = '' %][% END %] |
|
140 |
<tr class="listrow" [% orderlock_class %]> |
|
141 |
<td>[% IF !prop.order_lock %][% L.radio_button_tag('customer', value=prop.id) %][% END %]</td> |
|
142 |
<td><a href="controller.pl?action=CustomerVendor/edit&id=[% prop.id %]&db=customer&callback=[% HTML.url('controller.pl?action=ShopOrder/show&id=' _ IMPORT.id) %]">[% HTML.escape(prop.customernumber) %]</a></td> |
|
143 |
<td>[% IF !prop.notes == '' %]<span class="tooltipster-html" title="[% HTML.escape(prop.notes) %]"><span style="color:red;font-weight: bold;">[% HTML.escape(prop.name) %]</span>[% ELSE %][% HTML.escape(prop.name) %][% END %]</td> |
|
144 |
<td>[% HTML.escape(prop.street) %]</td> |
|
145 |
<td>[% HTML.escape(prop.zipcode) %]</td> |
|
146 |
<td>[% HTML.escape(prop.city) %]</td> |
|
147 |
<td>[% HTML.escape(prop.email) %]</td> |
|
148 |
</tr> |
|
149 |
[% END %] |
|
150 |
</table> |
|
151 |
</div> |
|
152 |
<div id="transfer" style="float:left; display:none;"> |
|
153 |
[% # 'Customernumber: ' _ %] |
|
154 |
[% L.ajax_submit_tag('controller.pl?action=ShopOrder/transfer', "#create_order", LxERP.t8('Create order')) %] |
|
155 |
</div> |
|
302 |
<th>[% 'Shop Ordernumber' | $T8 %]</th> |
|
303 |
<td>[% HTML.escape(IMPORT.shop_ordernumber) %]</td> |
|
304 |
</tr> |
|
305 |
<tr> |
|
306 |
<th>[% 'Shop Orderdate' | $T8 %]</th> |
|
307 |
<td>[% HTML.escape(IMPORT.order_date.dmy('.')) _ ' ' _ HTML.escape(IMPORT.order_date.hms(':')) %]</td> |
|
308 |
</tr> |
|
309 |
<tr> |
|
310 |
<th>[% 'Shop Host' | $T8 %]</th> |
|
311 |
<td>[% HTML.escape(IMPORT.host) %]</td> |
|
312 |
</tr> |
|
313 |
<tr> |
|
314 |
<th>[% 'Shop OrderIP' | $T8 %]</th> |
|
315 |
<td>[% HTML.escape(IMPORT.remote_ip) %]</td> |
|
316 |
</tr> |
|
317 |
<tr> |
|
318 |
<th>[% 'Shop Ordernotes' | $T8 %]</th> |
|
319 |
<td>[% HTML.escape(IMPORT.shop_customer_comment) %]</td> |
|
320 |
</tr> |
|
321 |
<tr> |
|
322 |
<th>[% 'Shop Orderamount' | $T8 %]</th> |
|
323 |
<td>[% HTML.escape(IMPORT.amount_as_number) %]</td> |
|
324 |
</tr> |
|
325 |
<tr> |
|
326 |
<th>[% 'Shipping costs' | $T8 %]</th> |
|
327 |
<td>[% HTML.escape(IMPORT.shipping_costs_as_number) %]</td> |
|
328 |
</tr> |
|
329 |
</tbody> |
|
330 |
</table> |
|
331 |
|
|
332 |
|
|
333 |
[% IF IMPORT.obsolete %] |
|
334 |
<b>[% 'Shoporder deleted -- ' | $T8 %]</b> <a href="controller.pl?action=ShopOrder/undelete_order&import_id=[% IMPORT.id %]" class="button">[% 'revert deleted' | $T8 %]</a> |
|
335 |
[% ELSE %] |
|
336 |
[% UNLESS IMPORT.transferred %] |
|
337 |
|
|
338 |
[% IF PROPOSALS %] |
|
339 |
<form method="post" action="controller.pl" id="create_order"> |
|
340 |
[% L.hidden_tag('import_id', IMPORT.id) %] |
|
341 |
|
|
342 |
<table class="tbl-list"> |
|
343 |
<caption>[% 'Customer Proposals' | $T8 %]</caption> |
|
344 |
<tbody> |
|
156 | 345 |
[% FOREACH prop = PROPOSALS %] |
157 |
<div id="shop_update_customer_[% prop.id %]" class="div_hidden" style="display:none;"> |
|
158 |
[% L.ajax_submit_tag("controller.pl?action=ShopOrder/apply_customer&cv_id=" _ prop.id, "#billing", LxERP.t8("Update customer using billing address")) %] |
|
159 |
</div> |
|
346 |
[% IF prop.order_lock %] |
|
347 |
[% #PENDENT: KLASSE statt STYLE verwenden %] |
|
348 |
[% SET orderlock_class = 'style="background:rgba(232, 32, 23, 0.2);"' %] |
|
349 |
[% ELSE %] |
|
350 |
[% SET orderlock_class = '' %] |
|
351 |
[% END %] |
|
352 |
<tr [% orderlock_class %]> |
|
353 |
<td>[% IF !prop.order_lock %][% L.radio_button_tag('customer', value=prop.id) %][% END %]</td> |
|
354 |
<td> |
|
355 |
<a href="controller.pl?action=CustomerVendor/edit&id=[% prop.id %]&db=customer&callback=[% HTML.url('controller.pl?action=ShopOrder/show&id=' _ IMPORT.id) %]"> |
|
356 |
[% HTML.escape(prop.customernumber) %] |
|
357 |
</a> |
|
358 |
</td> |
|
359 |
<td> |
|
360 |
[% IF !prop.notes == '' %] |
|
361 |
<span class="tooltipster-html" title="[% HTML.escape(prop.notes) %]"> |
|
362 |
<span style="color:red;font-weight: bold;">[% HTML.escape(prop.name) %]</span> |
|
363 |
</span> |
|
364 |
[% ELSE %] |
|
365 |
[% HTML.escape(prop.name) %] |
|
366 |
[% END %] |
|
367 |
</td> |
|
368 |
<td>[% HTML.escape(prop.street) %]</td> |
|
369 |
<td>[% HTML.escape(prop.zipcode) %]</td> |
|
370 |
<td>[% HTML.escape(prop.city) %]</td> |
|
371 |
<td>[% HTML.escape(prop.email) %]</td> |
|
372 |
</tr> |
|
160 | 373 |
[% END %] |
161 |
</form> |
|
162 |
<a href="controller.pl?action=ShopOrder/delete_order&import_id=[% IMPORT.id %]">[% 'delete order' | $T8 %]</a> |
|
163 |
[% END # PROPOSALS %] |
|
164 |
[% ELSE %] |
|
165 |
<div> |
|
166 |
[% 'Transferred' | $T8 %] |
|
167 |
<div id="recordlinks"></div> |
|
168 |
<script type="text/javascript"> |
|
169 |
var url = 'controller.pl?action=RecordLinks/ajax_list&object_model=ShopOrder&object_id=[% IMPORT.id %]'; |
|
170 |
$('#recordlinks').load(url); |
|
171 |
</script> |
|
374 |
</tbody> |
|
375 |
</table> |
|
376 |
|
|
377 |
<div id="transfer" style="display:none;"> |
|
378 |
[% # 'Customernumber: ' _ %] |
|
379 |
[% L.ajax_submit_tag('controller.pl?action=ShopOrder/transfer', "#create_order", LxERP.t8('Create order')) %] |
|
172 | 380 |
</div> |
381 |
|
|
382 |
[% FOREACH prop = PROPOSALS %] |
|
383 |
<div id="shop_update_customer_[% prop.id %]" class="div_hidden" style="display:none;"> |
|
384 |
[% L.ajax_submit_tag("controller.pl?action=ShopOrder/apply_customer&cv_id=" _ prop.id, "#billing", LxERP.t8("Update customer using billing address")) %] |
|
385 |
</div> |
|
173 | 386 |
[% END %] |
174 |
[% END %] |
|
175 |
</td> |
|
387 |
|
|
388 |
</form><!-- /#create_order --> |
|
389 |
<div class="buttons"> |
|
390 |
<a href="controller.pl?action=ShopOrder/delete_order&import_id=[% IMPORT.id %]" class="button">[% 'delete order' | $T8 %]</a> |
|
391 |
</div> |
|
392 |
[% END # PROPOSALS %] |
|
393 |
|
|
394 |
[% ELSE %] |
|
395 |
|
|
396 |
<div> |
|
397 |
<h3>[% 'Transferred' | $T8 %]</h3> |
|
398 |
<div id="recordlinks"></div> |
|
399 |
<script type="text/javascript"> |
|
400 |
var url = 'controller.pl?action=RecordLinks/ajax_list&object_model=ShopOrder&object_id=[% IMPORT.id %]'; |
|
401 |
$('#recordlinks').load(url); |
|
402 |
</script> |
|
403 |
</div> |
|
404 |
[% END %] |
|
405 |
[% END %] |
|
406 |
|
|
407 |
|
|
408 |
|
|
409 |
<table class="tbl-list wi-moderate"> |
|
410 |
<caption>[% 'FILL THIS CAPTION' | $T8 %]</caption> |
|
411 |
<thead> |
|
412 |
<tr> |
|
413 |
<th>[% 'Position' | $T8 %]</th> |
|
414 |
<th>[% 'Partnumber' | $T8 %]</th> |
|
415 |
<th>[% 'Partdescriptipion' | $T8 %]</th> |
|
416 |
<th>[% 'Qty' | $T8 %]</th> |
|
417 |
<th>[% 'Price' | $T8 %]</th> |
|
418 |
<th>[% 'Extended' | $T8 %]</th> |
|
176 | 419 |
</tr> |
177 |
</table> |
|
178 |
<hr> |
|
179 |
<div style="height: 250px; overflow:auto; margin:15px;"> |
|
180 |
<table width="99%"> |
|
181 |
<tr class="listheading"> |
|
182 |
<th>[% 'Position' | $T8 %]</th> |
|
183 |
<th>[% 'Partnumber' | $T8 %]</th> |
|
184 |
<th>[% 'Partdescriptipion' | $T8 %]</th> |
|
185 |
<th>[% 'Qty' | $T8 %]</th> |
|
186 |
<th>[% 'Price' | $T8 %]</th> |
|
187 |
<th>[% 'Extended' | $T8 %]</th> |
|
188 |
</tr> |
|
189 |
<tr class="listrow"> |
|
190 |
[% FOREACH pos = IMPORT.shop_order_items %] |
|
420 |
</thead> |
|
421 |
<tbody> |
|
422 |
[% FOREACH pos = IMPORT.shop_order_items %] |
|
423 |
<tr> |
|
191 | 424 |
<td>[% loop.count %]</td> |
192 | 425 |
<td>[% HTML.escape(pos.partnumber) %]</td> |
193 | 426 |
<td>[% HTML.escape(pos.description) %]</td> |
... | ... | |
195 | 428 |
<td>[% pos.price_as_number %]</td> |
196 | 429 |
<td>[% LxERP.format_amount(pos.price * pos.quantity,2) %]</td> |
197 | 430 |
</tr> |
198 |
[% END %] |
|
199 |
</table> |
|
200 |
</div> |
|
201 |
<hr> |
|
431 |
[% END %] |
|
432 |
</tbody> |
|
433 |
</table> |
|
434 |
|
|
435 |
|
|
202 | 436 |
<script type="text/javascript"> |
203 |
$("input[type=radio]").change(function(){ |
|
204 |
$('.div_hidden').css("display", 'none');
|
|
205 |
var cv_id = $("input[type=radio][id="+ this.id + "]").val();
|
|
206 |
$('#shop_update_customer_'+ cv_id).css("display", 'block');
|
|
207 |
$('#transfer').css("display", 'block');
|
|
208 |
}); |
|
437 |
$("input[type=radio]").change(function(){
|
|
438 |
$('.div_hidden').css("display", 'none'); |
|
439 |
var cv_id = $("input[type=radio][id="+ this.id + "]").val(); |
|
440 |
$('#shop_update_customer_'+ cv_id).css("display", 'block'); |
|
441 |
$('#transfer').css("display", 'block'); |
|
442 |
});
|
|
209 | 443 |
</script> |
Auch abrufbar als: Unified diff
Neues Design 2019 Standard-Code templates/webpages/shop_order/show.html