epic-ts
[kivitendo-erp.git] / templates / webpages / chart / test_page.html
1 [% USE L %]
2 [% SET style="width: 400px" %]
3
4 <h1>Chart Picker Testpage</h1>
5
6 <div>
7
8 <p>
9 All charts: [% L.chart_picker('chart_id', '', style=style) %]text after icon<br>
10 Only booked charts: [% L.chart_picker('chart_id_booked', '', booked=1, style=style) %]<br>
11 All charts choose: [% L.chart_picker('chart_id_choose', '', choose=1, style=style) %]<br>
12 </p>
13
14 <p>
15 Filter by link:<br>
16 AR_paid: [% L.chart_picker('chart_id_ar_paid', undef, type='AR_paid', category='I,A' style=style) %]<br>
17 AR: [% L.chart_picker('chart_id_ar', undef, type='AR', style=style) %]<br>
18 AP: [% L.chart_picker('chart_id_ap', undef, type='AP', style=style) %]<br>
19 AR or AP: [% L.chart_picker('chart_id_arap', undef, type='AR,AP', style=style) %]<br>
20 IC_income,IC_sale: [% L.chart_picker('chart_id_icis', undef, type='IC_income,IC_sale', style=style) %]<br>
21 IC_expense,IC_cogs: [% L.chart_picker('chart_id_icco', undef, type='IC_expense,IC_cogs', style=style) %]<br>
22 IC: [% L.chart_picker('chart_id_ic', undef, type='IC', style=style) %]<br>
23 </p>
24
25 <p>
26 Filter by category:<br>
27 I: [% L.chart_picker('chart_id_i', undef, category='I', style=style) %]<br>
28 IE: [% L.chart_picker('chart_id_ie', undef, category='I,E', style=style) %]<br>
29 AQL: [% L.chart_picker('chart_id_aql', undef, category='A,Q,L', style=style) %]<br>
30 </p>
31
32 <p>
33 Filter by special type:<br>
34 GuV: [% L.chart_picker('chart_id_guv', undef, type='guv', style=style) %]<br>
35 </p>
36
37 <p>bank (fat): [% L.chart_picker('bank_id', '', type='bank', fat_set_item=1, choose=1, style=style) %]
38 </p>
39 <p id="banktext"></p>
40
41
42 <p>
43 [% FOREACH i IN [ 1 2 3 4 5 6 ] %]
44 S [% i %]: [% L.chart_picker('credit_' _ i) %] - &nbsp;&nbsp;  H [% i %]: [% L.chart_picker('debit' _ i) %] <br>
45 [% END %]
46 </p>
47
48 </div>
49
50 <script type='text/javascript'>
51   $(function(){
52       // do something when a chartpicker with fat_set_item and a certain id changes
53       $('#bank_id').on('set_item:ChartPicker', function (e, item) {
54         console.log(item)
55         $('#banktext').html('Selected fat item with category ' + item.category);
56       })
57   });
58
59 </script>
60