sub form_footer {
$lxdebug->enter_sub();
- $label = ucfirst $form->{db};
- $quotation =
- ($form->{db} eq 'customer')
- ? $locale->text('Save and Quotation')
- : $locale->text('Save and RFQ');
- $arap =
- ($form->{db} eq 'customer')
- ? $locale->text('Save and AR Transaction')
- : $locale->text('Save and AP Transaction');
-
-##<input class=submit type=submit name=action value="|.$locale->text("Save and Quotation").qq|">
-##<input class=submit type=submit name=action value="|.$locale->text("Save and RFQ").qq|">
-##<input class=submit type=submit name=action value="|.$locale->text("Save and AR Transaction").qq|">
-##<input class=submit type=submit name=action value="|.$locale->text("Save and AP Transaction").qq|">
-
- print qq|
-<input name=id type=hidden id=cvid value=$form->{id}>
-<input name=business_save type=hidden value="$form->{selectbusiness}">
-<input name=title_save type=hidden value="$form->{title}">
-
-<input type=hidden name=login value=$form->{login}>
-<input type=hidden name=password value=$form->{password}>
-
-<input type=hidden name=callback value="$form->{callback}">
-<input type=hidden name=db id=db value=$form->{db}>
-
-
-
-<br>
-<input class=submit type=submit name=action accesskey="s" value="|
- . $locale->text("Save") . qq|">
-<input class=submit type=submit name=action accesskey="s" value="|
- . $locale->text("Save and Close") . qq|">
-<input class=submit type=submit name=action value="$arap">
-<input class=submit type=submit name=action value="|
- . $locale->text("Save and Invoice") . qq|">
-<input class=submit type=submit name=action value="|
- . $locale->text("Save and Order") . qq|">
-<input class=submit type=submit name=action value="$quotation">
-|;
-
- if ($form->{id} && $form->{status} eq 'orphaned') {
- print qq|<input class=submit type=submit name=action value="|
- . $locale->text('Delete')
- . qq|">\n|;
- }
-
- # button for saving history
- if($form->{id} ne "") {
- print qq|
- <input type=button class=submit onclick=set_history_window(|
- . $form->{id}
- . qq|); name=history id=history value=|
- . $locale->text('history')
- . qq|>|;
- }
- # /button for saving history
-
- print qq|
-
- </form>
-<script type="text/javascript">
-//Start Tab Content script for UL with id="maintab" Separate multiple ids each with a comma.
-initializetabcontent("maintab")
-</script>
-</body>
-</html>
-|;
-
+ print $form->parse_html_template('ct/form_footer', { is_orphaned => $form->{status} eq 'orphaned',
+ is_customer => $form->{db} eq 'customer' });
$lxdebug->leave_sub();
}
'DUNNING STARTED' => 'Mahnprozess gestartet',
'Dataset upgrade' => 'Datenbankaktualisierung',
'Date' => 'Datum',
- 'Delete' => 'Löschen',
'Dependency loop detected:' => 'Schleife in den Abhängigkeiten entdeckt:',
'Description' => 'Beschreibung',
'Directory' => 'Verzeichnis',
'SCREENED' => 'Angezeigt',
'SIC' => 'SIC',
'Sales Order' => 'Kundenauftrag',
- 'Save' => 'Speichern',
- 'Save and AP Transaction' => 'Speichern und Kreditorenbuchung erfassen',
- 'Save and AR Transaction' => 'Speichern und Debitorenbuchung erfassen',
- 'Save and Close' => 'Speichern und schließen',
- 'Save and Invoice' => 'Speichern und Rechnung erfassen',
- 'Save and Order' => 'Speichern und Auftrag erfassen',
- 'Save and Quotation' => 'Speichern und Angebot',
- 'Save and RFQ' => 'Speichern und Lieferantenanfrage',
'Select a Customer' => 'Endkunde auswählen',
'Select a customer' => 'Einen Kunden auswählen',
'Select a part' => 'Artikel auswählen',
'customer' => 'Kunde',
'customer_list' => 'kundenliste',
'customernumber not unique!' => 'Die Kundennummer ist schon vergeben',
- 'history' => 'Historie',
'invoice' => 'Rechnung',
'no' => 'nein',
'packing_list' => 'Versandliste',
'weiter' => 'continue',
'löschen' => 'delete',
'speichern' => 'save',
- 'speichern_und_kreditorenbuchung_erfassen' => 'save_and_ap_transaction',
'speichern_und_debitorenbuchung_erfassen' => 'save_and_ar_transaction',
'speichern_und_schließen' => 'save_and_close',
'speichern_und_rechnung_erfassen' => 'save_and_invoice',
'speichern_und_auftrag_erfassen' => 'save_and_order',
'speichern_und_angebot' => 'save_and_quotation',
- 'speichern_und_lieferantenanfrage' => 'save_and_rfq',
};
1;
--- /dev/null
+
+<input name=id type=hidden id=cvid value=[% id %]>
+<input name=business_save type=hidden value="[% selectbusiness %]">
+<input name=title_save type=hidden value="[% title %]">
+
+<input type=hidden name=login value=[% login %]>
+<input type=hidden name=password value=[% password %]>
+
+<input type=hidden name=callback value="[% callback %]">
+<input type=hidden name=db id=db value=[% db %]>
+
+<br>
+ <input class=submit type=submit name=action accesskey="s" value="Speichern">
+ <input class=submit type=submit name=action accesskey="s" value="Speichern und schließen">
+ <input class=submit type=submit name=action value=" [% IF is_cumstomer %]Speichern und Debitorenbuchung erfassen[% ELSE %]Speichern und Kreditorenbuchung erfassen[% END %]">
+ <input class=submit type=submit name=action value="Speichern und Rechnung erfassen">
+ <input class=submit type=submit name=action value="Speichern und Auftrag erfassen">
+ <input class=submit type=submit name=action value="[% IF is_customer %]Speichern und Angebot[% ELSE %]Speichern und Lieferantenanfrage[% END %]">
+[%- IF id AND is_orphaned %]
+ <input class=submit type=submit name=action value="Löschen">
+[%- END %]
+[%- IF id %]
+ <input type=button class=submit onclick=set_history_window([% id %]); name=history id=history value=Historie>|;
+[%- END %]
+
+ </form>
+<script type="text/javascript">
+//Start Tab Content script for UL with id="maintab" Separate multiple ids each with a comma.
+initializetabcontent("maintab")
+</script>
+</body>
+</html>
--- /dev/null
+
+<input name=id type=hidden id=cvid value=[% id %]>
+<input name=business_save type=hidden value="[% selectbusiness %]">
+<input name=title_save type=hidden value="[% title %]">
+
+<input type=hidden name=login value=[% login %]>
+<input type=hidden name=password value=[% password %]>
+
+<input type=hidden name=callback value="[% callback %]">
+<input type=hidden name=db id=db value=[% db %]>
+
+<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 %]">
+ <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 id AND is_orphaned %]
+ <input class=submit type=submit name=action value="<translate>Delete</translate>">
+[%- END %]
+[%- IF id %]
+ <input type=button class=submit onclick=set_history_window([% id %]); name=history id=history value=<translate>history</translate>>|;
+[%- END %]
+
+ </form>
+<script type="text/javascript">
+//Start Tab Content script for UL with id="maintab" Separate multiple ids each with a comma.
+initializetabcontent("maintab")
+</script>
+</body>
+</html>