3918ee6d14559ebbd920ac0b0ac3365a388db24c
[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 <br>
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 <br>
41 With multi select popup<br>
42 [% P.part.picker('part_id8', undef, multiple=1) %]<br>
43 With multi select popup (only obsolete)<br>
44 [% P.part.picker('part_id8', undef, multiple=1, status='obsolete') %]<br>
45 <br>
46 All parts including make models of all vendors: <br>
47 [% P.part.picker('part_id', undef, with_makemodel=1) %]<br>
48 All parts including make models of all vendors with multi select popup: <br>
49 [% P.part.picker('part_id', undef, with_makemodel=1, multiple=1) %]<br>
50 All parts including customer partnumbers of all customers: <br>
51 [% P.part.picker('part_id', undef, with_customer_partnumber=1) %]<br>
52
53 <h2>Styling</h2>
54
55 In a span:
56 <span>Leading text: [% P.part.picker('p1', undef, part_type='part,service') %] and text after with spacing</span><br>
57 <span>Leading text:[% P.part.picker('p2', undef, part_type='part,service') %]and text after without spacing</span><br>
58 <div>Leading text: [% P.part.picker('p3', undef, part_type='part,service') %] and text after with spacing with div</div><br>
59 <div>Leading text:[% P.part.picker('p4', undef, part_type='part,service') %]and text after with spacing with div</div><br>
60
61 <span>Picker + input next to each other: [% P.part.picker('p5', undef, part_type='part,service', width="100%") %]<input type=text></span>
62
63 <div>[% P.part.picker('p6', undef, part_type='part,service', style="width:500px") %] 500px width</div>
64 <div>[% P.part.picker('p7', undef, part_type='part,service', style="width:200px") %] 200px width</div>
65 <div>[% P.part.picker('p8', undef, part_type='part,service', style="height:40px") %] 40px height</div>
66
67 [%# FOREACH i IN 1..50 %]
68 [%# P.part.picker('part_id_' _ i) %] <br>
69 [%# END %]
70
71 <h2>In tables</h2>
72
73 <p>No classes:</p>
74
75 <table>
76  <tr>
77   <th>Part picker in table heading</th>
78   <th>[% P.part.picker('p9', undef, part_type='part,service') %]</th>
79  </tr>
80  <tr>
81   <td>Part picker in table cell</td>
82   <td>[% P.part.picker('p10', undef, part_type='part,service') %]</td>
83  </tr>
84 </table>
85
86 <p>With classes:</p>
87
88 <table>
89  <tr class=listheading>
90   <th>Part picker in table heading</th>
91   <th>[% P.part.picker('p11', undef, part_type='part,service') %]</th>
92  </tr>
93  <tr class=listrow>
94   <td>Part picker in table cell</td>
95   <td>[% P.part.picker('p12', undef, part_type='part,service') %]</td>
96  </tr>
97 </table>