From c2556519c304784e66f02327c974187c35c269ab Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 9 Jun 2023 17:39:31 +0000 Subject: [PATCH] continue implementation --- Controller/BackendController.php | 3 +- Theme/Backend/item-create.tpl.php | 2 +- Theme/Backend/item-profile.tpl.php | 131 ++--------------------- Theme/Backend/sales-item-profile.tpl.php | 6 +- 4 files changed, 15 insertions(+), 127 deletions(-) diff --git a/Controller/BackendController.php b/Controller/BackendController.php index 02e0730..16b4014 100755 --- a/Controller/BackendController.php +++ b/Controller/BackendController.php @@ -402,7 +402,8 @@ final class BackendController extends Controller SettingsEnum::DEFAULT_LOCALIZATION, ]); - $view->data['defaultlocalization'] = LocalizationMapper::get()->where('id', (int) $settings->id)->execute(); + $view->data['attributeView'] = new \Modules\Attribute\Theme\Backend\Components\AttributeView($this->app->l11nManager, $request, $response); + $view->data['attributeView']->data['defaultlocalization'] = LocalizationMapper::get()->where('id', (int) $settings->id)->execute(); $l11nTypes = ItemL11nTypeMapper::getAll() ->execute(); diff --git a/Theme/Backend/item-create.tpl.php b/Theme/Backend/item-create.tpl.php index 602c1e6..3d001b5 100755 --- a/Theme/Backend/item-create.tpl.php +++ b/Theme/Backend/item-create.tpl.php @@ -594,7 +594,7 @@ echo $this->data['nav']->render(); ?> ?>
- +
getHtml('Logs'); ?>getHtml('Logs'); ?>
IP diff --git a/Theme/Backend/item-profile.tpl.php b/Theme/Backend/item-profile.tpl.php index 39d0627..50bf9cd 100755 --- a/Theme/Backend/item-profile.tpl.php +++ b/Theme/Backend/item-profile.tpl.php @@ -35,6 +35,7 @@ $topCustomers = $this->getData('topCustomers') ?? [[], []]; $regionSales = $this->data['regionSales'] ?? []; $countrySales = $this->data['countrySales'] ?? []; $monthlySalesCosts = $this->data['monthlySalesCosts'] ?? []; +$attributeView = $this->data['attributeView']; $languages = ISO639Enum::getConstants(); @@ -45,7 +46,7 @@ echo $this->data['nav']->render(); ?>
-
+