X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/91d2ef32ffae15f4b6e813b47e2e6d2b8a067456..69df38d39da1a1fcbf59ebc8f3ddd29a1f82ec29:/templates/webpages/admin/show.html diff --git a/templates/webpages/admin/show.html b/templates/webpages/admin/show.html index 1f1a834ab..734deaebd 100644 --- a/templates/webpages/admin/show.html +++ b/templates/webpages/admin/show.html @@ -11,13 +11,13 @@ | [% 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="new_group"), LxERP.t8("Add User Group")) %] | [% 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 %] + [% IF SELF.is_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")) %] @@ -34,13 +34,14 @@
-[%- 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 +52,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,10 +65,10 @@
-[%- 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 %] @@ -81,7 +82,7 @@ [% LxERP.t8('Default client') %] -[%- FOREACH client = CLIENTS %] +[%- FOREACH client = SELF.all_clients %] [% L.link(SELF.url_for(action="edit_client", id=client.id), HTML.escape(client.name)) %] [% HTML.escape(client.id) %] @@ -92,6 +93,30 @@ [%- 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) %]
[%- END %]