X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/6af007aef5ff57abc085bf61c6b2d228baac7b25..ba52ee60:/templates/webpages/client_config/form.html diff --git a/templates/webpages/client_config/form.html b/templates/webpages/client_config/form.html index 17b5a7fd6..58d2789a0 100644 --- a/templates/webpages/client_config/form.html +++ b/templates/webpages/client_config/form.html @@ -33,9 +33,18 @@ function warehouse_selected(warehouse_id, bin_id, bin_id_name) { }); } +function enable_template_controls() { + var existing = $('#use_templates_existing').prop('checked'); + $('#defaults_templates').prop('disabled', !existing); + $('#new_templates,#new_master_templates').prop('disabled', existing); +} + $(function() { warehouse_selected([% SELF.defaults.warehouse_id || -1 %], [% SELF.defaults.bin_id || -1 %], 'bin_id'); warehouse_selected([% SELF.defaults.warehouse_id_ignore_onhand || -1 %], [% SELF.defaults.bin_id_ignore_onhand || -1 %], 'bin_id_ignore_onhand'); + + enable_template_controls(); + $('#use_templates_existing,#use_templates_new').change(enable_template_controls); }) --> @@ -53,6 +62,7 @@ $(function() {
  • [% LxERP.t8('DATEV check configuration') %]
  • [% LxERP.t8('Orders / Delivery Orders deleteable') %]
  • [% LxERP.t8('Warehouse') %]
  • +
  • [% LxERP.t8('Features') %]
  • [% PROCESS 'client_config/_ranges_of_numbers.html' %] @@ -61,6 +71,7 @@ $(function() { [% PROCESS 'client_config/_datev_check_configuration.html' %] [% PROCESS 'client_config/_orders_deleteable.html' %] [% PROCESS 'client_config/_warehouse.html' %] +[% PROCESS 'client_config/_features.html' %] [% PROCESS 'client_config/_miscellaneous.html' %]