ajout icone glpi
This commit is contained in:
@ -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}RpichoTKCN2p1e9VPz1JnGxjaZ7Xe1Eq
|
||||
(-100, -100, 'admin', 'Administrateur', 'draaf', '{SSHA}2oV9M1Ofw14hGll+W1oPHxR7E2SZvzFz
|
||||
', 'admin@ldapbundle.ac-arno.fr', 'admin.jpg', 'ROLE_ADMIN', '130007107', 'simple');
|
||||
|
||||
|
||||
|
@ -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');
|
||||
|
BIN
src/ninegate-1.0/web/uploads/icon/icon_glpi.png
Normal file
BIN
src/ninegate-1.0/web/uploads/icon/icon_glpi.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.0 KiB |
Reference in New Issue
Block a user