Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 0c1e654d

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

  • ID 0c1e654d2fe795fab14f0dad7ac70dd7455c5f5b
  • Vorgänger ba045ebd
  • Nachfolger bd36f3ac

Neues Design 2019 Standard-Code templates/webpages/bp/list_spool.html

Unterschiede anzeigen:

templates/webpages/bp/list_spool.html
9 9

  
10 10
<form method="post" action="bp.pl" id="form">
11 11

  
12
<p>
13
 [% LxERP.t8("Printer") %]: [% L.select_tag('printer', ALL_PRINTERS, title_key = 'printer_description') %]
14
</p>
15

  
16
<p>
17
[% FOREACH option IN options %]
18
  [% option %]
19
  [% ', ' UNLESS loop.last %]
20
[% END %]
21
</p>
22

  
23
<table width=100%>
24
 <tr>
25
  <td class="listheading">[% L.checkbox_tag('checkall_box', checkall='input.check_all') %]</td>
26
  <td class="listheading">[% L.link(href _ '&sort=transdate', LxERP.t8('Date')) %]</td>
27
[%- IF is_invoice %]
28
  <td class="listheading">[% L.link(href _ '&sort=invoice', LxERP.t8('Invoice')) %]</td>
29
[%- END %]
30
[%- IF is_order %]
31
  <td class="listheading">[% L.link(href _ '&sort=ordnumber', LxERP.t8('Order')) %]</td>
32
[%- END %]
33
[%- IF is_quotation %]
34
  <td class="listheading">[% L.link(href _ '&sort=quonumber', LxERP.t8('Quotation')) %]</td>
35
[%- END %]
36
  <td class="listheading">[% L.link(href _ '&sort=name', vc == 'customer' ? LxERP.t8('Customer') : LxERP.t8('Vendor')) %]</td>
37
  <td class="listheading">[% 'Spoolfile' | $T8 %]</td>
38
 </tr>
39
[%- FOREACH row = SPOOL %]
40
 <tr class="listrow[% loop.count %]">
41
  <td>[% SET list_spool__checked='checked_' _ loop.count; L.checkbox_tag(list_spool__checked, checked=$list_spool__checked, class='check_all') IF row.new_file %]</td>
42
  <td>[% row.transdate %]</td>
43
[%- IF is_invoice %]
44
  <td>[% L.link(url(row.module _ '.pl', action='edit' ,type=type, callback=list_spool__callback, id=row.id), row.invnumber) %]</td>
45
[%- END %]
46
[%- IF is_order %]
47
  <td>[% L.link(url(row.module _ '.pl', action='edit' ,type=type, callback=list_spool__callback, id=row.id), row.ordnumber) %]</td>
48
[%- END %]
49
[%- IF is_quotation %]
50
  <td>[% L.link(url(row.module _ '.pl', action='edit' ,type=type, callback=list_spool__callback, id=row.id), row.quonumber) %]</td>
51
[%- END %]
52
  <td>[% row.name | html %]</td>
53
  <td>[% L.link(LXCONFIG.paths.spool _ '/' _ row.spoolfile, row.spoolfile) %][% L.hidden_tag('spoolfile_' _ loop.count, row.spoolfile) %]</td>
54
 </tr>
55
[%- END %]
12
<div class="wrapper">
13
<table class="tbl-horizontal">
14
  <tr>
15
    <th>[% LxERP.t8("Printer") %]</th>
16
    <td>[% L.select_tag('printer', ALL_PRINTERS, title_key = 'printer_description') %]</td>
17
  </tr>
18
  <tr>
19
    <th>[% 'Options' | $T8 %]</th>
20
    <td>[% FOREACH option IN options %][% option %][% ', ' UNLESS loop.last %][% END %]</td>
21
  </tr>
22
</table>
23
</div>
56 24

  
57
[% L.hidden_tag('rowcount', SPOOL.size) %]
25
<div class="wrapper">
58 26

  
27
<table class="tbl-list">
28
  <thead>
29
    <tr>
30
      <th>[% L.checkbox_tag('checkall_box', checkall='input.check_all') %]</td>
31
      <th>[% L.link(href _ '&sort=transdate', LxERP.t8('Date')) %]</td>
32
    [% IF is_invoice %]
33
      <th>[% L.link(href _ '&sort=invoice', LxERP.t8('Invoice')) %]</td>
34
    [% END %]
35
    [% IF is_order %]
36
      <th>[% L.link(href _ '&sort=ordnumber', LxERP.t8('Order')) %]</td>
37
    [% END %]
38
    [% IF is_quotation %]
39
      <th>[% L.link(href _ '&sort=quonumber', LxERP.t8('Quotation')) %]</td>
40
    [% END %]
41
      <th>[% L.link(href _ '&sort=name', vc == 'customer' ? LxERP.t8('Customer') : LxERP.t8('Vendor')) %]</td>
42
      <th>[% 'Spoolfile' | $T8 %]</td>
43
    </tr>
44
  </thead>
45
  <tbody>
46
    [% FOREACH row = SPOOL %]
47
      <tr>
48
        <td>[% SET list_spool__checked='checked_' _ loop.count; L.checkbox_tag(list_spool__checked, checked=$list_spool__checked, class='check_all') IF row.new_file %]</td>
49
        <td>[% row.transdate %]</td>
50
      [% IF is_invoice %]
51
        <td>[% L.link(url(row.module _ '.pl', action='edit' ,type=type, callback=list_spool__callback, id=row.id), row.invnumber) %]</td>
52
      [% END %]
53
      [% IF is_order %]
54
        <td>[% L.link(url(row.module _ '.pl', action='edit' ,type=type, callback=list_spool__callback, id=row.id), row.ordnumber) %]</td>
55
      [% END %]
56
      [% IF is_quotation %]
57
        <td>[% L.link(url(row.module _ '.pl', action='edit' ,type=type, callback=list_spool__callback, id=row.id), row.quonumber) %]</td>
58
      [% END %]
59
        <td>[% row.name | html %]</td>
60
        <td>[% L.link(LXCONFIG.paths.spool _ '/' _ row.spoolfile, row.spoolfile) %][% L.hidden_tag('spoolfile_' _ loop.count, row.spoolfile) %]</td>
61
      </tr>
62
    [% END %]
63
  </tbody>
59 64
</table>
65
[% L.hidden_tag('rowcount', SPOOL.size) %]
60 66

  
61 67
[% L.hidden_tag('callback', callback) %]
62 68
[% L.hidden_tag('title', title) %]
......
72 78
[% L.hidden_tag('quonumber', quonumber) %]
73 79
[% L.hidden_tag('customer', customer) %]
74 80
[% L.hidden_tag('vendor', vendor) %]
81

  
82
</div><!-- /.wrapper -->
75 83
</form>

Auch abrufbar als: Unified diff