mirror of
https://github.com/Karaka-Management/oms-News.git
synced 2026-02-04 11:18:39 +00:00
draft tag adding
This commit is contained in:
parent
568cae5226
commit
0865be0f93
|
|
@ -248,6 +248,9 @@ final class BackendController extends Controller implements DashboardElementInte
|
|||
$accGrpSelector = new \Modules\Profile\Theme\Backend\Components\AccountGroupSelector\BaseView($this->app->l11nManager, $request, $response);
|
||||
$view->addData('accGrpSelector', $accGrpSelector);
|
||||
|
||||
$tagSelector = new \Modules\Tag\Theme\Backend\Components\TagSelector\BaseView($this->app->l11nManager, $request, $response);
|
||||
$view->addData('tagSelector', $tagSelector);
|
||||
|
||||
return $view;
|
||||
}
|
||||
|
||||
|
|
@ -276,6 +279,9 @@ final class BackendController extends Controller implements DashboardElementInte
|
|||
$accGrpSelector = new \Modules\Profile\Theme\Backend\Components\AccountGroupSelector\BaseView($this->app->l11nManager, $request, $response);
|
||||
$view->addData('accGrpSelector', $accGrpSelector);
|
||||
|
||||
$tagSelector = new \Modules\Tag\Theme\Backend\Components\TagSelector\BaseView($this->app->l11nManager, $request, $response);
|
||||
$view->addData('tagSelector', $tagSelector);
|
||||
|
||||
$view->addData('news', NewsArticleMapper::get((int) ($request->getData('id') ?? 0)));
|
||||
|
||||
return $view;
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ return ['News' => [
|
|||
'AllowComments' => 'Kommentare erlauben',
|
||||
'Archive' => 'Archiv',
|
||||
'Author' => 'Autor',
|
||||
'Categories' => 'Kategorien',
|
||||
'Date' => 'Datum',
|
||||
'Draft' => 'Entwurf',
|
||||
'Featured' => 'Featured',
|
||||
|
|
|
|||
|
|
@ -15,9 +15,10 @@ declare(strict_types=1);
|
|||
return ['News' => [
|
||||
'Accounts/Groups' => 'Accounts/Groups',
|
||||
'Additional' => 'Additional',
|
||||
'AllowComments' => 'Allow comments',
|
||||
'AllowComments' => 'Allow comments',
|
||||
'Archive' => 'Archive',
|
||||
'Author' => 'Author',
|
||||
'Categories' => 'Categories',
|
||||
'Date' => 'Date',
|
||||
'Draft' => 'Draft',
|
||||
'Featured' => 'Featured',
|
||||
|
|
|
|||
|
|
@ -94,9 +94,10 @@ echo $this->getData('nav')->render(); ?>
|
|||
</form>
|
||||
</section>
|
||||
<section class="portlet">
|
||||
<div class="portlet-head"><?= $this->getHtml('Type'); ?></div>
|
||||
<div class="portlet-head"><?= $this->getHtml('Categories'); ?></div>
|
||||
<div class="portlet-body">
|
||||
<table class="layout wf-100">
|
||||
<tr><td><?= $this->getHtml('Type'); ?>
|
||||
<tr><td>
|
||||
<label class="radio" for="iNewsTypeArticle">
|
||||
<input type="radio" name="type" id="iNewsTypeArticle" form="docForm" value="<?= $this->printHtml(NewsType::ARTICLE); ?>"<?= $news->getType() === NewsType::ARTICLE ? ' checked' : ''; ?>>
|
||||
|
|
@ -115,6 +116,8 @@ echo $this->getData('nav')->render(); ?>
|
|||
<span class="checkmark"></span>
|
||||
<?= $this->getHtml('Link'); ?>
|
||||
</label>
|
||||
<tr><td><?= $this->getHtml('Tags', 'Tag'); ?>
|
||||
<tr><td><?= $this->getData('tagSelector')->render('iTag', 'tag', 'fEditor', false); ?>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user