diff --git a/Admin/Install/Navigation.install.json b/Admin/Install/Navigation.install.json index 7b743d9..0ac6bf8 100644 --- a/Admin/Install/Navigation.install.json +++ b/Admin/Install/Navigation.install.json @@ -13,6 +13,36 @@ "permission": null, "parent": 1003301001, "children": [ + { + "id": 1006002001, + "pid": "c3ebc146eec492fbcf5ed5d9d43ca6d0cc253583", + "type": 3, + "subtype": 1, + "name": "QA", + "uri": "{/base}/{/lang}/backend/qa/dashboard?{?}", + "target": "self", + "icon": null, + "order": 1, + "from": "QA", + "permission": null, + "parent": 1006001001, + "children": [] + }, + { + "id": 1006003001, + "pid": "c3ebc146eec492fbcf5ed5d9d43ca6d0cc253583", + "type": 3, + "subtype": 1, + "name": "Create", + "uri": "{/base}/{/lang}/backend/qa/create?{?}", + "target": "self", + "icon": null, + "order": 5, + "from": "QA", + "permission": null, + "parent": 1006001001, + "children": [] + } ] } ] diff --git a/Admin/Routes/Web/Backend.php b/Admin/Routes/Web/Backend.php index d653b4e..23b9807 100644 --- a/Admin/Routes/Web/Backend.php +++ b/Admin/Routes/Web/Backend.php @@ -3,6 +3,12 @@ use phpOMS\Router\RouteVerb; return [ + '^.*/backend/qa.*$' => [ + [ + 'dest' => '\Modules\QA\Controller:setUpBackend', + 'verb' => RouteVerb::GET, + ], + ], '^.*/backend/qa/dashboard.*$' => [ [ 'dest' => '\Modules\QA\Controller:viewQADashboard', diff --git a/Controller.php b/Controller.php index c1d59d7..85b8abc 100644 --- a/Controller.php +++ b/Controller.php @@ -79,6 +79,12 @@ class Controller extends ModuleAbstract implements WebInterface protected static $dependencies = [ ]; + public function setUpBackend() + { + $head = $response->get('Content')->getData('head'); + $head->addAsset(AssetType::CSS, $request->getUri()->getBase() . 'Modules/QA/Theme/Backend/styles.css'); + } + /** * @param RequestAbstract $request Request * @param ResponseAbstract $response Response diff --git a/Theme/Backend/styles.css b/Theme/Backend/styles.css new file mode 100644 index 0000000..e2a6532 --- /dev/null +++ b/Theme/Backend/styles.css @@ -0,0 +1,8 @@ +.qa-list .score.closed { + background: #f00; } +.qa-list .score.open { + background: #ff0; } +.qa-list .score.done { + background: #0f0; } +.qa-list h1 { + font-size: 2rem; } diff --git a/Theme/Backend/styles.scss b/Theme/Backend/styles.scss new file mode 100644 index 0000000..b59f646 --- /dev/null +++ b/Theme/Backend/styles.scss @@ -0,0 +1,27 @@ +.qa-list { + .score { + &.closed { + background: #f00; + } + + &.open { + background: #ff0; + } + + &.done { + background: #0f0; + } + } + + h1 { + font-size: 2rem; + } + + .date { + + } + + .user { + + } +}