Revision e7c11f83
Von Hans Peter Schlaepfer vor mehr als 6 Jahren hinzugefügt
templates/webpages/admin/show.html | ||
---|---|---|
5 | 5 |
<h1>[% HTML.escape(title) %]</h1> |
6 | 6 |
|
7 | 7 |
<div class="tabwidget"> |
8 |
<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> |
|
12 |
</ul> |
|
13 |
|
|
14 |
<div id="user_list"> |
|
8 |
<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> |
|
12 |
</ul> |
|
13 |
<div id="user_list"> |
|
15 | 14 |
[%- IF !SELF.all_users.size %] |
16 | 15 |
<p> |
17 |
[% LxERP.t8("No users have been created yet.") %] |
|
18 |
[% LxERP.t8("In order to use kivitendo you have to create at least a client, a user and a group.") %] |
|
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.") %]
|
|
19 | 18 |
</p> |
20 | 19 |
|
21 |
[%- ELSE %] |
|
22 |
<table width="100%"> |
|
23 |
<tr class="listheading"> |
|
24 |
<th>[% LxERP.t8('Login Name') %]</th> |
|
25 |
<th>[% LxERP.t8('Name') %]</th> |
|
26 |
<th>[% LxERP.t8('Language') %]</th> |
|
27 |
</tr> |
|
28 |
|
|
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> |
|
29 | 31 |
[% FOREACH user = SELF.all_users %] |
30 |
[%- SET config = user.config_values %] |
|
31 |
<tr class="listrow"> |
|
32 |
<td>[% L.link(SELF.url_for(action="edit_user", id=user.id), HTML.escape(user.login)) %]</td> |
|
33 |
<td>[% HTML.escape(config.name) %]</td> |
|
34 |
<td>[% HTML.escape(config.countrycode) %]</td> |
|
35 |
</tr> |
|
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 |
|
|
36 | 39 |
[% END %] |
40 |
</tbody> |
|
37 | 41 |
</table> |
38 |
[%- END %]
|
|
39 |
</div> |
|
42 |
[% END %] |
|
43 |
</div>
|
|
40 | 44 |
|
41 |
<div id="client_list"> |
|
42 |
[%- IF !SELF.all_clients.size %]
|
|
45 |
<div id="client_list">
|
|
46 |
[% IF !SELF.all_clients.size %] |
|
43 | 47 |
<p> |
44 |
[% LxERP.t8("No clients have been created yet.") %] |
|
45 |
[% LxERP.t8("In order to use kivitendo you have to create at least a client, a user and a group.") %] |
|
48 |
[% LxERP.t8("No clients have been created yet.") %]
|
|
49 |
[% LxERP.t8("In order to use kivitendo you have to create at least a client, a user and a group.") %]
|
|
46 | 50 |
</p> |
47 | 51 |
|
48 |
[%- ELSE %] |
|
49 |
<table width="100%"> |
|
50 |
<tr class="listheading"> |
|
51 |
<th>[% LxERP.t8('Database ID') %]</th> |
|
52 |
<th>[% LxERP.t8('Client name') %]</th> |
|
53 |
<th>[% LxERP.t8('Database name') %]</th> |
|
54 |
<th>[% LxERP.t8('Database Host') %]</th> |
|
55 |
<th>[% LxERP.t8('Database User') %]</th> |
|
56 |
<th>[% LxERP.t8('Default client') %]</th> |
|
57 |
<th>[% LxERP.t8('Task server') %]</th> |
|
58 |
</tr> |
|
59 |
|
|
60 |
[%- FOREACH client = SELF.all_clients %] |
|
61 |
<tr class="listrow"> |
|
62 |
<td>[% L.link(SELF.url_for(action="edit_client", id=client.id), HTML.escape(client.id)) %]</td> |
|
63 |
<td>[% L.link(SELF.url_for(action="edit_client", id=client.id), HTML.escape(client.name)) %]</td> |
|
64 |
<td>[% HTML.escape(client.dbname) %]</td> |
|
65 |
<td>[% HTML.escape(client.dbhost) %][% IF client.dbport %]:[%- HTML.escape(client.dbport) %][%- END %]</td> |
|
66 |
<td>[% HTML.escape(client.dbuser) %]</td> |
|
67 |
<td>[% IF client.is_default %][% LxERP.t8("Yes") %][%- ELSE %][% LxERP.t8("No") %][%- END %]</td> |
|
68 |
<td> |
|
69 |
[% IF client.task_server_user %] |
|
70 |
[% LxERP.t8("execution as user '#1'", client.task_server_user.login) %] |
|
71 |
[% ELSE %] |
|
72 |
[% LxERP.t8("no execution for this client") %] |
|
73 |
[% END %] |
|
74 |
</td> |
|
75 |
</tr> |
|
76 |
[%- END %] |
|
52 |
[% ELSE %] |
|
53 |
<table class="tbl-list"> |
|
54 |
<caption>[% LxERP.t8('Clients') %]</caption> |
|
55 |
<thead> |
|
56 |
<tr> |
|
57 |
<th>[% LxERP.t8('Database ID') %]</th> |
|
58 |
<th>[% LxERP.t8('Client name') %]</th> |
|
59 |
<th>[% LxERP.t8('Database name') %]</th> |
|
60 |
<th>[% LxERP.t8('Database Host') %]</th> |
|
61 |
<th>[% LxERP.t8('Database User') %]</th> |
|
62 |
<th>[% LxERP.t8('Default client') %]</th> |
|
63 |
<th>[% LxERP.t8('Task server') %]</th> |
|
64 |
</tr> |
|
65 |
</thead> |
|
66 |
<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 %] |
|
84 |
</tbody> |
|
77 | 85 |
</table> |
78 |
[%- END %]
|
|
86 |
[% END %] |
|
79 | 87 |
</div> |
80 | 88 |
|
81 |
<div id="group_list"> |
|
82 |
[%- IF !SELF.all_groups.size %]
|
|
89 |
<div id="group_list">
|
|
90 |
[% IF !SELF.all_groups.size %] |
|
83 | 91 |
<p> |
84 |
[% LxERP.t8("No groups have been created yet.") %] |
|
85 |
[% LxERP.t8("In order to use kivitendo you have to create at least a client, a user and a group.") %] |
|
92 |
[% LxERP.t8("No groups have been created yet.") %]
|
|
93 |
[% LxERP.t8("In order to use kivitendo you have to create at least a client, a user and a group.") %]
|
|
86 | 94 |
</p> |
87 | 95 |
|
88 |
[%- ELSE %] |
|
89 |
<table width="100%"> |
|
90 |
<tr class="listheading"> |
|
91 |
<th>[% LxERP.t8('Name') %]</th> |
|
92 |
<th>[% LxERP.t8('Description') %]</th> |
|
93 |
</tr> |
|
94 |
|
|
95 |
[%- FOREACH group = SELF.all_groups %] |
|
96 |
<tr class="listrow"> |
|
97 |
<td>[% L.link(SELF.url_for(action="edit_group", id=group.id), HTML.escape(group.name)) %]</td> |
|
98 |
<td>[% HTML.escape(group.description) %]</td> |
|
99 |
</tr> |
|
100 |
[%- END %] |
|
96 |
[% ELSE %] |
|
97 |
<table class="tbl-list"> |
|
98 |
<caption>[% LxERP.t8('Groups') %]</caption> |
|
99 |
<thead> |
|
100 |
<tr> |
|
101 |
<th>[% LxERP.t8('Name') %]</th> |
|
102 |
<th>[% LxERP.t8('Description') %]</th> |
|
103 |
</tr> |
|
104 |
</thead> |
|
105 |
<tbody> |
|
106 |
[% FOREACH group = SELF.all_groups %] |
|
107 |
<tr> |
|
108 |
<td>[% L.link(SELF.url_for(action="edit_group", id=group.id), HTML.escape(group.name)) %]</td> |
|
109 |
<td>[% HTML.escape(group.description) %]</td> |
|
110 |
</tr> |
|
111 |
[% END %] |
|
112 |
</tbody> |
|
101 | 113 |
</table> |
102 |
[%- END %]
|
|
103 |
</div> |
|
114 |
[% END %] |
|
115 |
</div>
|
|
104 | 116 |
</div> |
Auch abrufbar als: Unified diff
Anpassungen für die Präsentation am kivitendo Treffen April 2018