]> wagnertech.de Git - mfinanz.git/blobdiff - templates/webpages/ct/form_footer.html
Nicht mehr benötigten Code aus bin/ct.pl entfernt
[mfinanz.git] / templates / webpages / ct / form_footer.html
diff --git a/templates/webpages/ct/form_footer.html b/templates/webpages/ct/form_footer.html
deleted file mode 100644 (file)
index 8df9c7e..0000000
+++ /dev/null
@@ -1,69 +0,0 @@
-[%- USE T8 %]
-[% USE HTML %]
-[% USE LxERP %]
-[% USE L %]
-<input name="id" type="hidden" id="cvid" value="[% HTML.escape(id) %]">
-<input name="business_save" type="hidden" value="[% HTML.escape(selectbusiness) %]">
-<input name="title_save" type="hidden" value="[% HTML.escape(title) %]">
-
-<input type="hidden" name="callback" value="[% HTML.escape(callback) %]">
-<input type="hidden" name="db" id="db" value="[% HTML.escape(db) %]">
-
-<br>
-  <input class="submit" type="submit" name="action" accesskey="s" value="[% 'Save' | $T8 %]" onclick="return check_taxzone_and_ustid()">
-  <input class="submit" type="submit" name="action" accesskey="s" value="[% 'Save and Close' | $T8 %]" onclick="return check_taxzone_and_ustid()">
-  [%- IF is_customer %]
-  <input class="submit" type="submit" name="action" value="[% 'Save and AR Transaction' | $T8 %]" onclick="return check_taxzone_and_ustid()">
-  [%- ELSE %]
-  <input class="submit" type="submit" name="action" value="[% 'Save and AP Transaction' | $T8 %]" onclick="return check_taxzone_and_ustid()">
-  [%- END %]
-  <input class="submit" type="submit" name="action" value="[% 'Save and Invoice' | $T8 %]" onclick="return check_taxzone_and_ustid()">
-  <input class="submit" type="submit" name="action" value="[% 'Save and Order' | $T8 %]" onclick="return check_taxzone_and_ustid()">
-  [%- IF is_customer %]
-  <input class="submit" type="submit" name="action" value="[% 'Save and Quotation' | $T8 %]" onclick="return check_taxzone_and_ustid()">
-  [%- ELSE %]
-  <input class="submit" type="submit" name="action" value="[% 'Save and RFQ' | $T8 %]" onclick="return check_taxzone_and_ustid()">
-  [%- END %]
-[%- IF id AND is_orphaned %]
-  [% L.submit_tag('action', LxERP.t8('Delete'), id => 'action_delete', confirm => LxERP.t8('Do you really want to delete this object?')) %]
-[%- END %]
-[%- IF id %]
-  <input type="button" class="submit" onclick="set_history_window([% HTML.escape(id) %]);" name="history" id="history" value="[% 'history' | $T8 %]">
-[%- END %]
-
-  </form>
-
- <script type="text/javascript">
-  <!--
-      function enable_delete_shipto(used) { var s=document.getElementById('delete_shipto');  if (s) s.disabled = (used > 0 ? true : false); }
-      function enable_delete_contact(used){ var s=document.getElementById('delete_contact'); if (s) s.disabled = (used > 0 ? true : false); }
-
-      function submitInputButton(button)
-      {
-        var hidden = document.createElement("input");
-        hidden.setAttribute("type", "hidden");
-
-        if( button.hasAttribute("name") )
-          hidden.setAttribute("name", button.getAttribute("name"));
-
-        if( button.hasAttribute("value") )
-          hidden.setAttribute("value", button.getAttribute("value"));
-
-
-        button.form.appendChild(hidden);
-
-        button.disabled = true;
-
-        button.form.submit();
-      }
-
-      function check_taxzone_and_ustid() {
-        if (($('#taxzone_id').val() == '1') && ($('#ustid').val() == '')) {
-          alert('[% LxERP.t8('Please enter the sales tax identification number.') %]');
-          return false;
-        }
-        return true;
-      }
-
-    -->
- </script>