This commit is contained in:
MatteoPistorello 2023-02-24 14:49:41 +01:00
commit 75bc9dba22
8 changed files with 81 additions and 17 deletions

View File

@ -171,9 +171,18 @@ echo '
echo '
<div class="row">
<div class="col-md-12">
{[ "type": "ckeditor", "use_full_ckeditor": 1, "label": "'.tr('Contenuto').'", "name": "body", "id": "body_'.rand(0, 999).'", "value": '.json_encode($body).' ]}
</div>
<div class="col-md-12">';
echo input([
'type' => 'ckeditor',
'use_full_ckeditor' => 1,
'label' => tr('Contenuto'),
'name' => 'body',
'id' => 'body_'.rand(0, 999),
'value' => json_encode($body),
]);
echo'
</div>
</div>';
echo '

View File

@ -110,7 +110,15 @@ echo '
<div class="row">
<div class="col-md-12">
{[ "type": "ckeditor", "use_full_ckeditor": 1, "label": "<?php echo tr('Contenuto'); ?>", "name": "body", "value": "$body$" ]}
<?php
echo input([
'type' => 'ckeditor',
'use_full_ckeditor' => 1,
'label' => tr('Contenuto'),
'name' => 'body',
'value' => $record['body'],
]);
?>
</div>
</div>

View File

@ -50,7 +50,15 @@ include_once __DIR__.'/../../core.php';
<div class="row">
<div class="col-md-12">
{[ "type": "ckeditor", "use_full_ckeditor": 1, "label": "<?php echo tr('Descrizione'); ?>", "name": "descrizione", "value": "$descrizione$" ]}
<?php
echo input([
'type' => 'ckeditor',
'use_full_ckeditor' => 1,
'label' => tr('Descrizione'),
'name' => 'descrizione',
'value' => $record['descrizione'],
]);
?>
</div>
</div>
</div>

View File

@ -213,9 +213,18 @@ echo '
</div>
<div class="row">
<div class="col-md-12">
{[ "type": "ckeditor", "label": "'.tr('Richiesta').'", "name": "richiesta", "id": "richiesta_add", "required": 1, "value": "'.htmlentities($richiesta).'", "extra": "style=\'max-height:80px;\'" ]}
</div>
<div class="col-md-12">';
echo input([
'type' => 'ckeditor',
'label' => tr('Richiesta'),
'name' => 'richiesta',
'id' => 'richiesta_add',
'required' => 1,
'value' => htmlentities($record['richiesta']),
'extra' => 'style=\'max-height:80px;\'',
]);
echo '
</div>
</div>';

View File

@ -84,9 +84,16 @@ echo '
</div>
<div class="row">
<div class="col-md-12">
{[ "type": "ckeditor", "use_full_ckeditor": 1, "label": "'.tr('Contenuto').'", "name": "content", "value": "$content$" ]}
</div>
<div class="col-md-12">';
echo input([
'type' => 'ckeditor',
'use_full_ckeditor' => 1,
'label' => tr('Contenuto'),
'name' => 'content',
'value' => $record['content'],
]);
echo'
</div>
</div>
</div>

View File

@ -144,8 +144,16 @@ echo '
<div class="row">
<div class="col-md-12">
{[ "type": "ckeditor", "use_full_ckeditor": 0, "label": "<?php echo tr('Condizioni generali di fornitura'); ?>", "name": "condizioni_fornitura", "class": "autosize", "value": "$condizioni_fornitura$" ]}
</div>
<?php
echo input([
'type' => 'ckeditor',
'use_full_ckeditor' => 0,
'label' => tr('Condizioni generali di fornitura'),
'name' => 'condizioni_fornitura',
'value' => $record['condizioni_fornitura'],
]);
?>
</div>
</div>
<div class="row">

View File

@ -166,8 +166,16 @@ foreach ($elenchi as $elenco) {
</div>
<div class="row">
<div class="col-md-12">
{[ "type": "ckeditor", "label": "'.tr('Note').'", "name": "note", "id": "note_'.$componente->id.'", "value": "'.$componente['note'].'" ]}
<div class="col-md-12">';
echo input([
'type' => 'ckeditor',
'label' => tr('Note'),
'name' => 'note',
'id' => 'note_'.$componente->id,
'value' => $componente['note'],
]);
echo'
</div>
</div>

View File

@ -94,8 +94,15 @@ if ($structure->permission == 'rw') {
<input type="hidden" name="op" value="aggiungi-nota">
<input type="hidden" name="backto" value="record-edit">
<div class="row" >
<div class="col-md-12" >
{[ "type": "ckeditor", "label": "'.tr('Nuova nota').'", "name": "contenuto", "required": 1, "class": "unblockable" ]}
<div class="col-md-12" >';
echo input([
'type' => 'ckeditor',
'label' => tr('Nuova nota'),
'name' => 'contenuto',
'required' => 1,
'class' => 'unblockable',
]);
echo'
</div>
<div class="col-md-4" >
{[ "type": "date", "label": "'.tr('Data di notifica').'", "name": "data_notifica", "class": "unblockable", "help": "'.tr('Eventuale data di notifica di un promemoria di questa nota.').'" ]}