diff --git a/src/ninegate-1.0/app/config/config.yml b/src/ninegate-1.0/app/config/config.yml
index b8881c87..08147083 100644
--- a/src/ninegate-1.0/app/config/config.yml
+++ b/src/ninegate-1.0/app/config/config.yml
@@ -154,7 +154,7 @@ ivory_ck_editor:
language: fr
toolbar: "my_toolbar_1"
uiColor: "#ffffff"
- extraPlugins: ["html5video","pastebase64"]
+ extraPlugins: ["html5video"]
light_config:
language: fr
toolbar: "my_toolbar_2"
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 c8e9650b..df141a43 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}vVciL1BZlGqITdyEI5am1J21xEgy2M02
+(-100, -100, 'admin', 'Administrateur', 'draaf', '{SSHA}eyoxoh9yJzJyNAacnf9gxyZbtRWITzXF
', 'admin@ldapbundle.ac-arno.fr', 'admin.jpg', 'ROLE_ADMIN', '130007107', 'simple');
diff --git a/src/ninegate-1.0/src/Cadoles/CoreBundle/Controller/GroupController.php b/src/ninegate-1.0/src/Cadoles/CoreBundle/Controller/GroupController.php
index 4d96ab9d..6359fd22 100644
--- a/src/ninegate-1.0/src/Cadoles/CoreBundle/Controller/GroupController.php
+++ b/src/ninegate-1.0/src/Cadoles/CoreBundle/Controller/GroupController.php
@@ -509,10 +509,28 @@ class GroupController extends Controller
$em->persist($usergroup);
$em->flush();
+ // Notification message
$user=$em->getRepository("CadolesCoreBundle:User")->find($userid);
$message="Inscription de l'utilisateur
".$user->getLastname()." ".$user->getFirstname()."
Par ".$this->getUser()->getLastname()." ".$this->getUser()->getFirstname();
$websocket = $this->container->get('cadoles.websocket.pushmessage')->send($key->toString(),$userid,$groupid,$message);
+ // Notification mail auprès de la personne inscrite
+ if($group->getFgcanshare()) {
+ $text="Vous venez d'être inscrit dans le groupe de travail : ".$group->getLabel();
+ $template="template";
+ $mail_params=array(
+ "subject" => $this->get('session')->get('appname')." : Inscription au groupe de travail : ".$group->getLabel()."\n\n".$group->getDescription(),
+ "body_html"=>nl2br($text),
+ "body_text"=>$text
+ );
+ $to = $user->getEmail();
+ $from = $this->getParameter('noreply');;
+ $fromName = $this->get('session')->get('appname');
+ $message = $this->container->get('cadoles.core.service.mail');
+ $message->sendEmail($template, $mail_params, $to, $from, $fromName);
+ }
+
+ // Retour
$response = new Response(json_encode($output));
$response->headers->set('Content-Type', 'application/json');
return $response;
@@ -535,15 +553,36 @@ class GroupController extends Controller
if($group->getFgAll()||$group->getFgTemplate())
throw $this->createNotFoundException('Permission denied');
+ // Notification message
$data = $em->getRepository("CadolesCoreBundle:Usergroup")->findOneBy(array("user"=>$userid,"group"=>$groupid));
$user=$em->getRepository("CadolesCoreBundle:User")->find($userid);
$message="Désinscription de l'utilisateur
".$user->getLastname()." ".$user->getFirstname()."
Par ".$this->getUser()->getLastname()." ".$this->getUser()->getFirstname();;
$websocket = $this->container->get('cadoles.websocket.pushmessage')->send($data->getKeyvalue(),$userid,$groupid,$message);
-
-
+
+ // Desinscription
$em->remove($data);
$em->flush();
+ // Notification mail auprès des managers
+ if($group->getFgcanshare()) {
+ $text=$user->getUsername()." a été désinscrit dugroupe de travail : ".$group->getLabel();
+ $template="template";
+ $mail_params=array(
+ "subject" => $this->get('session')->get('appname')." : ".$user->getUsername()." = Désinscription au groupe de travail ".$group->getLabel()."\n\n".$group->getDescription(),
+ "body_html"=>nl2br($text),
+ "body_text"=>$text
+ );
+ $managers=$em->getRepository("CadolesCoreBundle:Usergroup")->findBy(array("group"=>$groupid,"fgmanager"=>true));
+ $to=array();
+ foreach($managers as $manager) {
+ array_push($to,$manager->getUser()->getEmail());
+ }
+
+ $from = $this->getParameter('noreply');;
+ $fromName = $this->get('session')->get('appname');
+ $message = $this->container->get('cadoles.core.service.mail');
+ $message->sendEmail($template, $mail_params, $to, $from, $fromName);
+ }
$response = new Response(json_encode($output));
$response->headers->set('Content-Type', 'application/json');
@@ -557,14 +596,39 @@ class GroupController extends Controller
if($group->getFgAll()||$group->getFgTemplate())
throw $this->createNotFoundException('Permission denied');
+ // Notification message
$usergroup = $em->getRepository("CadolesCoreBundle:Usergroup")->findOneBy(array("user"=>$this->getUser(),"group"=>$id));
$user=$em->getRepository("CadolesCoreBundle:User")->find($this->getUser());
$message="Désinscription de l'utilisateur
".$user->getLastname()." ".$user->getFirstname()."
Par ".$this->getUser()->getLastname()." ".$this->getUser()->getFirstname();;
$websocket = $this->container->get('cadoles.websocket.pushmessage')->send($usergroup->getKeyvalue(),$this->getUser()->getId(),$id,$message);
+ // Desinscription
$em->remove($usergroup);
$em->flush();
+ // Notification mail auprès des managers
+ if($group->getFgcanshare()) {
+ $text=$user->getUsername()." a été désinscrit dugroupe de travail : ".$group->getLabel();
+ $template="template";
+ $mail_params=array(
+ "subject" => $this->get('session')->get('appname')." : ".$user->getUsername()." = Désinscription au groupe de travail ".$group->getLabel()."\n\n".$group->getDescription(),
+ "body_html"=>nl2br($text),
+ "body_text"=>$text
+ );
+ $managers=$em->getRepository("CadolesCoreBundle:Usergroup")->findBy(array("group"=>$group,"fgmanager"=>true));
+ $to=array();
+ foreach($managers as $manager) {
+ array_push($to,$manager->getUser()->getEmail());
+ }
+
+ $from = $this->getParameter('noreply');;
+ $fromName = $this->get('session')->get('appname');
+ $message = $this->container->get('cadoles.core.service.mail');
+ $message->sendEmail($template, $mail_params, $to, $from, $fromName);
+ }
+
+
+
return $this->redirect($this->generateUrl("cadoles_core_user_group"));
}
diff --git a/src/ninegate-1.0/src/Cadoles/CoreBundle/Controller/UserController.php b/src/ninegate-1.0/src/Cadoles/CoreBundle/Controller/UserController.php
index 1a69a58d..7b0ded5c 100644
--- a/src/ninegate-1.0/src/Cadoles/CoreBundle/Controller/UserController.php
+++ b/src/ninegate-1.0/src/Cadoles/CoreBundle/Controller/UserController.php
@@ -351,8 +351,25 @@ class UserController extends Controller
$em->persist($usergroup);
$em->flush();
+ // Notification message
$message="Inscription de l'utilisateur
".$data->getLastname()." ".$data->getFirstname()."
Par ".$this->getUser()->getLastname()." ".$this->getUser()->getFirstname();
$websocket = $this->container->get('cadoles.websocket.pushmessage')->send($key->toString(),$iduser,$idgroup,$message);
+
+ // Notification mail auprès de la personne inscrite
+ if($group->getFgcanshare()) {
+ $text="Vous venez d'être inscrit dans le groupe de travail : ".$group->getLabel();
+ $template="template";
+ $mail_params=array(
+ "subject" => $this->get('session')->get('appname')." : Inscription au groupe de travail : ".$group->getLabel()."\n\n".$group->getDescription(),
+ "body_html"=>nl2br($text),
+ "body_text"=>$text
+ );
+ $to = $data->getEmail();
+ $from = $this->getParameter('noreply');;
+ $fromName = $this->get('session')->get('appname');
+ $message = $this->container->get('cadoles.core.service.mail');
+ $message->sendEmail($template, $mail_params, $to, $from, $fromName);
+ }
}
// Ajout des modos
@@ -476,8 +493,25 @@ class UserController extends Controller
$em->persist($usergroup);
$em->flush();
+ // notification message
$message="Inscription de l'utilisateur
".$data->getLastname()." ".$data->getFirstname()."
Par ".$this->getUser()->getLastname()." ".$this->getUser()->getFirstname();
$websocket = $this->container->get('cadoles.websocket.pushmessage')->send($key->toString(),$id,$idgroup,$message);
+
+ // Notification mail auprès de la personne inscrite
+ if($group->getFgcanshare()) {
+ $text="Vous venez d'être inscrit dans le groupe de travail : ".$group->getLabel();
+ $template="template";
+ $mail_params=array(
+ "subject" => $this->get('session')->get('appname')." : Inscription au groupe de travail : ".$group->getLabel()."\n\n".$group->getDescription(),
+ "body_html"=>nl2br($text),
+ "body_text"=>$text
+ );
+ $to = $data->getEmail();
+ $from = $this->getParameter('noreply');;
+ $fromName = $this->get('session')->get('appname');
+ $message = $this->container->get('cadoles.core.service.mail');
+ $message->sendEmail($template, $mail_params, $to, $from, $fromName);
+ }
}
// Suppression des groupes obsolètes
@@ -494,11 +528,34 @@ class UserController extends Controller
->getQuery()
->getResult();
foreach($usergroups as $usergroup) {
+ // Notification message
$message="Désinscription de l'utilisateur
".$data->getLastname()." ".$data->getFirstname()."
Par ".$this->getUser()->getLastname()." ".$this->getUser()->getFirstname();
$websocket = $this->container->get('cadoles.websocket.pushmessage')->send($usergroup->getKeyvalue(),$id,$idgroup,$message);
+ // Déscription
$em->remove($usergroup);
$em->flush();
+
+ // Notification mail auprès des managers
+ if($group->getFgcanshare()) {
+ $text=$data->getUsername()." a été désinscrit dugroupe de travail : ".$group->getLabel();
+ $template="template";
+ $mail_params=array(
+ "subject" => $this->get('session')->get('appname')." : ".$data->getUsername()." = Désinscription au groupe de travail ".$group->getLabel()."\n\n".$group->getDescription(),
+ "body_html"=>nl2br($text),
+ "body_text"=>$text
+ );
+ $managers=$em->getRepository("CadolesCoreBundle:Usergroup")->findBy(array("group"=>$group,"fgmanager"=>true));
+ $to=array();
+ foreach($managers as $manager) {
+ array_push($to,$manager->getUser()->getEmail());
+ }
+
+ $from = $this->getParameter('noreply');;
+ $fromName = $this->get('session')->get('appname');
+ $message = $this->container->get('cadoles.core.service.mail');
+ $message->sendEmail($template, $mail_params, $to, $from, $fromName);
+ }
}
}
@@ -843,7 +900,7 @@ class UserController extends Controller
$em->persist($user);
$em->flush();
- // Email à destination de l'inscript pour le prévenir qu'il dispose d'un compte
+ // Email à destination de l'inscrit pour le prévenir qu'il dispose d'un compte
$url = $this->generateUrl('cadoles_core_resetpwd01', [], UrlGeneratorInterface::ABSOLUTE_URL);
$text ="Vous venez d'être inscrit au portail = ".$appname."\n\n";
$text.="Login = ".$username."\n";
diff --git a/src/ninegate-1.0/src/Cadoles/CoreBundle/Entity/Group.php b/src/ninegate-1.0/src/Cadoles/CoreBundle/Entity/Group.php
index f92420ec..912d3c8d 100644
--- a/src/ninegate-1.0/src/Cadoles/CoreBundle/Entity/Group.php
+++ b/src/ninegate-1.0/src/Cadoles/CoreBundle/Entity/Group.php
@@ -869,4 +869,38 @@ class Group
{
return $this->messages;
}
+
+ /**
+ * Add calendarevent
+ *
+ * @param \Cadoles\PortalBundle\Entity\Calendarevent $calendarevent
+ *
+ * @return Group
+ */
+ public function addCalendarevent(\Cadoles\PortalBundle\Entity\Calendarevent $calendarevent)
+ {
+ $this->calendarevents[] = $calendarevent;
+
+ return $this;
+ }
+
+ /**
+ * Remove calendarevent
+ *
+ * @param \Cadoles\PortalBundle\Entity\Calendarevent $calendarevent
+ */
+ public function removeCalendarevent(\Cadoles\PortalBundle\Entity\Calendarevent $calendarevent)
+ {
+ $this->calendarevents->removeElement($calendarevent);
+ }
+
+ /**
+ * Get calendarevents
+ *
+ * @return \Doctrine\Common\Collections\Collection
+ */
+ public function getCalendarevents()
+ {
+ return $this->calendarevents;
+ }
}
diff --git a/src/ninegate-1.0/src/Cadoles/CoreBundle/Entity/User.php b/src/ninegate-1.0/src/Cadoles/CoreBundle/Entity/User.php
index fd550b54..115e7114 100644
--- a/src/ninegate-1.0/src/Cadoles/CoreBundle/Entity/User.php
+++ b/src/ninegate-1.0/src/Cadoles/CoreBundle/Entity/User.php
@@ -266,7 +266,11 @@ class User implements UserInterface, \Serializable
*/
protected $messagereaders;
-
+ /**
+ * @ORM\ManyToMany(targetEntity="Cadoles\WebsocketBundle\Entity\Message", mappedBy="sees")
+ */
+ protected $messagesees;
+
//== CODE A NE PAS REGENERER
/**
* @ORM\PostLoad
@@ -1421,4 +1425,38 @@ class User implements UserInterface, \Serializable
{
return $this->messagereaders;
}
+
+ /**
+ * Add messagesee
+ *
+ * @param \Cadoles\WebsocketBundle\Entity\Message $messagesee
+ *
+ * @return User
+ */
+ public function addMessagesee(\Cadoles\WebsocketBundle\Entity\Message $messagesee)
+ {
+ $this->messagesees[] = $messagesee;
+
+ return $this;
+ }
+
+ /**
+ * Remove messagesee
+ *
+ * @param \Cadoles\WebsocketBundle\Entity\Message $messagesee
+ */
+ public function removeMessagesee(\Cadoles\WebsocketBundle\Entity\Message $messagesee)
+ {
+ $this->messagesees->removeElement($messagesee);
+ }
+
+ /**
+ * Get messagesees
+ *
+ * @return \Doctrine\Common\Collections\Collection
+ */
+ public function getMessagesees()
+ {
+ return $this->messagesees;
+ }
}
diff --git a/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/public/css/style.css b/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/public/css/style.css
index ea3b38a1..f611d414 100644
--- a/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/public/css/style.css
+++ b/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/public/css/style.css
@@ -591,7 +591,6 @@ a.item-heart {
position: absolute;
height:40px;
width:40px;
- border-radius: 100%;
margin: 5px;
cursor: pointer;
}
diff --git a/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/public/images/loadpoint.gif b/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/public/images/loadpoint.gif
index d7597f8d..25dfe6fc 100644
Binary files a/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/public/images/loadpoint.gif and b/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/public/images/loadpoint.gif differ
diff --git a/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/public/themes/transnum/function.html.twig b/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/public/themes/transnum/function.html.twig
index 63e535fb..a5dc1715 100644
--- a/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/public/themes/transnum/function.html.twig
+++ b/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/public/themes/transnum/function.html.twig
@@ -1,12 +1,12 @@
{% set logo = "transnum-logo.png" %}
{% set fgheader = "" %}
-{% set header = "transnum-header.jpg" %}
+{% set header = "transnum-header.png" %}
{% set heightheader = "" %}
{% set colormain = "2176ad" %}
{% set fontcolorhover = "" %}
-{% set colorbody = "" %}
+{% set colorbody = "eeeeee" %}
{% set fontfacetitle = "LexendDeca-Regular" %}
{% set fontfacebody = "" %}
diff --git a/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/public/themes/transnum/style.css b/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/public/themes/transnum/style.css
index d93e64b6..66a1299b 100644
--- a/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/public/themes/transnum/style.css
+++ b/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/public/themes/transnum/style.css
@@ -3,7 +3,16 @@
}
-
+body {
+ background-color: #2e3339 !important;
+}
+body.simple {
+ background-color: transparent !important;
+}
+.navbar-default,.sidebar ul li {
+ background-color: #2e3339 !important;
+ border-color: #2e3339 !important;
+}
@@ -50,6 +59,17 @@
}
+
+.widget-notbordered .widgetheader {
+ box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
+}
+
+.widget-notbordered .widgetbody .list-item, .widget-notbordered .widgetbody .grid-item-content {
+ box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
+}
+
+
+
.grid .grid-preview {
width: 15%;
min-width: 160px;
diff --git a/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/public/themes/transnum/transnum-header.png b/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/public/themes/transnum/transnum-header.png
new file mode 100644
index 00000000..327114a2
Binary files /dev/null and b/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/public/themes/transnum/transnum-header.png differ
diff --git a/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/views/Group/edit.html.twig b/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/views/Group/edit.html.twig
index 4da37112..25f8f093 100755
--- a/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/views/Group/edit.html.twig
+++ b/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/views/Group/edit.html.twig
@@ -159,7 +159,7 @@