Chartpicker testpage - style als Variable und Fall IC
[kivitendo-erp.git] / templates / webpages / chart / test_page.html
index 3e68e03..4fc4688 100644 (file)
@@ -1,38 +1,40 @@
 [% USE L %]
+[% SET style="width: 400px" %]
 
 <h1>Chart Picker Testpage</h1>
 
 <div>
 
 <p>
-All charts: [% L.chart_picker('chart_id', '', style="width: 400px") %]text after icon<br>
-Only booked charts: [% L.chart_picker('chart_id_booked', '', booked=1, style="width: 400px") %]<br>
-All charts choose: [% L.chart_picker('chart_id_choose', '', choose=1, style="width: 400px") %]<br>
+All charts: [% L.chart_picker('chart_id', '', style=style) %]text after icon<br>
+Only booked charts: [% L.chart_picker('chart_id_booked', '', booked=1, style=style) %]<br>
+All charts choose: [% L.chart_picker('chart_id_choose', '', choose=1, style=style) %]<br>
 </p>
 
 <p>
 Filter by link:<br>
-AR_paid: [% L.chart_picker('chart_id_ar_paid', undef, type='AR_paid', category='I,A' style="width: 400px") %]<br>
-AR: [% L.chart_picker('chart_id_ar', undef, type='AR', style="width: 400px") %]<br>
-AP: [% L.chart_picker('chart_id_ap', undef, type='AP', style="width: 400px") %]<br>
-AR or AP: [% L.chart_picker('chart_id_arap', undef, type='AR,AP', style="width: 400px") %]<br>
-IC_income,IC_sale: [% L.chart_picker('chart_id_icis', undef, type='IC_income,IC_sale', style="width: 400px") %]<br>
-IC_expense,IC_cogs: [% L.chart_picker('chart_id_icco', undef, type='IC_expense,IC_cogs', style="width: 400px") %]<br>
+AR_paid: [% L.chart_picker('chart_id_ar_paid', undef, type='AR_paid', category='I,A' style=style) %]<br>
+AR: [% L.chart_picker('chart_id_ar', undef, type='AR', style=style) %]<br>
+AP: [% L.chart_picker('chart_id_ap', undef, type='AP', style=style) %]<br>
+AR or AP: [% L.chart_picker('chart_id_arap', undef, type='AR,AP', style=style) %]<br>
+IC_income,IC_sale: [% L.chart_picker('chart_id_icis', undef, type='IC_income,IC_sale', style=style) %]<br>
+IC_expense,IC_cogs: [% L.chart_picker('chart_id_icco', undef, type='IC_expense,IC_cogs', style=style) %]<br>
+IC: [% L.chart_picker('chart_id_ic', undef, type='IC', style=style) %]<br>
 </p>
 
 <p>
 Filter by category:<br>
-I: [% L.chart_picker('chart_id_i', undef, category='I', style="width: 400px") %]<br>
-IE: [% L.chart_picker('chart_id_ie', undef, category='I,E', style="width: 400px") %]<br>
-AQL: [% L.chart_picker('chart_id_aql', undef, category='A,Q,L', style="width: 400px") %]<br>
+I: [% L.chart_picker('chart_id_i', undef, category='I', style=style) %]<br>
+IE: [% L.chart_picker('chart_id_ie', undef, category='I,E', style=style) %]<br>
+AQL: [% L.chart_picker('chart_id_aql', undef, category='A,Q,L', style=style) %]<br>
 </p>
 
 <p>
 Filter by special type:<br>
-GuV: [% L.chart_picker('chart_id_guv', undef, type='guv', style="width: 400px") %]<br>
+GuV: [% L.chart_picker('chart_id_guv', undef, type='guv', style=style) %]<br>
 </p>
 
-<p>bank (fat): [% L.chart_picker('bank_id', '', type='bank', fat_set_item=1, choose=1, style="width: 400px") %]
+<p>bank (fat): [% L.chart_picker('bank_id', '', type='bank', fat_set_item=1, choose=1, style=style) %]
 </p>
 <p id="banktext"></p>