Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 9d2db178

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

  • ID 9d2db178a7726f97c310ea39a0ddcd1772e11429
  • Vorgänger ec2d23b0
  • Nachfolger 971dbb1e

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

Unterschiede anzeigen:

templates/webpages/admin/show.html
7 7
<h1>[% HTML.escape(title) %]</h1>
8 8

  
9 9
<div class="tabwidget">
10
 <ul>
11
  <li><a href="#user_list">[%- LxERP.t8("User list") %]</a></li>
12
  <li><a href="#client_list">[%- LxERP.t8("Client list") %]</a></li>
13
  <li><a href="#group_list">[%- LxERP.t8("Group list") %]</a></li>
14
 </ul>
10
  <ul>
11
    <li><a href="#user_list">[% LxERP.t8("User list") %]</a></li>
12
    <li><a href="#client_list">[% LxERP.t8("Client list") %]</a></li>
13
    <li><a href="#group_list">[% LxERP.t8("Group list") %]</a></li>
14
  </ul>
15
  <div id="user_list">
16
  [% IF !SELF.all_users.size %]
17
    <p>
18
      [% LxERP.t8("No users have been created yet.") %]
19
      [% LxERP.t8("In order to use kivitendo you have to create at least a client, a user and a group.") %]
20
    </p>
21
  [% ELSE %]
22
    <table class="tbl-list">
23
      <caption>[% LxERP.t8('Users') %]</caption>
24
      <thead>
25
        <tr>
26
          <th>[% LxERP.t8('Login Name') %]</th>
27
          <th>[% LxERP.t8('Name') %]</th>
28
          <th>[% LxERP.t8('Language') %]</th>
29
        </tr>
30
      </thead>
31
      <tbody>
32
      [% FOREACH user = SELF.all_users %]
33
        [% SET config = user.config_values %]
34
        <tr>
35
          <td>[% L.link(SELF.url_for(action="edit_user", id=user.id), HTML.escape(user.login)) %]</td>
36
          <td>[% HTML.escape(config.name) %]</td>
37
          <td>[% HTML.escape(config.countrycode) %]</td>
38
        </tr>
39
      [% END %]
40
      </tbody>
41
    </table>
42
  [% END %]
43
</div>
15 44

  
16
 <div id="user_list">
17
[%- IF !SELF.all_users.size %]
45
<div id="client_list">
46
[% IF !SELF.all_clients.size %]
18 47
  <p>
19
   [% LxERP.t8("No users have been created yet.") %]
20
   [% LxERP.t8("In order to use kivitendo you have to create at least a client, a user and a group.") %]
48
    [% LxERP.t8("No clients have been created yet.") %]
49
    [% LxERP.t8("In order to use kivitendo you have to create at least a client, a user and a group.") %]
21 50
  </p>
22

  
23
[%- ELSE %]
24
  <table width="100%">
25
   <tr class="listheading">
26
    <th>[% LxERP.t8('Login Name') %]</th>
27
    <th>[% LxERP.t8('Name') %]</th>
28
    <th>[% LxERP.t8('Language') %]</th>
29
   </tr>
30

  
31
[% FOREACH user = SELF.all_users %]
32
[%- SET config = user.config_values %]
33
   <tr class="listrow">
34
    <td>[% L.link(SELF.url_for(action="edit_user", id=user.id), HTML.escape(user.login)) %]</td>
35
    <td>[% HTML.escape(config.name) %]</td>
36
    <td>[% HTML.escape(config.countrycode) %]</td>
37
   </tr>
38
[% END %]
51
[% ELSE %]
52
  <table class="tbl-list">
53
    <caption>[% LxERP.t8('Clients') %]</caption>
54
    <thead>
55
    <tr>
56
      <th>[% LxERP.t8('Database ID') %]</th>
57
      <th>[% LxERP.t8('Client name') %]</th>
58
      <th>[% LxERP.t8('Database name') %]</th>
59
      <th>[% LxERP.t8('Database Host') %]</th>
60
      <th>[% LxERP.t8('Database User') %]</th>
61
      <th>[% LxERP.t8('Default client') %]</th>
62
      <th>[% LxERP.t8('Task server') %]</th>
63
    </tr>
64
    </thead>
65
    <tbody>
66
    [% FOREACH client = SELF.all_clients %]
67
      <tr>
68
        <td>[% L.link(SELF.url_for(action="edit_client", id=client.id), HTML.escape(client.id)) %]</td>
69
        <td>[% L.link(SELF.url_for(action="edit_client", id=client.id), HTML.escape(client.name)) %]</td>
70
        <td>[% HTML.escape(client.dbname) %]</td>
71
        <td>[% HTML.escape(client.dbhost) %][% IF client.dbport %]:[% HTML.escape(client.dbport) %][% END %]</td>
