2022-03-04 10:15:24 +01:00
|
|
|
<?php echo template::formOpen('pageJsEditorForm'); ?>
|
2022-09-29 08:45:59 +02:00
|
|
|
<div class="row">
|
|
|
|
<div class="col1">
|
|
|
|
<?php echo template::button('pageJsEditorBack', [
|
|
|
|
'class' => 'buttonGrey',
|
|
|
|
'href' => helper::baseUrl() . 'page/edit/' . $this->getUrl(2),
|
|
|
|
'value' => template::ico('left')
|
|
|
|
]); ?>
|
2022-03-04 10:15:24 +01:00
|
|
|
</div>
|
2022-09-29 08:45:59 +02:00
|
|
|
<div class="col2 offset9">
|
|
|
|
<?php echo template::submit('pageJsEditorSubmit'); ?>
|
2022-03-04 10:15:24 +01:00
|
|
|
</div>
|
2022-09-29 08:45:59 +02:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col12">
|
|
|
|
<?php echo template::textarea('pageJsEditorContent', [
|
2023-01-11 18:01:35 +01:00
|
|
|
'value' => is_null($this->getData(['page', $this->getUrl(2), 'js'])) ? '' : $this->getData(['page', $this->getUrl(2), 'js']),
|
2022-09-29 08:45:59 +02:00
|
|
|
'class' => 'editor'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-03-04 10:15:24 +01:00
|
|
|
<?php echo template::formClose(); ?>
|