Commit b0ce7f4f authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Ajout du bloc de justification des mails

parent 06ea0050
Loading
Loading
Loading
Loading
+3 −0
Changes for module/Soutenance/src/Soutenance/Service/Notifier/NotifierSoutenanceService.php: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -186,6 +186,7 @@ class NotifierSoutenanceService extends NotifierService {
                ->setTemplatePath('soutenance/notification/validation-structure')
                ->setTemplateVariables([
                    'these' => $these,
                    'type' => 'unité de recherche',
                ]);
            $this->trigger($notif);
        }
@@ -207,6 +208,7 @@ class NotifierSoutenanceService extends NotifierService {
                ->setTemplatePath('soutenance/notification/validation-structure')
                ->setTemplateVariables([
                    'these' => $these,
                    'type' => 'école doctorale',
                ]);
            $this->trigger($notif);
        }
@@ -228,6 +230,7 @@ class NotifierSoutenanceService extends NotifierService {
                ->setTemplatePath('soutenance/notification/validation-structure')
                ->setTemplateVariables([
                    'these' => $these,
                    'type' => 'maison du doctorat',
                ]);
            $this->trigger($notif);
        }
+26 −1
Changes for module/Soutenance/view/soutenance/notification/avis-defavorable.phtml: 26 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ use Soutenance\Entity\Avis;
use Soutenance\Entity\Proposition;

/**
 * @see \Soutenance\Service\Notifier\NotifierSoutenanceService::triggerFeuVertSoutenance()
 * @see \Soutenance\Service\Notifier\NotifierSoutenanceService::triggerAvisDefavorable()
 *
 * @var PhpRenderer $this
 * @var These $these
@@ -16,6 +16,7 @@ use Soutenance\Entity\Proposition;
 * @var string $url
 */

$justification = true;
?>

<p>
@@ -50,5 +51,29 @@ use Soutenance\Entity\Proposition;
    </li>
</ul>

<?php
    //$emailBDD           = [ $this->fetchEmailBdd($these) ];
    //$emailsDirecteurs   = $this->fetchEmailEncadrants($these);
    //$emailsED           = $this->fetchEmailEcoleDoctorale($these);
    //$emailsUR           = $this->fetchEmailUniteRecherche($these);
?>

<?php if ($justification) : ?>
    <p>
        Vous avez reçu ce mail car :
        <ol>
            <li> un avis défavorable a été rendu par un rapporteur ; </li>
            <li> vous êtes soit :
                <ul>
                    <li> un gestionnaire de la maison du doctorat de l'établissement d'inscription du doctorant ; </li>
                    <li> un gestionnaire de l'école doctorale gérant la thèse de <?php echo $these->getDoctorant()->getIndividu()->getNomComplet(); ?> ; </li>
                    <li> un gestionnaire de l'unité de recherche accueillant la thèse de <?php echo $these->getDoctorant()->getIndividu()->getNomComplet(); ?> ; </li>
                    <li> le directeur de thèse ou un des codirecteur de la thèse de <?php echo $these->getDoctorant()->getIndividu()->getNomComplet(); ?>. </li>
                </ul>
            </li>
        </ol>
    </p>
<?php endif; ?>


+28 −1
Changes for module/Soutenance/view/soutenance/notification/avis-favorable.phtml: 28 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ use Soutenance\Entity\Avis;
use Soutenance\Entity\Proposition;

/**
 * @see \Soutenance\Service\Notifier\NotifierSoutenanceService::triggerFeuVertSoutenance()
 * @see \Soutenance\Service\Notifier\NotifierSoutenanceService::triggerAvisFavorable()
 *
 * @var PhpRenderer $this
 * @var These $these
@@ -15,6 +15,8 @@ use Soutenance\Entity\Proposition;
 * @var Avis $avis
 */

$justification = true;

?>

<p>
@@ -47,5 +49,30 @@ use Soutenance\Entity\Proposition;
    </li>
</ul>

