X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=templates%2Fwebpages%2Fadmin%2Fedit_user.html;h=1676be3137c9d3e05fa1827e5ff9869b6109b603;hb=75a140baf783b8d96e4e1d303111b79f5472233a;hp=3a8f129592d6201cde13fbce7c35316b58d56343;hpb=fa7fc7eeb3ca718914affee06c0629a08d571288;p=kivitendo-erp.git
diff --git a/templates/webpages/admin/edit_user.html b/templates/webpages/admin/edit_user.html
index 3a8f12959..1676be313 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' %]
@@ -40,7 +40,7 @@
[% LxERP.t8('Signature') %] |
- [% L.textarea_tag("user.config_values.signature", props.signature, rows=3, cols=35) %] |
+ [% L.textarea_tag("user.config_values.signature", props.signature, rows=3, cols=35, class="texteditor") %] |
@@ -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) %] |
@@ -157,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 %]
@@ -170,6 +165,16 @@
$("#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_user");