X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Fadmin%2Fshow.html;h=2ae4acbd5e0002b32ef9bb5dd5ffced96e67fd8f;hb=d4925a8b60f04674885e30d9316dc0263f8b9a84;hp=06d0e917605df2dc2a1e161bd37d44f782c0b433;hpb=288111da982510d86d73db5cef54c52e07a84f5a;p=kivitendo-erp.git diff --git a/templates/webpages/admin/show.html b/templates/webpages/admin/show.html index 06d0e9176..2ae4acbd5 100644 --- a/templates/webpages/admin/show.html +++ b/templates/webpages/admin/show.html @@ -2,56 +2,31 @@ [% INCLUDE 'common/flash.html' %] -

[% title %]

- -
- [% LxERP.t8("Actions") %]: - - [% L.link(SELF.url_for(action="new_client"), LxERP.t8("Add Client")) %] - | - [% L.link(SELF.url_for(action="new_user"), LxERP.t8("Add User")) %] - | - [% L.link(SELF.url_for(action="edit_groups"), LxERP.t8("Edit groups")) %] - | - [% L.link(SELF.url_for(action="pg_database_administration", controller="admin.pl"), LxERP.t8("Pg Database Administration")) %] - | - [% L.link(SELF.url_for(action="printer_management", controller="admin.pl"), LxERP.t8("Printer Management")) %] - | - [% IF LOCKED %] - [% L.link(SELF.url_for(action="unlock_system"), LxERP.t8("Unlock System")) %] - [% ELSE %] - [% L.link(SELF.url_for(action="lock_system"), LxERP.t8("Lock System")) %] - [% END %] - | - [% L.link(SELF.url_for(action="logout"), LxERP.t8("Logout")) %] - | - [% L.link(SELF.url_for(controller="LoginScreen", action="user_login"), LxERP.t8("To user login")) %] -
- -
+

[% HTML.escape(title) %]

-[%- IF !USERS.size %] +[%- IF !SELF.all_users.size %]

[% LxERP.t8("No users have been created yet.") %] - [% LxERP.t8("In order to use kivitendo you have to create at least one client, one user, and grant that user access to the client.") %] + [% LxERP.t8("In order to use kivitendo you have to create at least a client, a user and a group.") %]

[%- ELSE %] - - - - + + + + -[% FOREACH user = USERS %] +[% FOREACH user = SELF.all_users %] [%- SET config = user.config_values %] @@ -64,29 +39,63 @@
-[%- IF !CLIENTS.size %] +[%- IF !SELF.all_clients.size %]

[% LxERP.t8("No clients have been created yet.") %] - [% LxERP.t8("In order to use kivitendo you have to create at least one client, one user, and grant that user access to the client.") %] + [% LxERP.t8("In order to use kivitendo you have to create at least a client, a user and a group.") %]

[%- ELSE %]
[% LxERP.t8('Login Name') %][% LxERP.t8('Name') %][% LxERP.t8('Language') %]
[% LxERP.t8('Login Name') %][% LxERP.t8('Name') %][% LxERP.t8('Language') %]
[% L.link(SELF.url_for(action="edit_user", id=user.id), HTML.escape(user.login)) %]
- - - - - - + + + + + + + + -[%- FOREACH client = CLIENTS %] +[%- FOREACH client = SELF.all_clients %] - - + + + + + +[%- END %] +
[% LxERP.t8('Client name') %][% LxERP.t8('Database ID') %][% LxERP.t8('Database name') %][% LxERP.t8('Database Host') %][% LxERP.t8('Database User') %]
[% LxERP.t8('Database ID') %][% LxERP.t8('Client name') %][% LxERP.t8('Database name') %][% LxERP.t8('Database Host') %][% LxERP.t8('Database User') %][% LxERP.t8('Default client') %][% LxERP.t8('Task server') %]
[% L.link(SELF.url_for(action="edit_client", client_id=client.id), HTML.escape(client.name)) %][% HTML.escape(client.id) %][% L.link(SELF.url_for(action="edit_client", id=client.id), HTML.escape(client.id)) %][% L.link(SELF.url_for(action="edit_client", id=client.id), HTML.escape(client.name)) %] [% HTML.escape(client.dbname) %] [% HTML.escape(client.dbhost) %][% IF client.dbport %]:[%- HTML.escape(client.dbport) %][%- END %] [% HTML.escape(client.dbuser) %][% IF client.is_default %][% LxERP.t8("Yes") %][%- ELSE %][% LxERP.t8("No") %][%- END %] + [% IF client.task_server_user %] + [% LxERP.t8("execution as user '#1'", client.task_server_user.login) %] + [% ELSE %] + [% LxERP.t8("no execution for this client") %] + [% END %] +
+[%- END %] +
+ +
+[%- IF !SELF.all_groups.size %] +

+ [% LxERP.t8("No groups have been created yet.") %] + [% LxERP.t8("In order to use kivitendo you have to create at least a client, a user and a group.") %] +

+ +[%- ELSE %] + + + + + + +[%- FOREACH group = SELF.all_groups %] + + + [%- END %]
[% LxERP.t8('Name') %][% LxERP.t8('Description') %]
[% L.link(SELF.url_for(action="edit_group", id=group.id), HTML.escape(group.name)) %][% HTML.escape(group.description) %]