X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=templates%2Fwebpages%2Fadmin%2Fshow.html;h=2ae4acbd5e0002b32ef9bb5dd5ffced96e67fd8f;hb=77807bf531a9c3f945b2de1fc970439be5e95e70;hp=1f1a834ab2fc7745f2a57e2ac614fca7621ad2fe;hpb=9636227ee0ce9cb050db33573e523d68764ebde8;p=kivitendo-erp.git diff --git a/templates/webpages/admin/show.html b/templates/webpages/admin/show.html index 1f1a834ab..2ae4acbd5 100644 --- a/templates/webpages/admin/show.html +++ b/templates/webpages/admin/show.html @@ -2,45 +2,20 @@ [% INCLUDE 'common/flash.html' %] -

[% title %]

- -
- [% LxERP.t8("Actions") %]: - - [% L.link(SELF.url_for(action="new_user"), LxERP.t8("Add User")) %] - | - [% L.link(SELF.url_for(action="new_client"), LxERP.t8("Add Client")) %] - | - [% 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 %] @@ -51,7 +26,7 @@ [% LxERP.t8('Language') %] -[% FOREACH user = USERS %] +[% FOREACH user = SELF.all_users %] [%- SET config = user.config_values %] [% L.link(SELF.url_for(action="edit_user", id=user.id), HTML.escape(user.login)) %] @@ -64,31 +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 %] - + + -[%- FOREACH client = CLIENTS %] +[%- FOREACH client = SELF.all_clients %] + - + + +[%- END %] +
[% LxERP.t8('Client name') %] [% 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", 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.id) %] [% 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) %]