Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 4dc27c18

Von Hans P. Schlaepfer vor fast 4 Jahren hinzugefügt

  • ID 4dc27c18044fb5a807ea06bdf83c477745de33c6
  • Vorgänger f62a5097
  • Nachfolger adfe1206

Neues Design 2019 Standard-Code templates/webpages/dbupgrade/show_partlist.html

Unterschiede anzeigen:

templates/webpages/dbupgrade/show_partlist.html
5 5
<h1>[% 'Show parts' | $T8 %]</h1>
6 6

  
7 7
<form method="post" action="controller.pl">
8
[% L.hidden_tag("action", "LoginScreen/login") %]
9
[% L.hidden_tag("upgrade_action", "filter_parts") %]
10
[% L.hidden_tag("no_layout", 1) %]
8
  [% L.hidden_tag("action", "LoginScreen/login") %]
9
  [% L.hidden_tag("upgrade_action", "filter_parts") %]
10
  [% L.hidden_tag("no_layout", 1) %]
11 11

  
12
<table>
12
<table class="tbl-horizontal">
13 13
  <tbody>
14 14
    <tr>
15
      <th align="right">[% 'Partnumber' | $T8 %]</th>
15
      <th>[% 'Partnumber' | $T8 %]</th>
16 16
      <td>[% L.input_tag("filter_partnumber", filter_partnumber, size=20) %]</td>
17 17
    </tr>
18

  
19 18
    <tr>
20
      <th align="right">[% 'Description' | $T8 %]</th>
19
      <th>[% 'Description' | $T8 %]</th>
21 20
      <td>[% L.input_tag("filter_description", filter_description, size=20) %]</td>
22 21
    </tr>
23

  
24 22
    <tr>
25
      <th align="right">[% 'Notes' | $T8 %]</th>
23
      <th>[% 'Notes' | $T8 %]</th>
26 24
      <td>[% L.input_tag("filter_notes", filter_notes, size=20) %]</td>
27 25
    </tr>
28

  
29 26
    <tr>
30
      <th align="right">[% 'EAN' | $T8 %]</th>
27
      <th>[% 'EAN' | $T8 %]</th>
31 28
      <td>[% L.input_tag("filter_ean", filter_ean, size=20) %]</td>
32 29
    </tr>
33

  
34 30
    <tr>
35
      <th align="right">[% 'Service, assembly or part' | $T8 %]</th>
31
      <th>[% 'Service, assembly or part' | $T8 %]</th>
36 32
      <td>
37 33
        <select name="filter_type">
38 34
          <option value=""></option>
......
42 38
        </select>
43 39
      </td>
44 40
    </tr>
45

  
46 41
    <tr>
47
      <th align="right">[% 'Valid/Obsolete' | $T8 %]</th>
42
      <th>[% 'Valid/Obsolete' | $T8 %]</th>
48 43
      <td>
49 44
        <select name="filter_obsolete">
50 45
          <option value=""></option>
......
58 53

  
59 54
<input type="submit" value="[% 'Filter parts' | $T8 %]" onclick="submit()">
60 55

  
61
<table>
56
<table class="tbl-list">
57
<thead>
62 58
  <tr>
63
    <th class="listheading">[% 'Partnumber' | $T8 %]</th>
64
    <th class="listheading">[% 'Description' | $T8 %]</th>
65
    <th class="listheading">[% 'Unit' | $T8 %]</th>
66
    <th class="listheading">[% 'Notes' | $T8 %]</th>
67
    <th class="listheading">[% 'EAN' | $T8 %]</th>
68
    <th class="listheading">[% 'Service, assembly or part' | $T8 %]</th>
69
    <th class="listheading">[% 'Obsolete' | $T8 %]</th>
59
    <th>[% 'Partnumber' | $T8 %]</th>
60
    <th>[% 'Description' | $T8 %]</th>
61
    <th>[% 'Unit' | $T8 %]</th>
62
    <th>[% 'Notes' | $T8 %]</th>
63
    <th>[% 'EAN' | $T8 %]</th>
64
    <th>[% 'Service, assembly or part' | $T8 %]</th>
65
    <th>[% 'Obsolete' | $T8 %]</th>
70 66
  </tr>
71

  
72
  [% SET row_odd = '1' %][% FOREACH row = ALL_PARTS %]
73
  <tr class="listrow[% IF row_odd %]1[% SET row_odd = '0' %][% ELSE %]0[% SET row_odd = '1' %][% END %]">
74
    <td align="right">[% HTML.escape(row.partnumber) %]</td>
75
    <td align="left"> [% HTML.escape(row.description) %]</a></td>
76
    <td align="right">[% HTML.escape(row.unit) %]</td>
77
    <td align="right">[% HTML.escape(row.notes) %]</td>
78
    <td align="right">[% HTML.escape(row.ean) %]</td>
79
    <td align="right">[% IF row.assembly %] [% 'assembly' | $T8 %] [% ELSE %] [% IF row.inventory_accno_id %] [% 'part' | $T8 %] [% ELSE %] [% 'service' | $T8 %] [% END %] [% END %]</td>
80
    <td>[% IF row.obsolete %][%- LxERP.t8("Obsolete") %][%- ELSE %][%- LxERP.t8("Not obsolete") %][%- END %]</td>
67
</thead>
68
<tbody>
69
  [% SET row_odd = '1' %]
70
  [% FOREACH row = ALL_PARTS %]
71
  <tr>
72
    <td>[% HTML.escape(row.partnumber) %]</td>
73
    <td> [% HTML.escape(row.description) %]</a></td>
74
    <td>[% HTML.escape(row.unit) %]</td>
75
    <td>[% HTML.escape(row.notes) %]</td>
76
    <td>[% HTML.escape(row.ean) %]</td>
77
    <td>[% IF row.assembly %] [% 'assembly' | $T8 %] [% ELSE %] [% IF row.inventory_accno_id %] [% 'part' | $T8 %] [% ELSE %] [% 'service' | $T8 %] [% END %] [% END %]</td>
78
    <td>[% IF row.obsolete %][% LxERP.t8("Obsolete") %][% ELSE %][% LxERP.t8("Not obsolete") %][% END %]</td>
81 79
  </tr>
82 80
  [% END %]
81
</tbody>
83 82
</table>
84 83

  
85
<input class="submit" type="button" value="[% 'Close window' | $T8 %]" onclick="window.close()">
84
<div class="buttons">
85
  <input type="button" value="[% 'Close window' | $T8 %]" onclick="window.close()">
86
</div>
86 87

  
87 88
</form>

Auch abrufbar als: Unified diff