kivi.Part.js: real_id wird nicht mehr benötigt
[kivitendo-erp.git] / templates / webpages / generic / calculate_qty.html
index 73dd750..110ed41 100644 (file)
@@ -1,5 +1,6 @@
 [%- USE T8 %]
-[% USE HTML %]<body onload="[% onload %]">
+[%- USE HTML %]
+<h1>[% title %]</h1>
 
  <form name="Form">
 
@@ -7,11 +8,6 @@
   <input type="hidden" name="input_id" value="[% HTML.escape(input_id) %]">
 
   <table width="100%">
-   <tr>
-    <th class="listtop">[% title %]</th>
-   </tr>
-   <tr height="5"></tr>
-
    <tr><td>[% 'Please insert object dimensions below.' | $T8 %]</td></tr>
 
    <tr>
  <script type="text/javascript">
    function calculate_qty() {
 [%- FOREACH row = VARIABLES %]
-     var [% row.name %] = parse_amount('[% myconfig.numberformat %]', document.getElementsByName("[% row.name %]")[0].value);
+     var [% row.name %] = parse_amount('[% MYCONFIG.numberformat %]', document.getElementsByName("[% row.name %]")[0].value);
 [%- END %]
      var result = [% formel %];
-     result = number_format(result, 2, '[% myconfig.numberformat %]');
+     result = number_format(result, 2, '[% MYCONFIG.numberformat %]');
      window.opener.document.getElementsByName(document.Form.input_name.value)[0].value = result;
      self.close();
    }
@@ -87,5 +83,3 @@
    }
  </script>
 
-</body>
-</html>