Admin: Anlegen, Bearbeiten und Löschen von Mandanten implementiert
[kivitendo-erp.git] / templates / webpages / admin / show.html
1 [%- USE HTML %][%- USE LxERP -%][%- USE L -%]
2
3 [% INCLUDE 'common/flash.html' %]
4
5 <h1>[% title %]</h1>
6
7 <div>
8  [% LxERP.t8("Actions") %]:
9  <span class="link_separator"></span>
10  [% L.link(SELF.url_for(action="new_user"), LxERP.t8("Add User")) %]
11  <span class="link_separator">|</span>
12  [% L.link(SELF.url_for(action="new_client"), LxERP.t8("Add Client")) %]
13  <span class="link_separator">|</span>
14  [% L.link(SELF.url_for(action="edit_groups"), LxERP.t8("Edit groups")) %]
15  <span class="link_separator">|</span>
16  [% L.link(SELF.url_for(action="pg_database_administration", controller="admin.pl"), LxERP.t8("Pg Database Administration")) %]
17  <span class="link_separator">|</span>
18  [% L.link(SELF.url_for(action="printer_management", controller="admin.pl"), LxERP.t8("Printer Management")) %]
19  <span class="link_separator">|</span>
20  [% IF LOCKED %]
21   [% L.link(SELF.url_for(action="unlock_system"), LxERP.t8("Unlock System")) %]
22  [% ELSE %]
23   [% L.link(SELF.url_for(action="lock_system"), LxERP.t8("Lock System")) %]
24  [% END %]
25  <span class="link_separator">|</span>
26  [% L.link(SELF.url_for(action="logout"), LxERP.t8("Logout")) %]
27  <span class="link_separator">|</span>
28  [% L.link(SELF.url_for(controller="LoginScreen", action="user_login"), LxERP.t8("To user login")) %]
29 </div>
30
31 <hr>
32
33 <div class="tabwidget">
34  <ul>
35   <li><a href="#user_list">[%- LxERP.t8("User list") %]</a></li>
36   <li><a href="#client_list">[%- LxERP.t8("Client list") %]</a></li>
37  </ul>
38
39  <div id="user_list">
40 [%- IF !USERS.size %]
41   <p>
42    [% LxERP.t8("No users have been created yet.") %]
43    [% LxERP.t8("In order to use kivitendo you have to create at least one client, one user, and grant that user access to the client.") %]
44   </p>
45
46 [%- ELSE %]
47   <table width="100%">
48    <tr class="listheading">
49     <th>[% LxERP.t8('Login Name') %]</th>
50     <th>[% LxERP.t8('Name') %]</th>
51     <th>[% LxERP.t8('Language') %]</th>
52    </tr>
53
54 [% FOREACH user = USERS %]
55 [%- SET config = user.config_values %]
56    <tr class="listrow">
57     <td>[% L.link(SELF.url_for(action="edit_user", id=user.id), HTML.escape(user.login)) %]</td>
58     <td>[% HTML.escape(config.name) %]</td>
59     <td>[% HTML.escape(config.countrycode) %]</td>
60    </tr>
61 [% END %]
62   </table>
63 [%- END %]
64  </div>
65
66  <div id="client_list">
67 [%- IF !CLIENTS.size %]
68   <p>
69    [% LxERP.t8("No clients have been created yet.") %]
70    [% LxERP.t8("In order to use kivitendo you have to create at least one client, one user, and grant that user access to the client.") %]
71   </p>
72
73 [%- ELSE %]
74   <table width="100%">
75    <tr class="listheading">
76     <th>[% LxERP.t8('Client name') %]</th>
77     <th>[% LxERP.t8('Database ID') %]</th>
78     <th>[% LxERP.t8('Database name') %]</th>
79     <th>[% LxERP.t8('Database Host') %]</th>
80     <th>[% LxERP.t8('Database User') %]</th>
81     <th>[% LxERP.t8('Default client') %]</th>
82    </tr>
83
84 [%- FOREACH client = CLIENTS %]
85    <tr class="listrow">
86     <td>[% L.link(SELF.url_for(action="edit_client", id=client.id), HTML.escape(client.name)) %]</td>
87     <td>[% HTML.escape(client.id) %]</td>
88     <td>[% HTML.escape(client.dbname) %]</td>
89     <td>[% HTML.escape(client.dbhost) %][% IF client.dbport %]:[%- HTML.escape(client.dbport) %][%- END %]</td>
90     <td>[% HTML.escape(client.dbuser) %]</td>
91     <td>[% IF client.is_default %][% LxERP.t8("Yes") %][%- ELSE %][% LxERP.t8("No") %][%- END %]</td>
92    </tr>
93 [%- END %]
94   </table>
95 [%- END %]
96  </div>
97 </div>