2 [%- USE HTML %][%- USE LxERP -%][%- USE L -%]
5 <form method="post" action="admin.pl">
7 <div class="tabwidget">
9 <li><a href="#client_list">[%- LxERP.t8("Client list") %]</a></li>
10 <li><a href="#user_list">[%- LxERP.t8("User list") %]</a></li>
13 <div id="client_list">
14 [%- IF !CLIENTS.size %]
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.") %]
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>
30 [%- FOREACH client = CLIENTS %]
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>
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.") %]
53 <th class="listtop">[% 'Login Name' | $T8 %]</th>
54 <th class="listtop">[% 'Name' | $T8 %]</th>
55 <th class="listtop">[% 'Language' | $T8 %]</th>
58 [% FOREACH user = USERS %]
59 [%- SET config = user.config_values %]
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>
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>
82 [% L.link(SELF.url_for(action="unlock_system"), LxERP.t8("Unlock System")) %]
84 [% L.link(SELF.url_for(action="lock_system"), LxERP.t8("Lock System")) %]
86 <span class="link_separator">|</span>
87 [% L.link(SELF.url_for(action="logout"), LxERP.t8("Logout")) %]
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>
97 <h2>[% 'User Login' | $T8 %]</h2>
99 <form method="post" action="controller.pl">
100 <input type="hidden" name="action" value="LoginScreen/login">
104 <th align="right">[% 'Login Name' | $T8 %]</th>
105 <td><input class="login" name="{AUTH}login"></td>
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>