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