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

Ajout du panneau offre de formation

parent 7aa0c2d1
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@ namespace Application\Controller\Factory;

use Application\Controller\IndexController;
use Application\Service\Actualite\ActualiteService;
use Application\Service\EcoleDoctorale\EcoleDoctoraleService;
use Application\Service\Etablissement\EtablissementService;
use Application\Service\These\TheseService;
use Application\Service\Variable\VariableService;
@@ -34,6 +35,12 @@ class IndexControllerFactory
        $etablissementService = $container->get('EtablissementService');
        $controller->setEtablissementService($etablissementService);

        /**
         * @var EcoleDoctoraleService $ecoleDoctoraleService
         */
        $ecoleDoctoraleService = $container->get(EcoleDoctoraleService::class);
        $controller->setEcoleDoctoraleService($ecoleDoctoraleService);

        /**
         * @var VariableService $variableService
         */
+3 −1
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@ namespace Application\Controller;

use Application\Entity\Db\Variable;
use Application\Service\Actualite\ActualiteServiceAwareTrait;
use Application\Service\EcoleDoctorale\EcoleDoctoraleServiceAwareTrait;
use Application\Service\Etablissement\EtablissementServiceAwareTrait;
use Application\Service\These\TheseServiceAwareTrait;
use Application\Service\Variable\VariableServiceAwareTrait;
@@ -16,6 +17,7 @@ use Zend\View\Model\ViewModel;
class IndexController extends AbstractController
{
    use VariableServiceAwareTrait;
    use EcoleDoctoraleServiceAwareTrait;
    use EtablissementServiceAwareTrait;
    use TheseServiceAwareTrait;
    use ActualiteServiceAwareTrait;
@@ -44,7 +46,6 @@ class IndexController extends AbstractController
                print $value;
                print "<br/>";
            }

        }
    }

@@ -70,6 +71,7 @@ class IndexController extends AbstractController
            'role' => $this->userContextService->getSelectedIdentityRole(),
            'estDoctorant' => (bool) $this->userContextService->getIdentityDoctorant(),
            'url' => $this->actualiteService->isActif() ? $this->actualiteService->getUrl() : null,
            'offre' => $this->actualiteService->isOffre() ? $this->getEcoleDoctoraleService()->getOffre() : null,
        ]);

        if ($response instanceof ViewModel) {
+47 −0
Original line number Diff line number Diff line
@@ -31,6 +31,15 @@ class EcoleDoctorale implements StructureConcreteInterface, HistoriqueAwareInter
     */
    protected $structure;

    /**
     * @var string
     */
    protected $theme;

    /**
     * @var string
     */
    protected $offreThese;
    /**
     * EcoleDoctorale constructor.
     */
@@ -164,4 +173,42 @@ class EcoleDoctorale implements StructureConcreteInterface, HistoriqueAwareInter
    {
        return $this->structure;
    }

    /**
     * @return string
     */
    public function getTheme()
    {
        return $this->theme;
    }

    /**
     * @param string $theme
     * @return EcoleDoctorale
     */
    public function setTheme($theme)
    {
        $this->theme = $theme;
        return $this;
    }

    /**
     * @return string
     */
    public function getOffreThese()
    {
        return $this->offreThese;
    }

    /**
     * @param string $offreThese
     * @return EcoleDoctorale
     */
    public function setOffreThese($offreThese)
    {
        $this->offreThese = $offreThese;
        return $this;
    }


}
 No newline at end of file
+3 −0
Original line number Diff line number Diff line
@@ -7,6 +7,9 @@
      <generator strategy="SEQUENCE"/>
    </id>

    <field name="theme"       type="string" column="THEME" length="1024" nullable="true"/>
    <field name="offreThese"  type="string" column="OFFRE_THESE" length="1024" nullable="true"/>

    <field name="histoCreation" type="datetime" column="HISTO_CREATION" nullable="false"/>
    <field name="histoDestruction" type="datetime" column="HISTO_DESTRUCTION" nullable="true"/>
    <field name="histoModification" type="datetime" column="HISTO_MODIFICATION" nullable="false"/>
+10 −0
Original line number Diff line number Diff line
@@ -46,6 +46,16 @@ class EcoleDoctoraleForm extends Form
            ->setLabel("IdREF :")
        );

        $this->add((
        new Text('theme'))
            ->setLabel("Thème :")
        );

        $this->add((
        new Text('offre-these'))
            ->setLabel("Lien vers l'offre de thèse :")
        );

        $this->add(
            (new Checkbox('estFerme'))
                ->setLabel("École doctorale fermée")
Loading