diff --git a/dicos/90_ninegate.xml b/dicos/90_ninegate.xml index 644eca8c..2c296249 100644 --- a/dicos/90_ninegate.xml +++ b/dicos/90_ninegate.xml @@ -44,8 +44,10 @@ + + - + + @@ -175,6 +178,7 @@ non + @@ -216,6 +220,7 @@ non + @@ -258,6 +263,7 @@ non + @@ -499,13 +505,30 @@ non + ninegate_widbalado_syncenvole + ninegate_widgepi_syncenvole ninegate_widlimesurvey_syncenvole ninegate_widmoodle_syncenvole + ninegate_widnextcloud_syncenvole ninegate_widpiwik_syncenvole + ninegate_widsacoche_syncenvole ninegate_widwordpress_syncenvole + + ENT + ninegate_widpiwik_syncenvole + + + + Annuaire + ninegate_widbalado_syncenvole + ninegate_widgepi_syncenvole + ninegate_widnextcloud_syncenvole + ninegate_widsacoche_syncenvole + + diff --git a/src/ninegate-1.0/src/Cadoles/CoreBundle/Command/data/core-init-01.sql b/src/ninegate-1.0/src/Cadoles/CoreBundle/Command/data/core-init-01.sql index b20c2ba1..920e1441 100644 --- a/src/ninegate-1.0/src/Cadoles/CoreBundle/Command/data/core-init-01.sql +++ b/src/ninegate-1.0/src/Cadoles/CoreBundle/Command/data/core-init-01.sql @@ -8,7 +8,7 @@ INSERT IGNORE INTO `niveau01` (`id`, `label`, `siren`) VALUES (-100, 'DRAAF', '130007107'); INSERT IGNORE INTO `user` (`id`, `niveau01_id`, `username`, `firstname`, `lastname`, `password`, `email`, `avatar`, `role`,`siren`,`authlevel`) VALUES -(-100, -100, 'admin', 'Administrateur', 'draaf', '{SSHA}nr/6ZYJbDQlAIrk3ju9hauaxMsRUKzrx +(-100, -100, 'admin', 'Administrateur', 'draaf', '{SSHA}eRflbCDVFjT1tSjEA21WvpieJT9e1Ozo ', 'admin@ldapbundle.ac-arno.fr', 'admin.jpg', 'ROLE_ADMIN', '130007107', 'simple'); @@ -56,7 +56,7 @@ INSERT IGNORE INTO `sidebar` (`id`, `parent_id`, `roworder`, `label`, `path`, `f (3001, 3000, 3001, 'Délégation', 'cadoles_portal_config_syncdelegation', 'fa-balance-scale', 'ROLE_ADMIN,ROLE_MODO', 'syncenvole_activate'), (3120, 3000, 3120, 'Limesurvey', 'cadoles_portal_config_synclimesurvey', 'fa-question', 'ROLE_ADMIN,ROLE_MODO', 'activate_widlimesurvey'), (3130, 3000, 3130, 'Moodle', 'cadoles_portal_config_syncmoodle', 'fa-graduation-cap', 'ROLE_ADMIN,ROLE_MODO', 'activate_widmoodle'), -(3160, 3000, 3160, 'Piwik', 'cadoles_portal_config_syncpiwik', 'fa-signal', 'ROLE_ADMIN,ROLE_MODO', 'activate_widpiwik'), +(3160, 3000, 3160, 'Piwik', 'cadoles_portal_config_syncpiwik', 'fa-signal', 'ROLE_ADMIN,ROLE_MODO', 'widpiwik_activate_syncenvole'), (3230, 3000, 3230, 'Wordpress', 'cadoles_portal_config_syncwordpress', 'fa-wordpress', 'ROLE_ADMIN,ROLE_MODO', 'activate_widwordpress'), (7000, NULL, 7000, 'CRON', NULL, 'fa-bolt', 'ROLE_ADMIN,ROLE_MODO', 'cron_activate'), 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 91f7fbfe..a82ab230 100644 --- a/src/ninegate-1.0/src/Cadoles/CoreBundle/EventListener/sessionListener.php +++ b/src/ninegate-1.0/src/Cadoles/CoreBundle/EventListener/sessionListener.php @@ -79,22 +79,29 @@ // App activate $app=[]; - $app["importuser_activate"] =($masteridentity=="SQL"); - $app["portal_activate"] =$this->container->getParameter('portal_activate'); - $app["cron_activate"] =$this->container->getParameter('cron_activate'); - $app["module_activate"] =$this->container->getParameter('module_activate'); - $app["page_activate"] =$this->container->getParameter('page_activate'); - $app["item_activate"] =$this->container->getParameter('item_activate'); - $app["alert_activate"] =$this->container->getParameter('alert_activate'); - $app["calendar_activate"] =$this->container->getParameter('calendar_activate'); - $app["blog_activate"] =$this->container->getParameter('blog_activate'); - $app["flux_activate"] =$this->container->getParameter('flux_activate'); - $app["notice_activate"] =$this->container->getParameter('notice_activate'); - $app["syncenvole_activate"] =$this->container->getParameter('syncenvole_activate'); - $app["activate_widlimesurvey"] =$this->container->getParameter('activate_widlimesurvey'); - $app["activate_widmoodle"] =$this->container->getParameter('activate_widmoodle'); - $app["activate_widpiwik"] =$this->container->getParameter('activate_widpiwik'); - $app["activate_widwordpress"] =$this->container->getParameter('activate_widwordpress'); + $app["importuser_activate"] =($masteridentity=="SQL"); + + $app["portal_activate"] =$this->container->getParameter('portal_activate'); + $app["cron_activate"] =$this->container->getParameter('cron_activate'); + $app["module_activate"] =$this->container->getParameter('module_activate'); + $app["page_activate"] =$this->container->getParameter('page_activate'); + $app["item_activate"] =$this->container->getParameter('item_activate'); + $app["alert_activate"] =$this->container->getParameter('alert_activate'); + $app["calendar_activate"] =$this->container->getParameter('calendar_activate'); + $app["blog_activate"] =$this->container->getParameter('blog_activate'); + $app["flux_activate"] =$this->container->getParameter('flux_activate'); + $app["notice_activate"] =$this->container->getParameter('notice_activate'); + $app["syncenvole_activate"] =$this->container->getParameter('syncenvole_activate'); + $app["activate_widlimesurvey"] =$this->container->getParameter('activate_widlimesurvey'); + $app["activate_widmoodle"] =$this->container->getParameter('activate_widmoodle'); + $app["activate_widpiwik"] =$this->container->getParameter('activate_widpiwik'); + $app["activate_widwordpress"] =$this->container->getParameter('activate_widwordpress'); + + $app["widbalado_activate_syncenvole"] =$this->container->getParameter('widbalado_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'); + $app["widsacoche_activate_syncenvole"] =$this->container->getParameter('widsacoche_activate_syncenvole'); // Chargement de la sidebar $iconniveau01 =$this->container->getParameter('iconniveau01'); 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 890f8674..4b15b613 100644 --- a/src/ninegate-1.0/src/Cadoles/PortalBundle/Controller/SyncenvoleController.php +++ b/src/ninegate-1.0/src/Cadoles/PortalBundle/Controller/SyncenvoleController.php @@ -25,6 +25,48 @@ class SyncenvoleController extends Controller ]); } + public function baladoAction() + { + $url=$this->getParameter("widlimesurvey_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=balado&color=#color#" + ]); + } + + public function gepiannuAction() + { + $url=$this->getParameter("widlimesurvey_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=gepiannu&color=#color#" + ]); + } + + public function gepisiecleAction() + { + $url=$this->getParameter("widlimesurvey_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=gepisiecle&color=#color#" + ]); + } + public function limesurveyAction() { $url=$this->getParameter("widlimesurvey_syncenvole"); @@ -53,6 +95,20 @@ class SyncenvoleController extends Controller ]); } + public function nextcloudAction() + { + $url=$this->getParameter("widlimesurvey_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=nextcloud&color=#color#" + ]); + } + public function piwikAction() { $url=$this->getParameter("widpiwik_syncenvole"); @@ -67,6 +123,20 @@ class SyncenvoleController extends Controller ]); } + public function sacocheAction() + { + $url=$this->getParameter("widlimesurvey_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=sacoche&color=#color#" + ]); + } + public function wordpressAction() { $url=$this->getParameter("widwordpress_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 aa573960..7d56b011 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 @@ -5,6 +5,18 @@ cadoles_portal_config_syncdelegation: path: /config/syncenvole/delegation defaults: { _controller: CadolesPortalBundle:Syncenvole:delegation } +cadoles_portal_config_syncbalado: + path: /config/syncenvole/balado + defaults: { _controller: CadolesPortalBundle:Syncenvole:balado } + +cadoles_portal_config_syncgepiannu: + path: /config/syncenvole/gepiannu + defaults: { _controller: CadolesPortalBundle:Syncenvole:gepiannu } + +cadoles_portal_config_syncgepisiecle: + path: /config/syncenvole/gepisiecle + defaults: { _controller: CadolesPortalBundle:Syncenvole:gepisiecle } + cadoles_portal_config_synclimesurvey: path: /config/syncenvole/limesurvey defaults: { _controller: CadolesPortalBundle:Syncenvole:limesurvey } @@ -13,6 +25,14 @@ cadoles_portal_config_syncmoodle: path: /config/syncenvole/moodle defaults: { _controller: CadolesPortalBundle:Syncenvole:moodle } +cadoles_portal_config_syncnextcloud: + path: /config/syncenvole/nextcloud + defaults: { _controller: CadolesPortalBundle:Syncenvole:nextcloud } + +cadoles_portal_config_syncsacoche: + path: /config/syncenvole/sacoche + defaults: { _controller: CadolesPortalBundle:Syncenvole:sacoche } + cadoles_portal_config_syncpiwik: path: /config/syncenvole/piwik defaults: { _controller: CadolesPortalBundle:Syncenvole:piwik } diff --git a/tmpl/ninegate-init-01.sql b/tmpl/ninegate-init-01.sql index d042f2fc..98b2581d 100644 --- a/tmpl/ninegate-init-01.sql +++ b/tmpl/ninegate-init-01.sql @@ -24,55 +24,60 @@ INSERT IGNORE INTO `user` (`id`, `niveau01_id`, `username`, `firstname`, `lastna TRUNCATE TABLE sidebar; INSERT IGNORE INTO `sidebar` (`id`, `parent_id`, `roworder`, `label`, `path`, `fonticon`, `permission`, `appactivate`) VALUES -(1000, NULL, 1000, 'CONFIGURATION', NULL, 'fa-gear', 'ROLE_ADMIN,ROLE_MODO', ''), -(1010, 1000, 1010, 'Générale', 'cadoles_core_config_commun', 'fa-table', 'ROLE_ADMIN,ROLE_MODO', ''), -(1020, 1000, 1020, 'Thème', 'cadoles_core_config_theme', 'fa-paint-brush', 'ROLE_ADMIN,ROLE_MODO', ''), -(1030, 1000, 1030, 'Modération', 'cadoles_core_config_permmodo', 'fa-balance-scale', 'ROLE_ADMIN', ''), -(1040, 1000, 1040, 'Fiche Utilisateur', 'cadoles_core_config_datauser', 'fa-gear', 'ROLE_ADMIN,ROLE_MODO', ''), -(1050, 1000, 1050, 'Liste Utilisateurs', 'cadoles_core_config_datausers', 'fa-gear', 'ROLE_ADMIN,ROLE_MODO', ''), +(1000, NULL, 1000, 'CONFIGURATION', NULL, 'fa-gear', 'ROLE_ADMIN,ROLE_MODO', ''), +(1010, 1000, 1010, 'Générale', 'cadoles_core_config_commun', 'fa-table', 'ROLE_ADMIN,ROLE_MODO', ''), +(1020, 1000, 1020, 'Thème', 'cadoles_core_config_theme', 'fa-paint-brush', 'ROLE_ADMIN,ROLE_MODO', ''), +(1030, 1000, 1030, 'Modération', 'cadoles_core_config_permmodo', 'fa-balance-scale', 'ROLE_ADMIN', ''), +(1040, 1000, 1040, 'Fiche Utilisateur', 'cadoles_core_config_datauser', 'fa-gear', 'ROLE_ADMIN,ROLE_MODO', ''), +(1050, 1000, 1050, 'Liste Utilisateurs', 'cadoles_core_config_datausers', 'fa-gear', 'ROLE_ADMIN,ROLE_MODO', ''), -(1200, NULL, 1200, 'ORGANISATION', NULL, 'fa-sitemap', 'ROLE_ADMIN,ROLE_MODO', ''), -(1210, 1200, 1210, 'Listes Blanche', 'cadoles_core_config_whitelist', 'fa-tasks', 'ROLE_ADMIN,ROLE_MODO', ''), -(1220, 1200, 1220, 'Niveau 01', 'cadoles_core_config_niveau01', 'fa-building', 'ROLE_ADMIN,ROLE_MODO', ''), +(1200, NULL, 1200, 'ORGANISATION', NULL, 'fa-sitemap', 'ROLE_ADMIN,ROLE_MODO', ''), +(1210, 1200, 1210, 'Listes Blanche', 'cadoles_core_config_whitelist', 'fa-tasks', 'ROLE_ADMIN,ROLE_MODO', ''), +(1220, 1200, 1220, 'Niveau 01', 'cadoles_core_config_niveau01', 'fa-building', 'ROLE_ADMIN,ROLE_MODO', ''), %if %%getVar("ninegate_niveau02view", 'non') == "oui" -(1230, 1200, 1230, 'Niveau 02', 'cadoles_core_config_niveau02', 'fa-sitemap', 'ROLE_ADMIN,ROLE_MODO', ''), +(1230, 1200, 1230, 'Niveau 02', 'cadoles_core_config_niveau02', 'fa-sitemap', 'ROLE_ADMIN,ROLE_MODO', ''), %end if -(1240, 1200, 1240, 'Groupes', 'cadoles_core_config_group', 'fa-users', 'ROLE_ADMIN,ROLE_MODO', ''), -(1250, 1200, 1250, 'Inscriptions', 'cadoles_core_config_registration', 'fa-pencil-square-o', 'ROLE_ADMIN,ROLE_MODO', ''), -(1260, 1200, 1260, 'Utilisateurs', 'cadoles_core_config_user', 'fa-child', 'ROLE_ADMIN,ROLE_MODO', ''), -(1270, 1200, 1270, 'Import Utilisateurs', 'cadoles_core_config_importuser', 'fa-download', 'ROLE_ADMIN,ROLE_MODO', 'importuser_activate'), +(1240, 1200, 1240, 'Groupes', 'cadoles_core_config_group', 'fa-users', 'ROLE_ADMIN,ROLE_MODO', ''), +(1250, 1200, 1250, 'Inscriptions', 'cadoles_core_config_registration', 'fa-pencil-square-o', 'ROLE_ADMIN,ROLE_MODO', ''), +(1260, 1200, 1260, 'Utilisateurs', 'cadoles_core_config_user', 'fa-child', 'ROLE_ADMIN,ROLE_MODO', ''), +(1270, 1200, 1270, 'Import Utilisateurs', 'cadoles_core_config_importuser', 'fa-download', 'ROLE_ADMIN,ROLE_MODO', 'importuser_activate'), -(1500, NULL, 1500, 'PORTAIL', NULL, 'fa-cubes', 'ROLE_ADMIN,ROLE_MODO', 'portal_activate'), -(1510, 1500, 1510, 'Modèles de Page', 'cadoles_portal_config_pagetemplate', 'fa-copy', 'ROLE_ADMIN,ROLE_MODO', 'portal_activate'), -(1520, 1500, 1520, 'Pages', 'cadoles_portal_config_page', 'fa-file', 'ROLE_ADMIN,ROLE_MODO', 'portal_activate'), -(1530, 1500, 1530, 'Items', 'cadoles_portal_config_item', 'fa-desktop', 'ROLE_ADMIN,ROLE_MODO', 'portal_activate'), -(1540, 1500, 1540, 'Annonces', 'cadoles_portal_config_alert', 'fa-bell', 'ROLE_ADMIN,ROLE_MODO', 'portal_activate'), -(1550, 1500, 1550, 'Calendriers', 'cadoles_portal_config_calendar', 'fa-calendar', 'ROLE_ADMIN,ROLE_MODO', 'portal_activate'), -(1560, 1500, 1560, 'Blogs', 'cadoles_portal_config_blog', 'fa-paper-plane', 'ROLE_ADMIN,ROLE_MODO', 'portal_activate'), -(1570, 1500, 1570, 'Flux', 'cadoles_portal_config_flux', 'fa-rss', 'ROLE_ADMIN,ROLE_MODO', 'portal_activate'), -(1580, 1500, 1580, 'Chartes', 'cadoles_portal_config_notice', 'fa-info', 'ROLE_ADMIN,ROLE_MODO', 'portal_activate'), -(1590, 1500, 1590, 'Icônes', 'cadoles_portal_config_icon', 'fa-bug', 'ROLE_ADMIN,ROLE_MODO', 'portal_activate'), +(1500, NULL, 1500, 'PORTAIL', NULL, 'fa-cubes', 'ROLE_ADMIN,ROLE_MODO', 'portal_activate'), +(1510, 1500, 1510, 'Modèles de Page', 'cadoles_portal_config_pagetemplate', 'fa-copy', 'ROLE_ADMIN,ROLE_MODO', 'portal_activate'), +(1520, 1500, 1520, 'Pages', 'cadoles_portal_config_page', 'fa-file', 'ROLE_ADMIN,ROLE_MODO', 'portal_activate'), +(1530, 1500, 1530, 'Items', 'cadoles_portal_config_item', 'fa-desktop', 'ROLE_ADMIN,ROLE_MODO', 'portal_activate'), +(1540, 1500, 1540, 'Annonces', 'cadoles_portal_config_alert', 'fa-bell', 'ROLE_ADMIN,ROLE_MODO', 'portal_activate'), +(1550, 1500, 1550, 'Calendriers', 'cadoles_portal_config_calendar', 'fa-calendar', 'ROLE_ADMIN,ROLE_MODO', 'portal_activate'), +(1560, 1500, 1560, 'Blogs', 'cadoles_portal_config_blog', 'fa-paper-plane', 'ROLE_ADMIN,ROLE_MODO', 'portal_activate'), +(1570, 1500, 1570, 'Flux', 'cadoles_portal_config_flux', 'fa-rss', 'ROLE_ADMIN,ROLE_MODO', 'portal_activate'), +(1580, 1500, 1580, 'Chartes', 'cadoles_portal_config_notice', 'fa-info', 'ROLE_ADMIN,ROLE_MODO', 'portal_activate'), +(1590, 1500, 1590, 'Icônes', 'cadoles_portal_config_icon', 'fa-bug', 'ROLE_ADMIN,ROLE_MODO', 'portal_activate'), -(2500, NULL, 2500, 'MODULES', NULL, 'fa-cubes', 'ROLE_ADMIN,ROLE_MODO', 'module_activate'), -(2510, 2500, 2510, 'Pages', 'cadoles_portal_config_page', 'fa-file', 'ROLE_ADMIN,ROLE_MODO', 'page_activate'), -(2520, 2500, 2520, 'Items', 'cadoles_portal_config_item', 'fa-desktop', 'ROLE_ADMIN,ROLE_MODO', 'item_activate'), -(2530, 2500, 2530, 'Annonces', 'cadoles_portal_config_alert', 'fa-bell', 'ROLE_ADMIN,ROLE_MODO', 'alert_activate'), -(2540, 2500, 2540, 'Calendriers', 'cadoles_portal_config_calendar', 'fa-calendar', 'ROLE_ADMIN,ROLE_MODO', 'calendar_activate'), -(2550, 2500, 2550, 'Blogs', 'cadoles_portal_config_blog', 'fa-paper-plane', 'ROLE_ADMIN,ROLE_MODO', 'blog_activate'), -(2560, 2500, 2560, 'Flux', 'cadoles_portal_config_flux', 'fa-rss', 'ROLE_ADMIN,ROLE_MODO', 'flux_activate'), -(2570, 2500, 2570, 'Chartes', 'cadoles_portal_config_notice', 'fa-info', 'ROLE_ADMIN,ROLE_MODO', 'notice_activate'), -(2580, 2500, 2580, 'Icônes', 'cadoles_portal_config_icon', 'fa-bug', 'ROLE_ADMIN,ROLE_MODO', 'module_activate'), +(2500, NULL, 2500, 'MODULES', NULL, 'fa-cubes', 'ROLE_ADMIN,ROLE_MODO', 'module_activate'), +(2510, 2500, 2510, 'Pages', 'cadoles_portal_config_page', 'fa-file', 'ROLE_ADMIN,ROLE_MODO', 'page_activate'), +(2520, 2500, 2520, 'Items', 'cadoles_portal_config_item', 'fa-desktop', 'ROLE_ADMIN,ROLE_MODO', 'item_activate'), +(2530, 2500, 2530, 'Annonces', 'cadoles_portal_config_alert', 'fa-bell', 'ROLE_ADMIN,ROLE_MODO', 'alert_activate'), +(2540, 2500, 2540, 'Calendriers', 'cadoles_portal_config_calendar', 'fa-calendar', 'ROLE_ADMIN,ROLE_MODO', 'calendar_activate'), +(2550, 2500, 2550, 'Blogs', 'cadoles_portal_config_blog', 'fa-paper-plane', 'ROLE_ADMIN,ROLE_MODO', 'blog_activate'), +(2560, 2500, 2560, 'Flux', 'cadoles_portal_config_flux', 'fa-rss', 'ROLE_ADMIN,ROLE_MODO', 'flux_activate'), +(2570, 2500, 2570, 'Chartes', 'cadoles_portal_config_notice', 'fa-info', 'ROLE_ADMIN,ROLE_MODO', 'notice_activate'), +(2580, 2500, 2580, 'Icônes', 'cadoles_portal_config_icon', 'fa-bug', 'ROLE_ADMIN,ROLE_MODO', 'module_activate'), -(3000, NULL, 3000, 'SYNCHRONISATION', NULL, 'fa-exchange', 'ROLE_ADMIN,ROLE_MODO', 'syncenvole_activate'), -(3001, 3000, 3001, 'Délégation', 'cadoles_portal_config_syncdelegation', 'fa-balance-scale', 'ROLE_ADMIN,ROLE_MODO', 'syncenvole_activate'), -(3120, 3000, 3120, 'Limesurvey', 'cadoles_portal_config_synclimesurvey', 'fa-question', 'ROLE_ADMIN,ROLE_MODO', 'activate_widlimesurvey'), -(3130, 3000, 3130, 'Moodle', 'cadoles_portal_config_syncmoodle', 'fa-graduation-cap', 'ROLE_ADMIN,ROLE_MODO', 'activate_widmoodle'), -(3160, 3000, 3160, 'Piwik', 'cadoles_portal_config_syncpiwik', 'fa-signal', 'ROLE_ADMIN,ROLE_MODO', 'activate_widpiwik'), -(3230, 3000, 3230, 'Wordpress', 'cadoles_portal_config_syncwordpress', 'fa-wordpress', 'ROLE_ADMIN,ROLE_MODO', 'activate_widwordpress'), +(3000, NULL, 3000, 'SYNCHRONISATION', NULL, 'fa-exchange', 'ROLE_ADMIN,ROLE_MODO', 'syncenvole_activate'), +(3001, 3000, 3001, 'Délégation', 'cadoles_portal_config_syncdelegation', 'fa-balance-scale', 'ROLE_ADMIN,ROLE_MODO', 'syncenvole_activate'), +(3110, 3000, 3110, 'Balado', 'cadoles_portal_config_syncbalado', 'fa-microphone', 'ROLE_ADMIN,ROLE_MODO', 'widbalado_activate_syncenvole'), +(3115, 3000, 3115, 'GEPI via Annuaire', 'cadoles_portal_config_syncgepiannu', 'fa-tags', 'ROLE_ADMIN,ROLE_MODO', 'widgepi_activate_syncenvole'), +(3116, 3000, 3116, 'GEPI via SIECLE', 'cadoles_portal_config_syncgepisiecle', 'fa-tags', 'ROLE_ADMIN,ROLE_MODO', 'widgepi_activate_syncenvole'), +(3120, 3000, 3120, 'Limesurvey', 'cadoles_portal_config_synclimesurvey', 'fa-question', 'ROLE_ADMIN,ROLE_MODO', 'activate_widlimesurvey'), +(3130, 3000, 3130, 'Moodle', 'cadoles_portal_config_syncmoodle', 'fa-graduation-cap', 'ROLE_ADMIN,ROLE_MODO', 'activate_widmoodle'), +(3140, 3000, 3140, 'Nexcloud', 'cadoles_portal_config_syncnextcloud', 'fa-cloud', 'ROLE_ADMIN,ROLE_MODO', 'widnextcloud_activate_syncenvole'), +(3150, 3000, 3150, 'Sacoche via SIECLE', 'cadoles_portal_config_syncsacoche', 'fa-suitcase', 'ROLE_ADMIN,ROLE_MODO', 'widsacoche_activate_syncenvole'), +(3160, 3000, 3160, 'Piwik', 'cadoles_portal_config_syncpiwik', 'fa-signal', 'ROLE_ADMIN,ROLE_MODO', 'widpiwik_activate_syncenvole'), +(3230, 3000, 3230, 'Wordpress', 'cadoles_portal_config_syncwordpress', 'fa-wordpress', 'ROLE_ADMIN,ROLE_MODO', 'activate_widwordpress'), -(7000, NULL, 7000, 'CRON', NULL, 'fa-bolt', 'ROLE_ADMIN,ROLE_MODO', 'cron_activate'), -(7010, 7000, 7010, 'Jobs', 'cadoles_cron_config', 'fa-bullseye', 'ROLE_ADMIN,ROLE_MODO', 'cron_activate'), -(7020, 7000, 7020, 'Logs', 'cadoles_cron_config_log', 'fa-list-alt', 'ROLE_ADMIN,ROLE_MODO', 'cron_activate'); +(7000, NULL, 7000, 'CRON', NULL, 'fa-bolt', 'ROLE_ADMIN,ROLE_MODO', 'cron_activate'), +(7010, 7000, 7010, 'Jobs', 'cadoles_cron_config', 'fa-bullseye', 'ROLE_ADMIN,ROLE_MODO', 'cron_activate'), +(7020, 7000, 7020, 'Logs', 'cadoles_cron_config_log', 'fa-list-alt', 'ROLE_ADMIN,ROLE_MODO', 'cron_activate'); diff --git a/tmpl/ninegate-template.yml b/tmpl/ninegate-template.yml index 203edded..19667d25 100644 --- a/tmpl/ninegate-template.yml +++ b/tmpl/ninegate-template.yml @@ -188,8 +188,15 @@ parameters: %if %%getVar("ninegate_activate_widbalado", 'non') == "oui" activate_widbalado: true widbalado_url: %%ninegate_widbalado_url + %if %%getVar("poshprofil_typesynchro", "") == "ENT" + widbalado_activate_syncenvole: true + widbalado_syncenvole: %%ninegate_widbalado_syncenvole + %else + widbalado_activate_syncenvole: false + %end if %else activate_widbalado: false + widbalado_activate_syncenvole: false %end if %if %%getVar("ninegate_activate_widdokuwiki", 'non') == "oui" @@ -216,8 +223,15 @@ parameters: %if %%getVar("ninegate_activate_widgepi", 'non') == "oui" activate_widgepi: true widgepi_url: %%ninegate_widgepi_url + %if %%getVar("poshprofil_typesynchro", "") == "ENT" + widgepi_activate_syncenvole: true + widgepi_syncenvole: %%ninegate_widgepi_syncenvole + %else + widgepi_activate_syncenvole: false + %end if %else activate_widgepi: false + widgepi_activate_syncenvole: false %end if %if %%getVar("ninegate_activate_widgrr", 'non') == "oui" @@ -263,8 +277,15 @@ parameters: %if %%getVar("ninegate_activate_widnextcloud", 'non') == "oui" activate_widnextcloud: true widnextcloud_url: %%ninegate_widnextcloud_url + %if %%getVar("poshprofil_typesynchro", "") == "ENT" + widnextcloud_activate_syncenvole: true + widnextcloud_syncenvole: %%ninegate_widgepi_syncenvole + %else + widnextcloud_activate_syncenvole: false + %end if %else activate_widnextcloud: false + widnextcloud_activate_syncenvole: false %end if %if %%getVar("ninegate_activate_widonlyoffice", 'non') == "oui" @@ -298,9 +319,15 @@ parameters: %if %%getVar("ninegate_activate_widpiwik", 'non') == "oui" activate_widpiwik: true widpiwik_url: %%ninegate_widpiwik_url + %if %%getVar("poshprofil_typesynchro", "") == "Annuaire" + widpiwik_activate_syncenvole: true widpiwik_syncenvole: %%ninegate_widpiwik_syncenvole + %else + widpiwik_activate_syncenvole: false + %end if %else activate_widpiwik: false + widpiwik_activate_syncenvole: false %end if %if %%getVar("ninegate_activate_widroundcube", 'non') == "oui" @@ -313,8 +340,15 @@ parameters: %if %%getVar("ninegate_activate_widsacoche", 'non') == "oui" activate_widsacoche: true widsacoche_url: %%ninegate_widsacoche_url + %if %%getVar("poshprofil_typesynchro", "") == "ENT" + widsacoche_activate_syncenvole: true + widsacoche_syncenvole: %%ninegate_widgepi_syncenvole + %else + widsacoche_activate_syncenvole: false + %end if %else activate_widsacoche: false + widsacoche_activate_syncenvole: false %end if %if %%getVar("ninegate_activate_widwordpress", 'non') == "oui"