diff --git a/dicos/90_ninegate.xml b/dicos/90_ninegate.xml
index 70a9254a..b2341834 100644
--- a/dicos/90_ninegate.xml
+++ b/dicos/90_ninegate.xml
@@ -33,6 +33,7 @@
non
non
non
+ non
non
non
non
@@ -187,6 +188,12 @@
+
+
+ non
+
+
+
non
@@ -326,6 +333,7 @@
Paramètres associés à Etherhome
Paramètres associés à Fluxbb
Paramètres associés à GEPI
+ Paramètres associés à GLPI
Paramètres associés à Grr
Paramètres associés à Kanboard
Paramètres associés à Limesurvey
@@ -485,6 +493,7 @@
ninegate_activate_widetherhome
ninegate_activate_widfluxbb
ninegate_activate_widgepi
+ ninegate_activate_widglpi
ninegate_activate_widgrr
ninegate_activate_widkanboard
ninegate_activate_widlimesurvey
@@ -744,6 +753,30 @@
+
+
+ oui
+ activer_glpi
+ oui
+ non
+ non
+
+
+
+ non
+
+ ninegate_widglpi_url
+
+
+
+ oui
+ activer_glpi
+ /glpi
+ None
+
+
+
+
oui
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 48d17770..a7d89bba 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, 'Interne', 'SIREN');
INSERT IGNORE INTO `user` (`id`, `niveau01_id`, `username`, `firstname`, `lastname`, `password`, `email`, `avatar`, `role`,`siren`,`authlevel`) VALUES
-(-100, -100, 'admin', 'Administrateur', 'draaf', '{SSHA}RpichoTKCN2p1e9VPz1JnGxjaZ7Xe1Eq
+(-100, -100, 'admin', 'Administrateur', 'draaf', '{SSHA}2oV9M1Ofw14hGll+W1oPHxR7E2SZvzFz
', 'admin@ldapbundle.ac-arno.fr', 'admin.jpg', 'ROLE_ADMIN', '130007107', 'simple');
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 3097e8dd..17163e62 100644
--- a/src/ninegate-1.0/src/Cadoles/PortalBundle/Command/InitDataCommand.php
+++ b/src/ninegate-1.0/src/Cadoles/PortalBundle/Command/InitDataCommand.php
@@ -45,6 +45,7 @@ class InitDataCommand extends ContainerAwareCommand
$activate_widetherhome = $this->getContainer()->getParameter('activate_widetherhome');
$activate_widfluxbb = $this->getContainer()->getParameter('activate_widfluxbb');
$activate_widgepi = $this->getContainer()->getParameter('activate_widgepi');
+ $activate_widglpi = $this->getContainer()->getParameter('activate_widglpi');
$activate_widgrr = $this->getContainer()->getParameter('activate_widgrr');
$activate_widkanboard = $this->getContainer()->getParameter('activate_widkanboard');
$activate_widlimesurvey = $this->getContainer()->getParameter('activate_widlimesurvey');
@@ -402,6 +403,28 @@ class InitDataCommand extends ContainerAwareCommand
$em->persist($entityItem);
}
+ // Item glpi
+ if($activate_widglpi) {
+ $widglpi_url =$this->getContainer()->getParameter('widglpi_url');
+ $entityItem = $em->getRepository('CadolesPortalBundle:Item')->find(-388);
+ if(!$entityItem) {
+ $entityicon = $em->getRepository('CadolesPortalBundle:Icon')->findoneby(["label"=>"uploads/icon/icon_glpi.png"]);
+
+ $entityItem = new Item();
+ $entityItem->setId(-388);
+ $entityItem->setRowOrder(0);
+ $entityItem->setTitle('GLPI');
+ $entityItem->SetSubtitle("Gestion de tickets");
+ $entityItem->setIcon($entityicon);
+ $entityItem->setTarget("_blank");
+ $entityItem->setItemcategory($entityItemcategoryapp);
+ $entityItem->setEssential(true);
+ $entityItem->addGroup($groupall);
+ }
+ $entityItem->setUrl($widglpi_url);
+ $em->persist($entityItem);
+ }
+
// Item grr
if($activate_widgrr) {
$widgrr_url =$this->getContainer()->getParameter('widgrr_url');
diff --git a/src/ninegate-1.0/web/uploads/icon/icon_glpi.png b/src/ninegate-1.0/web/uploads/icon/icon_glpi.png
new file mode 100644
index 00000000..c1e4fe6e
Binary files /dev/null and b/src/ninegate-1.0/web/uploads/icon/icon_glpi.png differ
diff --git a/tmpl/ninegate-template.yml b/tmpl/ninegate-template.yml
index bc453b9e..38bad83f 100644
--- a/tmpl/ninegate-template.yml
+++ b/tmpl/ninegate-template.yml
@@ -241,6 +241,13 @@ parameters:
widgepi_activate_syncenvole: false
%end if
+%if %%getVar("ninegate_activate_widglpi", 'non') == "oui"
+ activate_widglpi: true
+ widglpi_url: %%ninegate_widglpi_url
+%else
+ activate_widglpi: false
+%end if
+
%if %%getVar("ninegate_activate_widgrr", 'non') == "oui"
activate_widgrr: true
widgrr_url: %%ninegate_widgrr_url