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,8 +171,17 @@ 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([
'type' => 'ckeditor',
'use_full_ckeditor' => 1,
'label' => tr('Contenuto'),
'name' => 'body',
'id' => 'body_'.rand(0, 999),
'value' => json_encode($body),
]);
echo'
</div> </div>
</div>'; </div>';

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,8 +213,17 @@ 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([
'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>'; </div>';

View File

@ -84,8 +84,15 @@ 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([
'type' => 'ckeditor',
'use_full_ckeditor' => 1,
'label' => tr('Contenuto'),
'name' => 'content',
'value' => $record['content'],
]);
echo'
</div> </div>
</div> </div>

View File

@ -144,7 +144,15 @@ 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
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>

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.').'" ]}