Merge branch 'b-3.6.1' of ../kivitendo-erp_20220811
[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_id9', undef, multiple=1, status='obsolete') %]<br>
45 <br>
46 All parts including make models of all vendors: <br>
47 [% P.part.picker('part_id21', undef, with_makemodel=1) %]<br>
48 All parts including make models of all vendors with multi select popup: <br>
49 [% P.part.picker('part_id22', undef, with_makemodel=1, multiple=1) %]<br>
50 All parts including customer partnumbers of all customers: <br>
51 [% P.part.picker('part_id23', undef, with_customer_partnumber=1) %]<br>
52 <br>
53 single select dialog for glass-popup-button; multi select with extra button (and limited to 5 results):<br>
54 [% P.part.picker('part_id31', undef, multiple=0, multiple_limit=5) %]
55 [% L.button_tag('$("#part_id31").data("part_picker").o.multiple=1; $("#part_id31").data("part_picker").open_dialog()', 'Add multiple items') %]<br>
56
57 <h2>Styling</h2>
58
59 In a span:
60 <span>Leading text: [% P.part.picker('p1', undef, part_type='part,service') %] and text after with spacing</span><br>
61 <span>Leading text:[% P.part.picker('p2', undef, part_type='part,service') %]and text after without spacing</span><br>
62 <div>Leading text: [% P.part.picker('p3', undef, part_type='part,service') %] and text after with spacing with div</div><br>
63 <div>Leading text:[% P.part.picker('p4', undef, part_type='part,service') %]and text after with spacing with div</div><br>
64
65 <span>Picker + input next to each other: [% P.part.picker('p5', undef, part_type='part,service', width="100%") %]<input type=text></span>
66
67 <div>[% P.part.picker('p6', undef, part_type='part,service', style="width:500px") %] 500px width</div>
68 <div>[% P.part.picker('p7', undef, part_type='part,service', style="width:200px") %] 200px width</div>
69 <div>[% P.part.picker('p8', undef, part_type='part,service', style="height:40px") %] 40px height</div>
70
71 [%# FOREACH i IN 1..50 %]
72 [%# P.part.picker('part_id_' _ i) %] <br>
73 [%# END %]
74
75 <h2>In tables</h2>
76
77 <p>No classes:</p>
78
79 <table>
80  <tr>
81   <th>Part picker in table heading</th>
82   <th>[% P.part.picker('p9', undef, part_type='part,service') %]</th>
83  </tr>
84  <tr>
85   <td>Part picker in table cell</td>
86   <td>[% P.part.picker('p10', undef, part_type='part,service') %]</td>
87  </tr>
88 </table>
89
90 <p>With classes:</p>
91
92 <table>
93  <tr class=listheading>
94   <th>Part picker in table heading</th>
95   <th>[% P.part.picker('p11', undef, part_type='part,service') %]</th>
96  </tr>
97  <tr class=listrow>
98   <td>Part picker in table cell</td>
99   <td>[% P.part.picker('p12', undef, part_type='part,service') %]</td>
100  </tr>
101 </table>