-<table>
- <tr class='listheading'>
- <th colspan="3">[% 'Posting Configuration' | $T8 %]</th>
- </tr>
- <tr>
- <td align="right">[% 'Payments Changeable' | $T8 %]</td>
- <td>[% L.select_tag('payments_changeable', SELF.payment_options, value_key => 'value', title_key => 'title', default => SELF.payments_changeable) %]</td>
- <td>[% 'Should payments be and when should they be changeable after posting?' | $T8 %]</td>
- </tr>
-</table>
+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);
+})
+ -->
+ </script>
+<h1>[% title | html %]</h1>