[% USE L %]
+[% USE P %]
<h1>Part Picker Testpage</h1>
<br>
Alle: <br>
-[% L.part_picker('part_id') %] text<br>
+[% P.part.picker('part_id') %] text<br>
Nur Waren: <br>
-[% L.part_picker('part_id2', undef, part_type='part') %]<br>
+[% P.part.picker('part_id2', undef, part_type='part') %]<br>
Nur Dienstleistungen: <br>
-[% L.part_picker('part_id3', undef, part_type='service') %]<br>
+[% P.part.picker('part_id3', undef, part_type='service') %]<br>
Nur Erzeugnisse: <br>
-[% L.part_picker('part_id4', undef, part_type='assembly') %]<br>
+[% P.part.picker('part_id4', undef, part_type='assembly') %]<br>
Waren und Dienstleistungen: <br>
-[% L.part_picker('part_id5', undef, part_type='part,service') %]<br>
+[% P.part.picker('part_id5', undef, part_type='part,service') %]<br>
Artikel-Klassifizierung: Einkauf <br>
-[% L.part_picker('part_id10', undef, classification_id='1') %]<br>
+[% P.part.picker('part_id10', undef, classification_id='1') %]<br>
Artikel-Klassifizierung: Verkauf <br>
-[% L.part_picker('part_id11', undef, classification_id='2') %]<br>
+[% P.part.picker('part_id11', undef, classification_id='2') %]<br>
Artikel-Klassifizierung: Handelsware <br>
-[% L.part_picker('part_id12', undef, classification_id='3') %]<br>
+[% P.part.picker('part_id12', undef, classification_id='3') %]<br>
Artikel-Klassifizierung: Produktion <br>
-[% L.part_picker('part_id13', undef, classification_id='4') %]<br>
+[% P.part.picker('part_id13', undef, classification_id='4') %]<br>
Artikel-Klassifizierung: Eink.,Verk.,Prod. <br>
-[% L.part_picker('part_id14', undef, classification_id='1,2,4') %]<br>
+[% P.part.picker('part_id14', undef, classification_id='1,2,4') %]<br>
Pre-filled:<br>
-[% L.part_picker('part_id6', pre_filled_part) %]<br>
+[% P.part.picker('part_id6', pre_filled_part) %]<br>
Convertible unit 'Std': (only select parts with unit Tag/Std/Min)<br>
-[% L.part_picker('part_id7', undef, convertible_unit='Std') %]<br>
+[% P.part.picker('part_id7', undef, convertible_unit='Std') %]<br>
With multi select popup<br>
-[% L.part_picker('part_id8', undef, multiple=1) %]<br>
+[% P.part.picker('part_id8', undef, multiple=1) %]<br>
<h2>Styling</h2>
In a span:
-<span>Leading text: [% L.part_picker('p1', undef, part_type='part,service') %] and text after with spacing</span><br>
-<span>Leading text:[% L.part_picker('p2', undef, part_type='part,service') %]and text after without spacing</span><br>
-<div>Leading text: [% L.part_picker('p3', undef, part_type='part,service') %] and text after with spacing with div</div><br>
-<div>Leading text:[% L.part_picker('p4', undef, part_type='part,service') %]and text after with spacing with div</div><br>
+<span>Leading text: [% P.part.picker('p1', undef, part_type='part,service') %] and text after with spacing</span><br>
+<span>Leading text:[% P.part.picker('p2', undef, part_type='part,service') %]and text after without spacing</span><br>
+<div>Leading text: [% P.part.picker('p3', undef, part_type='part,service') %] and text after with spacing with div</div><br>
+<div>Leading text:[% P.part.picker('p4', undef, part_type='part,service') %]and text after with spacing with div</div><br>
-<span>Picker + input next to each other: [% L.part_picker('p5', undef, part_type='part,service', width="100%") %]<input type=text></span>
+<span>Picker + input next to each other: [% P.part.picker('p5', undef, part_type='part,service', width="100%") %]<input type=text></span>
-<div>[% L.part_picker('p6', undef, part_type='part,service', style="width:500px") %] 500px width</div>
-<div>[% L.part_picker('p7', undef, part_type='part,service', style="width:200px") %] 200px width</div>
-<div>[% L.part_picker('p8', undef, part_type='part,service', style="height:40px") %] 40px height</div>
+<div>[% P.part.picker('p6', undef, part_type='part,service', style="width:500px") %] 500px width</div>
+<div>[% P.part.picker('p7', undef, part_type='part,service', style="width:200px") %] 200px width</div>
+<div>[% P.part.picker('p8', undef, part_type='part,service', style="height:40px") %] 40px height</div>
[%# FOREACH i IN 1..50 %]
-[%# L.part_picker('part_id_' _ i) %] <br>
+[%# P.part.picker('part_id_' _ i) %] <br>
[%# END %]
<h2>In tables</h2>
<table>
<tr>
<th>Part picker in table heading</th>
- <th>[% L.part_picker('p9', undef, part_type='part,service') %]</th>
+ <th>[% P.part.picker('p9', undef, part_type='part,service') %]</th>
</tr>
<tr>
<td>Part picker in table cell</td>
- <td>[% L.part_picker('p10', undef, part_type='part,service') %]</td>
+ <td>[% P.part.picker('p10', undef, part_type='part,service') %]</td>
</tr>
</table>
<table>
<tr class=listheading>
<th>Part picker in table heading</th>
- <th>[% L.part_picker('p11', undef, part_type='part,service') %]</th>
+ <th>[% P.part.picker('p11', undef, part_type='part,service') %]</th>
</tr>
<tr class=listrow>
<td>Part picker in table cell</td>
- <td>[% L.part_picker('p12', undef, part_type='part,service') %]</td>
+ <td>[% P.part.picker('p12', undef, part_type='part,service') %]</td>
</tr>
</table>