Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision a85900cb

Von Hans Peter Schlaepfer vor etwa 6 Jahren hinzugefügt

  • ID a85900cb68a578d89090043534ae79664a4070a9
  • Vorgänger 72c4037d
  • Nachfolger e7c11f83

Preview design 4.0

Unterschiede anzeigen:

templates/webpages/part/_makemodel.html
2 2
[%- USE L %]
3 3
[%- USE HTML %]
4 4
[%- USE LxERP %]
5
  <tr>
6
  </tr>
7
  <tr>
8
    <td>
9
      <table id="makemodel_table">
10
        <thead>
11
          <th class="listheading" style='text-align:center' nowrap width="1"><img src="image/close.png" alt="[%- LxERP.t8('delete item') %]"></th>
12
          <th class="listheading">[% 'position'     | $T8 %]</th>
13
          <th class="listheading" style='text-align:center' nowrap width="1"><img src="image/updown.png" alt="[%- LxERP.t8('reorder item') %]"></th>
14
          <th class="listheading">[% 'Vendor Number' | $T8 %]</th>
15
          <th class="listheading">[% 'Vendor'        | $T8 %]</th>
16
          <th class="listheading">[% 'Model'         | $T8 %]</th>
17
          <th class="listheading">[% 'Last Cost'     | $T8 %]</th>
18
          <th class="listheading">[% 'Updated'       | $T8 %]</th>
19
        </thead>
20
        <tbody id="makemodel_rows">
21
        [% SET listrow = 0 %]
22
        [%- FOREACH makemodel = SELF.part.makemodels %]
23
        [% listrow = listrow + 1 %]
24
        [% PROCESS 'part/_makemodel_row.html' makemodel=makemodel listrow=listrow %]
25
        [%- END %]
26
       </tbody>
27
       <tbody>
28
        <tr>
29
         <td></td>
30
         <td></td>
31
         <td></td>
32
         <td align="right">[% 'Vendor' | $T8 %]</td>
33
         <td rowspan="2">[% L.customer_vendor_picker('add_makemodel', '', type='vendor', style='width: 300px', class="add_makemodel_input") %]</td>
34
         <td rowspan="2" align="right">[% L.button_tag('kivi.Part.add_makemodel_row()', LxERP.t8('Add')) %]</td>
35
        </tr>
36
       </tbody>
37
      </table>
38
    </td>
39
  </tr>
40
  [% L.sortable_element('#makemodel_rows') %]
41 5

  
42
  <script type="text/javascript">
43
  $(function() {
44 6

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

  
49
  })
50
  </script>
45
<script type="text/javascript">
46
$(function() {
47

  
48
  $('#makemodel_rows').on('sortstop', function(event, ui) {
49
    kivi.Part.makemodel_renumber_positions();
50
  });
51

  
52
})
53
</script>

Auch abrufbar als: Unified diff