6 [%# L.dump(SELF.parts) %]
8 [% FOREACH part = SELF.parts %]
9 [% PROCESS part_block %]
12 [%- BLOCK part_block %]
13 <div class='part_picker_part'>
14 <input type='hidden' class='part_picker_id' value='[% part.id %]'>
15 <input type='hidden' class='part_picker_partnumber' value='[% part.partnumber %]'>
16 <input type='hidden' class='part_picker_description' value='[% part.description %]'>
17 <span style='float:left'>[% part.partnumber | html %]</span>
18 <span style='float:right; font-weight:bold'>[% part.description | html %]</span>
19 <div style='clear:both;'></div>
20 [% 'Sellprice' | $T8 %]: [% part.sellprice_as_number | html %]
24 <div style='clear:both'></div>
26 [% L.paginate_controls(target='#part_picker_result', selector='#part_picker_result') %]
28 <script type='text/javascript'>
29 var pp = kivi.PartPickerCache[$('#part_picker_real_id').val()];
30 $('div.part_picker_part').each(function(){
31 $(this).click(function(){
33 name: $(this).children('input.part_picker_description').val(),
34 id: $(this).children('input.part_picker_id').val(),
36 $('#part_selection').jqmClose();