]> wagnertech.de Git - mfinanz.git/blobdiff - templates/webpages/admin/edit_client.html
CustomerVendor: Umleitungs-URL mit url_for erzeugen
[mfinanz.git] / templates / webpages / admin / edit_client.html
index 392b6c4e524d5ed2d004dcaf4fa3b9858b5102b3..dc5ca4585c9394126376d1efb5c5bc7bc88a9e4e 100644 (file)
  <h2>[%- LxERP.t8("Settings") %]</h2>
 
  <table>
+[%- IF SELF.client.id %]
+  <tr>
+   <th align="right">[% LxERP.t8('Database ID') %]</th>
+   <td>[%- HTML.escape(SELF.client.id) %]</td>
+  </tr>
+[%- END %]
+
   <tr>
    <th align="right">[% LxERP.t8('Client name') %]</th>
-   <td>[% L.input_tag("client.name", SELF.client.name) %]</td>
+   <td>[% L.input_tag("client.name", SELF.client.name, class="initial_focus") %]</td>
   </tr>
 
   <tr>
 
   <tr>
    <th align="right">[% LxERP.t8('Database name') %]</th>
-   <td>[% L.input_tag("client.dbname", SELF.client.dbname, 'data-dbsettings'=1) %]</td>
+   <td>[% L.input_tag("client.dbname", SELF.client.dbname, class="contains_dbsettings") %]</td>
   </tr>
 
   <tr>
    <th align="right">[% LxERP.t8('Database host and port') %]</th>
    <td>
-    [% L.input_tag("client.dbhost", SELF.client.dbhost, 'data-dbsettings'=1) %]
-    [% L.input_tag("client.dbport", SELF.client.dbport, 'data-dbsettings'=1, size=6) %]
+    [% L.input_tag("client.dbhost", SELF.client.dbhost, class="contains_dbsettings") %]
+    [% L.input_tag("client.dbport", SELF.client.dbport, class="contains_dbsettings", size=6) %]
    </td>
   </tr>
 
   <tr>
    <th align="right">[% LxERP.t8('Database user and password') %]</th>
    <td>
-    [% L.input_tag("client.dbuser",   SELF.client.dbuser, 'data-dbsettings'=1) %]
-    [% L.input_tag("client.dbpasswd", SELF.client.dbpasswd, 'data-dbsettings'=1) %]
+    [% L.input_tag("client.dbuser",   SELF.client.dbuser, class="contains_dbsettings") %]
+    [% L.input_tag("client.dbpasswd", SELF.client.dbpasswd, class="contains_dbsettings") %]
    </td>
   </tr>
  </table>
@@ -58,7 +65,7 @@
  </p>
 
  <div class="clearfix">
-  [% L.select_tag("client.users[]", SELF.all_users, id="client_users", title_key="login", default=SELF.client.users, default_key='id', multiple=1) %]
+  [% L.select_tag("client.users[]", SELF.all_users, id="client_users", title_key="login", default=SELF.client.users, default_value_key='id', multiple=1) %]
   [% L.multiselect2side("client_users", labelsx => LxERP.t8("All users"), labeldx => LxERP.t8("Users that have access to this client")) %]
  </div>
 
@@ -76,7 +83,7 @@
  </p>
 
  <div class="clearfix">
-  [% L.select_tag("client.groups[]", SELF.all_groups, id="client_groups", title_key="name", default=SELF.client.groups, default_key='id', multiple=1) %]
+  [% L.select_tag("client.groups[]", SELF.all_groups, id="client_groups", title_key="name", default=SELF.client.groups, default_value_key='id', multiple=1) %]
   [% L.multiselect2side("client_groups", labelsx => LxERP.t8("All groups"), labeldx => LxERP.t8("Groups valid for this client")) %]
  </div>
 
   function test_database_connectivity() {
     open_jqm_window({
       url:  'controller.pl?action=Admin/test_database_connectivity',
-      data: $("INPUT[data-dbsettings=1]").serialize(),
-      type: 'POST'
+      data: $(".contains_dbsettings").serialize(),
+      type: 'POST',
+      id:   'test_db_connection_window'
     });
     return true;
   }