PartPicker: Multipicker als separate popupklasse
[kivitendo-erp.git] / templates / webpages / part / test_page.html
1 [% USE L %]
2
3 <h1>Part Picker Testpage</h1>
4
5 <br>
6 Alle: <br>
7 [% L.part_picker('part_id') %] text<br>
8 Nur Waren: <br>
9 [% L.part_picker('part_id2', undef, part_type='part') %]<br>
10 Nur Dienstleistungen: <br>
11 [% L.part_picker('part_id3', undef, part_type='service') %]<br>
12 Nur Erzeugnisse: <br>
13 [% L.part_picker('part_id4', undef, part_type='assembly') %]<br>
14 Waren und Dienstleistungen: <br>
15 [% L.part_picker('part_id5', undef, part_type='part,service') %]<br>
16 Artikel-Klassifizierung: Einkauf <br>
17 [% L.part_picker('part_id10', undef, classification_id='1') %]<br>
18 Artikel-Klassifizierung: Verkauf <br>
19 [% L.part_picker('part_id11', undef, classification_id='2') %]<br>
20 Artikel-Klassifizierung: Handelsware <br>
21 [% L.part_picker('part_id12', undef, classification_id='3') %]<br>
22 Artikel-Klassifizierung: Produktion <br>
23 [% L.part_picker('part_id13', undef, classification_id='4') %]<br>
24 Artikel-Klassifizierung: Eink.,Verk.,Prod. <br>
25 [% L.part_picker('part_id14', undef, classification_id='1,2,4') %]<br>
26 Pre-filled:<br>
27 [% L.part_picker('part_id6', pre_filled_part) %]<br>
28 Convertible unit 'Std': (only select parts with unit Tag/Std/Min)<br>
29 [% L.part_picker('part_id7', undef, convertible_unit='Std') %]<br>
30
31 With multi select popup<br>
32 [% L.part_picker('part_id8', undef, multiple=1) %]<br>
33
34 <h2>Styling</h2>
35
36 In a span:
37 <span>Leading text: [% L.part_picker('p1', undef, part_type='part,service') %] and text after with spacing</span><br>
38 <span>Leading text:[% L.part_picker('p2', undef, part_type='part,service') %]and text after without spacing</span><br>
39 <div>Leading text: [% L.part_picker('p3', undef, part_type='part,service') %] and text after with spacing with div</div><br>
40 <div>Leading text:[% L.part_picker('p4', undef, part_type='part,service') %]and text after with spacing with div</div><br>
41
42 <span>Picker + input next to each other: [% L.part_picker('p5', undef, part_type='part,service', width="100%") %]<input type=text></span>
43
44 <div>[% L.part_picker('p6', undef, part_type='part,service', style="width:500px") %] 500px width</div>
45 <div>[% L.part_picker('p7', undef, part_type='part,service', style="width:200px") %] 200px width</div>
46 <div>[% L.part_picker('p8', undef, part_type='part,service', style="height:40px") %] 40px height</div>
47
48 [%# FOREACH i IN 1..50 %]
49 [%# L.part_picker('part_id_' _ i) %] <br>
50 [%# END %]
51
52 <h2>In tables</h2>
53
54 <p>No classes:</p>
55
56 <table>
57  <tr>
58   <th>Part picker in table heading</th>
59   <th>[% L.part_picker('p9', undef, part_type='part,service') %]</th>
60  </tr>
61  <tr>
62   <td>Part picker in table cell</td>
63   <td>[% L.part_picker('p10', undef, part_type='part,service') %]</td>
64  </tr>
65 </table>
66
67 <p>With classes:</p>
68
69 <table>
70  <tr class=listheading>
71   <th>Part picker in table heading</th>
72   <th>[% L.part_picker('p11', undef, part_type='part,service') %]</th>
73  </tr>
74  <tr class=listrow>
75   <td>Part picker in table cell</td>
76   <td>[% L.part_picker('p12', undef, part_type='part,service') %]</td>
77  </tr>
78 </table>