Commit 87f70fd5 authored by Jean-Baptiste Oellers's avatar Jean-Baptiste Oellers
Browse files

Ajout message fin de parcours

parent 1d05c067
Loading
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -68,6 +68,8 @@ class ConventionModeleInstanceController extends AbstractOscarController impleme
        $newActivity->setDisciplines([]);
        $newActivity->setMotscles([]);
        $this->getEntityManager()->persist($newActivity);
        $conventionModeleInstance->activity = $newActivity;
        $this->getEntityManager()->flush();

        // Mise à jour de l'index de recherche
        try {
+6 −0
Original line number Diff line number Diff line
@@ -61,6 +61,12 @@ class ConventionModeleInstance
     */
    public $reponses;

    /**
     * @var \Oscar\Entity\Activity
     * @ORM\OneToOne(targetEntity="Activity")
     */
    public $activity;

    public function __construct()
    {
        $this->dateCreated = new \DateTime();
+6 −0
Original line number Diff line number Diff line
@@ -40,6 +40,12 @@
  <div style="background-color: white; padding-left: 4em; padding-bottom: 1em; padding-right: 4em; min-width: 40%;">
    <?php if ($conventionModeleInstance->conventionModeleEtapeEnCours == NULL): ?>
      <h1 style="padding-top: 3rem; padding-bottom: 3rem;">Votre demande de convention a bien été enregistrée.</h1>
      <?php if ($conventionModeleInstance->activity != NULL): ?>
      <ul>
        <li><em>Identifiant :</em> <?= $conventionModeleInstance->activity->getOscarNum() ?></li>
        <li>Cliquez <a href="<?= $this->url('contract/show', ['id' => $conventionModeleInstance->activity->getId()]) ?>">ici</a> pour accéder à la fiche détaillée de la convention générée.</li>
      </ul>      
      <?php endif; ?>
    <?php else: ?>
      <h1 style="padding-top: 3rem; padding-bottom: 3rem;"><?= $conventionModeleInstance->conventionModeleEtapeEnCours->titre ?></h1>