X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=inline;f=templates%2Fwebpages%2Fadmin%2Fedit_user.html;h=1a90d3f29adce7ab85f1a65c0ede3fcc7452a4b5;hb=915cb1a4ccd73c8795b5b5eb69d0719dfc331e59;hp=5ecd92673f3ff5b25394f477d02ed77197b4860b;hpb=9bfde8af91ac295afb6e68b8580f000fd6051f15;p=kivitendo-erp.git
diff --git a/templates/webpages/admin/edit_user.html b/templates/webpages/admin/edit_user.html
index 5ecd92673..1a90d3f29 100644
--- a/templates/webpages/admin/edit_user.html
+++ b/templates/webpages/admin/edit_user.html
@@ -1,5 +1,5 @@
[%- USE HTML %]
-[%- USE L %][%- USE LxERP -%]
+[%- USE L %][%- USE LxERP -%][%- USE JavaScript -%]
[%- INCLUDE 'common/flash.html' %]
@@ -67,11 +67,6 @@
[% L.select_tag("user.config_values.numberformat", SELF.all_numberformats, default=props.numberformat) %] |
-
- [% LxERP.t8("Dropdown Limit") %] |
- [% L.input_tag("user.config_values.vclimit", props.vclimit) %] |
-
-
[% LxERP.t8("Language") %] |
[% L.select_tag("user.config_values.countrycode", SELF.all_countrycodes, title_key="title", default=props.countrycode) %] |
@@ -99,6 +94,20 @@
+ [%- LxERP.t8("CTI settings") %]
+
+
+
+ [% LxERP.t8("Phone extension") %] |
+ [% L.input_tag("user.config_values.phone_extension", props.phone_extension) %] |
+
+
+
+ [% LxERP.t8("Phone password") %] |
+ [% L.input_tag("user.config_values.phone_password", props.phone_password) %] |
+
+
+
[%- LxERP.t8("Access to clients") %]
[% IF SELF.all_clients.size %]
@@ -143,7 +152,7 @@
[% L.button_tag("submit_with_action('save_user')", LxERP.t8("Save")) %]
[% IF SELF.user.id %]
[% L.button_tag("save_as_new()", LxERP.t8("Save as new")) %]
- [% L.button_tag("submit_with_action('delete_user')", LxERP.t8("Delete"), confirm=LxERP.t8("Are you sure?")) %]
+ [% L.button_tag("submit_delete()", LxERP.t8("Delete"), confirm=LxERP.t8("Are you sure?")) %]
[%- END %]
@@ -156,9 +165,19 @@
$("#form").submit();
}
+ function submit_delete() {
+[% SET used_for_task_server_in_clients = SELF.is_user_used_for_task_server(SELF.user) %]
+[% IF used_for_task_server_in_clients %]
+ alert('[% JavaScript.escape(LxERP.t8('The user cannot be deleted as it is used in the following clients: #1', used_for_task_server_in_clients)) %]');
+ return false;
+[% ELSE %]
+ submit_with_action('delete_user');
+[% END %]
+ }
+
function save_as_new() {
$("#user_id").val("");
- submit_with_action("save_newuser");
+ submit_with_action("save_user");
}
-->