1 [%- USE HTML %][%- USE LxERP -%][%- USE L -%]
 
   3 [% INCLUDE 'common/flash.html' %]
 
   5 <h1>[% HTML.escape(title) %]</h1>
 
   7 <div class="tabwidget">
 
   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>
 
  15 [%- IF !SELF.all_users.size %]
 
  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.") %]
 
  23    <tr class="listheading">
 
  24     <th>[% LxERP.t8('Login Name') %]</th>
 
  25     <th>[% LxERP.t8('Name') %]</th>
 
  26     <th>[% LxERP.t8('Language') %]</th>
 
  29 [% FOREACH user = SELF.all_users %]
 
  30 [%- SET config = user.config_values %]
 
  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>
 
  41  <div id="client_list">
 
  42 [%- IF !SELF.all_clients.size %]
 
  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.") %]
 
  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>
 
  60 [%- FOREACH client = SELF.all_clients %]
 
  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>
 
  69      [% IF client.task_server_user %]
 
  70       [% LxERP.t8("execution as user '#1'", client.task_server_user.login) %]
 
  72       [% LxERP.t8("no execution for this client") %]
 
  82 [%- IF !SELF.all_groups.size %]
 
  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.") %]
 
  90    <tr class="listheading">
 
  91     <th>[% LxERP.t8('Name') %]</th>
 
  92     <th>[% LxERP.t8('Description') %]</th>
 
  95 [%- FOREACH group = SELF.all_groups %]
 
  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>