mirror of
https://github.com/Karaka-Management/oms-Calendar.git
synced 2026-02-15 16:08:41 +00:00
Fix #13
This commit is contained in:
parent
67b3a2a1e8
commit
1b80b27ed5
|
|
@ -5,7 +5,7 @@
|
||||||
"type": 1,
|
"type": 1,
|
||||||
"subtype": 1,
|
"subtype": 1,
|
||||||
"name": "Calendar",
|
"name": "Calendar",
|
||||||
"uri": "{/base}/{/lang}/backend/calendar/dashboard?{?}",
|
"uri": "/{/lang}/backend/calendar/dashboard?{?}",
|
||||||
"target": "self",
|
"target": "self",
|
||||||
"icon": "fa fa-calendar",
|
"icon": "fa fa-calendar",
|
||||||
"order": 10,
|
"order": 10,
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
"type": 2,
|
"type": 2,
|
||||||
"subtype": 1,
|
"subtype": 1,
|
||||||
"name": "Calendar",
|
"name": "Calendar",
|
||||||
"uri": "{/base}/{/lang}/backend/calendar/dashboard?{?}",
|
"uri": "/{/lang}/backend/calendar/dashboard?{?}",
|
||||||
"target": "self",
|
"target": "self",
|
||||||
"icon": null,
|
"icon": null,
|
||||||
"order": 30,
|
"order": 30,
|
||||||
|
|
|
||||||
|
|
@ -114,7 +114,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
||||||
|
|
||||||
/** @var Head $head */
|
/** @var Head $head */
|
||||||
$head = $response->get('Content')->getData('head');
|
$head = $response->get('Content')->getData('head');
|
||||||
$head->addAsset(AssetType::CSS, $request->getUri()->getBase() . 'Modules/Calendar/Theme/Backend/css/styles.css');
|
$head->addAsset(AssetType::CSS, '/Modules/Calendar/Theme/Backend/css/styles.css');
|
||||||
|
|
||||||
$view->setTemplate('/Modules/Calendar/Theme/Backend/calendar-dashboard');
|
$view->setTemplate('/Modules/Calendar/Theme/Backend/calendar-dashboard');
|
||||||
$view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1001201001, $request, $response));
|
$view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1001201001, $request, $response));
|
||||||
|
|
@ -143,7 +143,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
||||||
{
|
{
|
||||||
/** @var Head $head */
|
/** @var Head $head */
|
||||||
$head = $response->get('Content')->getData('head');
|
$head = $response->get('Content')->getData('head');
|
||||||
$head->addAsset(AssetType::CSS, $request->getUri()->getBase() . 'Modules/Calendar/Theme/Backend/css/styles.css');
|
$head->addAsset(AssetType::CSS, '/Modules/Calendar/Theme/Backend/css/styles.css');
|
||||||
|
|
||||||
$view = new View($this->app, $request, $response);
|
$view = new View($this->app, $request, $response);
|
||||||
$view->setTemplate('/Modules/Calendar/Theme/Backend/dashboard-calendar');
|
$view->setTemplate('/Modules/Calendar/Theme/Backend/dashboard-calendar');
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,8 @@ $calendar = $this->getData('calendar');
|
||||||
<div class="col-xs-12 col-md-9">
|
<div class="col-xs-12 col-md-9">
|
||||||
<div class="box wf-100">
|
<div class="box wf-100">
|
||||||
<ul class="btns floatLeft">
|
<ul class="btns floatLeft">
|
||||||
<li><a href="<?= $this->printHtml(\phpOMS\Uri\UriFactory::build('{/base}/{/lang}/backend/calendar/dashboard?date=' . $calendar->getDate()->createModify(0, -1, 0)->format('Y-m-d'))); ?>"><i class="fa fa-arrow-left"></i></a>
|
<li><a href="<?= $this->printHtml(\phpOMS\Uri\UriFactory::build('/{/lang}/backend/calendar/dashboard?date=' . $calendar->getDate()->createModify(0, -1, 0)->format('Y-m-d'))); ?>"><i class="fa fa-arrow-left"></i></a>
|
||||||
<li><a href="<?= $this->printHtml(\phpOMS\Uri\UriFactory::build('{/base}/{/lang}/backend/calendar/dashboard?date=' . $calendar->getDate()->createModify(0, 1, 0)->format('Y-m-d'))); ?>"><i class="fa fa-arrow-right"></i></a>
|
<li><a href="<?= $this->printHtml(\phpOMS\Uri\UriFactory::build('/{/lang}/backend/calendar/dashboard?date=' . $calendar->getDate()->createModify(0, 1, 0)->format('Y-m-d'))); ?>"><i class="fa fa-arrow-right"></i></a>
|
||||||
</ul>
|
</ul>
|
||||||
<ul class="btns floatRight">
|
<ul class="btns floatRight">
|
||||||
<li><a href=""><?= $this->getHtml('Day'); ?></a>
|
<li><a href=""><?= $this->getHtml('Day'); ?></a>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user