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