epic-ts
[kivitendo-erp.git] / templates / webpages / admin / edit_user.html
index f8154bf..3a8f129 100644 (file)
@@ -5,8 +5,6 @@
 
 <h1>[% HTML.escape(title) %]</h1>
 
-<p>[% L.link(SELF.url_for(action="show"), LxERP.t8("Back")) %]</p>
-
 <form method="post" action="controller.pl" id="form">
  [% L.hidden_tag("user.id", SELF.user.id) %]
  [% L.hidden_tag("action", "") %]
@@ -20,7 +18,7 @@
     <table>
      <tr>
       <th align="right">[% LxERP.t8('Login Name') %]</th>
-      <td>[% L.input_tag("user.login", SELF.user.login) %]</td>
+      <td>[% L.input_tag("user.login", SELF.user.login, class="initial_focus") %]</td>
      </tr>
 
      [%- IF AUTH.can_change_password %]
   </tr>
  </table>
 
+ <h2>[%- LxERP.t8("CTI settings") %]</h2>
+
+ <table>
+  <tr>
+   <th align="right">[% LxERP.t8("Phone extension") %]</th>
+   <td>[% L.input_tag("user.config_values.phone_extension", props.phone_extension) %]</td>
+  </tr>
+
+  <tr>
+   <th align="right">[% LxERP.t8("Phone password") %]</th>
+   <td>[% L.input_tag("user.config_values.phone_password", props.phone_password) %]</td>
+  </tr>
+ </table>
+
  <h2>[%- LxERP.t8("Access to clients") %]</h2>
 
 [% IF SELF.all_clients.size %]
   }
 
   function save_as_new() {
-    var new_user_login = prompt("[% LxERP.t8("Please enter the login for the new user.") %]", "");
-    if (!new_user_login)
-      return;
-
-    $("#user_login").val(new_user_login);
     $("#user_id").val("");
     submit_with_action("save_user");
   }