mirror of
https://github.com/Karaka-Management/oms-News.git
synced 2026-02-10 13:58:41 +00:00
add todos from github
This commit is contained in:
parent
626d90d610
commit
c7a8dc5ded
|
|
@ -18,8 +18,8 @@ use Modules\News\Models\NewsArticle;
|
|||
use Modules\News\Models\NewsArticleMapper;
|
||||
use Modules\News\Models\NewsStatus;
|
||||
use Modules\News\Models\NewsType;
|
||||
use phpOMS\Account\Account;
|
||||
|
||||
use phpOMS\Account\Account;
|
||||
use phpOMS\Localization\ISO639x1Enum;
|
||||
use phpOMS\Message\NotificationLevel;
|
||||
use phpOMS\Message\RequestAbstract;
|
||||
|
|
@ -221,6 +221,8 @@ final class ApiController extends Controller
|
|||
*
|
||||
* @return array
|
||||
*
|
||||
* @api
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getHeadlineListR(int $limit = 50, int $offset = 0, string $orderBy = 'news_created', string $ordered = 'ASC', Account $account = null)
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace Modules\News\Controller;
|
||||
|
||||
use Modules\Dashboard\Models\DashboardElementInterface;
|
||||
use Modules\News\Models\NewsArticleMapper;
|
||||
use Modules\News\Models\PermissionState;
|
||||
|
||||
|
|
@ -32,7 +33,7 @@ use phpOMS\Views\View;
|
|||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
final class BackendController extends Controller
|
||||
final class BackendController extends Controller implements DashboardElementInterface
|
||||
{
|
||||
/**
|
||||
* Routing end-point for application behaviour.
|
||||
|
|
@ -58,17 +59,9 @@ final class BackendController extends Controller
|
|||
|
||||
return $view;
|
||||
}
|
||||
|
||||
/**
|
||||
* Routing end-point for application behaviour.
|
||||
*
|
||||
* @param RequestAbstract $request Request
|
||||
* @param ResponseAbstract $response Response
|
||||
* @param mixed $data Generic data
|
||||
*
|
||||
* @return RenderableInterface
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @codeCoverageIgnore
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function viewDashboard(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface
|
||||
{
|
||||
|
|
|
|||
|
|
@ -89,9 +89,9 @@ echo $this->getData('nav')->render(); ?>
|
|||
<div class="inner">
|
||||
<table class="layout wf-100">
|
||||
<tr><td><label for="permission"><?= $this->getHtml('Accounts/Groups'); ?></label>
|
||||
<!-- @todo: add form this belongs to -->
|
||||
<!-- @todo: make auto save on change for already created news article -->
|
||||
<!-- @todo: add default values (some can be removed/overwritten and some not?) -->
|
||||
<!-- @todo add form this belongs to -->
|
||||
<!-- @todo make auto save on change for already created news article -->
|
||||
<!-- @todo add default values (some can be removed/overwritten and some not?) -->
|
||||
<tr><td><?= $this->getData('accGrpSelector')->render('iReceiver', 'receiver', false); ?>
|
||||
</table>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user