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 ' echo '
<div class="row"> <div class="row">
<div class="col-md-12"> <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).' ]} echo input([
</div> 'type' => 'ckeditor',
'use_full_ckeditor' => 1,
'label' => tr('Contenuto'),
'name' => 'body',
'id' => 'body_'.rand(0, 999),
'value' => json_encode($body),
]);
echo'
</div>
</div>'; </div>';
echo ' echo '

View File

@ -110,7 +110,15 @@ echo '
<div class="row"> <div class="row">
<div class="col-md-12"> <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>
</div> </div>

View File

@ -50,7 +50,15 @@ include_once __DIR__.'/../../core.php';
<div class="row"> <div class="row">
<div class="col-md-12"> <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> </div>
</div> </div>

View File

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

View File

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

View File

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

View File

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

View File

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