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