From 9fb413a97d830188cdcf95c370dc70098812f6c2 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 13 Jun 2020 21:25:30 +0200 Subject: [PATCH] minor tpl and bug fixes --- Models/NullItem.php | 39 ++++++++ Theme/Backend/Lang/Navigation.de.lang.php | 19 ++++ Theme/Backend/Lang/de.lang.php | 114 ++++++++++++++++++++++ Theme/Backend/sales-item-list.tpl.php | 20 ++-- 4 files changed, 178 insertions(+), 14 deletions(-) create mode 100644 Models/NullItem.php create mode 100644 Theme/Backend/Lang/Navigation.de.lang.php create mode 100644 Theme/Backend/Lang/de.lang.php diff --git a/Models/NullItem.php b/Models/NullItem.php new file mode 100644 index 0000000..63f9172 --- /dev/null +++ b/Models/NullItem.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..6c71fa6 --- /dev/null +++ b/Theme/Backend/Lang/Navigation.de.lang.php @@ -0,0 +1,19 @@ + [ + 'Analyze' => 'Analyse', + 'Create' => 'Erstellen', + 'List' => 'Liste', +]]; diff --git a/Theme/Backend/Lang/de.lang.php b/Theme/Backend/Lang/de.lang.php new file mode 100644 index 0000000..9c715f6 --- /dev/null +++ b/Theme/Backend/Lang/de.lang.php @@ -0,0 +1,114 @@ + [ + 'Accounting' => 'Buchhaltung', + 'All' => 'Alle', + 'Article' => 'Artikel', + 'Articlegroup' => 'Artikelsegment', + 'Attribute' => 'Attribut', + 'Attributes' => 'Attribute', + 'Available' => 'Verfügbar', + 'Bonus' => 'Bonus', + 'ClientGroup' => 'Kunde/Gruppe', + 'Commission' => 'Kommission', + 'Container' => 'Behälter', + 'CostCenter' => 'Kostenstelle', + 'CostIndicator' => 'Kostenkennzeichen', + 'CostObject' => 'Kostenträger', + 'Country' => 'Land', + 'Customer' => 'Kunde', + 'CustomerGroup' => 'Kundengruppe', + 'CustomsID' => 'Kunden ID', + 'Date' => 'Datum', + 'Description' => 'Beschreibung', + 'Discount' => 'Rabatt', + 'DiscountP' => 'Rabatt in %', + 'Disposal' => 'Verschrottung', + 'EarningIndicator' => 'Umsatzkennzeichen', + 'End' => 'Ende', + 'Files' => 'Dateien', + 'General' => 'Allgemein', + 'GrossWeight' => 'Brutto Gewicht', + 'Group' => 'Gruppe', + 'Height' => 'Höhe', + 'ID' => 'ID', + 'Info' => 'Info', + 'IsActive' => 'Aktiv?', + 'Item' => 'Artikel', + 'Items' => 'Artikel', + 'Language' => 'Sprache', + 'Leadtime' => 'Lieferzeit', + 'Length' => 'Länge', + 'Localization' => 'Lokalisierung', + 'Location' => 'Ort', + 'Log' => 'Log', + 'Logs' => 'Logs', + 'Lot' => 'Charge', + 'Makespan' => 'Produktionszeit', + 'Master' => 'Master', + 'MaximumLevel' => 'Höchstwert', + 'Media' => 'Media', + 'MinimumLevel' => 'Mindestbestand', + 'Name' => 'Name', + 'Name1' => 'Name1', + 'Name2' => 'Name2', + 'Name3' => 'Name3', + 'Name4' => 'Name4', + 'Name5' => 'Name5', + 'NetWeight' => 'Netto Gewicht', + 'None' => 'Keine', + 'Ordered' => 'Bestellt', + 'Packaging' => 'Verpackung', + 'Price' => 'Preis', + 'Prices' => 'Preise', + 'PriceUnit' => 'Stückpreis', + 'Productgroup' => 'Produktgruppe', + 'Production' => 'Produktion', + 'Properties' => 'Attribute', + 'Property' => 'Attribut', + 'Purchase' => 'Einkauf', + 'Purchasing' => 'Einkaufen', + 'QA' => 'QS', + 'QM' => 'QM', + 'Quantity' => 'Anzahl', + 'QuantityUnit' => 'Mengeneinheit', + 'ReorderLevel' => 'Bestellgrenze', + 'Reserved' => 'Reservierd', + 'Sales' => 'Umsatz', + 'Segment' => 'Segment', + 'ShelfLife' => 'Haltbarkeit', + 'SN' => 'SN', + 'Source' => 'Quelle', + 'Start' => 'Start', + 'Status' => 'Status', + 'Stock' => 'Lager', + 'StockList' => 'Lagerliste', + 'Successor' => 'Nachfolger', + 'Supplier' => 'Lieferant', + 'Tax' => 'Steuer', + 'Text' => 'Text', + 'TimeUnit' => 'Zeiteinheit', + 'Tracking' => 'Verfolgung', + 'TradingUnit' => 'Handelseinheit', + 'Translation' => 'Übersetzung', + 'Type' => 'Typ', + 'Unit' => 'Einheit', + 'Value' => 'Wert', + 'Variation' => 'Variation', + 'Variations' => 'Variationen', + 'Volume' => 'Volumen', + 'Warehouse' => 'Lager', + 'Width' => 'Breite', +]]; diff --git a/Theme/Backend/sales-item-list.tpl.php b/Theme/Backend/sales-item-list.tpl.php index 7af440a..5be911c 100644 --- a/Theme/Backend/sales-item-list.tpl.php +++ b/Theme/Backend/sales-item-list.tpl.php @@ -12,21 +12,16 @@ */ 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 */ $items = $this->getData('items'); echo $this->getData('nav')->render(); ?>
-
+
+
getHtml('Items'); ?>
- - - $value) : ++$count; $url = \phpOMS\Uri\UriFactory::build('{/prefix}sales/item/single?{?}&id=' . $value->getId()); ?> @@ -50,9 +42,9 @@ echo $this->getData('nav')->render(); ?>
getHtml('Items'); ?>
getHtml('ID', '0', '0'); ?> @@ -35,9 +30,6 @@ echo $this->getData('nav')->render(); ?> getHtml('Available') ?> getHtml('Reserved') ?> getHtml('Ordered') ?> -
-
getHtml('Empty', '0', '0'); ?> - +
getHtml('Empty', '0', '0'); ?> +
-
+