draft tags

This commit is contained in:
Dennis Eichhorn 2020-07-29 23:54:47 +02:00
parent 9503aadbd7
commit c2c26e6968
4 changed files with 22 additions and 1 deletions

View File

@ -322,6 +322,9 @@ final class BackendController extends Controller
$editor = new \Modules\Editor\Theme\Backend\Components\Editor\BaseView($this->app->l11nManager, $request, $response);
$view->addData('editor', $editor);
$tagSelector = new \Modules\Tag\Theme\Backend\Components\TagSelector\BaseView($this->app->l11nManager, $request, $response);
$view->addData('tagSelector', $tagSelector);
$view->setData('doc', new NullWikiDoc());
return $view;

View File

@ -14,7 +14,9 @@ declare(strict_types=1);
return ['Knowledgebase' => [
'Active' => 'Aktiv',
'App' => 'App',
'Categories' => 'Kategorien',
'Category' => 'Kategorie',
'Draft' => 'Draft',
'Language' => 'Sprache',
'Name' => 'Name',

View File

@ -14,7 +14,9 @@ declare(strict_types=1);
return ['Knowledgebase' => [
'Active' => 'Active',
'App' => 'App',
'Categories' => 'Categories',
'Category' => 'Category',
'Draft' => 'Draft',
'Language' => 'Language',
'Name' => 'Name',

View File

@ -47,7 +47,7 @@ echo $this->getData('nav')->render(); ?>
<div class="col-xs-12 col-md-3">
<section class="portlet">
<form id="docForm" method="<?= $isNewDoc ? 'PUT' : 'POST'; ?>" action="<?= UriFactory::build('{/api}wiki?' . ($isNewDoc ? '' : 'id={?id}&') . 'csrf={$CSRF}'); ?>">
<form id="docForm" method="<?= $isNewDoc ? 'PUT' : 'POST'; ?>" action="<?= UriFactory::build('{/api}wiki/doc?' . ($isNewDoc ? '' : 'id={?id}&') . 'csrf={$CSRF}'); ?>">
<div class="portlet-head"><?= $this->getHtml('Status'); ?></div>
<div class="portlet-body">
<table class="layout wf-100">
@ -80,5 +80,19 @@ echo $this->getData('nav')->render(); ?>
</div>
</form>
</section>
<section class="portlet">
<div class="portlet-head"><?= $this->getHtml('Categories'); ?></div>
<div class="portlet-body">
<table class="layout wf-100">
<tr><td><label for="iApp"><?= $this->getHtml('App'); ?></label>
<tr><td><select id="iApp" name="app"></select>
<tr><td><label for="iCategory"><?= $this->getHtml('Category'); ?></label>
<tr><td><select id="iCategory" name="category"></select>
<tr><td><?= $this->getHtml('Tags', 'Tag'); ?>
<tr><td><?= $this->getData('tagSelector')->render('iTag', 'tag', 'fEditor', false); ?>
</table>
</div>
</section>
</div>
</div>