draft tag adding

This commit is contained in:
Dennis Eichhorn 2020-07-29 23:54:01 +02:00
parent 568cae5226
commit 0865be0f93
4 changed files with 13 additions and 2 deletions

View File

@ -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;

View File

@ -18,6 +18,7 @@ return ['News' => [
'AllowComments' => 'Kommentare erlauben',
'Archive' => 'Archiv',
'Author' => 'Autor',
'Categories' => 'Kategorien',
'Date' => 'Datum',
'Draft' => 'Entwurf',
'Featured' => 'Featured',

View File

@ -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',

View File

@ -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>