Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 8e96337a

Von Hans P. Schlaepfer vor mehr als 3 Jahren hinzugefügt

  • ID 8e96337a918908b2b748020248e1c18ebea2c3da
  • Vorgänger a4036732
  • Nachfolger ac616bf6

Neues Design 2019 Standard-Code templates/webpages/part/_makemodel.html

Unterschiede anzeigen:

templates/webpages/part/_makemodel.html
1
  <tr>
2 1
[% USE T8 %]
3 2
[% USE L %]
4 3
[% USE P %]
5 4
[% USE HTML %]
6 5
[% USE LxERP %]
7 6

  
8
  </tr>
9
  <tr>
10
    <td>
11
      <table id="makemodel_table">
12
        <thead>
13
         <tr>
14
          <th class="listheading" style='text-align:center' nowrap width="1"><img src="image/close.png" alt="[%- LxERP.t8('delete item') %]"></th>
15
          <th class="listheading">[% 'position'     | $T8 %]</th>
16
          <th class="listheading" style='text-align:center' nowrap width="1"><img src="image/updown.png" alt="[%- LxERP.t8('reorder item') %]"></th>
17
          <th class="listheading" style='width:12em'>[% 'Vendor Number' | $T8 %]</th>
18
          <th class="listheading">[% 'Vendor'        | $T8 %]</th>
19
          <th class="listheading">[% 'Model'         | $T8 %]</th>
20
          <th class="listheading">[% 'Last Cost'     | $T8 %]</th>
21
          <th class="listheading">[% 'Updated'       | $T8 %]</th>
22
         </tr>
23
        </thead>
24
        <tbody id="makemodel_rows">
25
        [% SET listrow = 0 %]
26
        [%- FOREACH makemodel = SELF.part.makemodels %]
27
        [% listrow = listrow + 1 %]
28
        [% PROCESS 'part/_makemodel_row.html' makemodel=makemodel listrow=listrow %]
29
        [%- END %]
30
       </tbody>
31
       <tbody>
32
        <tr>
33
         <td></td>
34
         <td></td>
35
         <td></td>
36
         <td align="right">[% 'Vendor' | $T8 %]</td>
37
         <td rowspan="2">[% P.customer_vendor.picker('add_makemodel', '', type='vendor', style='width: 300px', class="add_makemodel_input", action={commit_one='kivi.Part.add_makemodel_row'}) %]</td>
38
         <td rowspan="2" align="right">[% L.button_tag('kivi.Part.add_makemodel_row()', LxERP.t8('Add')) %]</td>
39
        </tr>
40
       </tbody>
41
      </table>
42
    </td>
43
  </tr>
44
  [% L.sortable_element('#makemodel_rows') %]
7
<table id="makemodel_table" class="tbl-list">
8
  <caption>[% 'Make Model' | $T8 %]</caption>
9
  <thead>
10
    <tr>
11
      <th class="center"><img src="image/close.png" alt="[% LxERP.t8('delete item') %]"></th>
12
      <th>[% 'position'      | $T8 %]</th>
13
      <th class="center"><img src="image/updown.png" alt="[% LxERP.t8('reorder item') %]"></th>
14
      <th>[% 'Vendor Number' | $T8 %]</th>
15
      <th>[% 'Vendor'        | $T8 %]</th>
16
      <th>[% 'Model'         | $T8 %]</th>
17
      <th>[% 'Last Cost'     | $T8 %]</th>
18
      <th>[% 'Updated'       | $T8 %]</th>
19
    </tr>
20
  </thead>
21
  <tbody id="makemodel_rows">
22
    [% SET listrow = 0 %]
23
    [% FOREACH makemodel = SELF.part.makemodels %]
24
      [% listrow = listrow + 1 %]
25
      [% PROCESS 'part/_makemodel_row.html' makemodel=makemodel listrow=listrow %]
26
    [% END %]
27
  </tbody>
28
  <!-- PENDENT: koennte besser und schoener geloest werden! -->
29
  <tfoot>
30
    <tr>
31
     <td></td>
32
     <td></td>
33
     <td></td>
34
     <th class="right"><span class="label">[% 'Search & Add Vendor' | $T8 %]</span></th>
35
     <td>
36
        [% SET titleaddmodel=LxERP.t8('Search & Add Vendor by Name') %]
37
        [% P.customer_vendor.picker('add_makemodel', '', type='vendor', class='add_makemodel_input wi-small tooltipstered tooltipster-html', title=titleaddmodel, action={commit_one='kivi.Part.add_makemodel_row'}, size=10) %]
38
      </td>
39
     <td>[% L.button_tag('kivi.Part.add_makemodel_row()', LxERP.t8('Add')) %]</td>
40
     <td></td>
41
     <td></td>
42
    </tr>
43
  </tfoot>
44
</table>
45
[% L.sortable_element('#makemodel_rows') %]
46

  
47
<script type="text/javascript">
48
/*
49
  $(function() {
50
    $('#makemodel_rows').on('sortstop', function(event, ui) {
51
      kivi.Part.makemodel_renumber_positions();
52
    });
53
  })
54
 */
55
</script><!-- PENDENT: Ueberpruefen -->

Auch abrufbar als: Unified diff