Nascondo le note interne ai clienti
This commit is contained in:
parent
19e6a8ac23
commit
5f0539b106
|
@ -418,6 +418,12 @@ if ($read_only || !empty($block_edit)) {
|
||||||
$(".checkbox-buttons label", "section.content")'.$not.'.addClass("disabled");
|
$(".checkbox-buttons label", "section.content")'.$not.'.addClass("disabled");
|
||||||
';
|
';
|
||||||
|
|
||||||
|
//Nascondo il plugin note interne ai clienti
|
||||||
|
if( $user->gruppo=="Clienti" ){
|
||||||
|
echo '
|
||||||
|
$("#link-tab_note").hide();';
|
||||||
|
}
|
||||||
|
|
||||||
if ($read_only) {
|
if ($read_only) {
|
||||||
echo '
|
echo '
|
||||||
$("a.btn, button, input[type=button], input[type=submit]", "section.content").hide();
|
$("a.btn, button, input[type=button], input[type=submit]", "section.content").hide();
|
||||||
|
|
|
@ -285,10 +285,15 @@ echo '
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
{[ "type": "ckeditor", "label": "<?php echo tr('Descrizione'); ?>", "name": "descrizione", "class": "autosize", "value": "$descrizione$", "extra": "rows='10'", "readonly": "<?php echo $record['flag_completato']; ?>" ]}
|
{[ "type": "ckeditor", "label": "<?php echo tr('Descrizione'); ?>", "name": "descrizione", "class": "autosize", "value": "$descrizione$", "extra": "rows='10'", "readonly": "<?php echo $record['flag_completato']; ?>" ]}
|
||||||
</div>
|
</div>
|
||||||
|
<?php
|
||||||
<div class="col-md-12">
|
//Nascondo le note interne ai clienti
|
||||||
{[ "type": "textarea", "label": "<?php echo tr('Note interne'); ?>", "name": "informazioniaggiuntive", "class": "autosize", "value": "$informazioniaggiuntive$", "extra": "rows='5'" ]}
|
if( $user->gruppo!="Clienti" ){
|
||||||
</div>
|
echo '
|
||||||
|
<div class="col-md-12">
|
||||||
|
{[ "type": "textarea", "label": "'.tr('Note interne').'", "name": "informazioniaggiuntive", "class": "autosize", "value": "$informazioniaggiuntive$", "extra": "rows=\'5\'" ]}
|
||||||
|
</div>';
|
||||||
|
}
|
||||||
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue