From 5f0539b106b82aef5b2946a61c357e86613e2756 Mon Sep 17 00:00:00 2001 From: Beppe Date: Tue, 22 Sep 2020 16:31:33 +0200 Subject: [PATCH] Nascondo le note interne ai clienti --- editor.php | 6 ++++++ modules/interventi/edit.php | 13 +++++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/editor.php b/editor.php index 4e5ad9c6e..d192d3ef6 100755 --- a/editor.php +++ b/editor.php @@ -418,6 +418,12 @@ if ($read_only || !empty($block_edit)) { $(".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) { echo ' $("a.btn, button, input[type=button], input[type=submit]", "section.content").hide(); diff --git a/modules/interventi/edit.php b/modules/interventi/edit.php index be2b7dc8f..aa679cbbb 100755 --- a/modules/interventi/edit.php +++ b/modules/interventi/edit.php @@ -285,10 +285,15 @@ echo '
{[ "type": "ckeditor", "label": "", "name": "descrizione", "class": "autosize", "value": "$descrizione$", "extra": "rows='10'", "readonly": "" ]}
- -
- {[ "type": "textarea", "label": "", "name": "informazioniaggiuntive", "class": "autosize", "value": "$informazioniaggiuntive$", "extra": "rows='5'" ]} -
+gruppo!="Clienti" ){ + echo ' +
+ {[ "type": "textarea", "label": "'.tr('Note interne').'", "name": "informazioniaggiuntive", "class": "autosize", "value": "$informazioniaggiuntive$", "extra": "rows=\'5\'" ]} +
'; + } +?>