Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision f398e04c

Von Werner Hahn vor mehr als 1 Jahr hinzugefügt

  • ID f398e04c0980396aa70ad85c3ad5ffbab32b9525
  • Vorgänger 94032cca
  • Nachfolger f1f64a96

DispositionManager: check_all und Optik in Tbl

Unterschiede anzeigen:

templates/webpages/disposition_manager/list_parts.html
4 4
<h1>[% title %]</h1>
5 5
<hr>
6 6
<h2>[% 'Short onhand' | $T8 %]</h2>
7
<div style="margin:1em;">
7 8
<form id="form">
8
  <table>
9
  <table width="100%">
9 10
    <thead>
10 11
     <tr class="listheading">
11
       <th>[% L.checkbox_tag('check_all') %][% 'Purchase basket' | $T8 %] </th>
12
       <th>[% L.checkbox_tag('check_all', checkall="[data-checkall=1]") %][% 'Purchase basket' | $T8 %] </th>
12 13
       <th>[% 'Partnumber'                                      | $T8 %] </th>
13 14
       <th>[% 'Description'                                     | $T8 %] </th>
14 15
       <th>[% 'Onhand'                                          | $T8 %] </th>
......
19 20
    [% FOREACH part = PARTS %]
20 21
      [% IF !part.get_ordered_qty(part.id) %]
21 22
      <tr class="listrow">
22
        <td>[% IF part.makemodels.size %][% L.checkbox_tag('ids[+]', checked = '1', value=part.id) %][% ELSE %][% 'No Vendor' | $T8 %][% END %]</td>
23
        <td>[% IF part.makemodels.size %][% L.checkbox_tag('ids[+]', "data-checkall"=1, checked = '1', value=part.id) %][% ELSE %][% 'No Vendor' | $T8 %][% END %]</td>
23 24
        <td>[% HTML.escape(part.partnumber) %] </td>
24 25
        <td>[% HTML.escape(part.description) %]</td>
25 26
        <td class="numeric">[% part.onhand_as_number %]</td>
......
29 30
      [% END %]
30 31
    [% END %]
31 32
  </table>
33
</div>
32 34
</form>
33 35
<hr>
34 36
<h2>[% 'Short onhand Ordered' | $T8 %]</h2>
35
<table>
37
<div style="margin:1em;">
38
<table width="100%">
36 39
  <thead>
37 40
   <tr class="listheading">
38 41
     <th>[% 'Partnumber'       | $T8 %] </th>
......
54 57
    [% END %]
55 58
  [% END %]
56 59
</table>
57
<script type="text/javascript">
58
<!--
59

  
60
  kivi.DispositionManager.sort_vendors();
61
$(function() {
62
  alert('hallo9');
63
  $('#check_all').checkall('INPUT[name^="id"]');
64
  kivi.DispositionManager.sort_vendors();
65
});
66
-->
67
</script>
60
</div>

Auch abrufbar als: Unified diff