Admin: Teile von admin.pl in neuen Controller Admin verschoben; Mandanten anzeigen
[kivitendo-erp.git] / templates / webpages / admin / list_users.html
1 [%- USE T8 %]
2 [%- USE HTML %][%- USE LxERP -%][%- USE L -%]
3  <h1>[% title %]</h1>
4
5  <form method="post" action="admin.pl">
6
7   <div class="tabwidget">
8    <ul>
9     <li><a href="#client_list">[%- LxERP.t8("Client list") %]</a></li>
10     <li><a href="#user_list">[%- LxERP.t8("User list") %]</a></li>
11    </ul>
12
13    <div id="client_list">
14 [%- IF !CLIENTS.size %]
15     <p>
16      [% LxERP.t8("No clients have been created yet.") %]
17      [% 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.") %]
18     </p>
19
20 [%- ELSE %]
21     <table width="100%">
22      <tr>
23       <th class="listtop">[% 'Client name' | $T8 %]</th>
24       <th class="listtop">[% 'Database ID' | $T8 %]</th>
25       <th class="listtop">[% 'Database name' | $T8 %]</th>
26       <th class="listtop">[% 'Database Host' | $T8 %]</th>
27       <th class="listtop">[% 'Database User' | $T8 %]</th>
28      </tr>
29
30  [%- FOREACH client = CLIENTS %]
31      <tr class="listrow">
32       <td><a href="admin.pl?action=edit_client&client.id=[% HTML.url(client.id) %]">[% HTML.escape(client.name) %]</a></td>
33       <td>[% HTML.escape(client.id) %]</td>
34       <td>[% HTML.escape(client.dbname) %]</td>
35       <td>[% HTML.escape(client.dbhost) %][% IF client.dbport %]:[%- HTML.escape(client.dbport) %][%- END %]</td>
36       <td>[% HTML.escape(client.dbuser) %]</td>
37      </tr>
38  [%- END %]
39     </table>
40 [%- END %]
41    </div>
42
43    <div id="user_list">
44 [%- IF !USERS.size %]
45     <p>
46      [% LxERP.t8("No users have been created yet.") %]
47      [% 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.") %]
48     </p>
49
50 [%- ELSE %]
51     <table width="100%">
52      <tr>
53       <th class="listtop">[% 'Login Name' | $T8 %]</th>
54       <th class="listtop">[% 'Name' | $T8 %]</th>
55       <th class="listtop">[% 'Language' | $T8 %]</th>
56      </tr>
57
58  [% FOREACH user = USERS %]
59   [%- SET config = user.config_values %]
60      <tr class="listrow">
61       <td><a href="admin.pl?action=edit&user.id=[% HTML.url(user.id) %]">[% HTML.escape(user.login) %]</a></td>
62       <td>[% HTML.escape(config.name) %]</td>
63       <td>[% HTML.escape(config.countrycode) %]</td>
64      </tr>
65  [% END %]
66     </table>
67 [%- END %]
68    </div>
69   </div>
70
71   [% L.link(SELF.url_for(action="add_client"), LxERP.t8("Add Client")) %]
72   <span class="link_separator">|</span>
73   [% L.link(SELF.url_for(action="add_user"), LxERP.t8("Add User")) %]
74   <span class="link_separator">|</span>
75   [% L.link(SELF.url_for(action="edit_groups"), LxERP.t8("Edit groups")) %]
76   <span class="link_separator">|</span>
77   [% L.link(SELF.url_for(action="pg_database_administration", controller="admin.pl"), LxERP.t8("Pg Database Administration")) %]
78   <span class="link_separator">|</span>
79   [% L.link(SELF.url_for(action="printer_management", controller="admin.pl"), LxERP.t8("Printer Management")) %]
80   <span class="link_separator">|</span>
81   [% IF LOCKED %]
82    [% L.link(SELF.url_for(action="unlock_system"), LxERP.t8("Unlock System")) %]
83   [% ELSE %]
84    [% L.link(SELF.url_for(action="lock_system"), LxERP.t8("Lock System")) %]
85   [% END %]
86   <span class="link_separator">|</span>
87   [% L.link(SELF.url_for(action="logout"), LxERP.t8("Logout")) %]
88
89   <div style="background-color: #FFFFDA; font-size: 12px; padding: 0.5em; max-width: 720px; margin: 1em;">
90   <p>[% 'Click on login name to edit!' | $T8 %]</p>
91   <p>[% 'To add a user to a group edit a name, change the login name and save.  A new user with the same variables will then be saved under the new login name.' | $T8 %]</p>
92   </div>
93  </form>
94
95  <hr>
96
97  <h2>[% 'User Login' | $T8 %]</h2>
98
99  <form method="post" action="controller.pl">
100   <input type="hidden" name="action" value="LoginScreen/login">
101
102   <table border="0">
103    <tr>
104     <th align="right">[% 'Login Name' | $T8 %]</th>
105     <td><input class="login" name="{AUTH}login"></td>
106     <td>&nbsp;</td>
107    </tr>
108    <tr>
109     <th align="right">[% 'Password' | $T8 %]</th>
110     <td><input class="login" type="password" name="{AUTH}password"></td>
111     <td><input type="submit" value="[% 'Login' | $T8 %]"></td>
112    </tr>
113   </table>
114
115  </form>