Langtext-Dialog: Größe prozentual zum Hauptfenster einstellbar pro Benutzer
[kivitendo-erp.git] / templates / webpages / dbupgrade / show_partlist.html
1 [%- USE T8 %]
2 [% USE L %]
3 [% USE HTML %][%- USE LxERP -%]
4 <h1>[% 'Show parts' | $T8 %]</h1>
5
6 <form method="post" action="controller.pl">
7 [% L.hidden_tag("action", "LoginScreen/login") %]
8 [% L.hidden_tag("upgrade_action", "filter_parts") %]
9 [% L.hidden_tag("no_layout", 1) %]
10
11 <table>
12   <tbody>
13     <tr>
14       <th align="right">[% 'Partnumber' | $T8 %]</th>
15       <td>[% L.input_tag("filter_partnumber", filter_partnumber, size=20) %]</td>
16     </tr>
17
18     <tr>
19       <th align="right">[% 'Description' | $T8 %]</th>
20       <td>[% L.input_tag("filter_description", filter_description, size=20) %]</td>
21     </tr>
22
23     <tr>
24       <th align="right">[% 'Notes' | $T8 %]</th>
25       <td>[% L.input_tag("filter_notes", filter_notes, size=20) %]</td>
26     </tr>
27
28     <tr>
29       <th align="right">[% 'EAN' | $T8 %]</th>
30       <td>[% L.input_tag("filter_ean", filter_ean, size=20) %]</td>
31     </tr>
32
33     <tr>
34       <th align="right">[% 'Service, assembly or part' | $T8 %]</th>
35       <td>
36         <select name="filter_type">
37           <option value=""></option>
38           <option value="assembly" [% IF filter_type == 'assembly' %]selected[% END %]>[% 'Assembly' | $T8 %]</option>
39           <option value="service" [% IF filter_type == 'service' %]selected[% END %]>[% 'Service' | $T8 %]</option>
40           <option value="part" [% IF filter_type == 'part' %]selected[% END %]>[% 'Part' | $T8 %]</option>
41         </select>
42       </td>
43     </tr>
44
45     <tr>
46       <th align="right">[% 'Valid/Obsolete' | $T8 %]</th>
47       <td>
48         <select name="filter_obsolete">
49           <option value=""></option>
50           <option value="valid" [% IF filter_obsolete == 'valid' %]selected[% END %]>[% 'Valid' | $T8 %]</option>
51           <option value="obsolete" [% IF filter_obsolete == 'obsolete' %]selected[% END %]>[% 'Obsolete' | $T8 %]</option>
52         </select>
53       </td>
54     </tr>
55   </tbody>
56 </table>
57
58 <input type="submit" value="[% 'Filter parts' | $T8 %]" onclick="submit()">
59
60 <table>
61   <tr>
62     <th class="listheading">[% 'Partnumber' | $T8 %]</th>
63     <th class="listheading">[% 'Description' | $T8 %]</th>
64     <th class="listheading">[% 'Unit' | $T8 %]</th>
65     <th class="listheading">[% 'Notes' | $T8 %]</th>
66     <th class="listheading">[% 'EAN' | $T8 %]</th>
67     <th class="listheading">[% 'Service, assembly or part' | $T8 %]</th>
68     <th class="listheading">[% 'Obsolete' | $T8 %]</th>
69   </tr>
70
71   [% SET row_odd = '1' %][% FOREACH row = ALL_PARTS %]
72   <tr class="listrow[% IF row_odd %]1[% SET row_odd = '0' %][% ELSE %]0[% SET row_odd = '1' %][% END %]">
73     <td align="right">[% HTML.escape(row.partnumber) %]</td>
74     <td align="left"> [% HTML.escape(row.description) %]</a></td>
75     <td align="right">[% HTML.escape(row.unit) %]</td>
76     <td align="right">[% HTML.escape(row.notes) %]</td>
77     <td align="right">[% HTML.escape(row.ean) %]</td>
78     <td align="right">[% IF row.assembly %] [% 'assembly' | $T8 %] [% ELSE %] [% IF row.inventory_accno_id %] [% 'part' | $T8 %] [% ELSE %] [% 'service' | $T8 %] [% END %] [% END %]</td>
79     <td>[% IF row.obsolete %][%- LxERP.t8("Obsolete") %][%- ELSE %][%- LxERP.t8("Not obsolete") %][%- END %]</td>
80   </tr>
81   [% END %]
82 </table>
83
84 <input class="submit" type="button" value="[% 'Close window' | $T8 %]" onclick="window.close()">
85
86 </form>