diff --git a/data/message/fr_FR-utf8/main.ini b/data/message/fr_FR-utf8/main.ini index 2d456a2..09943d7 100755 --- a/data/message/fr_FR-utf8/main.ini +++ b/data/message/fr_FR-utf8/main.ini @@ -46,6 +46,7 @@ ObjectPrintName = "Mes outils" ObjectClientPrintName = "Mes Services" allCom = "Toutes les communautés" registerCom = "S'inscrire à la communauté " +registerComClosed = "Inscription fermée" subscriptionCom = "Adhérer à " selectCom = "Sélectionnez une communauté" infoCom = "plus d'infos" diff --git a/data/template/qware/object_coordination/community/actionlecture.mxt b/data/template/qware/object_coordination/community/actionlecture.mxt index 1d91010..80d3c55 100755 --- a/data/template/qware/object_coordination/community/actionlecture.mxt +++ b/data/template/qware/object_coordination/community/actionlecture.mxt @@ -36,7 +36,9 @@
diff --git a/lib/object_coordination/community/community.php b/lib/object_coordination/community/community.php index ce950fd..0b237b7 100755 --- a/lib/object_coordination/community/community.php +++ b/lib/object_coordination/community/community.php @@ -107,7 +107,10 @@ Class Community extends CoordinationObj $GLOBALS["SYSTEM_TEMPLATE"]->MxAttribut("urlReturn", htmlentitiesconv($GLOBALS['CONF_PAGE_EXECUTION']."?id=".$GLOBALS['SYSTEM_USER_SESSION']->id."&system=navigationNode&navigationNodeId=".$GLOBALS["SYSTEM_USER_SESSION"]->entryNodeId)); - $GLOBALS["SYSTEM_TEMPLATE"]->MxAttribut("urlAction", Navigation::formatUrl($this->GetId(), "Community", "actionLecture", $msg)); +// if( $tabNode[$i][3] == "on" ) + $GLOBALS["SYSTEM_TEMPLATE"]->MxAttribut("blocRegister".".urlAction", Navigation::formatUrl($this->GetId(), "Community", "actionLecture", $msg)); +// else +// $GLOBALS["SYSTEM_TEMPLATE"]->MxBloc("blocRegister", "delete"); //Initialisation des compteurs $j =1; @@ -187,8 +190,14 @@ Class Community extends CoordinationObj $GLOBALS["SYSTEM_TEMPLATE"]->MxAttribut("bloc1.entrynodeid",$tabNode[$i][0]); $GLOBALS["SYSTEM_TEMPLATE"]->MxText("bloc1.entrynodeselected"," selected='selected' "); - $url_inscrire = Navigation::formatUrl($this->GetId(),"Community","formlecture","",$tabNode[$i][0]); - $GLOBALS["SYSTEM_TEMPLATE"]->MxFormField("inscrire", "button", "ok", getMessage("registerCom"), " onclick=\"javascript:window.location.href='$url_inscrire';\""); + + if( $tabNode[$i][3] == "on" ) + { + $url_inscrire = Navigation::formatUrl($this->GetId(),"Community","formlecture","",$tabNode[$i][0]); + $GLOBALS["SYSTEM_TEMPLATE"]->MxFormField("blocRegisterCom".".inscrire", "button", "ok", getMessage("registerCom"), " onclick=\"javascript:window.location.href='$url_inscrire';\" class=\"btn btn-outline-secondary btn-lg btn-sm\""); + } else { + $GLOBALS["SYSTEM_TEMPLATE"]->MxFormField("blocRegisterCom".".inscrire", "button", "ok", getMessage("registerComClosed"), "class=\"btn btn-secondary btn-lg btn-sm\" disabled"); + } } else {