From 3373b22c14e5c132983bd699605299517d152ff3 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 13 Jun 2020 21:25:37 +0200 Subject: [PATCH] minor tpl and bug fixes --- Models/NullSupplier.php | 39 +++++++++++++ Theme/Backend/Lang/Navigation.de.lang.php | 19 +++++++ Theme/Backend/Lang/de.lang.php | 69 +++++++++++++++++++++++ Theme/Backend/supplier-list.tpl.php | 20 ++----- 4 files changed, 133 insertions(+), 14 deletions(-) create mode 100644 Models/NullSupplier.php create mode 100644 Theme/Backend/Lang/Navigation.de.lang.php create mode 100644 Theme/Backend/Lang/de.lang.php diff --git a/Models/NullSupplier.php b/Models/NullSupplier.php new file mode 100644 index 0000000..e4f59ee --- /dev/null +++ b/Models/NullSupplier.php @@ -0,0 +1,39 @@ +id = $id; + parent::__construct(); + } +} diff --git a/Theme/Backend/Lang/Navigation.de.lang.php b/Theme/Backend/Lang/Navigation.de.lang.php new file mode 100644 index 0000000..0524e94 --- /dev/null +++ b/Theme/Backend/Lang/Navigation.de.lang.php @@ -0,0 +1,19 @@ + [ + 'Create' => 'Erstelle', + 'List' => 'Liste', + 'Suppliers' => 'Lieferanten', +]]; diff --git a/Theme/Backend/Lang/de.lang.php b/Theme/Backend/Lang/de.lang.php new file mode 100644 index 0000000..d5a0a23 --- /dev/null +++ b/Theme/Backend/Lang/de.lang.php @@ -0,0 +1,69 @@ + [ + 'Accounting' => 'Buchhaltung', + 'Address' => 'Addresse', + 'Addresses' => 'Addressen', + 'AreaManager' => 'Area Manager', + 'Articlegroup' => 'Artikelgruppe', + 'Bonus' => 'Bonus', + 'Business' => 'Business', + 'City' => 'Stadt', + 'Client' => 'Kunde', + 'Clients' => 'Kunden', + 'Contact' => 'Kontakt', + 'Country' => 'Land', + 'Creditcard' => 'Kreditkarte', + 'Date' => 'Datum', + 'Default' => 'Standard', + 'Delivery' => 'Lieferung', + 'Discount' => 'Rabatt', + 'DiscountP' => 'Rabatt %', + 'Email' => 'Email', + 'Fax' => 'Fax', + 'Files' => 'Dateien', + 'Freightage' => 'Frachtkosten', + 'Group' => 'Gruppe', + 'ID' => 'ID', + 'Info' => 'Info', + 'Invoice' => 'Rechnung', + 'IsDefault' => 'Ist Standard?', + 'Log' => 'Log', + 'Logs' => 'Logs', + 'Master' => 'Master', + 'Name' => 'Name', + 'Name1' => 'Name1', + 'Name2' => 'Name2', + 'Name3' => 'Name3', + 'Office' => 'Büro', + 'Payment' => 'Zahlung', + 'PaymentTerm' => 'Zahlungsziel', + 'Phone' => 'Telefon', + 'Price' => 'Preis', + 'Prices' => 'Preise', + 'Private' => 'Privat', + 'Productgroup' => 'Produktgruppe', + 'Purchase' => 'Einkauf', + 'Quantity' => 'Anzahl', + 'Sales' => 'Umsatz', + 'Segment' => 'Segment', + 'Subtype' => 'Untergruppe', + 'Supplier' => 'Lieferant', + 'Suppliers' => 'Lieferanten', + 'Support' => 'Support', + 'Type' => 'Typ', + 'Wire' => 'Wire', + 'Zip' => 'Postleitzahl', +]]; diff --git a/Theme/Backend/supplier-list.tpl.php b/Theme/Backend/supplier-list.tpl.php index 6d038c5..4ff599c 100644 --- a/Theme/Backend/supplier-list.tpl.php +++ b/Theme/Backend/supplier-list.tpl.php @@ -12,19 +12,14 @@ */ declare(strict_types=1); - -$footerView = new \phpOMS\Views\PaginationView($this->l11nManager, $this->request, $this->response); -$footerView->setTemplate('/Web/Templates/Lists/Footer/PaginationBig'); -$footerView->setPages(20); -$footerView->setPage(1); - +/** @var \phpOMS\Views\View $this */ echo $this->getData('nav')->render(); ?>
-
+
+
getHtml('Suppliers'); ?>
- - - $value) : ++$count; ?> -
getHtml('Suppliers'); ?>
getHtml('ID', '0', '0'); ?> @@ -35,16 +30,13 @@ echo $this->getData('nav')->render(); ?> getHtml('Zip') ?> getHtml('Address') ?> getHtml('Country') ?> -
getHtml('Empty', '0', '0'); ?> - +
getHtml('Empty', '0', '0'); ?> +
-
+