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(); ?> ?>
| 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();
?>
-
+
-
-
-
-
-
+ = $attributeView->render(
+ $item->getAttributes(),
+ $this->data['attributeTypes'] ?? [],
+ $this->data['units'] ?? [],
+ '{/api}item/attribute'
+ );
+ ?>
= $this->getHtml('Attributes'); ?>
-
-
-
+
|