<?php
//$emailBDD           = [ $this->fetchEmailBdd($these) ];
//$emailsDirecteurs   = $this->fetchEmailEncadrants($these);
//$emailsED           = $this->fetchEmailEcoleDoctorale($these);
//$emailsUR           = $this->fetchEmailUniteRecherche($these);
?>

<?php if ($justification) : ?>
    <p>
        Vous avez reçu ce mail car :
    <ol>
        <li> un avis favorable a été rendu par un rapporteur ; </li>
        <li> vous êtes soit :
            <ul>
                <li> un gestionnaire de la maison du doctorat de l'établissement d'inscription du doctorant ; </li>
                <li> un gestionnaire de l'école doctorale gérant la thèse de <?php echo $these->getDoctorant()->getIndividu()->getNomComplet(); ?> ; </li>
                <li> un gestionnaire de l'unité de recherche accueillant la thèse de <?php echo $these->getDoctorant()->getIndividu()->getNomComplet(); ?> ; </li>
                <li> le directeur de thèse ou un des codirecteur de la thèse de <?php echo $these->getDoctorant()->getIndividu()->getNomComplet(); ?>. </li>
            </ul>
        </li>
    </ol>
    </p>
<?php endif; ?>



+12 −0
Changes for module/Soutenance/view/soutenance/notification/convocation-doctorant.phtml: 12 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -5,12 +5,14 @@ use Application\Entity\Db\These;
use Soutenance\Entity\Proposition;

/**
 * @see \Soutenance\Service\Notifier\NotifierSoutenanceService::triggerEnvoiConvocationDoctorant()
 * @var These $these
 * @var Proposition $proposition
 * @var Doctorant $doctorant
 * @var string $url
 */

$justification = true;
?>

<p>
@@ -67,3 +69,13 @@ Doctorat en <?php echo $these->getLibelleDiscipline(); ?>.
</p>

<p> P.S.: Vous pouvez obtenir une version imprimable de cette convocation à l'adresse suivante : <a href="<?php echo $url; ?>">convocation au format PDF</a> </p>

<?php if ($justification) : ?>
    <p>
        Vous avez reçu ce mail car :
        <ol>
            <li> votre proposition de soutenance a été validé par la maison du doctorat;  </li>
            <li> vous êtes le doctorant associé à la proposition de soutenance.  </li>
        </ol>
    </p>
<?php endif; ?>
+22 −0
Changes for module/Soutenance/view/soutenance/notification/convocation-membre.phtml: 22 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@ use Soutenance\Entity\Membre;
use Soutenance\Entity\Proposition;

/**
 * @see \Soutenance\Service\Notifier\NotifierSoutenanceService::triggerEnvoiConvocationMembre()
 * @var These $these
 * @var Proposition $proposition
 * @var Membre $membre
@@ -13,6 +14,7 @@ use Soutenance\Entity\Proposition;
$civilite = ($membre->getGenre() !== "H")?"Madame":"Monsieur";
if ($membre->getIndividu()) $civilite = ($membre->getIndividu()->estUneFemme())?"Madame":"Monsieur";

$justification = true;
?>
<p>
    <?php echo $civilite ?>, <br/>
@@ -81,3 +83,23 @@ $texte_directeur = implode(" et ", $encadrement);
</p>

<p> P.S.: Vous pouvez obtenir une version imprimable de cette convocation à l'adresse suivante : <a href="<?php echo $url; ?>">convocation au format PDF</a> </p>

<?php if ($justification) : ?>
    <p>
        Vous avez reçu ce mail car :
    <ol>
        <li> votre proposition de soutenance a été validé par la maison du doctorat;  </li>
        <li> vous êtes le doctorant associé à la proposition de soutenance.  </li>
    </ol>
    </p>
<?php endif; ?>

<?php if ($justification) : ?>
    <p>
        Vous avez reçu ce mail car :
    <ol>
        <li> la proposition de soutenance de <?php echo $these->getDoctorant()->getIndividu()->getNomComplet(); ?> a été validé;  </li>
        <li> vous avez été désigné comme membre du jury pour la thèse de <?php echo $these->getDoctorant()->getIndividu()->getNomComplet(); ?>. </li>
    </ol>
    </p>
<?php endif; ?>
Loading