X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Fclient_config%2Fform.html;h=79c2cdde90cb3a9f312c054ecc7e21fa5d55fcd7;hb=53593baa211863fbf66540cf1bcc36c8fb37257f;hp=56403108a0be1c258846945d1878d21a3a2e44ba;hpb=152cf51294705caacdc3d3f2621af4d3f4997772;p=kivitendo-erp.git diff --git a/templates/webpages/client_config/form.html b/templates/webpages/client_config/form.html index 56403108a..79c2cdde9 100644 --- a/templates/webpages/client_config/form.html +++ b/templates/webpages/client_config/form.html @@ -38,20 +38,45 @@ function enable_template_controls() { $('#new_templates,#new_master_templates').prop('disabled', existing); } +function verifyMBSize(elem) { + var fsize = parseInt($('#doc_max_filesize_MB').val()); + $('#defaults_doc_max_filesize').val(fsize*1000000.0); + $('#doc_max_filesize_MB').val(fsize); +} + +function verifyRootPath(elem) { + if ( elem.value == "" ) { + elem.value="./documents"; + } +} + +function checkavailable_filebackend(elem) { + var selval = elem.value; + if ( selval == 'Webdav' && $("#defaults_doc_webdav").val() == 0 ) { + elem.value = 'Filesystem'; + } + if ( elem.value == 'Filesystem' && $("#defaults_doc_files").val() == 0 ) { + elem.value = 'None'; + } + return false; +} + $(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'); + warehouse_selected([% SELF.defaults.stocktaking_warehouse_id || -1 %], [% SELF.defaults.stocktaking_bin_id || -1 %], 'stocktaking_bin_id'); enable_template_controls(); + $('#doc_max_filesize_MB').val(parseInt($('#defaults_doc_max_filesize').val())/1000000.0); $('#use_templates_existing,#use_templates_new').change(enable_template_controls); }) -->

[% title | html %]

-[% PROCESS 'common/flash.html' %] +[% INCLUDE 'common/flash.html' %] -
+
[% PROCESS 'client_config/_ranges_of_numbers.html' %] @@ -71,13 +101,13 @@ $(function() { [% PROCESS 'client_config/_posting_configuration.html' %] [% PROCESS 'client_config/_datev_check_configuration.html' %] [% PROCESS 'client_config/_orders_deleteable.html' %] +[%- IF INSTANCE_CONF.get_doc_storage %] +[% PROCESS 'client_config/_attachments.html' %] +[%- END %] [% PROCESS 'client_config/_warehouse.html' %] [% PROCESS 'client_config/_features.html' %] +[% PROCESS 'client_config/_stocktaking.html' %] +[% PROCESS 'client_config/_record_links.html' %] [% PROCESS 'client_config/_miscellaneous.html' %] - -
- [%- L.hidden_tag('action', 'ClientConfig/dispatch') %] - [%- L.submit_tag('action_save', LxERP.t8('Save')) %]
-