diff --git a/Admin/Install/Navigation.install.json b/Admin/Install/Navigation.install.json index c284d99..9aaa160 100644 --- a/Admin/Install/Navigation.install.json +++ b/Admin/Install/Navigation.install.json @@ -5,7 +5,7 @@ "type": 2, "subtype": 1, "name": "Profiles", - "uri": "/{/lang}/backend/profile/list?{?}", + "uri": "{/lang}/backend/profile/list?{?}", "target": "self", "icon": null, "order": 10, @@ -19,7 +19,7 @@ "type": 3, "subtype": 1, "name": "List", - "uri": "/{/lang}/backend/profile/list?{?}", + "uri": "{/lang}/backend/profile/list?{?}", "target": "self", "icon": null, "order": 1, @@ -34,7 +34,7 @@ "type": 5, "subtype": 1, "name": "Profile", - "uri": "/{/lang}/backend/profile/single/front?{?}", + "uri": "{/lang}/backend/profile/single/front?{?}", "target": "self", "icon": null, "order": 3, @@ -49,7 +49,7 @@ "type": 5, "subtype": 1, "name": "Settings", - "uri": "/{/lang}/backend/profile/single/settings?{?}", + "uri": "{/lang}/backend/profile/single/settings?{?}", "target": "self", "icon": null, "order": 999, @@ -66,7 +66,7 @@ "type": 3, "subtype": 1, "name": "Overview", - "uri": "/{/lang}/backend/admin/module/settings?{?}", + "uri": "{/lang}/backend/admin/module/settings?{?}", "target": "self", "icon": null, "order": 1, @@ -81,7 +81,7 @@ "type": 3, "subtype": 1, "name": "Settings", - "uri": "/{/lang}/backend/admin/module/settings/profile/settings?{?}", + "uri": "{/lang}/backend/admin/module/settings/profile/settings?{?}", "target": "self", "icon": null, "order": 1, @@ -96,7 +96,7 @@ "type": 3, "subtype": 1, "name": "Create", - "uri": "/{/lang}/backend/admin/module/settings/profile/create?{?}", + "uri": "{/lang}/backend/admin/module/settings/profile/create?{?}", "target": "self", "icon": null, "order": 2, diff --git a/Controller/BackendController.php b/Controller/BackendController.php index 1a22a29..16d5f7f 100644 --- a/Controller/BackendController.php +++ b/Controller/BackendController.php @@ -47,7 +47,7 @@ final class BackendController extends Controller { /** @var \phpOMS\Model\Html\Head $head */ $head = $response->get('Content')->getData('head'); - $head->addAsset(AssetType::CSS, '/Modules/Profile/Theme/Backend/css/styles.css'); + $head->addAsset(AssetType::CSS, 'Modules/Profile/Theme/Backend/css/styles.css'); } /** diff --git a/Theme/Backend/Components/AccountGroupSelector/base.tpl.php b/Theme/Backend/Components/AccountGroupSelector/base.tpl.php index 8571a87..201691e 100644 --- a/Theme/Backend/Components/AccountGroupSelector/base.tpl.php +++ b/Theme/Backend/Components/AccountGroupSelector/base.tpl.php @@ -5,9 +5,9 @@ { "key": 1, "listener": "click", "action": [ {"key": 1, "type": "dom.popup", "selector": "#acc-grp-tpl", "aniIn": "fadeIn", "id": "printHtml($this->getId()); ?>"}, - {"key": 2, "type": "message.request", "uri": "", "method": "GET", "request_type": "json"}, + {"key": 2, "type": "message.request", "uri": "", "method": "GET", "request_type": "json"}, {"key": 3, "type": "dom.table.append", "id": "acc-table", "aniIn": "fadeIn", "data": [], "bindings": {"id": "id", "name": "name/0"}, "position": -1}, - {"key": 4, "type": "message.request", "uri": "", "method": "GET", "request_type": "json"}, + {"key": 4, "type": "message.request", "uri": "", "method": "GET", "request_type": "json"}, {"key": 5, "type": "dom.table.append", "id": "grp-table", "aniIn": "fadeIn", "data": [], "bindings": {"id": "id", "name": "name/0"}, "position": -1} ] } diff --git a/Theme/Backend/modules-create.tpl.php b/Theme/Backend/modules-create.tpl.php index 3e35732..365a781 100644 --- a/Theme/Backend/modules-create.tpl.php +++ b/Theme/Backend/modules-create.tpl.php @@ -9,7 +9,7 @@ echo $this->getData('nav')->render();

getHtml('CreateProfile'); ?>

-
+ $account) : $count++; - $url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/profile/single?{?}&id=' . $account->getAccount()->getId()); ?> + $url = \phpOMS\Uri\UriFactory::build('{/lang}/backend/profile/single?{?}&id=' . $account->getAccount()->getId()); ?>
diff --git a/Theme/Backend/profile-list.tpl.php b/Theme/Backend/profile-list.tpl.php index a0c0a72..e81cdfa 100644 --- a/Theme/Backend/profile-list.tpl.php +++ b/Theme/Backend/profile-list.tpl.php @@ -37,7 +37,7 @@ $accounts = $this->getData('accounts');
printHtml($account->getAccount()->getId()); ?> printHtml($account->getAccount()->getName3() . ' ' . $account->getAccount()->getName2() . ' ' . $account->getAccount()->getName1()); ?> diff --git a/Theme/Backend/profile-single.tpl.php b/Theme/Backend/profile-single.tpl.php index ef94979..f2e6037 100644 --- a/Theme/Backend/profile-single.tpl.php +++ b/Theme/Backend/profile-single.tpl.php @@ -49,7 +49,7 @@ echo $this->getData('nav')->render();

printHtml(empty($account->getAccount()->getName3()) ? $account->getAccount()->getName2() : $account->getAccount()->getName3()); ?>, printHtml($account->getAccount()->getName1()); ?>

- <?= $this->getHtml('ProfileImage'); ?> + <?= $this->getHtml('ProfileImage'); ?> @@ -128,7 +128,7 @@ echo $this->getData('nav')->render();

getHtml('Localization'); ?>

- +