PartPicker Testseite - convertible_unit Beispiel
[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, type='part') %]<br>
10 Nur Dienstleistungen: <br>
11 [% L.part_picker('part_id3', undef, type='service') %]<br>
12 Waren und Dienstleistungen: <br>
13 [% L.part_picker('part_id4', undef, type='part,service') %]<br>
14 Pre-filled:<br>
15 [% L.part_picker('part_id5', pre_filled_part) %]<br>
16 Convertible unit 'Std': (only select parts with unit Tag/Std/Min)<br>
17 [% L.part_picker('part_id6', undef, convertible_unit='Std') %]<br>
18
19 <h2>Styling</h2>
20
21 Ina span:
22 <span>Leading text: [% L.part_picker('p1', undef, type='part,service') %] and text after with spacing</span><br>
23 <span>Leading text:[% L.part_picker('p2', undef, type='part,service') %]and text after without spacing</span><br>
24 <div>Leading text: [% L.part_picker('p3', undef, type='part,service') %] and text after with spacing with div</div><br>
25 <div>Leading text:[% L.part_picker('p4', undef, type='part,service') %]and text after with spacing with div</div><br>
26
27 <span>Picker + input next to each other: [% L.part_picker('p5', undef, type='part,service', width="100%") %]<input type=text></span>
28
29 <div>[% L.part_picker('p6', undef, type='part,service', style="width:500px") %] 500px width</div>
30 <div>[% L.part_picker('p7', undef, type='part,service', style="width:200px") %] 200px width</div>
31 <div>[% L.part_picker('p8', undef, type='part,service', style="height:40px") %] 40px height</div>
32
33 [%# FOREACH i IN 1..50 %]
34 [%# L.part_picker('part_id_' _ i) %] <br>
35 [%# END %]
36
37 <h2>In tables</h2>
38
39 <p>No classes:</p>
40
41 <table>
42  <tr>
43   <th>Part picker in table heading</th>
44   <th>[% L.part_picker('p9', undef, type='part,service') %]</th>
45  </tr>
46  <tr>
47   <td>Part picker in table cell</td>
48   <td>[% L.part_picker('p10', undef, type='part,service') %]</td>
49  </tr>
50 </table>
51
52 <p>With classes:</p>
53
54 <table>
55  <tr class=listheading>
56   <th>Part picker in table heading</th>
57   <th>[% L.part_picker('p11', undef, type='part,service') %]</th>
58  </tr>
59  <tr class=listrow>
60   <td>Part picker in table cell</td>
61   <td>[% L.part_picker('p12', undef, type='part,service') %]</td>
62  </tr>
63 </table>