X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Fadmin%2Fshow.html;h=7189665d4757ecc1df7aba5a13453a8c1d1e6dcd;hb=0c31c55d2a8ff03f2d6252d7a6cd1f4fded5ec12;hp=1f1a834ab2fc7745f2a57e2ac614fca7621ad2fe;hpb=9636227ee0ce9cb050db33573e523d68764ebde8;p=kivitendo-erp.git diff --git a/templates/webpages/admin/show.html b/templates/webpages/admin/show.html index 1f1a834ab..7189665d4 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,27 +39,27 @@
-[%- 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 %] + - @@ -92,6 +67,30 @@ [%- 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') %]
[% 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) %]
+[%- 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 %]