Layout: title Ausgabe normalisieren
[kivitendo-erp.git] / templates / webpages / dbupgrade / auth / clients.html
1 [%- USE LxERP -%][%- USE L -%]
2 <h1>[%- LxERP.t8("Introduction of clients") %]</h1>
3
4 [%- INCLUDE 'common/flash.html' %]
5
6 [% L.javascript_tag('jquery.selectboxes', 'jquery.multiselect2side') %]
7
8 <p>
9  [% LxERP.t8("kivitendo has been extended to handle multiple clients within a single installation.") %]
10  [% LxERP.t8("Therefore several settings that had to be made for each user in the past have been consolidated into the client configuration.") %]
11  [% LxERP.t8("You have to grant users access to one or more clients.") %]
12  [% LxERP.t8("The user can chose which client to connect to during login.") %]
13 </p>
14
15 <p>
16  [% LxERP.t8("The access rights a user has within a client instance is still governed by his group membership.") %]
17  [% LxERP.t8("Only groups that have been configured for the client the user logs in to will be considered.") %]
18 </p>
19
20 <p>
21  [% LxERP.t8("The following list has been generated automatically from existing users collapsing users with identical settings into a single entry.") %]
22  [% LxERP.t8("Please select which client configurations you want to create.") %]
23  [% LxERP.t8("The 'name' is the field shown to the user during login.") %]
24  [% LxERP.t8("It can be changed later but must be unique within the installation.") %]
25 </p>
26
27 <form method="post" action="controller.pl">
28  [%- FOREACH client = SELF.clients %]
29  [%- L.hidden_tag("clients[+].dummy", 1) %]
30
31  <h2>[%- L.checkbox_tag("clients[].enabled", label=LxERP.t8("Create new client #1", loop.count), checked=client.enabled) %]</h2>
32
33  <table>
34   <tr>
35    <th colspan="6">[%- LxERP.t8("General settings") %]</th>
36   </tr>
37
38   <tr>
39    <td align="right" valign="top">[%- LxERP.t8("Client name") %]:</td>
40    <td valign="top">[%- L.input_tag("clients[].name", client.name) %]</td>
41
42    <td align="right" valign="top">[%- LxERP.t8("Company name") %]:</td>
43    <td valign="top">[%- L.input_tag("clients[].company", client.company) %]</td>
44
45    <td align="right" valign="top">[%- LxERP.t8("Address") %]:</td>
46    <td valign="top">[%- L.textarea_tag("clients[].address", client.address, rows=4, cols=40) %]</td>
47   </tr>
48
49   <tr>
50    <td align="right">[%- LxERP.t8("Tax number") %]:</td>
51    <td>[%- L.input_tag("clients[].taxnumber", client.taxnumber) %]</td>
52
53    <td align="right">[%- LxERP.t8("VAT ID") %]:</td>
54    <td>[%- L.input_tag("clients[].co_ustid", client.co_ustid) %]</td>
55
56    <td align="right">[%- LxERP.t8("DUNS-Nr") %]:</td>
57    <td>[%- L.input_tag("clients[].duns", client.duns) %]</td>
58   </tr>
59
60   <tr>
61    <td align="right">[%- LxERP.t8("SEPA creditor ID") %]:</td>
62    <td colspan="5">[%- L.input_tag("clients[].sepa_creditor_id", client.sepa_creditor_id) %]</td>
63   </tr>
64
65   <tr>
66    <td align="right">[%- LxERP.t8("Print templates") %]:</td>
67    <td colspan="5">[%- L.select_tag("clients[].templates", SELF.templates, default=client.templates) %]</td>
68   </tr>
69
70   <tr>
71    <th colspan="6">[%- LxERP.t8("User access") %]</th>
72   </tr>
73
74   <tr>
75    <td valign="top">[%- LxERP.t8("Users with access to this client") %]:</td>
76
77    <td valign="top" colspan="6" class="clearfix">
78     [% L.select_tag('clients[].users[]', SELF.users, id='users_multi_' _ loop.count, value_key='id', title_key='login', default=client.users, multiple=1) %]
79    </td>
80   </tr>
81
82   <tr>
83    <td valign="top">[%- LxERP.t8("Groups that are valid for this client for access rights") %]:</td>
84
85    <td valign="top" colspan="6" class="clearfix">
86     [% L.select_tag('clients[].groups[]', SELF.groups, id='groups_multi_' _ loop.count, value_key='id', title_key='name', default=client.groups, multiple=1) %]
87    </td>
88   </tr>
89
90   <tr>
91    <th colspan="6">[%- LxERP.t8("Database settings") %]</th>
92   </tr>
93
94   <tr>
95    <td align="right">[%- LxERP.t8("Database Host") %]:</td>
96    <td>[%- L.input_tag("clients[].dbhost", client.dbhost) %]</td>
97
98    <td align="right">[%- LxERP.t8("Port") %]:</td>
99    <td>[%- L.input_tag("clients[].dbport", (client.dbport || 5432)) %]</td>
100
101    <td align="right">[%- LxERP.t8("Database name") %]:</td>
102    <td>[%- L.input_tag("clients[].dbname", client.dbname) %]</td>
103   </tr>
104
105   <tr>
106    <td align="right">[%- LxERP.t8("User") %]:</td>
107    <td>[%- L.input_tag("clients[].dbuser", client.dbuser) %]</td>
108
109    <td align="right">[%- LxERP.t8("Password") %]:</td>
110    <td>[%- L.input_tag("clients[].dbpasswd", client.dbpasswd) %]</td>
111   </tr>
112
113  </table>
114
115  [% L.multiselect2side('users_multi_'  _ loop.count, labelsx => LxERP.t8('All users'),  labeldx => LxERP.t8('Users with access')) %]
116  [% L.multiselect2side('groups_multi_' _ loop.count, labelsx => LxERP.t8('All groups'), labeldx => LxERP.t8('Groups valid for this client')) %]
117  [%- END %]
118
119  <p>
120   [%- L.hidden_tag('action', 'Admin/apply_dbupgrade_scripts') %]
121   [% L.submit_tag('dummy', LxERP.t8('Continue')) %]
122  </p>
123 </form>