Revision d25334c6
Von Hans Peter Schlaepfer vor mehr als 6 Jahren hinzugefügt
templates/webpages/admin/show.html | ||
---|---|---|
1 |
[%- USE HTML %][%- USE LxERP -%][%- USE L -%] |
|
1 |
[% USE HTML %] |
|
2 |
[% USE LxERP %] |
|
3 |
[% USE L %] |
|
2 | 4 |
|
3 | 5 |
[% INCLUDE 'common/flash.html' %] |
4 | 6 |
|
... | ... | |
6 | 8 |
|
7 | 9 |
<div class="tabwidget"> |
8 | 10 |
<ul> |
9 |
<li><a href="#user_list">[%- LxERP.t8("User list") %]</a></li>
|
|
10 |
<li><a href="#client_list">[%- LxERP.t8("Client list") %]</a></li>
|
|
11 |
<li><a href="#group_list">[%- LxERP.t8("Group list") %]</a></li>
|
|
11 |
<li><a href="#user_list">[% LxERP.t8("User list") %]</a></li> |
|
12 |
<li><a href="#client_list">[% LxERP.t8("Client list") %]</a></li> |
|
13 |
<li><a href="#group_list">[% LxERP.t8("Group list") %]</a></li> |
|
12 | 14 |
</ul> |
13 | 15 |
<div id="user_list"> |
14 |
[%- IF !SELF.all_users.size %] |
|
15 |
<p> |
|
16 |
[% LxERP.t8("No users have been created yet.") %] |
|
17 |
[% LxERP.t8("In order to use kivitendo you have to create at least a client, a user and a group.") %] |
|
18 |
</p> |
|
19 |
|
|
20 |
[% ELSE %] |
|
21 |
<table class="tbl-list"> |
|
22 |
<caption>[% LxERP.t8('Users') %]</caption> |
|
23 |
<thead> |
|
24 |
<tr> |
|
25 |
<th>[% LxERP.t8('Login Name') %]</th> |
|
26 |
<th>[% LxERP.t8('Name') %]</th> |
|
27 |
<th>[% LxERP.t8('Language') %]</th> |
|
28 |
</tr> |
|
29 |
</thead> |
|
30 |
<tbody> |
|
31 |
[% FOREACH user = SELF.all_users %] |
|
32 |
[% SET config = user.config_values %] |
|
33 |
<tr> |
|
34 |
<td>[% L.link(SELF.url_for(action="edit_user", id=user.id), HTML.escape(user.login)) %]</td> |
|
35 |
<td>[% HTML.escape(config.name) %]</td> |
|
36 |
<td>[% HTML.escape(config.countrycode) %]</td> |
|
37 |
</tr> |
|
38 |
|
|
39 |
[% END %] |
|
40 |
</tbody> |
|
41 |
</table> |
|
42 |
[% END %] |
|
43 |
</div> |
|
16 |
[% IF !SELF.all_users.size %] |
|
17 |
<p> |
|
18 |
[% LxERP.t8("No users have been created yet.") %] |
|
19 |
[% LxERP.t8("In order to use kivitendo you have to create at least a client, a user and a group.") %] |
|
20 |
</p> |
|
21 |
[% ELSE %] |
|
22 |
<table class="tbl-list"> |
|
23 |
<caption>[% LxERP.t8('Users') %]</caption> |
|
24 |
<thead> |
|
25 |
<tr> |
|
26 |
<th>[% LxERP.t8('Login Name') %]</th> |
|
27 |
<th>[% LxERP.t8('Name') %]</th> |
|
28 |
<th>[% LxERP.t8('Language') %]</th> |
|
29 |
</tr> |
|
30 |
</thead> |
|
31 |
<tbody> |
|
32 |
[% FOREACH user = SELF.all_users %] |
|
33 |
[% SET config = user.config_values %] |
|
34 |
<tr> |
|
35 |
<td>[% L.link(SELF.url_for(action="edit_user", id=user.id), HTML.escape(user.login)) %]</td> |
|
36 |
<td>[% HTML.escape(config.name) %]</td> |
|
37 |
<td>[% HTML.escape(config.countrycode) %]</td> |
|
38 |
</tr> |
|
39 |
[% END %] |
|
40 |
</tbody> |
|
41 |
</table> |
|
42 |
[% END %] |
|
43 |
</div> |
|
44 | 44 |
|
45 |
<div id="client_list">
|
|
45 |
<div id="client_list"> |
|
46 | 46 |
[% IF !SELF.all_clients.size %] |
47 | 47 |
<p> |
48 | 48 |
[% LxERP.t8("No clients have been created yet.") %] |
49 | 49 |
[% LxERP.t8("In order to use kivitendo you have to create at least a client, a user and a group.") %] |
50 | 50 |
</p> |
51 |
|
|
52 | 51 |
[% ELSE %] |
53 | 52 |
<table class="tbl-list"> |
54 | 53 |
<caption>[% LxERP.t8('Clients') %]</caption> |
... | ... | |
64 | 63 |
</tr> |
65 | 64 |
</thead> |
66 | 65 |
<tbody> |
67 |
[% FOREACH client = SELF.all_clients %] |
|
68 |
<tr> |
|
69 |
<td>[% L.link(SELF.url_for(action="edit_client", id=client.id), HTML.escape(client.id)) %]</td> |
|
70 |
<td>[% L.link(SELF.url_for(action="edit_client", id=client.id), HTML.escape(client.name)) %]</td> |
|
71 |
<td>[% HTML.escape(client.dbname) %]</td> |
|
72 |
<td>[% HTML.escape(client.dbhost) %][% IF client.dbport %]:[%- HTML.escape(client.dbport) %][%- END %]</td>
|
|
73 |
<td>[% HTML.escape(client.dbuser) %]</td> |
|
74 |
<td>[% IF client.is_default %][% LxERP.t8("Yes") %][%- ELSE %][% LxERP.t8("No") %][%- END %]</td>
|
|
75 |
<td> |
|
76 |
[% IF client.task_server_user %] |
|
77 |
[% LxERP.t8("execution as user '#1'", client.task_server_user.login) %] |
|
78 |
[% ELSE %] |
|
79 |
[% LxERP.t8("no execution for this client") %] |
|
80 |
[% END %] |
|
81 |
</td> |
|
82 |
</tr> |
|
83 |
[% END %] |
|
66 |
[% FOREACH client = SELF.all_clients %]
|
|
67 |
<tr>
|
|
68 |
<td>[% L.link(SELF.url_for(action="edit_client", id=client.id), HTML.escape(client.id)) %]</td>
|
|
69 |
<td>[% L.link(SELF.url_for(action="edit_client", id=client.id), HTML.escape(client.name)) %]</td>
|
|
70 |
<td>[% HTML.escape(client.dbname) %]</td>
|
|
71 |
<td>[% HTML.escape(client.dbhost) %][% IF client.dbport %]:[% HTML.escape(client.dbport) %][% END %]</td>
|
|
72 |
<td>[% HTML.escape(client.dbuser) %]</td>
|
|
73 |
<td>[% IF client.is_default %][% LxERP.t8("Yes") %][% ELSE %][% LxERP.t8("No") %][% END %]</td>
|
|
74 |
<td>
|
|
75 |
[% IF client.task_server_user %]
|
|
76 |
[% LxERP.t8("execution as user '#1'", client.task_server_user.login) %]
|
|
77 |
[% ELSE %]
|
|
78 |
[% LxERP.t8("no execution for this client") %]
|
|
79 |
[% END %]
|
|
80 |
</td>
|
|
81 |
</tr>
|
|
82 |
[% END %]
|
|
84 | 83 |
</tbody> |
85 | 84 |
</table> |
86 | 85 |
[% END %] |
87 |
</div>
|
|
86 |
</div> |
|
88 | 87 |
|
89 |
<div id="group_list">
|
|
88 |
<div id="group_list"> |
|
90 | 89 |
[% IF !SELF.all_groups.size %] |
91 | 90 |
<p> |
92 | 91 |
[% LxERP.t8("No groups have been created yet.") %] |
... | ... | |
97 | 96 |
<table class="tbl-list"> |
98 | 97 |
<caption>[% LxERP.t8('Groups') %]</caption> |
99 | 98 |
<thead> |
100 |
<tr> |
|
101 |
<th>[% LxERP.t8('Name') %]</th> |
|
102 |
<th>[% LxERP.t8('Description') %]</th> |
|
103 |
</tr> |
|
99 |
<tr>
|
|
100 |
<th>[% LxERP.t8('Name') %]</th>
|
|
101 |
<th>[% LxERP.t8('Description') %]</th>
|
|
102 |
</tr>
|
|
104 | 103 |
</thead> |
105 | 104 |
<tbody> |
106 | 105 |
[% FOREACH group = SELF.all_groups %] |
Auch abrufbar als: Unified diff
Aenderungen hpschlaepfer