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