]> wagnertech.de Git - mfinanz.git/blob - templates/design40_webpages/admin/show.html
date error in mapping
[mfinanz.git] / templates / design40_webpages / admin / show.html
1 [% USE HTML %]
2 [% USE LxERP %]
3 [% USE L %]
4
5 [% INCLUDE 'common/flash.html' %]
6
7 <h1>[% HTML.escape(title) %]</h1>
8
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>
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('User') %]</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>
44
45 <div id="client_list">
46 [% IF !SELF.all_clients.size %]
47   <p>
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.") %]
50   </p>
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>
84   </table>
85 [% END %]
86 </div>
87
88 <div id="group_list">
89 [% IF !SELF.all_groups.size %]
90   <p>
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.") %]
93   </p>
94
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>
112   </table>
113 [% END %]
114   </div>
115 </div>