Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 35d26859

Von Tamino Steinert vor fast 2 Jahren hinzugefügt

  • ID 35d26859925ce02e88c6d2e4f563abb3f7706246
  • Vorgänger 703033e4
  • Nachfolger 4aaaaa07

Design 4.0: Shopbestellungimport angepasst

Unterschiede anzeigen:

templates/design40_webpages/shop_order/show.html
14 14
  Einzuege bitte so belassen wie hier, sonst hat man keine Uebersicht und findet die HTML-Fehler kaum!
15 15
  Solches Zeugs bitte schoener formatiert programmieren. Als Programmierer findet ja man sich so auch besser zurecht.
16 16
-->
17
<div class="shop_table shop_main">
18
  <div class="shop_table-row">
19

  
20
    <div class="shop_table-cell">
17
<div class="wrapper" id="wrapper-1">
21 18

  
19
  <div class="input-panel control-panel">
22 20
    <form method="post" action="controller.pl" id="customer">
23 21
      [% L.hidden_tag('create_customer','customer') %]
24 22
      [% 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>
29
        </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>
23
      <div class="col">
24
      <table class="tbl-horizontal col">
25
        <caption>[% 'Shop Customer Address' | $T8 %]</caption>
26
        <colgroup><col class="wi-verysmall"><col class="wi-mediumsmall"></colgroup>
27
        <tr>
28
          <th>[% 'Greeting' | $T8 %]</th>
29
          <td>[% HTML.escape(IMPORT.customer_greeting) %]</td>
30
        </tr>
31
        <tr>
32
          <th>[% 'Firstname' | $T8 %]</th>
33
          <td>[% HTML.escape(IMPORT.customer_firstname) %]</td>
34
        </tr>
35
        <tr>
36
          <th>[% 'Lastname' | $T8 %]</th>
37
          <td>[% HTML.escape(IMPORT.customer_lastname) %]</td>
38
        </tr>
39
        <tr>
40
          <th>[% 'Company' | $T8 %]</th>
41
          <td>[% HTML.escape(IMPORT.customer_company) %]</td>
42
        </tr>
43
        <tr>
44
          <th>[% 'Department' | $T8 %]</th>
45
          <td>[% HTML.escape(IMPORT.customer_department) %]</td>
46
        </tr>
47
      </table>
50 48

  
51 49
        [% SET customer = IMPORT.customer_firstname _ ' ' _ IMPORT.customer_lastname %]
52
        <hr>
53 50

  
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>
51
      <table class="tbl-horizontal col">
52
        <caption><hr></caption>
53
        <colgroup><col class="wi-verysmall"><col class="wi-mediumsmall"></colgroup>
54
        <tr>
55
          <th>[% 'Greeting' | $T8 %]</th>
56
          <td>[% L.input_tag('customer_greeting', IMPORT.customer_greeting) %]</td>
57
        </tr>
58
        <tr>
59
          <th>[% 'Customer' | $T8 %]</th>
60
          <td>[% L.input_tag('customer_name', customer) %]</td>
61
        </tr>
62
        <tr>
63
          <th>[% 'Name 2' | $T8 %]</th>
64
          <td>[% L.input_tag('customer_company', IMPORT.customer_company) %]</td>
65
        </tr>
66
        <tr>
67
          <th>[% 'Name 3' | $T8 %]</th>
68
          <td>[% L.input_tag('customer_department', IMPORT.customer_department) %]</td>
69
        </tr>
70
        <tr>
71
          <th>[% 'Street' | $T8 %]</th>
72
          <td>[% L.input_tag('customer_street', IMPORT.customer_street) %]</td>
73
        </tr>
74
        <tr>
75
          <th>[% 'Zipcode' | $T8 %]</th>
76
          <td>[% L.input_tag('customer_zipcode', IMPORT.customer_zipcode) %]</td>
77
        </tr>
78
        <tr>
79
          <th>[% 'City' | $T8 %]</th>
80
          <td>[% L.input_tag('customer_city', IMPORT.customer_city) %]</td>
81
        </tr>
82
        <tr>
83
          <th>[% 'Country' | $T8 %]</th>
84
          <td>[% L.input_tag('customer_country', IMPORT.customer_country) %]</td>
85
        </tr>
86
        <tr>
87
          <th>[% 'Phone' | $T8 %]</th>
88
          <td>[% L.input_tag('customer_phone', IMPORT.customer_phone) %]</td>
89
        </tr>
90
        <tr>
91
          <th>[% 'Email' | $T8 %]</th>
92
          <td>[% L.input_tag('customer_email', IMPORT.customer_email) %]</td>
93
        </tr>
94 94

  
95 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>
99
          </div>
96
        <tr>
97
          <th>[% 'Customernumber' | $T8 %]</th>
98
          <td>[% C_ADDRESS.customernumber %]</td>
99
        </tr>
100 100
        [% ELSE %]
101
          <div>
101
        <tr>
102
          <td colspan="2">
102 103
            [% L.ajax_submit_tag("controller.pl?action=ShopOrder/apply_customer",  "#customer", LxERP.t8("Apply customer")) %]
103
          </div>
104
        </tr>
104 105
        [% END %]
105
      </div><!-- /.shop_table /.shop_table_address -->
106
      </table>
107
      </div>
106 108
    </form><!-- /#customer -->
107
    </div><!-- /.shop_table-cell -->
108

  
109
    <div class="shop_table-cell">
109
  </div>
110 110

  
111
  <div class="input-panel control-panel">
111 112
    <form method="post" action="controller.pl" id="billing">
112 113
      [% L.hidden_tag('create_customer','billing') %]
113 114
      [% L.hidden_tag('import_id', IMPORT.id) %]
114 115

  
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>
120
        </div>
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>
116
      <div class="col">
117
      <table class="tbl-horizontal col">
118
        <caption>[% 'Shop Billing Address' | $T8 %]</caption>
119
        <colgroup><col class="wi-verysmall"><col class="wi-mediumsmall"></colgroup>
120
        <tr>
121
          <th>[% 'Greeting' | $T8 %]</th>
122
          <td>[% HTML.escape(IMPORT.billing_greeting) %]</td>
123
        </tr>
124
        <tr>
125
          <th>[% 'Firstname' | $T8 %]</th>
126
          <td>[% HTML.escape(IMPORT.billing_firstname) %]</td>
127
        </tr>
128
        <tr>
129
          <th>[% 'Lastname' | $T8 %]</th>
130
          <td>[% HTML.escape(IMPORT.billing_lastname) %]</td>
131
        </tr>
132
        <tr>
133
          <th>[% 'Company' | $T8 %]</th>
134
          <td>[% HTML.escape(IMPORT.billing_company) %]</td>
135
        </tr>
136
        <tr>
137
          <th>[% 'Department' | $T8 %]</th>
138
          <td>[% HTML.escape(IMPORT.billing_department) %]</td>
139
        </tr>
140
      </table>
141 141

  
142 142
        <!-- PENDENT: vielleicht neue Tabelle -->
143 143
        [% SET billing = IMPORT.billing_firstname _ ' ' _ IMPORT.billing_lastname %]
144
        <hr>
145 144

  
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>
145
      <table class="tbl-horizontal col">
146
        <caption><hr></caption>
147
        <colgroup><col class="wi-verysmall"><col class="wi-mediumsmall"></colgroup>
148
        <tr>
149
          <th>[% 'Greeting' | $T8 %]</th>
150
          <td>[% L.input_tag('billing_greeting', IMPORT.billing_greeting) %]</td>
151
        </tr>
152
        <tr>
153
          <th>[% 'Customer' | $T8 %]</th>
154
          <td>[% L.input_tag('billing_name', billing) %]</td>
155
        </tr>
156
        <tr>
157
          <th>[% 'Name 2' | $T8 %]</th>
158
          <td>[% L.input_tag('billing_company', IMPORT.billing_company) %]</td>
159
        </tr>
160
        <tr>
161
          <th>[% 'Name 3' | $T8 %]</th>
162
          <td>[% L.input_tag('billing_department', IMPORT.billing_department) %]</td>
163
        </tr>
164
        <tr>
165
          <th>[% 'Street' | $T8 %]</th>
166
          <td>[% L.input_tag('billing_street', IMPORT.billing_street) %]</td>
167
        </tr>
168
        <tr>
169
          <th>[% 'Zipcode' | $T8 %]</th>
170
          <td>[% L.input_tag('billing_zipcode', IMPORT.billing_zipcode) %]</td>
171
        </tr>
172
        <tr>
173
          <th>[% 'City' | $T8 %]</th>
174
          <td>[% L.input_tag('billing_city', IMPORT.billing_city) %]</td>
175
        </tr>
176
        <tr>
177
          <th>[% 'Country' | $T8 %]</th>
178
          <td>[% L.input_tag('billing_country', IMPORT.billing_country) %]</td>
179
        </tr>
180
        <tr>
181
          <th>[% 'Phone' | $T8 %]</th>
182
          <td>[% L.input_tag('billing_phone', IMPORT.billing_phone) %]</td>
183
        </tr>
184
        <tr>
185
          <th>[% 'Email' | $T8 %]</th>
186
          <td>[% L.input_tag('billing_email', IMPORT.billing_email) %]</td>
187
        </tr>
186 188
        [% 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>
189
        <tr>
190
          <th>[% 'Customernumber' | $T8 %]</th>
191
          <td>[% D_ADDRESS.customernumber %]</td>
192
        </tr>
191 193
        [% ELSE %]
192
          <div>[% L.ajax_submit_tag("controller.pl?action=ShopOrder/apply_customer",  "#delivery", LxERP.t8("Apply customer")) %]</div>
194
          <tr>
195
            <td colspan="2">
196
              [% L.ajax_submit_tag("controller.pl?action=ShopOrder/apply_customer",  "#delivery", LxERP.t8("Apply customer")) %]
197
            </td>
198
          </tr>
193 199
        [% END %]
194

  
195
      </div><!-- /.shop_table /.shop_table_address -->
196

  
200
      </table>
201
      </div>
197 202
    </form><!-- /#billing -->
198
    </div><!-- /.shop_table-cell -->
203
  </div>
199 204

  
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

  
206
        <div class="shop_table shop_table_address">
207

  
208
          <div class="shop_table-row listheading">
209
            <div class="shop_table-cell">[% 'Shop Delivery Address' | $T8 %]</div>
210
            <div class="shop_table-cell"></div>
211
          </div>
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 %]
234
          <hr>
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>
276
          [% IF D_ADDRESS %]
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>
205
  <div class="input-panel control-panel">
206
    <form method="post" action="controller.pl" id="delivery">
207
      [% L.hidden_tag('create_customer','delivery') %]
208
      [% L.hidden_tag('import_id', IMPORT.id) %]
209
      <div class="col">
210
      <table class="tbl-horizontal col">
211
        <caption>[% 'Shop Delivery Address' | $T8 %]</caption>
212
        <colgroup><col class="wi-verysmall"><col class="wi-mediumsmall"></colgroup>
213
        <tr>
214
          <th>[% 'Greeting' | $T8 %]</th>
215
          <td>[% HTML.escape(IMPORT.delivery_greeting) %]</td>
216
        </tr>
217
        <tr>
218
          <th>[% 'Firstname' | $T8 %]</th>
219
          <td>[% HTML.escape(IMPORT.delivery_firstname) %]</td>
220
        </tr>
221
        <tr>
222
          <th>[% 'Lastname' | $T8 %]</th>
223
          <td>[% HTML.escape(IMPORT.delivery_lastname) %]</td>
224
        </tr>
225
        <tr>
226
          <th>[% 'Company' | $T8 %]</th>
227
          <td>[% HTML.escape(IMPORT.delivery_company) %]</td>
228
        </tr>
229
        <tr>
230
          <th>[% 'Department' | $T8 %]</th>
231
          <td>[% HTML.escape(IMPORT.delivery_department) %]</td>
232
        </tr>
233
      </table>
234

  
235
        [% SET delivery = IMPORT.delivery_firstname _ ' ' _ IMPORT.delivery_lastname %]
236

  
237
      <table class="tbl-horizontal col">
238
        <caption><hr></caption>
239
        <colgroup><col class="wi-verysmall"><col class="wi-mediumsmall"></colgroup>
240
        <tr>
241
          <th>[% 'Greeting' | $T8 %]</th>
242
          <td>[% L.input_tag('delivery_greeting', IMPORT.delivery_greeting) %]</td>
243
        </tr>
244
        <tr>
245
          <th>[% 'Customer' | $T8 %]</th>
246
          <td>[% L.input_tag('delivery_name', delivery) %]</td>
247
        </tr>
248
        <tr>
249
          <th>[% 'Name 2' | $T8 %]</th>
250
          <td>[% L.input_tag('delivery_company', IMPORT.delivery_company) %]</td>
251
        </tr>
252
        <tr>
253
          <th>[% 'Name 3' | $T8 %]</th>
254
          <td>[% L.input_tag('delivery_department', IMPORT.delivery_department) %]</td>
255
        </tr>
256
        <tr>
257
          <th>[% 'Street' | $T8 %]</th>
258
          <td>[% L.input_tag('delivery_street', IMPORT.delivery_street) %]</td>
259
        </tr>
260
        <tr>
261
          <th>[% 'Zipcode' | $T8 %]</th>
262
          <td>[% L.input_tag('delivery_zipcode', IMPORT.delivery_zipcode) %]</td>
263
        </tr>
264
        <tr>
265
          <th>[% 'City' | $T8 %]</th>
266
          <td>[% L.input_tag('delivery_city', IMPORT.delivery_city) %]</td>
267
        </tr>
268
        <tr>
269
          <th>[% 'Country' | $T8 %]</th>
270
          <td>[% L.input_tag('delivery_country', IMPORT.delivery_country) %]</td>
271
        </tr>
272
        <tr>
273
          <th>[% 'Phone' | $T8 %]</th>
274
          <td>[% L.input_tag('delivery_phone', IMPORT.delivery_phone) %]</td>
275
        </tr>
276
        <tr>
277
          <th>[% 'Email' | $T8 %]</th>
278
          <td>[% L.input_tag('delivery_email', IMPORT.delivery_email) %]</td>
279
        </tr>
280
        [% IF D_ADDRESS %]
281
        <tr>
282
          <th>[% 'Customernumber' | $T8 %]</th>
283
          <td>[% D_ADDRESS.customernumber %]</td>
284
        </tr>
285
        [% ELSE %]
286
        <tr>
287
          <td colspan="2">
288
            [% L.ajax_submit_tag("controller.pl?action=ShopOrder/apply_customer",  "#delivery", LxERP.t8("Apply customer")) %]
289
          </td>
290
        </tr>
291
        [% END %]
292
      </table>
293
      </div>
294
    </form><!-- /#delivery -->
295
  </div>
296

  
297
</div><!-- /.wrapper -->
298

  
299
<div class="wrapper" id="wrapper-2">
300

  
301
  <div class="input-panel control-panel" style="vertical-align:top">
302
    <table class="tbl-horizontal">
303
      <caption>[% 'Shop Headdata' | $T8 %]</caption>
304
      <tbody>
305
        <tr>
306
          <th>[% 'Shop Ordernumber' | $T8 %]</th>
307
          <td>[% HTML.escape(IMPORT.shop_ordernumber) %]</td>
308
        </tr>
309
        <tr>
310
          <th>[% 'Shop Orderdate' | $T8 %]</th>
311
          <td>[% HTML.escape(IMPORT.order_date.dmy('.')) _ ' ' _ HTML.escape(IMPORT.order_date.hms(':')) %]</td>
312
        </tr>
313
        <tr>
314
          <th>[% 'Shop Host' | $T8 %]</th>
315
          <td>[% HTML.escape(IMPORT.host) %]</td>
316
        </tr>
317
        <tr>
318
          <th>[% 'Shop OrderIP' | $T8 %]</th>
319
          <td>[% HTML.escape(IMPORT.remote_ip) %]</td>
320
        </tr>
321
        <tr>
322
          <th>[% 'Shop Ordernotes' | $T8 %]</th>
323
          <td>[% HTML.escape(IMPORT.shop_customer_comment) %]</td>
324
        </tr>
325
        <tr>
326
          <th>[% 'Shop Orderamount' | $T8 %]</th>
327
          <td>[% HTML.escape(IMPORT.amount_as_number) %]</td>
328
        </tr>
329
        <tr>
330
          <th>[% 'Shipping costs' | $T8 %]</th>
331
          <td>[% HTML.escape(IMPORT.shipping_costs_as_number) %]</td>
332
        </tr>
333
        <tr>
334
          <th>[% 'Payment description' | $T8 %]</th>
335
          <td>[% HTML.escape(IMPORT.payment_description) %]</td>
336
        </tr>
337
      </tbody>
338
    </table>
339
  </div>
340

  
341
  <div class="input-panel control-panel" style="vertical-align:top">
342
    [% IF IMPORT.obsolete %]
343
      [% L.button_tag %]
344
      <b>[% 'Shoporder deleted -- ' | $T8 %]</b> <a href="controller.pl?action=ShopOrder/undelete_order&import_id=[% IMPORT.id %]" class="button">[% 'revert deleted' | $T8 %]</a>
345
    [% ELSE %]
346
      [% UNLESS IMPORT.transferred %]
347

  
348
        [% IF PROPOSALS %]
349
          <form method="post" action="controller.pl" id="create_order">
350
            [% L.hidden_tag('import_id', IMPORT.id) %]
351

  
352
            <table class="tbl-list">
353
              <caption>[% 'Customer Proposals' | $T8 %]</caption>
354
              <tbody>
355
                [% FOREACH prop = PROPOSALS %]
356
                  [% IF prop.order_lock %]
357
                    [% #PENDENT: KLASSE statt STYLE verwenden %]
358
                    [% SET orderlock_class = 'style="background:rgba(232, 32, 23, 0.2);"' %]
359
                  [% ELSE %]
360
                    [% SET orderlock_class = '' %]
361
                  [% END %]
362
                  <tr [% orderlock_class %]>
363
                    <td>[% IF !prop.order_lock %][% L.radio_button_tag('customer', value=prop.id) %][% END %]</td>
364
                    <td>
365
                      <a href="controller.pl?action=CustomerVendor/edit&id=[% prop.id %]&db=customer&callback=[% HTML.url('controller.pl?action=ShopOrder/show&id=' _ IMPORT.id) %]">
366
                        [% HTML.escape(prop.customernumber) %]
367
                      </a>
368
                    </td>
369
                    <td>
370
                      [% IF !prop.notes == '' %]
371
                        <span class="tooltipster-html" title="[% HTML.escape(prop.notes) %]">
372
                          <span style="color:red;font-weight: bold;">[% HTML.escape(prop.name) %]</span>
373
                        </span>
374
                      [% ELSE %]
375
                        [% HTML.escape(prop.name) %]
376
                      [% END %]
377
                    </td>
378
                    <td>[% HTML.escape(prop.street)  %]</td>
379
                    <td>[% HTML.escape(prop.zipcode) %]</td>
380
                    <td>[% HTML.escape(prop.city)    %]</td>
381
                    <td>[% HTML.escape(prop.email)   %]</td>
382
                  </tr>
383
                [% END %]
384
              </tbody>
385
            </table>
386

  
387
            <div id="transfer" style="display:none;">
388
              [% # 'Customernumber: ' _ %]
389
              [% L.ajax_submit_tag('controller.pl?action=ShopOrder/transfer', "#create_order", LxERP.t8('Create order')) %]
280 390
            </div>
281
          [% ELSE %]
282
            <div>[% L.ajax_submit_tag("controller.pl?action=ShopOrder/apply_customer",  "#delivery", LxERP.t8("Apply customer")) %]</div>
283
          [% END %]
284 391

  
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>
301
    <tr>
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
    <tr>
330
      <th>[% 'Payment description' | $T8 %]</th>
331
      <td>[% HTML.escape(IMPORT.payment_description) %]</td>
332
    </tr>
333
  </tbody>
334
</table>
335

  
336

  
337
[% IF IMPORT.obsolete %]
338
  <b>[% 'Shoporder deleted -- ' | $T8 %]</b> <a href="controller.pl?action=ShopOrder/undelete_order&import_id=[% IMPORT.id %]" class="button">[% 'revert deleted' | $T8 %]</a>
339
[% ELSE %]
340
  [% UNLESS IMPORT.transferred %]
341

  
342
    [% IF PROPOSALS %]
343
      <form method="post" action="controller.pl" id="create_order">
344
        [% L.hidden_tag('import_id', IMPORT.id) %]
345

  
346
        <table class="tbl-list">
347
          <caption>[% 'Customer Proposals' | $T8 %]</caption>
348
          <tbody>
349 392
            [% FOREACH prop = PROPOSALS %]
350
              [% IF prop.order_lock %]
351
                [% #PENDENT: KLASSE statt STYLE verwenden %]
352
                [% SET orderlock_class = 'style="background:rgba(232, 32, 23, 0.2);"' %]
353
              [% ELSE %]
354
                [% SET orderlock_class = '' %]
355
              [% END %]
356
              <tr [% orderlock_class %]>
357
                <td>[% IF !prop.order_lock %][% L.radio_button_tag('customer', value=prop.id) %][% END %]</td>
358
                <td>
359
                  <a href="controller.pl?action=CustomerVendor/edit&id=[% prop.id %]&db=customer&callback=[% HTML.url('controller.pl?action=ShopOrder/show&id=' _ IMPORT.id) %]">
360
                    [% HTML.escape(prop.customernumber) %]
361
                  </a>
362
                </td>
363
                <td>
364
                  [% IF !prop.notes == '' %]
365
                    <span class="tooltipster-html" title="[% HTML.escape(prop.notes) %]">
366
                      <span style="color:red;font-weight: bold;">[% HTML.escape(prop.name) %]</span>
367
                    </span>
368
                  [% ELSE %]
369
                    [% HTML.escape(prop.name) %]
370
                  [% END %]
371
                </td>
372
                <td>[% HTML.escape(prop.street)  %]</td>
373
                <td>[% HTML.escape(prop.zipcode) %]</td>
374
                <td>[% HTML.escape(prop.city)    %]</td>
375
                <td>[% HTML.escape(prop.email)   %]</td>
376
              </tr>
393
              <div id="shop_update_customer_[% prop.id %]" class="div_hidden" style="display:none;">
394
                [% L.ajax_submit_tag("controller.pl?action=ShopOrder/apply_customer&cv_id=" _ prop.id,  "#billing", LxERP.t8("Update customer using billing address")) %]
395
              </div>
377 396
            [% END %]
378
          </tbody>
379
        </table>
380

  
381
        <div id="transfer" style="display:none;">
382
          [% # 'Customernumber: ' _ %]
383
          [% L.ajax_submit_tag('controller.pl?action=ShopOrder/transfer', "#create_order", LxERP.t8('Create order')) %]
384
        </div>
385 397

  
386
        [% FOREACH prop = PROPOSALS %]
387
          <div id="shop_update_customer_[% prop.id %]" class="div_hidden" style="display:none;">
388
            [% L.ajax_submit_tag("controller.pl?action=ShopOrder/apply_customer&cv_id=" _ prop.id,  "#billing", LxERP.t8("Update customer using billing address")) %]
398
          </form><!-- /#create_order -->
399
          <div class="buttons">
400
            <a href="controller.pl?action=ShopOrder/delete_order&import_id=[% IMPORT.id %]" class="button neutral">[% 'delete order' | $T8 %]</a>
389 401
          </div>
390
        [% END %]
391

  
392
      </form><!-- /#create_order -->
393
      <div class="buttons">
394
        <a href="controller.pl?action=ShopOrder/delete_order&import_id=[% IMPORT.id %]" class="button">[% 'delete order' | $T8 %]</a>
395
      </div>
396
    [% END # PROPOSALS %]
397

  
398
  [% ELSE %]
399

  
400
    <div>
401
      <h3>[% 'Transferred' | $T8 %]</h3>
402
      <div id="recordlinks"></div>
403
      <script type="text/javascript">
404
        var url = 'controller.pl?action=RecordLinks/ajax_list&object_model=ShopOrder&object_id=[% IMPORT.id %]';
405
        $('#recordlinks').load(url);
406
      </script>
407
    </div>
408
  [% END %]
409
[% END %]
402
        [% END # PROPOSALS %]
410 403

  
404
      [% ELSE %]
411 405

  
406
        <div>
407
          <h3>[% 'Transferred' | $T8 %]</h3>
408
          <div id="recordlinks"></div>
409
          <script type="text/javascript">
410
            var url = 'controller.pl?action=RecordLinks/ajax_list&object_model=ShopOrder&object_id=[% IMPORT.id %]';
411
            $('#recordlinks').load(url);
412
          </script>
413
        </div>
414
      [% END %]
415
    [% END %]
416
  </div>
417
</div>
412 418

  
413
<table class="tbl-list wi-moderate">
414
  <thead>
415
    <tr>
416
      <th>[% 'Position'          | $T8 %]</th>
417
      <th>[% 'Partnumber'        | $T8 %]</th>
418
      <th>[% 'Partdescriptipion' | $T8 %]</th>
419
      <th>[% 'Qty'               | $T8 %]</th>
420
      <th>[% 'Price'             | $T8 %]</th>
421
      <th>[% 'Extended'          | $T8 %]</th>
422
    </tr>
423
  </thead>
424
  <tbody>
425
    [% FOREACH pos = IMPORT.shop_order_items %]
419
<div class="wrapper" id="wrapper-3">
420
  <table class="tbl-list" style="width:100%">
421
    <thead>
426 422
      <tr>
427
        <td>[% loop.count                                      %]</td>
428
        <td>[% HTML.escape(pos.partnumber)                     %]</td>
429
        <td>[% HTML.escape(pos.description)                    %]</td>
430
        <td>[% pos.quantity_as_number                          %]</td>
431
        <td>[% pos.price_as_number                             %]</td>
432
        <td>[% LxERP.format_amount(pos.price * pos.quantity,2) %]</td>
423
        <th>[% 'Position'          | $T8 %]</th>
424
        <th>[% 'Partnumber'        | $T8 %]</th>
425
        <th>[% 'Partdescriptipion' | $T8 %]</th>
426
        <th>[% 'Qty'               | $T8 %]</th>
427
        <th>[% 'Price'             | $T8 %]</th>
428
        <th>[% 'Extended'          | $T8 %]</th>
433 429
      </tr>
434
    [% END %]
435
  </tbody>
436
</table>
430
    </thead>
431
    <tbody>
432
      [% FOREACH pos = IMPORT.shop_order_items %]
433
        <tr>
434
          <td>[% loop.count                                      %]</td>
435
          <td>[% HTML.escape(pos.partnumber)                     %]</td>
436
          <td>[% HTML.escape(pos.description)                    %]</td>
437
          <td>[% pos.quantity_as_number                          %]</td>
438
          <td>[% pos.price_as_number                             %]</td>
439
          <td>[% LxERP.format_amount(pos.price * pos.quantity,2) %]</td>
440
        </tr>
441
      [% END %]
442
    </tbody>
443
  </table>
444
</div>
437 445

  
438 446

  
439 447
<script type="text/javascript">

Auch abrufbar als: Unified diff