6 <div style='overflow:hidden'>
8 [% LxERP.t8("Filter") %]: [% L.input_tag('chart_picker_filter', SELF.filter.all_substr_multi__ilike, class='chart_picker_filter', style="width: 400px") %]
9 [% L.hidden_tag('chart_picker_real_id', FORM.real_id) %] <a href="javascript:void(0);" onclick="$('#chart_picker_filter').val('').focus();cp.update_results();">x</a>
11 <div style="padding: 5px 0em 5px 0em">
13 [% L.checkbox_tag('booked', checked=FORM.booked, for_submit=1, label=LxERP.t8('Only booked accounts')) %]
15 <span class='float-right'>
16 [% L.checkbox_tag('hide_chart_details', checked=1, id='hide_chart_details', for_submit=1, label=LxERP.t8('Hide chart details')) %]
21 [% LxERP.t8("Account Type") %]:
23 [% IF FORM.filter.category %]
24 [% FOREACH var IN FORM.filter.category %]
25 [% IF var == 'A' %][% L.checkbox_tag('SELF.filter.selected_category_A', checked=1, value ='A', label=LxERP.t8('Assets')) %] [% END %]
26 [% IF var == 'L' %][% L.checkbox_tag('SELF.filter.selected_category_L', checked=1, value ='L', label=LxERP.t8('Liability')) %][% END %]
27 [% IF var == 'Q' %][% L.checkbox_tag('SELF.filter.selected_category_Q', checked=1, value ='Q', label=LxERP.t8('Equity')) %] [% END %]
28 [% IF var == 'I' %][% L.checkbox_tag('SELF.filter.selected_category_I', checked=1, value ='I', label=LxERP.t8('Revenue')) %] [% END %]
29 [% IF var == 'E' %][% L.checkbox_tag('SELF.filter.selected_category_E', checked=1, value ='E', label=LxERP.t8('Expense')) %] [% END %]
32 [% L.checkbox_tag('SELF.filter.selected_category_A', checked=0, value ='A', label=LxERP.t8('Assets')) %]
33 [% L.checkbox_tag('SELF.filter.selected_category_L', checked=0, value ='L', label=LxERP.t8('Liability')) %]
34 [% L.checkbox_tag('SELF.filter.selected_category_Q', checked=0, value ='Q', label=LxERP.t8('Equity')) %]
35 [% L.checkbox_tag('SELF.filter.selected_category_I', checked=0, value ='I', label=LxERP.t8('Revenue')) %]
36 [% L.checkbox_tag('SELF.filter.selected_category_E', checked=0, value ='E', label=LxERP.t8('Expense')) %]
40 <div style='clear:both'></div>
41 <div id='chart_picker_result'></div>
44 <script type='text/javascript'>
45 var cp = kivi.ChartPicker($('#[% FORM.real_id %]'));
47 $('#chart_picker_filter').focus();
48 // empty input field upon opening if we just want to pick a field
49 [% IF FORM.choose %] $('#chart_picker_filter').val(''); [% END %]
51 cp.update_results(); // function from js/autocomplete_chart_js
53 $('#chart_picker_filter').keyup(cp.result_timer);
54 // use keyup instead of keypress to get backspace to work
55 // this messes up numblock though!
56 $("input[type='checkbox']").change(cp.update_results);