mirror of
https://github.com/Karaka-Management/oms-QA.git
synced 2026-02-16 07:48:40 +00:00
Add styles
This commit is contained in:
parent
fe1922ac1a
commit
8940a9e5a1
|
|
@ -13,6 +13,36 @@
|
||||||
"permission": null,
|
"permission": null,
|
||||||
"parent": 1003301001,
|
"parent": 1003301001,
|
||||||
"children": [
|
"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": []
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,12 @@
|
||||||
use phpOMS\Router\RouteVerb;
|
use phpOMS\Router\RouteVerb;
|
||||||
|
|
||||||
return [
|
return [
|
||||||
|
'^.*/backend/qa.*$' => [
|
||||||
|
[
|
||||||
|
'dest' => '\Modules\QA\Controller:setUpBackend',
|
||||||
|
'verb' => RouteVerb::GET,
|
||||||
|
],
|
||||||
|
],
|
||||||
'^.*/backend/qa/dashboard.*$' => [
|
'^.*/backend/qa/dashboard.*$' => [
|
||||||
[
|
[
|
||||||
'dest' => '\Modules\QA\Controller:viewQADashboard',
|
'dest' => '\Modules\QA\Controller:viewQADashboard',
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,12 @@ class Controller extends ModuleAbstract implements WebInterface
|
||||||
protected static $dependencies = [
|
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 RequestAbstract $request Request
|
||||||
* @param ResponseAbstract $response Response
|
* @param ResponseAbstract $response Response
|
||||||
|
|
|
||||||
8
Theme/Backend/styles.css
Normal file
8
Theme/Backend/styles.css
Normal file
|
|
@ -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; }
|
||||||
27
Theme/Backend/styles.scss
Normal file
27
Theme/Backend/styles.scss
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
.qa-list {
|
||||||
|
.score {
|
||||||
|
&.closed {
|
||||||
|
background: #f00;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.open {
|
||||||
|
background: #ff0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.done {
|
||||||
|
background: #0f0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-size: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.date {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.user {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user