Revision 1440377b
Von Hans Peter Schlaepfer vor fast 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 |
|
5 | 7 |
<h1>[% HTML.escape(title) %]</h1> |
6 | 8 |
|
7 | 9 |
<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> |
|
10 |
<ul> |
|
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> |
|
14 |
</ul> |
|
15 |
<div id="user_list"> |
|
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> |
|
13 | 44 |
|
14 |
<div id="user_list">
|
|
15 |
[%- IF !SELF.all_users.size %]
|
|
45 |
<div id="client_list">
|
|
46 |
[% IF !SELF.all_clients.size %]
|
|
16 | 47 |
<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.") %] |
|
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.") %]
|
|
19 | 50 |
</p> |
20 |
|
|
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 |
|
|
29 |
[% 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> |
|
36 |
[% END %] |
|
51 |
[% ELSE %] |
|
52 |
<table class="tbl-list"> |
|
53 |
<caption>[% LxERP.t8('Clients') %]</caption> |
|
54 |
<thead> |
|
55 |
<tr> |
|
56 |
<th>[% LxERP.t8('Database ID') %]</th> |
|
57 |
<th>[% LxERP.t8('Client name') %]</th> |
|
58 |
<th>[% LxERP.t8('Database name') %]</th> |
|
59 |
<th>[% LxERP.t8('Database Host') %]</th> |
|
60 |
<th>[% LxERP.t8('Database User') %]</th> |
|
61 |
<th>[% LxERP.t8('Default client') %]</th> |
|
62 |
<th>[% LxERP.t8('Task server') %]</th> |
|
63 |
</tr> |
|
64 |
</thead> |
|
65 |
<tbody> |
|
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 %] |
|
83 |
</tbody> |
|
37 | 84 |
</table> |
38 |
[%- END %] |
|
39 |
</div> |
|
40 |
|
|
41 |
<div id="client_list"> |
|
42 |
[%- IF !SELF.all_clients.size %] |
|
43 |
<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.") %] |
|
46 |
</p> |
|
47 |
|
|
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 %] |
|
77 |
</table> |
|
78 |
[%- END %] |
|
79 |
</div> |
|
85 |
[% END %] |
|
86 |
</div> |
|
80 | 87 |
|
81 |
<div id="group_list">
|
|
82 |
[%- IF !SELF.all_groups.size %]
|
|
88 |
<div id="group_list"> |
|
89 |
[% IF !SELF.all_groups.size %] |
|
83 | 90 |
<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.") %] |
|
91 |
[% LxERP.t8("No groups have been created yet.") %]
|
|
92 |
[% LxERP.t8("In order to use kivitendo you have to create at least a client, a user and a group.") %]
|
|
86 | 93 |
</p> |
87 | 94 |
|
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 %] |
|
95 |
[% ELSE %] |
|
96 |
<table class="tbl-list"> |
|
97 |
<caption>[% LxERP.t8('Groups') %]</caption> |
|
98 |
<thead> |
|
99 |
<tr> |
|
100 |
<th>[% LxERP.t8('Name') %]</th> |
|
101 |
<th>[% LxERP.t8('Description') %]</th> |
|
102 |
</tr> |
|
103 |
</thead> |
|
104 |
<tbody> |
|
105 |
[% FOREACH group = SELF.all_groups %] |
|
106 |
<tr> |
|
107 |
<td>[% L.link(SELF.url_for(action="edit_group", id=group.id), HTML.escape(group.name)) %]</td> |
|
108 |
<td>[% HTML.escape(group.description) %]</td> |
|
109 |
</tr> |
|
110 |
[% END %] |
|
111 |
</tbody> |
|
101 | 112 |
</table> |
102 |
[%- END %]
|
|
103 |
</div> |
|
113 |
[% END %] |
|
114 |
</div>
|
|
104 | 115 |
</div> |
Auch abrufbar als: Unified diff
Neues kivitendo Design Aenderungen in templates/webpages/admin/..