[Changed] way of manager-classification in tpl
This commit is contained in:
parent
1dd353ce58
commit
0dc5565640
@ -5,6 +5,7 @@ declare(strict_types=1);
|
|||||||
namespace D3\GoogleAnalytics4\Application\Controller\Admin;
|
namespace D3\GoogleAnalytics4\Application\Controller\Admin;
|
||||||
|
|
||||||
use D3\GoogleAnalytics4\Application\Model\Constants;
|
use D3\GoogleAnalytics4\Application\Model\Constants;
|
||||||
|
use D3\GoogleAnalytics4\Application\Model\ManagerHandler;
|
||||||
use D3\GoogleAnalytics4\Application\Model\ManagerTypes;
|
use D3\GoogleAnalytics4\Application\Model\ManagerTypes;
|
||||||
use OxidEsales\Eshop\Core\Registry;
|
use OxidEsales\Eshop\Core\Registry;
|
||||||
use OxidEsales\Eshop\Core\ViewConfig;
|
use OxidEsales\Eshop\Core\ViewConfig;
|
||||||
@ -20,6 +21,7 @@ class GA4AdminUserInterface_main extends \OxidEsales\Eshop\Application\Controlle
|
|||||||
$this->addTplParam('d3ViewObject', $this);
|
$this->addTplParam('d3ViewObject', $this);
|
||||||
$this->addTplParam('d3ViewConfObject', Registry::get(ViewConfig::class));
|
$this->addTplParam('d3ViewConfObject', Registry::get(ViewConfig::class));
|
||||||
$this->addTplParam('d3ManagerTypeArray', oxNew(ManagerTypes::class)->getManagerList());
|
$this->addTplParam('d3ManagerTypeArray', oxNew(ManagerTypes::class)->getManagerList());
|
||||||
|
$this->addTplParam('d3CurrentCMP', oxNew(ManagerHandler::class)->getCurrManager());
|
||||||
|
|
||||||
return $return;
|
return $return;
|
||||||
}
|
}
|
||||||
|
@ -81,8 +81,8 @@
|
|||||||
</label>
|
</label>
|
||||||
<select class="form-select w-50" name="editval[select][_HAS_STD_MANAGER]" aria-label="Default select example">
|
<select class="form-select w-50" name="editval[select][_HAS_STD_MANAGER]" aria-label="Default select example">
|
||||||
<option value="NONE" selected>[{oxmultilang ident="D3NONE"}]</option>
|
<option value="NONE" selected>[{oxmultilang ident="D3NONE"}]</option>
|
||||||
[{foreach from=$d3ManagerTypeArray key="sManagerName" item="sCmpName" name="editval[aCmpNameArray]"}]
|
[{foreach from=$d3ManagerTypeArray key="sInternalName" item="sPublicName" name="editval[aCmpNameArray]"}]
|
||||||
<option value="[{$sCmpName}]" [{if $sCmpName === $d3ViewObject->d3GetModuleConfigParam('_HAS_STD_MANAGER')}]SELECTED[{/if}]>[{$sManagerName}]</option>
|
<option value="[{$sInternalName}]" [{if $sInternalName === $d3CurrentCMP}]SELECTED[{/if}]>[{$sPublicName}]</option>
|
||||||
[{/foreach}]
|
[{/foreach}]
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user