31e7cd50f000d901897b572f0b3d69387b41a7d9
[kivitendo-erp.git] / templates / webpages / admin / list_users.html
1 [%- USE T8 %]
2 [%- USE HTML %]
3 <body class="admin" onload="">
4
5  <h1>[% title %]</h1>
6
7  <form method="post" action="admin.pl">
8
9   <p>
10    <table width="100%">
11     <tr>
12      <th class="listtop">[% 'Login Name' | $T8 %]</th>
13      <th class="listtop">[% 'Name' | $T8 %]</th>
14      <th class="listtop">[% 'Company' | $T8 %]</th>
15      <th class="listtop">[% 'Templates' | $T8 %]</th>
16      <th class="listtop">[% 'Print' | $T8 %]</th>
17      <th class="listtop">[% 'Language' | $T8 %]</th>
18      <th class="listtop">[% 'Dataset' | $T8 %]</th>
19      <th class="listtop">[% 'Host' | $T8 %]</th>
20      <th class="listtop">[% 'Last Action' | $T8 %]</th>
21 <!-- <th class="listtop">[% 'Driver' | $T8 %]</th> -->
22     </tr>
23
24     [% FOREACH row = MEMBERS %]
25      <tr class="listrow[% loop.count % 2 %]">
26       <td>&nbsp;<a href="admin.pl?action=edit&user.id=[% HTML.url(row.id) %]">[% HTML.escape(row.login) %]</a></td>
27       <td>&nbsp;[% HTML.escape(row.name) %]</td>
28       <td>&nbsp;[% HTML.escape(row.company) %]</td>
29       <td>&nbsp;[% HTML.escape(row.templates) %]</td>
30       <td>&nbsp;[% HTML.escape(row.template_format) %]</td>
31       <td>&nbsp;[% HTML.escape(row.countrycode) %]</td>
32       <td>&nbsp;[% HTML.escape(row.dbname) %]</td>
33       <td>&nbsp;[% IF row.dbhost %][% HTML.escape(row.dbhost) %][% ELSE %]localhost[% END %]</td>
34       <td>&nbsp;
35         [% IF( row.last_action ) %]
36           [% HTML.escape(row.last_action) %]
37         [% ELSE %]
38           [% 'not logged in' | $T8 %]
39         [% END %]</td>
40 <!--  <td>&nbsp;[% HTML.escape(row.dbdriver) %]</td> -->
41      </tr>
42     [% END %]
43
44    </table>
45   <hr size="3" noshade>
46   </p>
47
48
49   <input type="submit" class="submit" name="action" value="[% 'Add User' | $T8 %]">
50   <input type="submit" class="submit" name="action" value="[% 'Edit groups' | $T8 %]">
51   <input type="submit" class="submit" name="action" value="[% 'Pg Database Administration' | $T8 %]">
52   <input type="submit" class="submit" name="action" value="[% 'Printer Management' | $T8 %]">
53   [% IF LOCKED %]
54    <input type="submit" class="submit" name="action" value="[% 'Unlock System' | $T8 %]">
55    [% ELSE %]
56    <input type="submit" class="submit" name="action" value="[% 'Lock System' | $T8 %]">
57   [% END %]
58   <input type="submit" class="submit" name="action" value="[% 'Logout' | $T8 %]">
59
60   <div style="background-color: #FFFFDA; font-size: 12px; padding: 0.5em; max-width: 720px; margin: 1em;">
61   <p>[% 'Click on login name to edit!' | $T8 %]</p>
62   <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>
63   </div>
64  </form>
65
66  <h1>[% 'User Login' | $T8 %]</h1>
67
68  <form method="post" action="controller.pl">
69   <input type="hidden" name="action" value="LoginScreen/login">
70
71   <table border="0">
72    <tr>
73     <th align="right">[% 'Login Name' | $T8 %]</th>
74     <td><input class="login" name="{AUTH}login"></td>
75     <td>&nbsp;</td>
76    </tr>
77    <tr>
78     <th align="right">[% 'Password' | $T8 %]</th>
79     <td><input class="login" type="password" name="{AUTH}password"></td>
80     <td><input type="submit" value="[% 'Login' | $T8 %]"></td>
81    </tr>
82   </table>
83
84  </form>
85
86  <hr size="3" noshade>
87
88 </body>