Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 58ca9076

Von Hans Peter Schlaepfer vor etwa 5 Jahren hinzugefügt

  • ID 58ca9076f0b605e39e5efd30489a4d066ff6c5f7
  • Vorgänger d80f175e
  • Nachfolger 2a97e655

Neues kivitendo Design Aenderungen in templates/webpages/admin/..

Unterschiede anzeigen:

templates/webpages/admin/list_printers.html
1
[%- USE HTML -%][%- USE LxERP -%][%- USE L -%]
2

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

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

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

  
13
[%- ELSE %]
14

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

  
20
 [%- IF !SELF.all_printers.size %]
21

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

  
26
 [%- ELSE %]
27

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

  
35
   [%- FOREACH printer = SELF.all_printers %]
36
    <tr valign="top" class="listrow">
37
     <td><a href="[% SELF.url_for(action='edit_printer', 'client.id'=SELF.client.id, id=printer.id) %]">[% HTML.escape(printer.printer_description) %]</a></td>
38
     <td>[% HTML.escape(printer.printer_command) %]</td>
39
     <td>[% HTML.escape(printer.template_code) %]</td>
40
    </tr>
41
   [%- 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>
42 35
  </table>
36
  [% END %]
37
[% END %]
38
</div>
43 39

  
44
 [%- END %]
45

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

  
55 50

  
56
[%- END %]

Auch abrufbar als: Unified diff