Loading module/Indicateur/src/Controller/IndicateurController.php +9 Changes for module/Indicateur/src/Controller/IndicateurController.php: 9 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -230,6 +230,7 @@ class IndicateurController extends AbstractController $form = new Form(); $form->setAttribute('action', $this->url()->fromRoute(null, [], [], true)); $form->add((new Text('from'))->setValue($from)); $form->add(new Text('cci')); $form->add((new Text('nombre'))->setValue(count($emails))); $form->add((new Text('subject'))->setValue($subject)); $form->add((new Textarea('body'))->setValue($body)); Loading @@ -248,6 +249,14 @@ class IndicateurController extends AbstractController $emailUtilisateur[$utilisateur->getEmail()] = $utilisateur->getDisplayName(); $mailer->sendCopyEmail($emailUtilisateur, $emails, $post); } if ($post['cci'] && !empty($post['cci'])) { $emailsCci = explode(';', $post['cci']); foreach ($emailsCci as $emailCci) { $listEmailsCci = []; $listEmailsCci[$emailCci] = $emailCci; $mailer->sendCopyEmail($listEmailsCci, $emails, $post); } } $count = count($intervenants); $pluriel = $count > 1 ? 's' : ''; $this->flashMessenger()->addSuccessMessage("Le mail a été envoyé à $count intervenant$pluriel"); Loading module/Indicateur/view/indicateur/indicateur/envoi-mail-intervenants.phtml +1 Changes for module/Indicateur/view/indicateur/indicateur/envoi-mail-intervenants.phtml: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -21,6 +21,7 @@ echo $this->form()->openTag($this->form->setAttribute('id', 'mail-form')); <?= $this->formControlGroup($this->form->get('nombre')->setLabel("Nombre de mails à envoyer")->setAttribute('disabled', 'disabled')) ?> </div> </div> <?= $this->formControlGroup($this->form->get('cci')->setLabel("Cci (E-mails séparés par un point virgule)")) ?> <?= $this->formControlGroup($this->form->get('subject')->setLabel("Objet du mail")) ?> <?= $this->formControlGroup($this->form->get('body')->setLabel("Corps du mail")->setAttributes(['rows' => 15, 'id' => 'body'])) ?> <?= $this->formControlGroup($this->form->get('copy')->setLabel("Recevoir une copie de l'email envoyé (incluant la liste des destinataires)")) ?> Loading Loading
module/Indicateur/src/Controller/IndicateurController.php +9 Changes for module/Indicateur/src/Controller/IndicateurController.php: 9 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -230,6 +230,7 @@ class IndicateurController extends AbstractController $form = new Form(); $form->setAttribute('action', $this->url()->fromRoute(null, [], [], true)); $form->add((new Text('from'))->setValue($from)); $form->add(new Text('cci')); $form->add((new Text('nombre'))->setValue(count($emails))); $form->add((new Text('subject'))->setValue($subject)); $form->add((new Textarea('body'))->setValue($body)); Loading @@ -248,6 +249,14 @@ class IndicateurController extends AbstractController $emailUtilisateur[$utilisateur->getEmail()] = $utilisateur->getDisplayName(); $mailer->sendCopyEmail($emailUtilisateur, $emails, $post); } if ($post['cci'] && !empty($post['cci'])) { $emailsCci = explode(';', $post['cci']); foreach ($emailsCci as $emailCci) { $listEmailsCci = []; $listEmailsCci[$emailCci] = $emailCci; $mailer->sendCopyEmail($listEmailsCci, $emails, $post); } } $count = count($intervenants); $pluriel = $count > 1 ? 's' : ''; $this->flashMessenger()->addSuccessMessage("Le mail a été envoyé à $count intervenant$pluriel"); Loading
module/Indicateur/view/indicateur/indicateur/envoi-mail-intervenants.phtml +1 Changes for module/Indicateur/view/indicateur/indicateur/envoi-mail-intervenants.phtml: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -21,6 +21,7 @@ echo $this->form()->openTag($this->form->setAttribute('id', 'mail-form')); <?= $this->formControlGroup($this->form->get('nombre')->setLabel("Nombre de mails à envoyer")->setAttribute('disabled', 'disabled')) ?> </div> </div> <?= $this->formControlGroup($this->form->get('cci')->setLabel("Cci (E-mails séparés par un point virgule)")) ?> <?= $this->formControlGroup($this->form->get('subject')->setLabel("Objet du mail")) ?> <?= $this->formControlGroup($this->form->get('body')->setLabel("Corps du mail")->setAttributes(['rows' => 15, 'id' => 'body'])) ?> <?= $this->formControlGroup($this->form->get('copy')->setLabel("Recevoir une copie de l'email envoyé (incluant la liste des destinataires)")) ?> Loading