<br>
<input class="submit" type="submit" name="action" accesskey="s" value="<translate>Save</translate>">
<input class="submit" type="submit" name="action" accesskey="s" value="<translate>Save and Close</translate>">
- <input class="submit" type="submit" name="action" value="[% IF is_cumstomer %]<translate>Save and AR Transaction</translate>[% ELSE %]<translate>Save and AP Transaction</translate>[% END %]">
+ [%- IF is_cumstomer %]
+ <input class="submit" type="submit" name="action" value="<translate>Save and AR Transaction</translate>">
+ [%- ELSE %]
+ <input class="submit" type="submit" name="action" value="<translate>Save and AP Transaction</translate>">
+ [%- END %]
<input class="submit" type="submit" name="action" value="<translate>Save and Invoice</translate>">
<input class="submit" type="submit" name="action" value="<translate>Save and Order</translate>">
- <input class="submit" type="submit" name="action" value="[% IF is_customer %]<translate>Save and Quotation</translate>[% ELSE %]<translate>Save and RFQ</translate>[% END %]">
+ [%- IF is_customer %]
+ <input class="submit" type="submit" name="action" value="<translate>Save and Quotation</translate>">
+ [%- ELSE %]
+ <input class="submit" type="submit" name="action" value="<translate>Save and RFQ</translate>">
+ [%- END %]
[%- IF id AND is_orphaned %]
<input class="submit" type="submit" name="action" value="<translate>Delete</translate>">
[%- END %]
<script type="text/javascript">
<!--
- //Start Tab Content script for UL with id="maintab".
- initializetabcontent("maintab");
+ Calendar.setup({ inputField : "fromB", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger_from" });
+ Calendar.setup({ inputField : "toB", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger_to" });
+ Calendar.setup({ inputField : "FU_date", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "FU_date_trigger" });
+
+ 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); }
+
+ var maintab = new ddtabcontent("maintab");
+ maintab.setpersist(true);
+ maintab.setselectedClassTarget("link"); //"link" or "linkparent"
+ maintab.init();
+
-->
</script>
</body>