From 35182445480f8cfc9f1ed63466be6131466f7c73 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Fri, 4 Jan 2008 16:25:18 +0000 Subject: [PATCH] CT form_footer auf Templates umgestellt --- bin/mozilla/ct.pl | 71 +------------------ locale/de/ct | 12 ---- templates/webpages/ct/form_footer_de.html | 32 +++++++++ templates/webpages/ct/form_footer_master.html | 32 +++++++++ 4 files changed, 66 insertions(+), 81 deletions(-) create mode 100644 templates/webpages/ct/form_footer_de.html create mode 100644 templates/webpages/ct/form_footer_master.html diff --git a/bin/mozilla/ct.pl b/bin/mozilla/ct.pl index 2a2d1a1f4..b8451f9ff 100644 --- a/bin/mozilla/ct.pl +++ b/bin/mozilla/ct.pl @@ -272,75 +272,8 @@ sub form_header { 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'); - -## -## -## -## - - print qq| -{id}> - - - -{login}> -{password}> - - -{db}> - - - -
- - - - - - -|; - - if ($form->{id} && $form->{status} eq 'orphaned') { - print qq|\n|; - } - - # button for saving history - if($form->{id} ne "") { - print qq| - {id} - . qq|); name=history id=history value=| - . $locale->text('history') - . qq|>|; - } - # /button for saving history - - print qq| - - - - - -|; - + print $form->parse_html_template('ct/form_footer', { is_orphaned => $form->{status} eq 'orphaned', + is_customer => $form->{db} eq 'customer' }); $lxdebug->leave_sub(); } diff --git a/locale/de/ct b/locale/de/ct index 92cccb184..743196e0e 100644 --- a/locale/de/ct +++ b/locale/de/ct @@ -28,7 +28,6 @@ $self->{texts} = { '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', @@ -92,14 +91,6 @@ $self->{texts} = { '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', @@ -136,7 +127,6 @@ $self->{texts} = { 'customer' => 'Kunde', 'customer_list' => 'kundenliste', 'customernumber not unique!' => 'Die Kundennummer ist schon vergeben', - 'history' => 'Historie', 'invoice' => 'Rechnung', 'no' => 'nein', 'packing_list' => 'Versandliste', @@ -215,13 +205,11 @@ $self->{subs} = { '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; diff --git a/templates/webpages/ct/form_footer_de.html b/templates/webpages/ct/form_footer_de.html new file mode 100644 index 000000000..3f1495a57 --- /dev/null +++ b/templates/webpages/ct/form_footer_de.html @@ -0,0 +1,32 @@ + + + + + + + + + + + +
+ + + + + + +[%- IF id AND is_orphaned %] + +[%- END %] +[%- IF id %] + |; +[%- END %] + + + + + diff --git a/templates/webpages/ct/form_footer_master.html b/templates/webpages/ct/form_footer_master.html new file mode 100644 index 000000000..2637e4392 --- /dev/null +++ b/templates/webpages/ct/form_footer_master.html @@ -0,0 +1,32 @@ + + + + + + + + + + + +
+ + + + + + +[%- IF id AND is_orphaned %] + +[%- END %] +[%- IF id %] + history>|; +[%- END %] + + + + + -- 2.20.1