mirror of
https://github.com/Karaka-Management/oms-Editor.git
synced 2026-02-10 23:48:40 +00:00
Small template fixes for new css
This commit is contained in:
parent
b430c3d5f4
commit
20cbce7cdc
|
|
@ -30,11 +30,13 @@ use phpOMS\Views\View;
|
||||||
*/
|
*/
|
||||||
class TextView extends View
|
class TextView extends View
|
||||||
{
|
{
|
||||||
private $id = '';
|
private $id = '';
|
||||||
private $name = '';
|
private $name = '';
|
||||||
private $form = '';
|
private $form = '';
|
||||||
private $plain = '';
|
private $plain = '';
|
||||||
private $preview = '';
|
private $preview = '';
|
||||||
|
private $tplText = '';
|
||||||
|
private $tplValue = '';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
|
|
@ -70,16 +72,28 @@ class TextView extends View
|
||||||
return $this->plain;
|
return $this->plain;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getTplText() : string
|
||||||
|
{
|
||||||
|
return $this->tplText;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getTplValue() : string
|
||||||
|
{
|
||||||
|
return $this->tplValue;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
public function render(...$data) : string
|
public function render(...$data) : string
|
||||||
{
|
{
|
||||||
$this->id = $data[0] ?? '';
|
$this->id = $data[0] ?? '';
|
||||||
$this->name = $data[1] ?? '';
|
$this->name = $data[1] ?? '';
|
||||||
$this->form = $data[2] ?? '';
|
$this->form = $data[2] ?? '';
|
||||||
$this->plain = $data[3] ?? '';
|
$this->plain = $data[3] ?? '';
|
||||||
$this->preview = $data[4] ?? '';
|
$this->preview = $data[4] ?? '';
|
||||||
|
$this->tplText = $data[5] ?? '';
|
||||||
|
$this->tplValue = $data[6] ?? '';
|
||||||
|
|
||||||
return parent::render();
|
return parent::render();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
<!-- todo: here is a bug! Somehow this causes the main flex to not work properly (example tasks and click edit and make windows smaller to see the nav side bar freak out) somehow the overflow-x is messing something up. -->
|
||||||
<div id="<?= $this->printHtml($this->getId()); ?>" class="slider click">
|
<div id="<?= $this->printHtml($this->getId()); ?>" class="slider click">
|
||||||
<ul class="h-list">
|
<ul class="h-list">
|
||||||
<li><i data-editor-button="a" class="btn editor-button fa fa-lg fa-undo"></i>
|
<li><i data-editor-button="a" class="btn editor-button fa fa-lg fa-undo"></i>
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,9 @@
|
||||||
style="height: 300px"
|
style="height: 300px"
|
||||||
placeholder=""
|
placeholder=""
|
||||||
name="<?= $this->printHtml($this->getName()); ?>"
|
name="<?= $this->printHtml($this->getName()); ?>"
|
||||||
form="<?= $this->printHtml($this->getForm()); ?>">
|
form="<?= $this->printHtml($this->getForm()); ?>"
|
||||||
|
data-tpl-text="<?= $this->printHtml($this->getTplText()); ?>"
|
||||||
|
data-tpl-value="<?= $this->printHtml($this->getTplValue()); ?>">
|
||||||
<?= $this->printHtml($this->getPlain()); ?>
|
<?= $this->printHtml($this->getPlain()); ?>
|
||||||
</textarea><input type="hidden" id="<?= $this->printHtml($this->getId()); ?>-parsed">
|
</textarea><input type="hidden" id="<?= $this->printHtml($this->getId()); ?>-parsed">
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user