Loading module/Application/src/Controller/PieceJointeController.php +2 −21 Original line number Diff line number Diff line Loading @@ -64,7 +64,6 @@ class PieceJointeController extends AbstractController } /** * * @return ViewModel Loading Loading @@ -106,7 +105,6 @@ class PieceJointeController extends AbstractController } /** * * @return ViewModel Loading @@ -127,7 +125,6 @@ class PieceJointeController extends AbstractController } /** * @param TblPieceJointeDemande[] $demandees * @param TblPieceJointeFournie[] $fournies Loading Loading @@ -175,7 +172,6 @@ class PieceJointeController extends AbstractController } public function validationAction() { $this->initFilters(); Loading @@ -188,7 +184,6 @@ class PieceJointeController extends AbstractController } public function validerAction() { $this->initFilters(); Loading @@ -206,7 +201,6 @@ class PieceJointeController extends AbstractController } public function archiverAction() { $this->initFilters(); Loading @@ -228,7 +222,6 @@ class PieceJointeController extends AbstractController } public function devaliderAction() { $this->initFilters(); Loading @@ -246,7 +239,6 @@ class PieceJointeController extends AbstractController } public function listerAction() { $this->initFilters(); Loading @@ -267,7 +259,6 @@ class PieceJointeController extends AbstractController } public function televerserAction() { $intervenant = $this->getEvent()->getParam('intervenant'); Loading @@ -291,7 +282,6 @@ class PieceJointeController extends AbstractController } public function telechargerAction() { /** @var Fichier $fichier */ Loading @@ -312,7 +302,6 @@ class PieceJointeController extends AbstractController } public function supprimerAction() { if (!$this->getRequest()->isPost()) { Loading @@ -339,7 +328,6 @@ class PieceJointeController extends AbstractController } /* Actions liées à la configuration des PJ */ public function configurationAction() Loading @@ -348,7 +336,6 @@ class PieceJointeController extends AbstractController } public function typePieceJointeStatutAction() { $codeIntervenant = $this->params()->fromRoute('codeTypeIntervenant', TypeIntervenant::CODE_EXTERIEUR); Loading Loading @@ -404,7 +391,6 @@ class PieceJointeController extends AbstractController } public function typePieceJointeDeleteAction() { $typePieceJointe = $this->getEvent()->getParam('typePieceJointe'); Loading @@ -420,7 +406,6 @@ class PieceJointeController extends AbstractController } public function typePieceJointeSaisieAction() { /* @var $typePieceJointe TypePieceJointe */ Loading @@ -440,7 +425,6 @@ class PieceJointeController extends AbstractController } public function modifierTypePieceJointeStatutAction() { /* @var $tpjs TypePieceJointeStatut */ Loading @@ -466,7 +450,6 @@ class PieceJointeController extends AbstractController } public function typePieceJointeTrierAction() { /* @var $tpj TypePieceJointe */ Loading @@ -492,7 +475,6 @@ class PieceJointeController extends AbstractController } public function deleteTypePieceJointeStatutAction() { $typePieceJointeStatut = $this->getEvent()->getParam('typePieceJointeStatut'); Loading @@ -508,7 +490,6 @@ class PieceJointeController extends AbstractController } private function updateTableauxBord(Intervenant $intervenant, $validation = false) { $this->getServiceWorkflow()->calculerTableauxBord([ Loading @@ -529,7 +510,6 @@ class PieceJointeController extends AbstractController } public function refuserAction() { /** @var PieceJointe $pj */ Loading @@ -553,7 +533,8 @@ class PieceJointeController extends AbstractController $to = $data['to']; $subject = $data['subject']; $content = $data['content']; $this->getServiceMail()->envoyerMail($from, $to, $subject, $content); $copy = $data['copy']; $this->getServiceMail()->envoyerMail($from, $to, $subject, $content, $copy); //Création d'une trace de l'envoi dans les notes de l'intervenant $this->getServiceNote()->createNoteFromEmail($pj->getIntervenant(), $subject, $content); $this->flashMessenger()->addSuccessMessage('Email envoyé à l\'intervenant'); Loading module/Application/view/application/piece-jointe/refuser.phtml +2 −2 Original line number Diff line number Diff line Loading @@ -11,6 +11,7 @@ echo $this->form()->openTag($form); echo $this->formControlGroup($form->get('from')); echo $this->formControlGroup($form->get('to')); echo $this->formControlGroup($form->get('copy')); echo $this->formControlGroup($form->get('subject')); echo $this->formControlGroup($form->get('content')); echo $this->formRow($form->get('submit')); Loading Loading @@ -43,8 +44,7 @@ echo $this->form()->closeTag(); * @param {string} selector * @param {object} form */ function installEditor(selector, form) { function installEditor(selector, form) { WidgetInitializer.includeJs(Url('vendor/tinymce-4.4.1/js/tinymce/tinymce.min.js')); tinymce.editors = []; tinymce.init({ Loading module/Intervenant/src/Controller/NoteController.php +2 −5 Original line number Diff line number Diff line Loading @@ -45,7 +45,6 @@ class NoteController extends AbstractController } public function saisirAction() { Loading Loading @@ -83,7 +82,6 @@ class NoteController extends AbstractController } public function voirAction() { $intervenant = $this->getEvent()->getParam('intervenant'); Loading @@ -95,7 +93,6 @@ class NoteController extends AbstractController } public function supprimerAction() { $intervenant = $this->getEvent()->getParam('intervenant'); Loading @@ -119,7 +116,6 @@ class NoteController extends AbstractController } public function envoyerEmailAction() { $intervenant = $this->getEvent()->getParam('intervenant'); Loading @@ -134,7 +130,8 @@ class NoteController extends AbstractController $to = $data['to']; $subject = $data['subject']; $content = $data['content']; $this->getServiceMail()->envoyerMail($from, $to, $subject, $content); $copy = $data['copy']; $this->getServiceMail()->envoyerMail($from, $to, $subject, $content, $copy); //Création d'une trace de l'envoi dans les notes de l'intervenant $this->getServiceNote()->createNoteFromEmail($intervenant, $subject, $content); $this->flashMessenger()->addSuccessMessage('Email envoyé à l\'intervenant'); Loading module/Intervenant/src/Form/MailerIntervenantForm.php +6 −0 Original line number Diff line number Diff line Loading @@ -42,6 +42,7 @@ class MailerIntervenantForm extends AbstractForm 'subject' => 'Objet du mail', 'to' => 'Email intervenant', 'content' => 'Contenu du mail', 'copy' => 'Email en copie caché', ]; Loading @@ -56,6 +57,11 @@ class MailerIntervenantForm extends AbstractForm 'type' => 'Text', 'name' => 'from', ], 'copy' => [ 'type' => 'Text', 'name' => 'copy', ], 'to' => [ 'type' => 'Select', Loading module/Intervenant/src/Service/MailService.php +2 −5 Original line number Diff line number Diff line Loading @@ -33,7 +33,6 @@ class MailService extends AbstractService private Mail $mail; /** * @return Mail */ Loading @@ -43,7 +42,6 @@ class MailService extends AbstractService } /** * @param Mail $mail */ Loading @@ -53,14 +51,12 @@ class MailService extends AbstractService } public function __construct(Mail $mail) { $this->mail = $mail; } /** * * @param string $from Loading @@ -70,7 +66,7 @@ class MailService extends AbstractService * * @return void */ public function envoyerMail(string $from, string $to, string $subject, string $content) public function envoyerMail(string $from, string $to, string $subject, string $content, string $copy) { $body = new Message(); Loading @@ -85,6 +81,7 @@ class MailService extends AbstractService ->setFrom($from) ->setSubject($subject) ->addTo($to) ->addBcc($copy) ->setBody($body); //Envoi du mail Loading Loading
module/Application/src/Controller/PieceJointeController.php +2 −21 Original line number Diff line number Diff line Loading @@ -64,7 +64,6 @@ class PieceJointeController extends AbstractController } /** * * @return ViewModel Loading Loading @@ -106,7 +105,6 @@ class PieceJointeController extends AbstractController } /** * * @return ViewModel Loading @@ -127,7 +125,6 @@ class PieceJointeController extends AbstractController } /** * @param TblPieceJointeDemande[] $demandees * @param TblPieceJointeFournie[] $fournies Loading Loading @@ -175,7 +172,6 @@ class PieceJointeController extends AbstractController } public function validationAction() { $this->initFilters(); Loading @@ -188,7 +184,6 @@ class PieceJointeController extends AbstractController } public function validerAction() { $this->initFilters(); Loading @@ -206,7 +201,6 @@ class PieceJointeController extends AbstractController } public function archiverAction() { $this->initFilters(); Loading @@ -228,7 +222,6 @@ class PieceJointeController extends AbstractController } public function devaliderAction() { $this->initFilters(); Loading @@ -246,7 +239,6 @@ class PieceJointeController extends AbstractController } public function listerAction() { $this->initFilters(); Loading @@ -267,7 +259,6 @@ class PieceJointeController extends AbstractController } public function televerserAction() { $intervenant = $this->getEvent()->getParam('intervenant'); Loading @@ -291,7 +282,6 @@ class PieceJointeController extends AbstractController } public function telechargerAction() { /** @var Fichier $fichier */ Loading @@ -312,7 +302,6 @@ class PieceJointeController extends AbstractController } public function supprimerAction() { if (!$this->getRequest()->isPost()) { Loading @@ -339,7 +328,6 @@ class PieceJointeController extends AbstractController } /* Actions liées à la configuration des PJ */ public function configurationAction() Loading @@ -348,7 +336,6 @@ class PieceJointeController extends AbstractController } public function typePieceJointeStatutAction() { $codeIntervenant = $this->params()->fromRoute('codeTypeIntervenant', TypeIntervenant::CODE_EXTERIEUR); Loading Loading @@ -404,7 +391,6 @@ class PieceJointeController extends AbstractController } public function typePieceJointeDeleteAction() { $typePieceJointe = $this->getEvent()->getParam('typePieceJointe'); Loading @@ -420,7 +406,6 @@ class PieceJointeController extends AbstractController } public function typePieceJointeSaisieAction() { /* @var $typePieceJointe TypePieceJointe */ Loading @@ -440,7 +425,6 @@ class PieceJointeController extends AbstractController } public function modifierTypePieceJointeStatutAction() { /* @var $tpjs TypePieceJointeStatut */ Loading @@ -466,7 +450,6 @@ class PieceJointeController extends AbstractController } public function typePieceJointeTrierAction() { /* @var $tpj TypePieceJointe */ Loading @@ -492,7 +475,6 @@ class PieceJointeController extends AbstractController } public function deleteTypePieceJointeStatutAction() { $typePieceJointeStatut = $this->getEvent()->getParam('typePieceJointeStatut'); Loading @@ -508,7 +490,6 @@ class PieceJointeController extends AbstractController } private function updateTableauxBord(Intervenant $intervenant, $validation = false) { $this->getServiceWorkflow()->calculerTableauxBord([ Loading @@ -529,7 +510,6 @@ class PieceJointeController extends AbstractController } public function refuserAction() { /** @var PieceJointe $pj */ Loading @@ -553,7 +533,8 @@ class PieceJointeController extends AbstractController $to = $data['to']; $subject = $data['subject']; $content = $data['content']; $this->getServiceMail()->envoyerMail($from, $to, $subject, $content); $copy = $data['copy']; $this->getServiceMail()->envoyerMail($from, $to, $subject, $content, $copy); //Création d'une trace de l'envoi dans les notes de l'intervenant $this->getServiceNote()->createNoteFromEmail($pj->getIntervenant(), $subject, $content); $this->flashMessenger()->addSuccessMessage('Email envoyé à l\'intervenant'); Loading
module/Application/view/application/piece-jointe/refuser.phtml +2 −2 Original line number Diff line number Diff line Loading @@ -11,6 +11,7 @@ echo $this->form()->openTag($form); echo $this->formControlGroup($form->get('from')); echo $this->formControlGroup($form->get('to')); echo $this->formControlGroup($form->get('copy')); echo $this->formControlGroup($form->get('subject')); echo $this->formControlGroup($form->get('content')); echo $this->formRow($form->get('submit')); Loading Loading @@ -43,8 +44,7 @@ echo $this->form()->closeTag(); * @param {string} selector * @param {object} form */ function installEditor(selector, form) { function installEditor(selector, form) { WidgetInitializer.includeJs(Url('vendor/tinymce-4.4.1/js/tinymce/tinymce.min.js')); tinymce.editors = []; tinymce.init({ Loading
module/Intervenant/src/Controller/NoteController.php +2 −5 Original line number Diff line number Diff line Loading @@ -45,7 +45,6 @@ class NoteController extends AbstractController } public function saisirAction() { Loading Loading @@ -83,7 +82,6 @@ class NoteController extends AbstractController } public function voirAction() { $intervenant = $this->getEvent()->getParam('intervenant'); Loading @@ -95,7 +93,6 @@ class NoteController extends AbstractController } public function supprimerAction() { $intervenant = $this->getEvent()->getParam('intervenant'); Loading @@ -119,7 +116,6 @@ class NoteController extends AbstractController } public function envoyerEmailAction() { $intervenant = $this->getEvent()->getParam('intervenant'); Loading @@ -134,7 +130,8 @@ class NoteController extends AbstractController $to = $data['to']; $subject = $data['subject']; $content = $data['content']; $this->getServiceMail()->envoyerMail($from, $to, $subject, $content); $copy = $data['copy']; $this->getServiceMail()->envoyerMail($from, $to, $subject, $content, $copy); //Création d'une trace de l'envoi dans les notes de l'intervenant $this->getServiceNote()->createNoteFromEmail($intervenant, $subject, $content); $this->flashMessenger()->addSuccessMessage('Email envoyé à l\'intervenant'); Loading
module/Intervenant/src/Form/MailerIntervenantForm.php +6 −0 Original line number Diff line number Diff line Loading @@ -42,6 +42,7 @@ class MailerIntervenantForm extends AbstractForm 'subject' => 'Objet du mail', 'to' => 'Email intervenant', 'content' => 'Contenu du mail', 'copy' => 'Email en copie caché', ]; Loading @@ -56,6 +57,11 @@ class MailerIntervenantForm extends AbstractForm 'type' => 'Text', 'name' => 'from', ], 'copy' => [ 'type' => 'Text', 'name' => 'copy', ], 'to' => [ 'type' => 'Select', Loading
module/Intervenant/src/Service/MailService.php +2 −5 Original line number Diff line number Diff line Loading @@ -33,7 +33,6 @@ class MailService extends AbstractService private Mail $mail; /** * @return Mail */ Loading @@ -43,7 +42,6 @@ class MailService extends AbstractService } /** * @param Mail $mail */ Loading @@ -53,14 +51,12 @@ class MailService extends AbstractService } public function __construct(Mail $mail) { $this->mail = $mail; } /** * * @param string $from Loading @@ -70,7 +66,7 @@ class MailService extends AbstractService * * @return void */ public function envoyerMail(string $from, string $to, string $subject, string $content) public function envoyerMail(string $from, string $to, string $subject, string $content, string $copy) { $body = new Message(); Loading @@ -85,6 +81,7 @@ class MailService extends AbstractService ->setFrom($from) ->setSubject($subject) ->addTo($to) ->addBcc($copy) ->setBody($body); //Envoi du mail Loading