diff --git a/Controller/ApiEquipmentAttributeController.php b/Controller/ApiEquipmentAttributeController.php index 08a6185..5c1042e 100755 --- a/Controller/ApiEquipmentAttributeController.php +++ b/Controller/ApiEquipmentAttributeController.php @@ -61,7 +61,7 @@ final class ApiEquipmentAttributeController extends Controller return; } - $type = EquipmentAttributeTypeMapper::get()->where('id', (int) $request->getData('type'))->execute(); + $type = EquipmentAttributeTypeMapper::get()->with('defaults')->where('id', (int) $request->getData('type'))->execute(); $attribute = $this->createAttributeFromRequest($request, $type); $this->createModel($request->header->account, $attribute, EquipmentAttributeMapper::class, 'attribute', $request->getOrigin()); $this->createStandardCreateResponse($request, $response, $attribute); @@ -359,7 +359,7 @@ final class ApiEquipmentAttributeController extends Controller } /** @var AttributeType $old */ - $old = EquipmentAttributeTypeMapper::get()->where('id', (int) $request->getData('id'))->execute(); + $old = EquipmentAttributeTypeMapper::get()->with('defaults')->where('id', (int) $request->getData('id'))->execute(); $new = $this->updateAttributeTypeFromRequest($request, clone $old); $this->updateModel($request->header->account, $old, $new, EquipmentAttributeTypeMapper::class, 'equipment_attribute_type', $request->getOrigin()); @@ -391,7 +391,7 @@ final class ApiEquipmentAttributeController extends Controller } /** @var AttributeType $equipmentAttributeType */ - $equipmentAttributeType = EquipmentAttributeTypeMapper::get()->where('id', (int) $request->getData('id'))->execute(); + $equipmentAttributeType = EquipmentAttributeTypeMapper::get()->with('defaults')->where('id', (int) $request->getData('id'))->execute(); $this->deleteModel($request->header->account, $equipmentAttributeType, EquipmentAttributeTypeMapper::class, 'equipment_attribute_type', $request->getOrigin()); $this->createStandardDeleteResponse($request, $response, $equipmentAttributeType); } diff --git a/Controller/BackendController.php b/Controller/BackendController.php index 86d3756..b6a032e 100755 --- a/Controller/BackendController.php +++ b/Controller/BackendController.php @@ -56,7 +56,7 @@ final class BackendController extends Controller { $view = new View($this->app->l11nManager, $request, $response); $view->setTemplate('/Modules/EquipmentManagement/Theme/Backend/attribute-type-list'); - $view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1003503001, $request, $response); + $view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1008405001, $request, $response); /** @var \Modules\Attribute\Models\AttributeType[] $attributes */ $attributes = EquipmentAttributeTypeMapper::getAll() diff --git a/Docs/Dev/img/er.png b/Docs/Dev/img/er.png old mode 100644 new mode 100755 diff --git a/Theme/Backend/Lang/Navigation.ar.lang.php b/Theme/Backend/Lang/Navigation.ar.lang.php new file mode 100755 index 0000000..14a37d2 --- /dev/null +++ b/Theme/Backend/Lang/Navigation.ar.lang.php @@ -0,0 +1,21 @@ + [ + 'EquipmentAttributes' => '', + 'EquipmentInspectionTypes' => '', + 'EquipmentManagement' => '', + 'Equipments' => '', + 'Inspections' => '', +]]; diff --git a/Theme/Backend/Lang/Navigation.cs.lang.php b/Theme/Backend/Lang/Navigation.cs.lang.php new file mode 100755 index 0000000..14a37d2 --- /dev/null +++ b/Theme/Backend/Lang/Navigation.cs.lang.php @@ -0,0 +1,21 @@ + [ + 'EquipmentAttributes' => '', + 'EquipmentInspectionTypes' => '', + 'EquipmentManagement' => '', + 'Equipments' => '', + 'Inspections' => '', +]]; diff --git a/Theme/Backend/Lang/Navigation.da.lang.php b/Theme/Backend/Lang/Navigation.da.lang.php new file mode 100755 index 0000000..14a37d2 --- /dev/null +++ b/Theme/Backend/Lang/Navigation.da.lang.php @@ -0,0 +1,21 @@ + [ + 'EquipmentAttributes' => '', + 'EquipmentInspectionTypes' => '', + 'EquipmentManagement' => '', + 'Equipments' => '', + 'Inspections' => '', +]]; diff --git a/Theme/Backend/Lang/Navigation.de.lang.php b/Theme/Backend/Lang/Navigation.de.lang.php index ce27d7d..13f0cfc 100755 --- a/Theme/Backend/Lang/Navigation.de.lang.php +++ b/Theme/Backend/Lang/Navigation.de.lang.php @@ -13,9 +13,9 @@ declare(strict_types=1); return ['Navigation' => [ + 'EquipmentAttributes' => 'Equipment Attribute', + 'EquipmentInspectionTypes' => 'Equipment Inspektionstypen', 'EquipmentManagement' => 'Equipment Management', 'Equipments' => 'Equipments', 'Inspections' => 'Inspektionen', - 'EquipmentInspectionTypes' => 'Equipment Inspektionstypen', - 'EquipmentAttributes' => 'Equipment Attribute', ]]; diff --git a/Theme/Backend/Lang/Navigation.el.lang.php b/Theme/Backend/Lang/Navigation.el.lang.php new file mode 100755 index 0000000..14a37d2 --- /dev/null +++ b/Theme/Backend/Lang/Navigation.el.lang.php @@ -0,0 +1,21 @@ + [ + 'EquipmentAttributes' => '', + 'EquipmentInspectionTypes' => '', + 'EquipmentManagement' => '', + 'Equipments' => '', + 'Inspections' => '', +]]; diff --git a/Theme/Backend/Lang/Navigation.en.lang.php b/Theme/Backend/Lang/Navigation.en.lang.php old mode 100644 new mode 100755 index 43c4f68..f692f84 --- a/Theme/Backend/Lang/Navigation.en.lang.php +++ b/Theme/Backend/Lang/Navigation.en.lang.php @@ -13,9 +13,9 @@ declare(strict_types=1); return ['Navigation' => [ + 'EquipmentAttributes' => 'Equipment Attributes', + 'EquipmentInspectionTypes' => 'Equipment Inspection Types', 'EquipmentManagement' => 'Equipment Management', 'Equipments' => 'Equipments', 'Inspections' => 'Inspections', - 'EquipmentInspectionTypes' => 'Equipment Inspection Types', - 'EquipmentAttributes' => 'Equipment Attributes', ]]; diff --git a/Theme/Backend/Lang/Navigation.es.lang.php b/Theme/Backend/Lang/Navigation.es.lang.php new file mode 100755 index 0000000..14a37d2 --- /dev/null +++ b/Theme/Backend/Lang/Navigation.es.lang.php @@ -0,0 +1,21 @@ + [ + 'EquipmentAttributes' => '', + 'EquipmentInspectionTypes' => '', + 'EquipmentManagement' => '', + 'Equipments' => '', + 'Inspections' => '', +]]; diff --git a/Theme/Backend/Lang/Navigation.fi.lang.php b/Theme/Backend/Lang/Navigation.fi.lang.php new file mode 100755 index 0000000..14a37d2 --- /dev/null +++ b/Theme/Backend/Lang/Navigation.fi.lang.php @@ -0,0 +1,21 @@ + [ + 'EquipmentAttributes' => '', + 'EquipmentInspectionTypes' => '', + 'EquipmentManagement' => '', + 'Equipments' => '', + 'Inspections' => '', +]]; diff --git a/Theme/Backend/Lang/Navigation.fr.lang.php b/Theme/Backend/Lang/Navigation.fr.lang.php new file mode 100755 index 0000000..14a37d2 --- /dev/null +++ b/Theme/Backend/Lang/Navigation.fr.lang.php @@ -0,0 +1,21 @@ + [ + 'EquipmentAttributes' => '', + 'EquipmentInspectionTypes' => '', + 'EquipmentManagement' => '', + 'Equipments' => '', + 'Inspections' => '', +]]; diff --git a/Theme/Backend/Lang/Navigation.hu.lang.php b/Theme/Backend/Lang/Navigation.hu.lang.php new file mode 100755 index 0000000..14a37d2 --- /dev/null +++ b/Theme/Backend/Lang/Navigation.hu.lang.php @@ -0,0 +1,21 @@ + [ + 'EquipmentAttributes' => '', + 'EquipmentInspectionTypes' => '', + 'EquipmentManagement' => '', + 'Equipments' => '', + 'Inspections' => '', +]]; diff --git a/Theme/Backend/Lang/Navigation.it.lang.php b/Theme/Backend/Lang/Navigation.it.lang.php new file mode 100755 index 0000000..14a37d2 --- /dev/null +++ b/Theme/Backend/Lang/Navigation.it.lang.php @@ -0,0 +1,21 @@ + [ + 'EquipmentAttributes' => '', + 'EquipmentInspectionTypes' => '', + 'EquipmentManagement' => '', + 'Equipments' => '', + 'Inspections' => '', +]]; diff --git a/Theme/Backend/Lang/Navigation.ja.lang.php b/Theme/Backend/Lang/Navigation.ja.lang.php new file mode 100755 index 0000000..14a37d2 --- /dev/null +++ b/Theme/Backend/Lang/Navigation.ja.lang.php @@ -0,0 +1,21 @@ + [ + 'EquipmentAttributes' => '', + 'EquipmentInspectionTypes' => '', + 'EquipmentManagement' => '', + 'Equipments' => '', + 'Inspections' => '', +]]; diff --git a/Theme/Backend/Lang/Navigation.ko.lang.php b/Theme/Backend/Lang/Navigation.ko.lang.php new file mode 100755 index 0000000..14a37d2 --- /dev/null +++ b/Theme/Backend/Lang/Navigation.ko.lang.php @@ -0,0 +1,21 @@ + [ + 'EquipmentAttributes' => '', + 'EquipmentInspectionTypes' => '', + 'EquipmentManagement' => '', + 'Equipments' => '', + 'Inspections' => '', +]]; diff --git a/Theme/Backend/Lang/Navigation.no.lang.php b/Theme/Backend/Lang/Navigation.no.lang.php new file mode 100755 index 0000000..14a37d2 --- /dev/null +++ b/Theme/Backend/Lang/Navigation.no.lang.php @@ -0,0 +1,21 @@ + [ + 'EquipmentAttributes' => '', + 'EquipmentInspectionTypes' => '', + 'EquipmentManagement' => '', + 'Equipments' => '', + 'Inspections' => '', +]]; diff --git a/Theme/Backend/Lang/Navigation.pl.lang.php b/Theme/Backend/Lang/Navigation.pl.lang.php new file mode 100755 index 0000000..14a37d2 --- /dev/null +++ b/Theme/Backend/Lang/Navigation.pl.lang.php @@ -0,0 +1,21 @@ + [ + 'EquipmentAttributes' => '', + 'EquipmentInspectionTypes' => '', + 'EquipmentManagement' => '', + 'Equipments' => '', + 'Inspections' => '', +]]; diff --git a/Theme/Backend/Lang/Navigation.pt.lang.php b/Theme/Backend/Lang/Navigation.pt.lang.php new file mode 100755 index 0000000..14a37d2 --- /dev/null +++ b/Theme/Backend/Lang/Navigation.pt.lang.php @@ -0,0 +1,21 @@ + [ + 'EquipmentAttributes' => '', + 'EquipmentInspectionTypes' => '', + 'EquipmentManagement' => '', + 'Equipments' => '', + 'Inspections' => '', +]]; diff --git a/Theme/Backend/Lang/Navigation.ru.lang.php b/Theme/Backend/Lang/Navigation.ru.lang.php new file mode 100755 index 0000000..14a37d2 --- /dev/null +++ b/Theme/Backend/Lang/Navigation.ru.lang.php @@ -0,0 +1,21 @@ + [ + 'EquipmentAttributes' => '', + 'EquipmentInspectionTypes' => '', + 'EquipmentManagement' => '', + 'Equipments' => '', + 'Inspections' => '', +]]; diff --git a/Theme/Backend/Lang/Navigation.sv.lang.php b/Theme/Backend/Lang/Navigation.sv.lang.php new file mode 100755 index 0000000..14a37d2 --- /dev/null +++ b/Theme/Backend/Lang/Navigation.sv.lang.php @@ -0,0 +1,21 @@ + [ + 'EquipmentAttributes' => '', + 'EquipmentInspectionTypes' => '', + 'EquipmentManagement' => '', + 'Equipments' => '', + 'Inspections' => '', +]]; diff --git a/Theme/Backend/Lang/Navigation.th.lang.php b/Theme/Backend/Lang/Navigation.th.lang.php new file mode 100755 index 0000000..14a37d2 --- /dev/null +++ b/Theme/Backend/Lang/Navigation.th.lang.php @@ -0,0 +1,21 @@ + [ + 'EquipmentAttributes' => '', + 'EquipmentInspectionTypes' => '', + 'EquipmentManagement' => '', + 'Equipments' => '', + 'Inspections' => '', +]]; diff --git a/Theme/Backend/Lang/Navigation.tr.lang.php b/Theme/Backend/Lang/Navigation.tr.lang.php new file mode 100755 index 0000000..14a37d2 --- /dev/null +++ b/Theme/Backend/Lang/Navigation.tr.lang.php @@ -0,0 +1,21 @@ + [ + 'EquipmentAttributes' => '', + 'EquipmentInspectionTypes' => '', + 'EquipmentManagement' => '', + 'Equipments' => '', + 'Inspections' => '', +]]; diff --git a/Theme/Backend/Lang/Navigation.uk.lang.php b/Theme/Backend/Lang/Navigation.uk.lang.php new file mode 100755 index 0000000..14a37d2 --- /dev/null +++ b/Theme/Backend/Lang/Navigation.uk.lang.php @@ -0,0 +1,21 @@ + [ + 'EquipmentAttributes' => '', + 'EquipmentInspectionTypes' => '', + 'EquipmentManagement' => '', + 'Equipments' => '', + 'Inspections' => '', +]]; diff --git a/Theme/Backend/Lang/Navigation.zh.lang.php b/Theme/Backend/Lang/Navigation.zh.lang.php new file mode 100755 index 0000000..14a37d2 --- /dev/null +++ b/Theme/Backend/Lang/Navigation.zh.lang.php @@ -0,0 +1,21 @@ + [ + 'EquipmentAttributes' => '', + 'EquipmentInspectionTypes' => '', + 'EquipmentManagement' => '', + 'Equipments' => '', + 'Inspections' => '', +]]; diff --git a/Theme/Backend/Lang/ar.lang.php b/Theme/Backend/Lang/ar.lang.php new file mode 100755 index 0000000..4edcf77 --- /dev/null +++ b/Theme/Backend/Lang/ar.lang.php @@ -0,0 +1,44 @@ + [ + ':status1' => '', + ':status2' => '', + ':status3' => '', + ':status4' => '', + 'Attributes' => '', + 'Costs' => '', + 'Date' => '', + 'Driver' => '', + 'EIN' => '', + 'Ein' => '', + 'End' => '', + 'Equipment' => '', + 'Equipments' => '', + 'Files' => '', + 'History' => '', + 'Inspections' => '', + 'LeasingFee' => '', + 'Make' => '', + 'Model' => '', + 'Name' => '', + 'Notes' => '', + 'Profile' => '', + 'PurchasePrice' => '', + 'Responsible' => '', + 'Start' => '', + 'Status' => '', + 'Type' => '', + 'Upcoming' => '', +]]; diff --git a/Theme/Backend/Lang/cs.lang.php b/Theme/Backend/Lang/cs.lang.php new file mode 100755 index 0000000..4edcf77 --- /dev/null +++ b/Theme/Backend/Lang/cs.lang.php @@ -0,0 +1,44 @@ + [ + ':status1' => '', + ':status2' => '', + ':status3' => '', + ':status4' => '', + 'Attributes' => '', + 'Costs' => '', + 'Date' => '', + 'Driver' => '', + 'EIN' => '', + 'Ein' => '', + 'End' => '', + 'Equipment' => '', + 'Equipments' => '', + 'Files' => '', + 'History' => '', + 'Inspections' => '', + 'LeasingFee' => '', + 'Make' => '', + 'Model' => '', + 'Name' => '', + 'Notes' => '', + 'Profile' => '', + 'PurchasePrice' => '', + 'Responsible' => '', + 'Start' => '', + 'Status' => '', + 'Type' => '', + 'Upcoming' => '', +]]; diff --git a/Theme/Backend/Lang/da.lang.php b/Theme/Backend/Lang/da.lang.php new file mode 100755 index 0000000..4edcf77 --- /dev/null +++ b/Theme/Backend/Lang/da.lang.php @@ -0,0 +1,44 @@ + [ + ':status1' => '', + ':status2' => '', + ':status3' => '', + ':status4' => '', + 'Attributes' => '', + 'Costs' => '', + 'Date' => '', + 'Driver' => '', + 'EIN' => '', + 'Ein' => '', + 'End' => '', + 'Equipment' => '', + 'Equipments' => '', + 'Files' => '', + 'History' => '', + 'Inspections' => '', + 'LeasingFee' => '', + 'Make' => '', + 'Model' => '', + 'Name' => '', + 'Notes' => '', + 'Profile' => '', + 'PurchasePrice' => '', + 'Responsible' => '', + 'Start' => '', + 'Status' => '', + 'Type' => '', + 'Upcoming' => '', +]]; diff --git a/Theme/Backend/Lang/de.lang.php b/Theme/Backend/Lang/de.lang.php index 79c7a9a..38abe4d 100755 --- a/Theme/Backend/Lang/de.lang.php +++ b/Theme/Backend/Lang/de.lang.php @@ -13,30 +13,32 @@ declare(strict_types=1); return ['EquipmentManagement' => [ - 'Equipment' => 'Equipment', - 'Equipments' => 'Equipment', - 'Status' => 'Status', - 'Name' => 'Name', - 'Type' => 'Typ', - 'Make' => 'Marke', - 'Model' => 'Modell', - 'Start' => 'Start', - 'End' => 'Ende', - 'Profile' => 'Profile', - 'Attributes' => 'Attribute', - 'Files' => 'Dateien', - 'Notes' => 'Notizen', - 'Costs' => 'Kosten', - 'Inspections' => 'Inspectionen', - 'Ein' => 'Ein', - 'History' => 'Historie', - 'Upcoming' => 'Upcoming', - 'Responsible' => 'Verantwortlich', - 'Date' => 'Datum', - 'PurchasePrice' => 'Kaufpreis', - 'LeasingFee' => 'Leasingkosten', - ':status1' => 'Aktiv', - ':status2' => 'Inaktiv', - ':status3' => 'Beschädigt', - ':status4' => 'Außer Betrieb', + ':status1' => 'Aktiv', + ':status2' => 'Inaktiv', + ':status3' => 'Beschädigt', + ':status4' => 'Außer Betrieb', + 'Attributes' => 'Attribute', + 'Costs' => 'Kosten', + 'Date' => 'Datum', + 'Driver' => '', + 'EIN' => '', + 'Ein' => 'Ein', + 'End' => 'Ende', + 'Equipment' => 'Equipment', + 'Equipments' => 'Equipment', + 'Files' => 'Dateien', + 'History' => 'Historie', + 'Inspections' => 'Inspectionen', + 'LeasingFee' => 'Leasingkosten', + 'Make' => 'Marke', + 'Model' => 'Modell', + 'Name' => 'Name', + 'Notes' => 'Notizen', + 'Profile' => 'Profile', + 'PurchasePrice' => 'Kaufpreis', + 'Responsible' => 'Verantwortlich', + 'Start' => 'Start', + 'Status' => 'Status', + 'Type' => 'Typ', + 'Upcoming' => 'Upcoming', ]]; diff --git a/Theme/Backend/Lang/el.lang.php b/Theme/Backend/Lang/el.lang.php new file mode 100755 index 0000000..4edcf77 --- /dev/null +++ b/Theme/Backend/Lang/el.lang.php @@ -0,0 +1,44 @@ + [ + ':status1' => '', + ':status2' => '', + ':status3' => '', + ':status4' => '', + 'Attributes' => '', + 'Costs' => '', + 'Date' => '', + 'Driver' => '', + 'EIN' => '', + 'Ein' => '', + 'End' => '', + 'Equipment' => '', + 'Equipments' => '', + 'Files' => '', + 'History' => '', + 'Inspections' => '', + 'LeasingFee' => '', + 'Make' => '', + 'Model' => '', + 'Name' => '', + 'Notes' => '', + 'Profile' => '', + 'PurchasePrice' => '', + 'Responsible' => '', + 'Start' => '', + 'Status' => '', + 'Type' => '', + 'Upcoming' => '', +]]; diff --git a/Theme/Backend/Lang/en.lang.php b/Theme/Backend/Lang/en.lang.php index 33e8539..401a95e 100755 --- a/Theme/Backend/Lang/en.lang.php +++ b/Theme/Backend/Lang/en.lang.php @@ -13,30 +13,32 @@ declare(strict_types=1); return ['EquipmentManagement' => [ - 'Equipment' => 'Equipment', - 'Equipments' => 'Equipments', - 'Status' => 'Status', - 'Name' => 'Name', - 'Type' => 'Type', - 'Make' => 'Make', - 'Model' => 'Model', - 'Start' => 'Start', - 'End' => 'End', - 'Profile' => 'Profile', - 'Attributes' => 'Attributes', - 'Files' => 'Files', - 'Notes' => 'Notes', - 'Costs' => 'Costs', - 'Inspections' => 'Inspections', - 'Ein' => 'Ein', - 'History' => 'History', - 'Upcoming' => 'Upcoming', - 'Responsible' => 'Responsible', - 'Date' => 'Date', - 'PurchasePrice' => 'Purchase Price', - 'LeasingFee' => 'Leasing Fee', - ':status1' => 'Active', - ':status2' => 'Inactive', - ':status3' => 'Damaged', - ':status4' => 'Out of order', + ':status1' => 'Active', + ':status2' => 'Inactive', + ':status3' => 'Damaged', + ':status4' => 'Out of order', + 'Attributes' => 'Attributes', + 'Costs' => 'Costs', + 'Date' => 'Date', + 'Driver' => '', + 'EIN' => '', + 'Ein' => 'Ein', + 'End' => 'End', + 'Equipment' => 'Equipment', + 'Equipments' => 'Equipments', + 'Files' => 'Files', + 'History' => 'History', + 'Inspections' => 'Inspections', + 'LeasingFee' => 'Leasing Fee', + 'Make' => 'Make', + 'Model' => 'Model', + 'Name' => 'Name', + 'Notes' => 'Notes', + 'Profile' => 'Profile', + 'PurchasePrice' => 'Purchase Price', + 'Responsible' => 'Responsible', + 'Start' => 'Start', + 'Status' => 'Status', + 'Type' => 'Type', + 'Upcoming' => 'Upcoming', ]]; diff --git a/Theme/Backend/Lang/es.lang.php b/Theme/Backend/Lang/es.lang.php new file mode 100755 index 0000000..4edcf77 --- /dev/null +++ b/Theme/Backend/Lang/es.lang.php @@ -0,0 +1,44 @@ + [ + ':status1' => '', + ':status2' => '', + ':status3' => '', + ':status4' => '', + 'Attributes' => '', + 'Costs' => '', + 'Date' => '', + 'Driver' => '', + 'EIN' => '', + 'Ein' => '', + 'End' => '', + 'Equipment' => '', + 'Equipments' => '', + 'Files' => '', + 'History' => '', + 'Inspections' => '', + 'LeasingFee' => '', + 'Make' => '', + 'Model' => '', + 'Name' => '', + 'Notes' => '', + 'Profile' => '', + 'PurchasePrice' => '', + 'Responsible' => '', + 'Start' => '', + 'Status' => '', + 'Type' => '', + 'Upcoming' => '', +]]; diff --git a/Theme/Backend/Lang/fi.lang.php b/Theme/Backend/Lang/fi.lang.php new file mode 100755 index 0000000..4edcf77 --- /dev/null +++ b/Theme/Backend/Lang/fi.lang.php @@ -0,0 +1,44 @@ + [ + ':status1' => '', + ':status2' => '', + ':status3' => '', + ':status4' => '', + 'Attributes' => '', + 'Costs' => '', + 'Date' => '', + 'Driver' => '', + 'EIN' => '', + 'Ein' => '', + 'End' => '', + 'Equipment' => '', + 'Equipments' => '', + 'Files' => '', + 'History' => '', + 'Inspections' => '', + 'LeasingFee' => '', + 'Make' => '', + 'Model' => '', + 'Name' => '', + 'Notes' => '', + 'Profile' => '', + 'PurchasePrice' => '', + 'Responsible' => '', + 'Start' => '', + 'Status' => '', + 'Type' => '', + 'Upcoming' => '', +]]; diff --git a/Theme/Backend/Lang/fr.lang.php b/Theme/Backend/Lang/fr.lang.php new file mode 100755 index 0000000..4edcf77 --- /dev/null +++ b/Theme/Backend/Lang/fr.lang.php @@ -0,0 +1,44 @@ + [ + ':status1' => '', + ':status2' => '', + ':status3' => '', + ':status4' => '', + 'Attributes' => '', + 'Costs' => '', + 'Date' => '', + 'Driver' => '', + 'EIN' => '', + 'Ein' => '', + 'End' => '', + 'Equipment' => '', + 'Equipments' => '', + 'Files' => '', + 'History' => '', + 'Inspections' => '', + 'LeasingFee' => '', + 'Make' => '', + 'Model' => '', + 'Name' => '', + 'Notes' => '', + 'Profile' => '', + 'PurchasePrice' => '', + 'Responsible' => '', + 'Start' => '', + 'Status' => '', + 'Type' => '', + 'Upcoming' => '', +]]; diff --git a/Theme/Backend/Lang/hu.lang.php b/Theme/Backend/Lang/hu.lang.php new file mode 100755 index 0000000..4edcf77 --- /dev/null +++ b/Theme/Backend/Lang/hu.lang.php @@ -0,0 +1,44 @@ + [ + ':status1' => '', + ':status2' => '', + ':status3' => '', + ':status4' => '', + 'Attributes' => '', + 'Costs' => '', + 'Date' => '', + 'Driver' => '', + 'EIN' => '', + 'Ein' => '', + 'End' => '', + 'Equipment' => '', + 'Equipments' => '', + 'Files' => '', + 'History' => '', + 'Inspections' => '', + 'LeasingFee' => '', + 'Make' => '', + 'Model' => '', + 'Name' => '', + 'Notes' => '', + 'Profile' => '', + 'PurchasePrice' => '', + 'Responsible' => '', + 'Start' => '', + 'Status' => '', + 'Type' => '', + 'Upcoming' => '', +]]; diff --git a/Theme/Backend/Lang/it.lang.php b/Theme/Backend/Lang/it.lang.php new file mode 100755 index 0000000..4edcf77 --- /dev/null +++ b/Theme/Backend/Lang/it.lang.php @@ -0,0 +1,44 @@ + [ + ':status1' => '', + ':status2' => '', + ':status3' => '', + ':status4' => '', + 'Attributes' => '', + 'Costs' => '', + 'Date' => '', + 'Driver' => '', + 'EIN' => '', + 'Ein' => '', + 'End' => '', + 'Equipment' => '', + 'Equipments' => '', + 'Files' => '', + 'History' => '', + 'Inspections' => '', + 'LeasingFee' => '', + 'Make' => '', + 'Model' => '', + 'Name' => '', + 'Notes' => '', + 'Profile' => '', + 'PurchasePrice' => '', + 'Responsible' => '', + 'Start' => '', + 'Status' => '', + 'Type' => '', + 'Upcoming' => '', +]]; diff --git a/Theme/Backend/Lang/ja.lang.php b/Theme/Backend/Lang/ja.lang.php new file mode 100755 index 0000000..4edcf77 --- /dev/null +++ b/Theme/Backend/Lang/ja.lang.php @@ -0,0 +1,44 @@ + [ + ':status1' => '', + ':status2' => '', + ':status3' => '', + ':status4' => '', + 'Attributes' => '', + 'Costs' => '', + 'Date' => '', + 'Driver' => '', + 'EIN' => '', + 'Ein' => '', + 'End' => '', + 'Equipment' => '', + 'Equipments' => '', + 'Files' => '', + 'History' => '', + 'Inspections' => '', + 'LeasingFee' => '', + 'Make' => '', + 'Model' => '', + 'Name' => '', + 'Notes' => '', + 'Profile' => '', + 'PurchasePrice' => '', + 'Responsible' => '', + 'Start' => '', + 'Status' => '', + 'Type' => '', + 'Upcoming' => '', +]]; diff --git a/Theme/Backend/Lang/ko.lang.php b/Theme/Backend/Lang/ko.lang.php new file mode 100755 index 0000000..4edcf77 --- /dev/null +++ b/Theme/Backend/Lang/ko.lang.php @@ -0,0 +1,44 @@ + [ + ':status1' => '', + ':status2' => '', + ':status3' => '', + ':status4' => '', + 'Attributes' => '', + 'Costs' => '', + 'Date' => '', + 'Driver' => '', + 'EIN' => '', + 'Ein' => '', + 'End' => '', + 'Equipment' => '', + 'Equipments' => '', + 'Files' => '', + 'History' => '', + 'Inspections' => '', + 'LeasingFee' => '', + 'Make' => '', + 'Model' => '', + 'Name' => '', + 'Notes' => '', + 'Profile' => '', + 'PurchasePrice' => '', + 'Responsible' => '', + 'Start' => '', + 'Status' => '', + 'Type' => '', + 'Upcoming' => '', +]]; diff --git a/Theme/Backend/Lang/no.lang.php b/Theme/Backend/Lang/no.lang.php new file mode 100755 index 0000000..4edcf77 --- /dev/null +++ b/Theme/Backend/Lang/no.lang.php @@ -0,0 +1,44 @@ + [ + ':status1' => '', + ':status2' => '', + ':status3' => '', + ':status4' => '', + 'Attributes' => '', + 'Costs' => '', + 'Date' => '', + 'Driver' => '', + 'EIN' => '', + 'Ein' => '', + 'End' => '', + 'Equipment' => '', + 'Equipments' => '', + 'Files' => '', + 'History' => '', + 'Inspections' => '', + 'LeasingFee' => '', + 'Make' => '', + 'Model' => '', + 'Name' => '', + 'Notes' => '', + 'Profile' => '', + 'PurchasePrice' => '', + 'Responsible' => '', + 'Start' => '', + 'Status' => '', + 'Type' => '', + 'Upcoming' => '', +]]; diff --git a/Theme/Backend/Lang/pl.lang.php b/Theme/Backend/Lang/pl.lang.php new file mode 100755 index 0000000..4edcf77 --- /dev/null +++ b/Theme/Backend/Lang/pl.lang.php @@ -0,0 +1,44 @@ + [ + ':status1' => '', + ':status2' => '', + ':status3' => '', + ':status4' => '', + 'Attributes' => '', + 'Costs' => '', + 'Date' => '', + 'Driver' => '', + 'EIN' => '', + 'Ein' => '', + 'End' => '', + 'Equipment' => '', + 'Equipments' => '', + 'Files' => '', + 'History' => '', + 'Inspections' => '', + 'LeasingFee' => '', + 'Make' => '', + 'Model' => '', + 'Name' => '', + 'Notes' => '', + 'Profile' => '', + 'PurchasePrice' => '', + 'Responsible' => '', + 'Start' => '', + 'Status' => '', + 'Type' => '', + 'Upcoming' => '', +]]; diff --git a/Theme/Backend/Lang/pt.lang.php b/Theme/Backend/Lang/pt.lang.php new file mode 100755 index 0000000..4edcf77 --- /dev/null +++ b/Theme/Backend/Lang/pt.lang.php @@ -0,0 +1,44 @@ + [ + ':status1' => '', + ':status2' => '', + ':status3' => '', + ':status4' => '', + 'Attributes' => '', + 'Costs' => '', + 'Date' => '', + 'Driver' => '', + 'EIN' => '', + 'Ein' => '', + 'End' => '', + 'Equipment' => '', + 'Equipments' => '', + 'Files' => '', + 'History' => '', + 'Inspections' => '', + 'LeasingFee' => '', + 'Make' => '', + 'Model' => '', + 'Name' => '', + 'Notes' => '', + 'Profile' => '', + 'PurchasePrice' => '', + 'Responsible' => '', + 'Start' => '', + 'Status' => '', + 'Type' => '', + 'Upcoming' => '', +]]; diff --git a/Theme/Backend/Lang/ru.lang.php b/Theme/Backend/Lang/ru.lang.php new file mode 100755 index 0000000..4edcf77 --- /dev/null +++ b/Theme/Backend/Lang/ru.lang.php @@ -0,0 +1,44 @@ + [ + ':status1' => '', + ':status2' => '', + ':status3' => '', + ':status4' => '', + 'Attributes' => '', + 'Costs' => '', + 'Date' => '', + 'Driver' => '', + 'EIN' => '', + 'Ein' => '', + 'End' => '', + 'Equipment' => '', + 'Equipments' => '', + 'Files' => '', + 'History' => '', + 'Inspections' => '', + 'LeasingFee' => '', + 'Make' => '', + 'Model' => '', + 'Name' => '', + 'Notes' => '', + 'Profile' => '', + 'PurchasePrice' => '', + 'Responsible' => '', + 'Start' => '', + 'Status' => '', + 'Type' => '', + 'Upcoming' => '', +]]; diff --git a/Theme/Backend/Lang/sv.lang.php b/Theme/Backend/Lang/sv.lang.php new file mode 100755 index 0000000..4edcf77 --- /dev/null +++ b/Theme/Backend/Lang/sv.lang.php @@ -0,0 +1,44 @@ + [ + ':status1' => '', + ':status2' => '', + ':status3' => '', + ':status4' => '', + 'Attributes' => '', + 'Costs' => '', + 'Date' => '', + 'Driver' => '', + 'EIN' => '', + 'Ein' => '', + 'End' => '', + 'Equipment' => '', + 'Equipments' => '', + 'Files' => '', + 'History' => '', + 'Inspections' => '', + 'LeasingFee' => '', + 'Make' => '', + 'Model' => '', + 'Name' => '', + 'Notes' => '', + 'Profile' => '', + 'PurchasePrice' => '', + 'Responsible' => '', + 'Start' => '', + 'Status' => '', + 'Type' => '', + 'Upcoming' => '', +]]; diff --git a/Theme/Backend/Lang/th.lang.php b/Theme/Backend/Lang/th.lang.php new file mode 100755 index 0000000..4edcf77 --- /dev/null +++ b/Theme/Backend/Lang/th.lang.php @@ -0,0 +1,44 @@ + [ + ':status1' => '', + ':status2' => '', + ':status3' => '', + ':status4' => '', + 'Attributes' => '', + 'Costs' => '', + 'Date' => '', + 'Driver' => '', + 'EIN' => '', + 'Ein' => '', + 'End' => '', + 'Equipment' => '', + 'Equipments' => '', + 'Files' => '', + 'History' => '', + 'Inspections' => '', + 'LeasingFee' => '', + 'Make' => '', + 'Model' => '', + 'Name' => '', + 'Notes' => '', + 'Profile' => '', + 'PurchasePrice' => '', + 'Responsible' => '', + 'Start' => '', + 'Status' => '', + 'Type' => '', + 'Upcoming' => '', +]]; diff --git a/Theme/Backend/Lang/tr.lang.php b/Theme/Backend/Lang/tr.lang.php new file mode 100755 index 0000000..4edcf77 --- /dev/null +++ b/Theme/Backend/Lang/tr.lang.php @@ -0,0 +1,44 @@ + [ + ':status1' => '', + ':status2' => '', + ':status3' => '', + ':status4' => '', + 'Attributes' => '', + 'Costs' => '', + 'Date' => '', + 'Driver' => '', + 'EIN' => '', + 'Ein' => '', + 'End' => '', + 'Equipment' => '', + 'Equipments' => '', + 'Files' => '', + 'History' => '', + 'Inspections' => '', + 'LeasingFee' => '', + 'Make' => '', + 'Model' => '', + 'Name' => '', + 'Notes' => '', + 'Profile' => '', + 'PurchasePrice' => '', + 'Responsible' => '', + 'Start' => '', + 'Status' => '', + 'Type' => '', + 'Upcoming' => '', +]]; diff --git a/Theme/Backend/Lang/uk.lang.php b/Theme/Backend/Lang/uk.lang.php new file mode 100755 index 0000000..4edcf77 --- /dev/null +++ b/Theme/Backend/Lang/uk.lang.php @@ -0,0 +1,44 @@ + [ + ':status1' => '', + ':status2' => '', + ':status3' => '', + ':status4' => '', + 'Attributes' => '', + 'Costs' => '', + 'Date' => '', + 'Driver' => '', + 'EIN' => '', + 'Ein' => '', + 'End' => '', + 'Equipment' => '', + 'Equipments' => '', + 'Files' => '', + 'History' => '', + 'Inspections' => '', + 'LeasingFee' => '', + 'Make' => '', + 'Model' => '', + 'Name' => '', + 'Notes' => '', + 'Profile' => '', + 'PurchasePrice' => '', + 'Responsible' => '', + 'Start' => '', + 'Status' => '', + 'Type' => '', + 'Upcoming' => '', +]]; diff --git a/Theme/Backend/Lang/zh.lang.php b/Theme/Backend/Lang/zh.lang.php new file mode 100755 index 0000000..4edcf77 --- /dev/null +++ b/Theme/Backend/Lang/zh.lang.php @@ -0,0 +1,44 @@ + [ + ':status1' => '', + ':status2' => '', + ':status3' => '', + ':status4' => '', + 'Attributes' => '', + 'Costs' => '', + 'Date' => '', + 'Driver' => '', + 'EIN' => '', + 'Ein' => '', + 'End' => '', + 'Equipment' => '', + 'Equipments' => '', + 'Files' => '', + 'History' => '', + 'Inspections' => '', + 'LeasingFee' => '', + 'Make' => '', + 'Model' => '', + 'Name' => '', + 'Notes' => '', + 'Profile' => '', + 'PurchasePrice' => '', + 'Responsible' => '', + 'Start' => '', + 'Status' => '', + 'Type' => '', + 'Upcoming' => '', +]]; diff --git a/Theme/Backend/equipment-profile.tpl.php b/Theme/Backend/equipment-profile.tpl.php index 6d500be..d60995f 100755 --- a/Theme/Backend/equipment-profile.tpl.php +++ b/Theme/Backend/equipment-profile.tpl.php @@ -146,7 +146,8 @@ echo $this->data['nav']->render(); $equipment->attributes, $this->data['attributeTypes'] ?? [], $this->data['units'] ?? [], - '{/api}fleet/equipment/attribute' + '{/api}fleet/equipment/attribute', + $equipment->id ); ?> diff --git a/tests/Controller/Api/ApiControllerEquipmentTrait.php b/tests/Controller/Api/ApiControllerEquipmentTrait.php old mode 100644 new mode 100755