diff --git a/dicos/91_ninegate.xml b/dicos/91_ninegate.xml
index f51dffd3..fa3b5c08 100644
--- a/dicos/91_ninegate.xml
+++ b/dicos/91_ninegate.xml
@@ -37,6 +37,7 @@
non
non
non
+ non
non
non
non
@@ -195,6 +196,13 @@
+
+
+ non
+
+
+
+
non
@@ -400,6 +408,7 @@
Paramètres associés aux modules à activer
Paramètres associés à Adminer
Paramètres associés à Balado
+ Paramètres associés à CdT
Paramètres associés à Dokuwiki
Paramètres associés à eConnect
Paramètres associés à EAD
@@ -716,6 +725,7 @@
ninegate_activate_widadminer
ninegate_activate_widbalado
+ ninegate_activate_widcdt
ninegate_activate_widdokuwiki
ninegate_activate_wideconnect
ninegate_activate_widead
@@ -765,6 +775,7 @@
non
ninegate_widbalado_syncenvole
+ ninegate_widcdt_syncenvole
ninegate_widgepi_syncenvole
ninegate_widlimesurvey_syncenvole
ninegate_widmoodle_syncenvole
@@ -783,6 +794,7 @@
Annuaire
ninegate_widbalado_syncenvole
+ ninegate_widcdt_syncenvole
ninegate_widgepi_syncenvole
ninegate_widnextcloud_syncenvole
ninegate_widsacoche_syncenvole
@@ -812,7 +824,7 @@
-
+
oui
activer_balado
@@ -843,6 +855,39 @@
+
+
+
+ oui
+ activer_cdt
+ oui
+ non
+ non
+
+
+
+ non
+
+ ninegate_widcdt_url
+ ninegate_widcdt_syncenvole
+
+
+
+ oui
+ activer_cdt
+ /cdt
+ None
+
+
+
+ oui
+ activer_cdt
+ /posh-profil
+ None
+
+
+
+
oui
diff --git a/src/ninegate-1.0/src/Cadoles/CoreBundle/Command/InitDataCommand.php b/src/ninegate-1.0/src/Cadoles/CoreBundle/Command/InitDataCommand.php
index 40d845e9..923ab129 100644
--- a/src/ninegate-1.0/src/Cadoles/CoreBundle/Command/InitDataCommand.php
+++ b/src/ninegate-1.0/src/Cadoles/CoreBundle/Command/InitDataCommand.php
@@ -228,9 +228,17 @@ class InitDataCommand extends ContainerAwareCommand
$this->addModeration($profil,'cadoles_portal_config_flux',1);
$this->addModeration($profil,'cadoles_portal_config_notice',1);
$this->addModeration($profil,'cadoles_portal_config_icon',1);
+ $this->addModeration($profil,'cadoles_portal_config_syncbalado',0);
+ $this->addModeration($profil,'cadoles_portal_config_synccdt',0);
+ $this->addModeration($profil,'cadoles_portal_config_syncgepiannu',0);
+ $this->addModeration($profil,'cadoles_portal_config_syncgepisiecle',0);
$this->addModeration($profil,'cadoles_portal_config_synclimesurvey',0);
$this->addModeration($profil,'cadoles_portal_config_syncmoodle',0);
+ $this->addModeration($profil,'cadoles_portal_config_syncnextcloud',0);
+ $this->addModeration($profil,'cadoles_portal_config_syncsacoche',0);
+ $this->addModeration($profil,'cadoles_portal_config_syncpiwik',0);
$this->addModeration($profil,'cadoles_portal_config_syncwordpress',0);
+
$this->addModeration($profil,'cadoles_core_config_statistic',1);
$this->addModeration($profil,'cadoles_core_config_mailing',1);
$this->addModeration($profil,'cadoles_core_config_importuser',0);
diff --git a/src/ninegate-1.0/src/Cadoles/CoreBundle/Controller/PermmodoprofilController.php b/src/ninegate-1.0/src/Cadoles/CoreBundle/Controller/PermmodoprofilController.php
index 8915e428..9f4e0d68 100644
--- a/src/ninegate-1.0/src/Cadoles/CoreBundle/Controller/PermmodoprofilController.php
+++ b/src/ninegate-1.0/src/Cadoles/CoreBundle/Controller/PermmodoprofilController.php
@@ -331,8 +331,15 @@ class PermmodoprofilController extends Controller
$this->addModeration($profil,'cadoles_portal_config_flux',1);
$this->addModeration($profil,'cadoles_portal_config_notice',1);
$this->addModeration($profil,'cadoles_portal_config_icon',1);
+ $this->addModeration($profil,'cadoles_portal_config_syncbalado',0);
+ $this->addModeration($profil,'cadoles_portal_config_synccdt',0);
+ $this->addModeration($profil,'cadoles_portal_config_syncgepiannu',0);
+ $this->addModeration($profil,'cadoles_portal_config_syncgepisiecle',0);
$this->addModeration($profil,'cadoles_portal_config_synclimesurvey',0);
$this->addModeration($profil,'cadoles_portal_config_syncmoodle',0);
+ $this->addModeration($profil,'cadoles_portal_config_syncnextcloud',0);
+ $this->addModeration($profil,'cadoles_portal_config_syncsacoche',0);
+ $this->addModeration($profil,'cadoles_portal_config_syncpiwik',0);
$this->addModeration($profil,'cadoles_portal_config_syncwordpress',0);
$this->addModeration($profil,'cadoles_core_config_statistic',1);
$this->addModeration($profil,'cadoles_core_config_mailing',1);
diff --git a/src/ninegate-1.0/src/Cadoles/CoreBundle/EventListener/sessionListener.php b/src/ninegate-1.0/src/Cadoles/CoreBundle/EventListener/sessionListener.php
index 231c31fd..46d7fab9 100644
--- a/src/ninegate-1.0/src/Cadoles/CoreBundle/EventListener/sessionListener.php
+++ b/src/ninegate-1.0/src/Cadoles/CoreBundle/EventListener/sessionListener.php
@@ -94,6 +94,7 @@
$app["activate_widwordpress"] =$this->container->getParameter('activate_widwordpress');
$app["widbalado_activate_syncenvole"] =$this->container->getParameter('widbalado_activate_syncenvole');
+ $app["widcdt_activate_syncenvole"] =$this->container->getParameter('widcdt_activate_syncenvole');
$app["widgepi_activate_syncenvole"] =$this->container->getParameter('widgepi_activate_syncenvole');
$app["widnextcloud_activate_syncenvole"] =$this->container->getParameter('widnextcloud_activate_syncenvole');
$app["widpiwik_activate_syncenvole"] =$this->container->getParameter('widpiwik_activate_syncenvole');
diff --git a/src/ninegate-1.0/src/Cadoles/PortalBundle/Command/InitDataCommand.php b/src/ninegate-1.0/src/Cadoles/PortalBundle/Command/InitDataCommand.php
index 5139f18f..a0e7b03c 100644
--- a/src/ninegate-1.0/src/Cadoles/PortalBundle/Command/InitDataCommand.php
+++ b/src/ninegate-1.0/src/Cadoles/PortalBundle/Command/InitDataCommand.php
@@ -43,6 +43,7 @@ class InitDataCommand extends ContainerAwareCommand
$activate_widadminer = $this->getContainer()->getParameter('activate_widadminer');
$activate_widbalado = $this->getContainer()->getParameter('activate_widbalado');
+ $activate_widcdt = $this->getContainer()->getParameter('activate_widcdt');
$activate_widdokuwiki = $this->getContainer()->getParameter('activate_widdokuwiki');
$activate_wideconnect = $this->getContainer()->getParameter('activate_wideconnect');
$activate_widead = $this->getContainer()->getParameter('activate_widead');
@@ -414,6 +415,29 @@ class InitDataCommand extends ContainerAwareCommand
$em->persist($entityItem);
}
+ // Item CdT
+ if($activate_widcdt) {
+ $widcdt_url =$this->getContainer()->getParameter('widcdt_url');
+ $entityItem = $em->getRepository('CadolesPortalBundle:Item')->find(-391);
+ if(!$entityItem) {
+ $entityicon = $em->getRepository('CadolesPortalBundle:Icon')->findoneby(["label"=>"uploads/icon/icon_cdt.png"]);
+
+ $entityItem = new Item();
+ $entityItem->setId(-391);
+ $entityItem->setRowOrder(0);
+ $entityItem->setTitle('CdT');
+ $entityItem->setSubtitle("Application complète de gestion de cahier de texte scolaire");
+ $entityItem->SetContent("Application complète de gestion de cahier de texte scolaire");
+ $entityItem->setIcon($entityicon);
+ $entityItem->setTarget("_blank");
+ $entityItem->setItemcategory($entityItemcategoryapp);
+ $entityItem->setEssential(true);
+ $entityItem->addGroup($groupall);
+ }
+ $entityItem->setUrl($widcdt_url);
+ $em->persist($entityItem);
+ }
+
// Item Dokuwiki
if($activate_widdokuwiki) {
$widdokuwiki_url =$this->getContainer()->getParameter('widdokuwiki_url');
diff --git a/src/ninegate-1.0/src/Cadoles/PortalBundle/Controller/SyncenvoleController.php b/src/ninegate-1.0/src/Cadoles/PortalBundle/Controller/SyncenvoleController.php
index 34134022..b1df321f 100644
--- a/src/ninegate-1.0/src/Cadoles/PortalBundle/Controller/SyncenvoleController.php
+++ b/src/ninegate-1.0/src/Cadoles/PortalBundle/Controller/SyncenvoleController.php
@@ -39,6 +39,20 @@ class SyncenvoleController extends Controller
]);
}
+ public function cdtAction()
+ {
+ $url=$this->getParameter("widcdt_syncenvole");
+ $color=$this->get('session')->get('colormain');
+ $themename=$this->get('session')->get("theme");
+
+ return $this->render('CadolesPortalBundle:Tool:frame.html.twig', [
+ 'useheader' => true,
+ 'usemenu' => false,
+ 'usesidebar' => true,
+ 'url' => $url."/synchro.php?app=cdt&color=#color#"
+ ]);
+ }
+
public function gepiannuAction()
{
$url=$this->getParameter("widgepi_syncenvole");
diff --git a/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/config/routing.yml b/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/config/routing.yml
index 3301d274..f9cf7648 100644
--- a/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/config/routing.yml
+++ b/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/config/routing.yml
@@ -8,7 +8,11 @@ cadoles_portal_config_syncdelegation:
cadoles_portal_config_syncbalado:
path: /config/syncenvole/balado
defaults: { _controller: CadolesPortalBundle:Syncenvole:balado }
-
+
+cadoles_portal_config_synccdt:
+ path: /config/syncenvole/cdt
+ defaults: { _controller: CadolesPortalBundle:Syncenvole:cdt }
+
cadoles_portal_config_syncgepiannu:
path: /config/syncenvole/gepiannu
defaults: { _controller: CadolesPortalBundle:Syncenvole:gepiannu }
diff --git a/src/ninegate-1.0/web/uploads/icon/icon_cdt.png b/src/ninegate-1.0/web/uploads/icon/icon_cdt.png
new file mode 100644
index 00000000..9b17a134
Binary files /dev/null and b/src/ninegate-1.0/web/uploads/icon/icon_cdt.png differ
diff --git a/tmpl/ninegate-init-01.sql b/tmpl/ninegate-init-01.sql
index edc0d944..ba2ce2ac 100644
--- a/tmpl/ninegate-init-01.sql
+++ b/tmpl/ninegate-init-01.sql
@@ -67,6 +67,7 @@ INSERT IGNORE INTO `sidebar` (`id`, `parent_id`, `roworder`, `label`, `path`, `f
(3000, NULL, 3000, 'SYNCHRONISATION', NULL, 'fa fa-exchange-alt', 'ROLE_ADMIN,ROLE_MODO', 'syncenvole_activate'),
(3001, 3000, 3001, 'Délégation', 'cadoles_portal_config_syncdelegation', 'fa fa-balance-scale', 'ROLE_ADMIN,ROLE_MODO', 'syncenvole_activate'),
(3110, 3000, 3110, 'Balado', 'cadoles_portal_config_syncbalado', 'fa fa-microphone', 'ROLE_ADMIN,ROLE_MODO', 'widbalado_activate_syncenvole'),
+(3112, 3000, 3112, 'CdT', 'cadoles_portal_config_synccdt', 'fa fa-star', 'ROLE_ADMIN,ROLE_MODO', 'widcdt_activate_syncenvole'),
(3115, 3000, 3115, 'GEPI via Annuaire', 'cadoles_portal_config_syncgepiannu', 'fa fa-tags', 'ROLE_ADMIN,ROLE_MODO', 'widgepi_activate_syncenvole'),
(3116, 3000, 3116, 'GEPI via SIECLE', 'cadoles_portal_config_syncgepisiecle', 'fa fa-tags', 'ROLE_ADMIN,ROLE_MODO', 'widgepi_activate_syncenvole'),
(3120, 3000, 3120, 'Limesurvey', 'cadoles_portal_config_synclimesurvey', 'fa fa-question', 'ROLE_ADMIN,ROLE_MODO', 'activate_widlimesurvey'),
diff --git a/tmpl/ninegate-template.yml b/tmpl/ninegate-template.yml
index 012d46ed..5fbdef50 100644
--- a/tmpl/ninegate-template.yml
+++ b/tmpl/ninegate-template.yml
@@ -284,6 +284,20 @@ parameters:
widbalado_activate_syncenvole: false
%end if
+%if %%getVar("ninegate_activate_widcdt", 'non') == "oui"
+ activate_widcdt: true
+ widcdt_url: %%ninegate_widcdt_url
+ %if %%getVar("poshprofil_typesynchro", "") == "ENT"
+ widcdt_activate_syncenvole: true
+ widcdt_syncenvole: %%ninegate_widcdt_syncenvole
+ %else
+ widcdt_activate_syncenvole: false
+ %end if
+%else
+ activate_widcdt: false
+ widcdt_activate_syncenvole: false
+%end if
+
%if %%getVar("ninegate_activate_widdokuwiki", 'non') == "oui"
activate_widdokuwiki: true
widdokuwiki_url: %%ninegate_widdokuwiki_url