Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 444983ea

Von Hans Peter Schlaepfer vor etwa 5 Jahren hinzugefügt

  • ID 444983ea46e884d174b004dc49d00a78d34b8df0
  • Vorgänger 55035612
  • Nachfolger b9c13b70

Neues kivitendo Design Aenderungen in templates/webpages/shop*

Dateien shop_order/* shop_part/* shops/*

Unterschiede anzeigen:

templates/webpages/shop_order/show.html
1
[%- USE HTML -%][%- USE LxERP -%][%- USE L -%][%- USE T8 -%]
1
[% USE HTML %]
2
[% USE LxERP %]
3
[% USE L %]
4
[% USE T8 %]
2 5
[% L.stylesheet_tag('webshop') %]
3
[%- INCLUDE 'common/flash.html' %]
6

  
4 7
<h1>[% title %]</h1>
5 8

  
6
  <div class="shop_table shop_main">
7
    <div class="shop_table-row">
8
      <div class="shop_table-cell">
9
      <form method="post" action="controller.pl" id="customer">[% L.hidden_tag('create_customer','customer') %][% L.hidden_tag('import_id', IMPORT.id) %]
10
        <div class="shop_table shop_table_address">
11
          <div class="shop_table-row listheading">
12
            <div class="shop_table-cell">[% 'Shop Customer Address' | $T8 %]</div>
13
            <div class="shop_table-cell"></div>
14
          </div>
15
          <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>
16
          <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>
17
          <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>
18
          <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>
19
          <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>
20
            [% SET customer = IMPORT.customer_firstname _ ' ' _ IMPORT.customer_lastname %]
21
          <hr>
22
          <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>
23
          <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>
24
          <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>
25
          <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>
26
          <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>
27
          <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>
28
          <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>
29
          <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>
30
          <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>
31
          <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>
32
          [% IF C_ADDRESS %]
33
          <div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Customernumber' | $T8 %]</div><div class="shop_table-cell">[% C_ADDRESS.customernumber %]</div></div>
34
          [% ELSE %]
35
          <div>[% L.ajax_submit_tag("controller.pl?action=ShopOrder/apply_customer",  "#customer", LxERP.t8("Apply customer")) %]</div>
36
          [% 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>
37 29
        </div>
38
      </form>
39
      </div>
40
      <div class="shop_table-cell">
41
      <form method="post" action="controller.pl" id="billing">[% L.hidden_tag('create_customer','billing') %][% L.hidden_tag('import_id', IMPORT.id) %]
42
        <div class="shop_table shop_table_address">
43
          <div class="shop_table-row listheading">
44
            <div class="shop_table-cell">[% 'Shop Billing Address' | $T8 %]</div>
45
            <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>
46 99
          </div>
47
          <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>
48
          <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>
49
          <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>
50
          <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>
51
          <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>
52
            [% SET billing = IMPORT.billing_firstname _ ' ' _ IMPORT.billing_lastname %]
53
          <hr>
54
          <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>
55
          <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>
56
          <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>
57
          <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>
58
          <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>
59
          <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>
60
          <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>
61
          <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>
62
          <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>
63
          <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>
64
          [% IF B_ADDRESS %]
65
          <div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Customernumber' | $T8 %]</div><div class="shop_table-cell">[% B_ADDRESS.customernumber %]</div></div>
66
          [% ELSE %]
67
          <div>[% L.ajax_submit_tag("controller.pl?action=ShopOrder/apply_customer",  "#billing", LxERP.t8("Apply customer")) %]</div>
68
          [% 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>
69 120
        </div>
70
      </form>
71
      </div>
72
      <div class="shop_table-cell">
73
      <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

  
74 206
        <div class="shop_table shop_table_address">
207

  
75 208
          <div class="shop_table-row listheading">
76 209
            <div class="shop_table-cell">[% 'Shop Delivery Address' | $T8 %]</div>
77 210
            <div class="shop_table-cell"></div>
78 211
          </div>
79
          <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>
80
          <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>
81
          <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>
82
          <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>
83
          <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>
84
            [% 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 %]
85 234
          <hr>
86
          <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>
87
          <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>
88
          <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>
89
          <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>
90
          <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>
91
          <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>
92
          <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>
93
          <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>
94
          <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>
95
          <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>
96 276
          [% IF D_ADDRESS %]
97
          <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>
98 281
          [% ELSE %]
99
          <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>
100 283
          [% END %]
101
        </div>
102
      </form>
103
      </div>
104
    </div>
105
  </div>
106
  <hr>
107
  <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>
108 301
    <tr>
109
      <td width="35%">
110
        <table>
111
          <tr class="listheading">
112
            <th colspan="2">[% 'Shop Headdata' | $T8 %]</th>
113
          </tr>
114
          <tr><td><b>[% 'Shop Ordernumber' | $T8 %]</b></td><td>[% HTML.escape(IMPORT.shop_ordernumber) %]</td></tr>
115
          <tr><td><b>[% 'Shop Orderdate' | $T8 %]</b></td><td>[% HTML.escape(IMPORT.order_date.dmy('.')) _ ' ' _ HTML.escape(IMPORT.order_date.hms(':')) %]</td></tr>
116
          <tr><td><b>[% 'Shop Host' | $T8 %]</b></td><td>[% HTML.escape(IMPORT.host) %]</td></tr>
117
          <tr><td><b>[% 'Shop OrderIP' | $T8 %]</b></td><td>[% HTML.escape(IMPORT.remote_ip) %]</td></tr>
118
          <tr><td><b>[% 'Shop Ordernotes' | $T8 %]</b></td><td>[% HTML.escape(IMPORT.shop_customer_comment) %]</td></tr>
119
          <tr><td><b>[% 'Shop Orderamount' | $T8 %]</b></td><td>[% HTML.escape(IMPORT.amount_as_number) %]</td></tr>
120
          <tr><td><b>[% 'Shipping costs' | $T8 %]</b></td><td>[% HTML.escape(IMPORT.shipping_costs_as_number) %]</td></tr>
121
        </table>
122
      </td>
123
      <td style="padding-left: 20px; vertical-align: top;">
124
        [% IF IMPORT.obsolete %]
125
        <b>[% 'Shoporder deleted -- ' | $T8 %]</b><a href="controller.pl?action=ShopOrder/undelete_order&import_id=[% IMPORT.id %]">[% 'revert deleted' | $T8 %]</a>
126
        [% ELSE %]
127
        [% UNLESS IMPORT.transferred %]
128
        [% IF PROPOSALS %]
129
          <form method="post" action="controller.pl" id="create_order">
130
            [% L.hidden_tag('import_id', IMPORT.id) %]
131
            <div style="height: 125px; overflow:auto;">
132
              <table>
133
                <tr class="listheading">
134
                  <th colspan="7">Customer Proposals</td>
135
                </tr>
136
                [% FOREACH prop = PROPOSALS %][% IF prop.order_lock %][% SET orderlock_class = 'style="background:rgba(232, 32, 23, 0.2);"' %][% ELSE %][% SET orderlock_class = '' %][% END %]
137
                <tr class="listrow" [% orderlock_class %]>
138
                  <td>[% IF !prop.order_lock %][% L.radio_button_tag('customer', value=prop.id) %][% END %]</td>
139
                  <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>
140
                  <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>
141
                  <td>[% HTML.escape(prop.street) %]</td>
142
                  <td>[% HTML.escape(prop.zipcode) %]</td>
143
                  <td>[% HTML.escape(prop.city) %]</td>
144
                  <td>[% HTML.escape(prop.email) %]</td>
145
                </tr>
146
                [% END %]
147
              </table>
148
            </div>
149
            <div id="transfer" style="float:left; display:none;">
150
              [% # 'Customernumber: ' _ %]
151
              [% L.ajax_submit_tag('controller.pl?action=ShopOrder/transfer', "#create_order", LxERP.t8('Create order')) %]
152
            </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>
153 345
            [% FOREACH prop = PROPOSALS %]
154
            <div id="shop_update_customer_[% prop.id %]" class="div_hidden" style="display:none;">
155
              [% L.ajax_submit_tag("controller.pl?action=ShopOrder/apply_customer&cv_id=" _ prop.id,  "#billing", LxERP.t8("Update customer using billing address")) %]
156
            </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>
157 373
            [% END %]
158
          </form>
159
        <a href="controller.pl?action=ShopOrder/delete_order&import_id=[% IMPORT.id %]">[% 'delete order' | $T8 %]</a>
160
        [% END # PROPOSALS %]
161
        [% ELSE %]
162
        <div>
163
          [% 'Transferred' | $T8 %]
164
          <div id="recordlinks"></div>
165
          <script type="text/javascript">
166
            var url = 'controller.pl?action=RecordLinks/ajax_list&object_model=ShopOrder&object_id=[% IMPORT.id %]';
167
            $('#recordlinks').load(url);
168
          </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')) %]
169 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>
170 386
        [% END %]
171
        [% END %]
172
      </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>
173 419
    </tr>
174
  </table>
175
  <hr>
176
  <div style="height: 250px; overflow:auto; margin:15px;">
177
    <table width="99%">
178
      <tr class="listheading">
179
        <th>[% 'Position'          | $T8 %]</th>
180
        <th>[% 'Partnumber'        | $T8 %]</th>
181
        <th>[% 'Partdescriptipion' | $T8 %]</th>
182
        <th>[% 'Qty'               | $T8 %]</th>
183
        <th>[% 'Price'             | $T8 %]</th>
184
        <th>[% 'Extended'          | $T8 %]</th>
185
      </tr>
186
      <tr class="listrow">
187
      [% FOREACH pos = IMPORT.shop_order_items %]
420
  </thead>
421
  <tbody>
422
    [% FOREACH pos = IMPORT.shop_order_items %]
423
      <tr>
188 424
        <td>[% loop.count                                      %]</td>
189 425
        <td>[% HTML.escape(pos.partnumber)                     %]</td>
190 426
        <td>[% HTML.escape(pos.description)                    %]</td>
......
192 428
        <td>[% pos.price_as_number                             %]</td>
193 429
        <td>[% LxERP.format_amount(pos.price * pos.quantity,2) %]</td>
194 430
      </tr>
195
      [% END %]
196
    </table>
197
  </div>
198
  <hr>
431
    [% END %]
432
  </tbody>
433
</table>
434

  
435

  
199 436
<script type="text/javascript">
200
$("input[type=radio]").change(function(){
201
      $('.div_hidden').css("display", 'none');
202
      var cv_id = $("input[type=radio][id="+ this.id + "]").val();
203
      $('#shop_update_customer_'+ cv_id).css("display", 'block');
204
      $('#transfer').css("display", 'block');
205
});
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
  });
206 443
</script>

Auch abrufbar als: Unified diff