Projekt

Allgemein

Profil

Herunterladen (2,89 KB) Statistiken
| Zweig: | Markierung: | Revision:
288111da Moritz Bunkus
[%- USE HTML %][%- USE LxERP -%][%- USE L -%]

[% INCLUDE 'common/flash.html' %]

44d893c2 Moritz Bunkus
<h1>[% HTML.escape(title) %]</h1>
288111da Moritz Bunkus
<div class="tabwidget">
<ul>
<li><a href="#user_list">[%- LxERP.t8("User list") %]</a></li>
<li><a href="#client_list">[%- LxERP.t8("Client list") %]</a></li>
69df38d3 Moritz Bunkus
<li><a href="#group_list">[%- LxERP.t8("Group list") %]</a></li>
288111da Moritz Bunkus
</ul>

<div id="user_list">
69df38d3 Moritz Bunkus
[%- IF !SELF.all_users.size %]
288111da Moritz Bunkus
<p>
[% LxERP.t8("No users have been created yet.") %]
69df38d3 Moritz Bunkus
[% LxERP.t8("In order to use kivitendo you have to create at least a client, a user and a group.") %]
288111da Moritz Bunkus
</p>

[%- ELSE %]
<table width="100%">
9636227e Moritz Bunkus
<tr class="listheading">
<th>[% LxERP.t8('Login Name') %]</th>
<th>[% LxERP.t8('Name') %]</th>
<th>[% LxERP.t8('Language') %]</th>
288111da Moritz Bunkus
</tr>

69df38d3 Moritz Bunkus
[% FOREACH user = SELF.all_users %]
288111da Moritz Bunkus
[%- SET config = user.config_values %]
<tr class="listrow">
<td>[% L.link(SELF.url_for(action="edit_user", id=user.id), HTML.escape(user.login)) %]</td>
<td>[% HTML.escape(config.name) %]</td>
<td>[% HTML.escape(config.countrycode) %]</td>
</tr>
[% END %]
</table>
[%- END %]
</div>

<div id="client_list">
69df38d3 Moritz Bunkus
[%- IF !SELF.all_clients.size %]
288111da Moritz Bunkus
<p>
[% LxERP.t8("No clients have been created yet.") %]
69df38d3 Moritz Bunkus
[% LxERP.t8("In order to use kivitendo you have to create at least a client, a user and a group.") %]
288111da Moritz Bunkus
</p>

[%- ELSE %]
<table width="100%">
9636227e Moritz Bunkus
<tr class="listheading">
<th>[% LxERP.t8('Database ID') %]</th>
c7b3c213 Moritz Bunkus
<th>[% LxERP.t8('Client name') %]</th>
9636227e Moritz Bunkus
<th>[% LxERP.t8('Database name') %]</th>
<th>[% LxERP.t8('Database Host') %]</th>
<th>[% LxERP.t8('Database User') %]</th>
<th>[% LxERP.t8('Default client') %]</th>
288111da Moritz Bunkus
</tr>

69df38d3 Moritz Bunkus
[%- FOREACH client = SELF.all_clients %]
288111da Moritz Bunkus
<tr class="listrow">
c7b3c213 Moritz Bunkus
<td>[% L.link(SELF.url_for(action="edit_client", id=client.id), HTML.escape(client.id)) %]</td>
9636227e Moritz Bunkus
<td>[% L.link(SELF.url_for(action="edit_client", id=client.id), HTML.escape(client.name)) %]</td>
288111da Moritz Bunkus
<td>[% HTML.escape(client.dbname) %]</td>
<td>[% HTML.escape(client.dbhost) %][% IF client.dbport %]:[%- HTML.escape(client.dbport) %][%- END %]</td>
<td>[% HTML.escape(client.dbuser) %]</td>
9636227e Moritz Bunkus
<td>[% IF client.is_default %][% LxERP.t8("Yes") %][%- ELSE %][% LxERP.t8("No") %][%- END %]</td>
288111da Moritz Bunkus
</tr>
[%- END %]
</table>
69df38d3 Moritz Bunkus
[%- END %]
</div>

<div id="group_list">
[%- IF !SELF.all_groups.size %]
<p>
[% 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.") %]
</p>

[%- ELSE %]
<table width="100%">
<tr class="listheading">
<th>[% LxERP.t8('Name') %]</th>
<th>[% LxERP.t8('Description') %]</th>
</tr>

[%- FOREACH group = SELF.all_groups %]
<tr class="listrow">
<td>[% L.link(SELF.url_for(action="edit_group", id=group.id), HTML.escape(group.name)) %]</td>
<td>[% HTML.escape(group.description) %]</td>
</tr>
[%- END %]
</table>
288111da Moritz Bunkus
[%- END %]
</div>
</div>