Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 7ce093c0

Von Hans Peter Schlaepfer vor mehr als 3 Jahren hinzugefügt

  • ID 7ce093c0712a5fdafbcbbb8b6043e227ba80b25a
  • Vorgänger 2641a546
  • Nachfolger d53e6c7e

Neues kivitendo Design Aenderungen in templates/webpages/common/..

Unterschiede anzeigen:

templates/webpages/common/_ship_to_dialog.html
1
[% USE HTML %][% USE L %][% USE LxERP %][%- USE JavaScript -%]
1
[% USE HTML %]
2
[% USE L %]
3
[% USE LxERP %]
4
[% USE JavaScript %]
2 5

  
3 6
<script type="text/javascript">
4 7
  $(function() {
......
44 47
</script>
45 48

  
46 49
[% select_options = [ [ 0, LxERP.t8("Billing Address") ] ] ;
47
   FOREACH shipto = vc_obj.shipto ;
48
     tmpcity  = shipto.shiptozipcode _ ' ' _ shipto.shiptocity ;
49
     tmptitle = [ shipto.shiptoname, shipto.shiptostreet, tmpcity ] ;
50
     CALL select_options.import([ [ loop.count, tmptitle.grep('\S').join("; ") ] ]) ;
51
   END ;
52
   '' %]
50
    FOREACH shipto = vc_obj.shipto ;
51
      tmpcity  = shipto.shiptozipcode _ ' ' _ shipto.shiptocity ;
52
      tmptitle = [ shipto.shiptoname, shipto.shiptostreet, tmpcity ] ;
53
      CALL select_options.import([ [ loop.count, tmptitle.grep('\S').join("; ") ] ]) ;
54
    END ;
55
   ''
56
%]
57
<form action="#" name="fake-shipto-dialog" id="fake-shipto-dialog">
53 58

  
54
<p>
55
 [% LxERP.t8("Copy address from master data") %]:
56
 [% L.select_tag("", select_options, id="shipto_to_copy", style="width: 300px") %]
57
 [% L.button_tag("kivi.SalesPurchase.copy_shipto_address()", LxERP.t8("Copy")) %]
58
</p>
59
<div class="select-item control-panel">
60
  [% LxERP.t8("Copy address from master data") %]:
61
  [% L.select_tag("", select_options, id="shipto_to_copy", class="wi-normal") %]
62
  [% L.button_tag("kivi.SalesPurchase.copy_shipto_address()", LxERP.t8("Copy"), type="button", class="button neutral") %]
63
</div>
59 64

  
60 65
[% IF cs_obj ;
61 66
  fields = ['shiptoname', 'shiptodepartment_1', 'shiptodepartment_2',
......
69 74
'' %]
70 75

  
71 76

  
72
<table>
73
 <tr class="listheading">
74
  <th></th>
75
  <th>[% LxERP.t8('Billing Address') %]</th>
76
  <th>[% LxERP.t8('Shipping Address') %]</th>
77
 </tr>
78
 <tr height="5"></tr>
79
 <tr>
80
  <th align="right" nowrap>[%- IF vc == "customer" %][%- LxERP.t8('Customer Number') %][%- ELSE %][%- LxERP.t8('Vendor Number') %][%- END %]</th>
81
  <td>[%- IF vc == "customer" %][%- HTML.escape(vc_obj.customernumber) %][%- ELSE %][%- HTML.escape(vc_obj.vendornumber) %][%- END %]</td>
82
 </tr>
83
 <tr>
84
  <th align="right" nowrap>[% LxERP.t8('Company Name') %]</th>
85
  <td>[% HTML.escape(vc_obj.name) %]</td>
86
  <td>[% L.input_tag("shiptoname", shiptoname, "size", "35") %]</td>
87
 </tr>
88
 <tr>
89
  <th align="right" nowrap>[% LxERP.t8('Department') %]</th>
90
  <td>[% HTML.escape(vc_obj.department_1) %]</td>
91
  <td>[% L.input_tag("shiptodepartment_1", shiptodepartment_1, "size", "35") %]</td>
92
 </tr>
93
 <tr>
94
  <th align="right" nowrap>&nbsp;</th>
95
  <td>[% HTML.escape(vc_obj.department_2) %]</td>
96
  <td>[% L.input_tag("shiptodepartment_2", shiptodepartment_2, "size", "35") %]</td>
97
 </tr>
98
 <tr>
99
  <th align="right" nowrap>[% LxERP.t8('Street') %]</th>
100
  <td>[% HTML.escape(vc_obj.street) %]</td>
101
  <td>[% L.input_tag("shiptostreet", shiptostreet, "size", "35") %]</td>
102
 </tr>
103
 <tr>
104
  <th align="right" nowrap>[% LxERP.t8('Zipcode') %]</th>
105
  <td>[% HTML.escape(vc_obj.zipcode) %]</td>
106
  <td>[% L.input_tag("shiptozipcode", shiptozipcode, "size", "35") %]</td>
107
 </tr>
108
 <tr>
109
  <th align="right" nowrap>[% LxERP.t8('City') %]</th>
110
  <td>[% HTML.escape(vc_obj.city) %]</td>
111
  <td>[% L.input_tag("shiptocity", shiptocity, "size", "35") %]</td>
112
 </tr>
113
 <tr>
114
  <th align="right" nowrap>[% LxERP.t8('Country') %]</th>
115
  <td>[% HTML.escape(vc_obj.country) %]</td>
116
  <td>[% L.input_tag("shiptocountry", shiptocountry, "size", "35") %]</td>
117
 </tr>
118
 <tr>
119
  <th align="right" nowrap>[% LxERP.t8('GLN') %]</th>
120
  <td>[% HTML.escape(vc_obj.gln) %]</td>
121
  <td>[% L.input_tag("shiptogln", shiptogln, "size", "35") %]</td>
122
 </tr>
123
 <tr>
124
  <th align="right" nowrap>[% LxERP.t8('Contact') %]</th>
125
  <td>[% HTML.escape(vc_obj.contact) %]</td>
126
  <td>[% L.input_tag("shiptocontact", shiptocontact, "size", "35") %]</td>
127
 </tr>
128
 <tr>
129
  <th align="right" nowrap>[% LxERP.t8('Gender') %]</th>
130
  <td></td>
131
  <td>
132
   [% L.select_tag('shiptocp_gender', [ [ 'm', LxERP.t8('male') ], [ 'f', LxERP.t8('female') ] ], 'default' = shiptocp_gender) %]
133
  </td>
134
 </tr>
135
 <tr>
136
  <th align="right" nowrap>[% LxERP.t8('Phone') %]</th>
137
  <td>[% HTML.escape(vc_obj.phone) %]</td>
138
  <td>[% L.input_tag("shiptophone", shiptophone, "size", "35") %]</td>
139
 </tr>
140
 <tr>
141
  <th align="right" nowrap>[% LxERP.t8('Fax') %]</th>
142
  <td>[% HTML.escape(vc_obj.fax) %]</td>
143
  <td>[% L.input_tag("shiptofax", shiptofax, "size", "35") %]</td>
144
 </tr>
145
 <tr>
146
  <th align="right" nowrap>[% LxERP.t8('E-mail') %]</th>
147
  <td>[% HTML.escape(vc_obj.email) %]</td>
148
  <td>[% L.input_tag("shiptoemail", shiptoemail, "size", "35") %]</td>
149
 </tr>
150
[% FOREACH var = cvars %]
151
 <tr valign="top">
152
  <th align="right" nowrap>[% HTML.escape(var.config.description) %]</th>
153
  <td></td>
154
  <td>[% INCLUDE 'common/render_cvar_input.html' cvar_name_prefix='shiptocvar_' %]</td>
155
 </tr>
156
[% END %]
77
<table class="tbl-horizontal checkered wi-moderate">
78
  <thead>
79
    <tr>
80
      <td></td>
81
      <th>[% LxERP.t8('Billing Address') %]</th>
82
      <th>[% LxERP.t8('Shipping Address') %]</th>
83
    </tr>
84
  </thead>
85
   <tbody>
86
   <tr>
87
    <th>[% IF vc == "customer" %][% LxERP.t8('Customer Number') %][% ELSE %][% LxERP.t8('Vendor Number') %][% END %]</th>
88
    <td>[% IF vc == "customer" %][% HTML.escape(vc_obj.customernumber) %][% ELSE %][% HTML.escape(vc_obj.vendornumber) %][% END %]</td>
89
    <td></td>
90
   </tr>
91
   <tr>
92
    <th>[% LxERP.t8('Company Name') %]</th>
93
    <td>[% HTML.escape(vc_obj.name) %]</td>
94
    <td>[% L.input_tag("shiptoname", shiptoname, "size", "35", class="wi-normal") %]</td>
95
   </tr>
96
   <tr>
97
    <th>[% LxERP.t8('Department') %]</th>
98
    <td>[% HTML.escape(vc_obj.department_1) %]</td>
99
    <td>[% L.input_tag("shiptodepartment_1", shiptodepartment_1, "size", "35") %]</td>
100
   </tr>
101
   <tr>
102
    <th>[% LxERP.t8('Department') %] 2</th>
103
    <td>[% HTML.escape(vc_obj.department_2) %]</td>
104
    <td>[% L.input_tag("shiptodepartment_2", shiptodepartment_2, "size", "35") %]</td>
105
   </tr>
106
   <tr>
107
    <th>[% LxERP.t8('Street') %]</th>
108
    <td>[% HTML.escape(vc_obj.street) %]</td>
109
    <td>[% L.input_tag("shiptostreet", shiptostreet, "size", "35") %]</td>
110
   </tr>
111
   <tr>
112
    <th>[% LxERP.t8('Zipcode') %]</th>
113
    <td>[% HTML.escape(vc_obj.zipcode) %]</td>
114
    <td>[% L.input_tag("shiptozipcode", shiptozipcode, "size", "35") %]</td>
115
   </tr>
116
   <tr>
117
    <th>[% LxERP.t8('City') %]</th>
118
    <td>[% HTML.escape(vc_obj.city) %]</td>
119
    <td>[% L.input_tag("shiptocity", shiptocity, "size", "35") %]</td>
120
   </tr>
121
   <tr>
122
    <th>[% LxERP.t8('Country') %]</th>
123
    <td>[% HTML.escape(vc_obj.country) %]</td>
124
    <td>[% L.input_tag("shiptocountry", shiptocountry, "size", "35") %]</td>
125
   </tr>
126
   <tr>
127
    <th>[% LxERP.t8('GLN') %]</th>
128
    <td>[% HTML.escape(vc_obj.gln) %]</td>
129
    <td>[% L.input_tag("shiptogln", shiptogln, "size", "35") %]</td>
130
   </tr>
131
   <tr>
132
    <th>[% LxERP.t8('Contact') %]</th>
133
    <td>[% HTML.escape(vc_obj.contact) %]</td>
134
    <td>[% L.input_tag("shiptocontact", shiptocontact, "size", "35") %]</td>
135
   </tr>
136
   <tr>
137
    <th>[% LxERP.t8('Gender') %]</th>
138
    <td></td>
139
    <td>
140
     [% L.select_tag('shiptocp_gender', [ [ 'm', LxERP.t8('male') ], [ 'f', LxERP.t8('female') ] ], 'default' = shiptocp_gender) %]
141
    </td>
142
   </tr>
143
   <tr>
144
    <th>[% LxERP.t8('Phone') %]</th>
145
    <td>[% HTML.escape(vc_obj.phone) %]</td>
146
    <td>[% L.input_tag("shiptophone", shiptophone, "size", "35") %]</td>
147
   </tr>
148
   <tr>
149
    <th>[% LxERP.t8('Fax') %]</th>
150
    <td>[% HTML.escape(vc_obj.fax) %]</td>
151
    <td>[% L.input_tag("shiptofax", shiptofax, "size", "35") %]</td>
152
   </tr>
153
   <tr>
154
    <th>[% LxERP.t8('E-mail') %]</th>
155
    <td>[% HTML.escape(vc_obj.email) %]</td>
156
    <td>[% L.input_tag("shiptoemail", shiptoemail, "size", "35") %]</td>
157
   </tr>
158
  [% FOREACH var = cvars %]
159
   <tr>
160
    <th>[% HTML.escape(var.config.description) %]</th>
161
    <td></td>
162
    <td>[% INCLUDE 'common/render_cvar_input.html' cvar_name_prefix='shiptocvar_' %]</td>
163
   </tr>
164
  [% END %]
165
  </tbody>
157 166
</table>
158 167

  
159
<p>
168
<div class="buttons">
160 169
 [% L.button_tag("kivi.SalesPurchase.submit_custom_shipto('" _ id_selector _ "')", LxERP.t8("Apply")) %]
161
 [% L.button_tag("kivi.SalesPurchase.reset_shipto_fields()", LxERP.t8("Reset")) %]
162
 [% L.button_tag("kivi.SalesPurchase.clear_shipto_fields()", LxERP.t8("Clear fields")) %]
163
 [% L.button_tag("\$('#shipto_dialog').dialog('close');", LxERP.t8("Abort")) %]
164
</p>
170
 [% L.button_tag("kivi.SalesPurchase.reset_shipto_fields()", LxERP.t8("Reset"), class="neutral") %]
171
 [% L.button_tag("kivi.SalesPurchase.clear_shipto_fields()", LxERP.t8("Clear fields"), class="neutral") %]
172
 [% L.button_tag("\$('#shipto_dialog').dialog('close');", LxERP.t8("Abort"), class="neutral") %]
173
</div>
174
</form>

Auch abrufbar als: Unified diff