72
        <td>[% HTML.escape(client.dbuser) %]</td>
73
        <td>[% IF client.is_default %][% LxERP.t8("Yes") %][% ELSE %][% LxERP.t8("No") %][% END %]</td>
74
        <td>
75
         [% IF client.task_server_user %]
76
          [% LxERP.t8("execution as user '#1'", client.task_server_user.login) %]
77
         [% ELSE %]
78
          [% LxERP.t8("no execution for this client") %]
79
         [% END %]
80
        </td>
81
      </tr>
82
    [% END %]
83
    </tbody>
39 84
  </table>
40
[%- END %]
41
 </div>
42

  
43
 <div id="client_list">
44
[%- IF !SELF.all_clients.size %]
45
  <p>
46
   [% LxERP.t8("No clients have been created yet.") %]
47
   [% LxERP.t8("In order to use kivitendo you have to create at least a client, a user and a group.") %]
48
  </p>
49

  
50
[%- ELSE %]
51
  <table width="100%">
52
   <tr class="listheading">
53
    <th>[% LxERP.t8('Database ID') %]</th>
54
    <th>[% LxERP.t8('Client name') %]</th>
55
    <th>[% LxERP.t8('Database name') %]</th>
56
    <th>[% LxERP.t8('Database Host') %]</th>
57
    <th>[% LxERP.t8('Database User') %]</th>
58
    <th>[% LxERP.t8('Default client') %]</th>
59
    <th>[% LxERP.t8('Task server') %]</th>
60
   </tr>
61

  
62
[%- FOREACH client = SELF.all_clients %]
63
   <tr class="listrow">
64
    <td>[% L.link(SELF.url_for(action="edit_client", id=client.id), HTML.escape(client.id)) %]</td>
65
    <td>[% L.link(SELF.url_for(action="edit_client", id=client.id), HTML.escape(client.name)) %]</td>
66
    <td>[% HTML.escape(client.dbname) %]</td>
67
    <td>[% HTML.escape(client.dbhost) %][% IF client.dbport %]:[%- HTML.escape(client.dbport) %][%- END %]</td>
68
    <td>[% HTML.escape(client.dbuser) %]</td>
69
    <td>[% IF client.is_default %][% LxERP.t8("Yes") %][%- ELSE %][% LxERP.t8("No") %][%- END %]</td>
70
    <td>
71
     [% IF client.task_server_user %]
72
      [% LxERP.t8("execution as user '#1'", client.task_server_user.login) %]
73
     [% ELSE %]
74
      [% LxERP.t8("no execution for this client") %]
75
     [% END %]
76
    </td>
77
   </tr>
78
[%- END %]
79
  </table>
80
[%- END %]
81
 </div>
85
[% END %]
86
</div>
82 87

  
83
 <div id="group_list">
84
[%- IF !SELF.all_groups.size %]
88
<div id="group_list">
89
[% IF !SELF.all_groups.size %]
85 90
  <p>
86
   [% LxERP.t8("No groups have been created yet.") %]
87
   [% LxERP.t8("In order to use kivitendo you have to create at least a client, a user and a group.") %]
91
    [% LxERP.t8("No groups have been created yet.") %]
92
    [% LxERP.t8("In order to use kivitendo you have to create at least a client, a user and a group.") %]
88 93
  </p>
89 94

  
90
[%- ELSE %]
91
  <table width="100%">
92
   <tr class="listheading">
93
    <th>[% LxERP.t8('Name') %]</th>
94
    <th>[% LxERP.t8('Description') %]</th>
95
   </tr>
96

  
97
[%- FOREACH group = SELF.all_groups %]
98
   <tr class="listrow">
99
    <td>[% L.link(SELF.url_for(action="edit_group", id=group.id), HTML.escape(group.name)) %]</td>
100
    <td>[% HTML.escape(group.description) %]</td>
101
   </tr>
102
[%- END %]
95
[% ELSE %]
96
  <table class="tbl-list">
97
    <caption>[% LxERP.t8('Groups') %]</caption>
98
    <thead>
99
      <tr>
100
        <th>[% LxERP.t8('Name') %]</th>
101
        <th>[% LxERP.t8('Description') %]</th>
102
      </tr>
103
    </thead>
104
    <tbody>
105
[% FOREACH group = SELF.all_groups %]
106
    <tr>
107
      <td>[% L.link(SELF.url_for(action="edit_group", id=group.id), HTML.escape(group.name)) %]</td>
108
      <td>[% HTML.escape(group.description) %]</td>
109
    </tr>
110
[% END %]
111
    </tbody>
103 112
  </table>
104
[%- END %]
105
 </div>
113
[% END %]
114
  </div>
106 115
</div>

Auch abrufbar als: Unified diff