mirror of
https://github.com/Karaka-Management/oms-Editor.git
synced 2026-02-09 15:08:40 +00:00
Fixing templates
This commit is contained in:
parent
98c1b5d50a
commit
2a619bdf0b
|
|
@ -17,12 +17,11 @@
|
||||||
* @var \phpOMS\Views\View $this
|
* @var \phpOMS\Views\View $this
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$doc = $this->getData('doc');
|
$doc = $this->getData('doc') ?? null;
|
||||||
|
?>
|
||||||
echo $this->getData('nav')->render(); ?>
|
<section class="box w-100">
|
||||||
<section class="box w-100">
|
|
||||||
<div class="inner">
|
<div class="inner">
|
||||||
<input type="text" name="title" placeholder=" This is a news title" form="newsForm">
|
<input type="text" name="title" form="docForm">
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
@ -47,19 +46,19 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<div class="box w-100">
|
<div class="box w-100">
|
||||||
<div class="tabular">
|
<div class="tabular">
|
||||||
<ul class="tab-links">
|
<ul class="tab-links">
|
||||||
<li><label for="c-tab-1"><?= $this->getText('Plain') ?></label>
|
<li><label for="c-tab-1"><?= $this->getText('Text') ?></label>
|
||||||
<li><label for="c-tab-2"><?= $this->getText('Preview') ?></label>
|
<li><label for="c-tab-2"><?= $this->getText('Preview') ?></label>
|
||||||
</ul>
|
</ul>
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<input type="radio" id="c-tab-1" name="tabular-1" checked>
|
<input type="radio" id="c-tab-1" name="tabular-1" checked>
|
||||||
|
|
||||||
<div class="tab">
|
<div class="tab">
|
||||||
<textarea style="height: 300px" placeholder="" name="plain" form="newsForm"><?= $doc->getPlain(); ?></textarea><input type="hidden" id="iParsed" name="parsed">
|
<textarea style="height: 300px" placeholder="" name="plain" form="docForm"><?= isset($doc) ? $doc->getPlain() : ''; ?></textarea><input type="hidden" id="iParsed" name="parsed">
|
||||||
</div>
|
</div>
|
||||||
<input type="radio" id="c-tab-2" name="tabular-1">
|
<input type="radio" id="c-tab-2" name="tabular-1">
|
||||||
|
|
||||||
<div class="tab">
|
<div class="tab">
|
||||||
<?= $doc->getContent(); ?>
|
<?= isset($doc) ? $doc->getContent() : ''; ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -26,4 +26,5 @@ return ['Editor' => [
|
||||||
'Preview' => 'Preview',
|
'Preview' => 'Preview',
|
||||||
'Start' => 'Start',
|
'Start' => 'Start',
|
||||||
'Text' => 'Text',
|
'Text' => 'Text',
|
||||||
|
'Title' => 'Title',
|
||||||
]];
|
]];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user