Commit aa493593 authored by Thomas Hamel's avatar Thomas Hamel
Browse files

remplacement 'site' par 'etablissement'

parent de167cbe
Loading
Loading
Loading
Loading
+0 −17
Changes for module/Formation/src/Formation/Controller/FormationController.php: 0 added lines, 17 removed lines.
Original line number Diff line number Diff line
@@ -82,23 +82,6 @@ class FormationController extends AbstractController
            $data = $request->getPost();
            $form->setData($data);
            if ($form->isValid()) {
                // Envoi d'un mail lors de la création d'une formation spécifique à la liste de diffusion du site déclaré
                // seulement si le site et la structure ont été renseignés
                // et des informations ont été modifiées
                if ($formation->getType() === Formation::TYPE_CODE_SPECIFIQUE && ($formation->getSite() && $formation->getTypeStructure()) && ($formation->getSite() !== $oldSite || $formation->getTypeStructure() !== $oldStructure)) {
                    try {
                        $notif = $this->formationNotificationFactory->createNotificationFormationSpecifiqueAjoutee($formation);
                        $this->notifierService->trigger($notif);
                        $destinataires = implode(', ', array_reduce(array_keys($notif->getTo()), function(array $accu, string $key) use ($notif) {
                            $accu[] = sprintf('%s', $notif->getTo()[$key]);
                            return $accu;
                        }, []));
                        $this->flashMessenger()->addInfoMessage("Le site organisateur et/ou la structure associée ont été modifiés. <br> Une notification par mail a donc été envoyée aux doctorants appartenant à la liste de diffusion suivante : ".$destinataires);
                    } catch (RuntimeException $e) {
                        $ed = $formation->getTypeStructure()->getEcoleDoctorale();
                        $this->flashMessenger()->addErrorMessage("La session a bien été modifiée, cependant aucune liste de diffusion trouvée pour l'ED {$ed} (afin de notifier les doctorants).");
                    }
                }
                $this->getFormationService()->update($formation);
            }
        }
+1 −1
Changes for module/Formation/src/Formation/Form/Formation/FormationForm.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -116,7 +116,7 @@ class FormationForm extends Form {
            'type' => Select::class,
            'name' => 'site',
            'options' => [
                'label' => "Site organisateur :",
                'label' => "Établissement organisateur :",
                'empty_option' => "Aucun établissement",
                'value_options' => $this->getEtablissementService()->getEtablissementInscriptionAsOption(),
            ],
+2 −2
Changes for module/Formation/view/formation/formation/afficher.phtml: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -101,7 +101,7 @@ echo $this->messenger()->addMessagesFromFlashMessengerWithNoNamespace();

<dl class="row">
    <?php if ($formation->getSite()) : ?>
        <dt class="col-md-3"> Site organisateur</dt>
        <dt class="col-md-3"> Établissement organisateur</dt>
        <dd class="col-md-9"> <?php echo $this->site($formation); ?> </dd>
    <?php endif; ?>
    <?php if ($formation->getResponsable()) : ?>
@@ -173,7 +173,7 @@ echo $this->messenger()->addMessagesFromFlashMessengerWithNoNamespace();
    <thead>
    <tr>
        <th>Index</th>
        <th>Site organisateur</th>
        <th>Établissement organisateur</th>
        <th>Responsable</th>
        <th>Modalité</th>
        <th>Type</th>
+1 −4
Changes for module/Formation/view/formation/formation/modifier.phtml: 1 added line, 4 removed lines.
Original line number Diff line number Diff line
@@ -29,10 +29,7 @@ echo $this->form()->openTag($form);
<div id="type_structure">
    <?php echo $this->formControlGroup($form->get('type_structure')); ?>
</div>
<div class="alert alert-warning">
    <span class="icon icon-attention"></span>
    Lorsque le site organisateur et la structure associée à <b>une formation spécifique</b> sont renseignés (ou modifiés par la suite), un mail sera envoyé aux doctorants afin de les notifier de l'ouverture de celle-ci.
</div>

<?php echo $this->formControlGroup($form->get('taille_liste_principale')); ?>
<?php echo $this->formControlGroup($form->get('taille_liste_complementaire')); ?>

+2 −2
Changes for module/Formation/view/formation/formation/recherche/index.phtml: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -67,8 +67,8 @@ $canSupprimerFormation = $this->isAllowed(FormationPrivileges::getResourceId
            </th>
            <th>
                <a href="<?php echo $s = $this->sortable(FormationSearchService::NAME_site) ?>"
                   title="<?php echo $this->translate("Site organisateur") ?> ">
                    <?php echo $this->translate("Site organisateur") ?>*
                   title="<?php echo $this->translate("Établissement organisateur") ?> ">
                    <?php echo $this->translate("Établissement organisateur") ?>*
                </a> <?php echo $s->icon() ?>
            </th>
            <th>
Loading