Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision d7f32962

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

  • ID d7f329627ce2c6bd8ea15edf7283dd58862ca119
  • Vorgänger 1816dbab
  • Nachfolger 4e3e3982

Neues Design 2019 Standard-Code templates/webpages/admin/list_printers.html

Unterschiede anzeigen:

templates/webpages/admin/list_printers.html
1

  
2
[% INCLUDE 'common/flash.html' %]
3 1
[% USE HTML %]
4 2
[% USE LxERP %]
5 3
[% USE L %]
6 4

  
7 5
<h1>[% HTML.escape(title) %]</h1>
8 6

  
9
[% IF !SELF.all_clients.size %]
10
<div class="error">
11
 [% LxERP.t8("Error") %]:
12
 [% LxERP.t8("No clients have been created yet.") %]
13
</div>
14

  
15
[%- ELSE %]
16

  
17
 <p>
18
  [% LxERP.t8("Client to configure the printers for") %]:
19
  [% L.select_tag('client.id', SELF.all_clients, id='client_id', title_key='name', default=SELF.client.id) %]
20
 </p>
21

  
22
 [%- IF !SELF.all_printers.size %]
23

  
24
  <p>
25
   [% LxERP.t8("No printers have been created yet.") %]
26
  </p>
27

  
28
 [%- ELSE %]
29

  
30
  <table width="100%">
31
   <tr class="listheading">
32
    <th>[% LxERP.t8('Description') %]</th>
33
    <th>[% LxERP.t8('Printer Command') %]</th>
34
    <th>[% LxERP.t8('Template Code') %]</th>
35
   </tr>
36

  
37
   [%- FOREACH printer = SELF.all_printers %]
38
    <tr valign="top" class="listrow">
39
     <td><a href="[% SELF.url_for(action='edit_printer', 'client.id'=SELF.client.id, id=printer.id) %]">[% HTML.escape(printer.printer_description) %]</a></td>
40
     <td>[% HTML.escape(printer.printer_command) %]</td>
41
     <td>[% HTML.escape(printer.template_code) %]</td>
42
    </tr>
43
   [%- END %]
7
<div class="wrapper">
8
[% IF !SELF.all_clients.size %] 
9
  [% INCLUDE 'common/flash.html' %] 
10
  <div class="error">
11
    [% LxERP.t8("Error") %]: [% LxERP.t8("No clients have been created yet.") %] 
12
  </div>
13
[% ELSE %] 
14
  <p> [% LxERP.t8("Client to configure the printers for") %]: [% L.select_tag('client.id', SELF.all_clients, id='client_id', title_key='name', default=SELF.client.id) %] </p>
15
  [% IF !SELF.all_printers.size %] 
16
    <p> [% LxERP.t8("No printers have been created yet.") %] </p>
17
  [% ELSE %] 
18
  <table class="tbl-list">
19
    <thead>
20
      <tr>
21
        <th>[% LxERP.t8('Description') %]</th>
22
        <th>[% LxERP.t8('Printer Command') %]</th>
23
        <th>[% LxERP.t8('Template Code') %]</th>
24
      </tr>
25
    </thead>
26
    <tbody>
27
      [% FOREACH printer = SELF.all_printers %] 
28
      <tr valign="top" class="listrow">
29
        <td><a href="[% SELF.url_for(action='edit_printer', 'client.id'=SELF.client.id, id=printer.id) %]">[% HTML.escape(printer.printer_description) %]</a></td>
30
        <td>[% HTML.escape(printer.printer_command) %]</td>
31
        <td>[% HTML.escape(printer.template_code) %]</td>
32
      </tr>
33
      [% END %] 
34
    </tbody>
44 35
  </table>
36
  [% END %]
37
[% END %]
38
</div>
45 39

  
46
 [%- END %]
47

  
48
 <script type="text/javascript">
40
<script type="text/javascript">
49 41
<!--
50 42
  $(function() {
51 43
    $('#client_id').change(function() {
......
53 45
    });
54 46
  });
55 47
-->
56
 </script>
48
</script>
49

  
57 50

  
58
[%- END %]

Auch abrufbar als: Unified diff