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

Module Formation : Ajout de la fiche de formation sur le détail d'une session pour un doctorant

parent 2f1dbb17
Loading
Loading
Loading
Loading
+1 −0
Changes for CHANGELOG.md: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@ Journal des modifications

10.1.0
------
- Module Formation : Ajout de la fiche de formation sur le détail d'une session pour un doctorant
- Module Formation : Ajout d'une colonne dans l'export des inscriptions du nombre d'heures effectif de suivi du doctorant (pour une session)
- Module Formation : Possibilité de renseigner par le doctorant (depuis son tableau de bord), une formation externe avec attestation :
  - avec une validation par la Maison du doctorat
+23 −0
Changes for module/Formation/view/formation/session/afficher-fiche.phtml: 23 added lines, 0 removed lines.
Original line number Diff line number Diff line
<?php

use Application\View\Renderer\PhpRenderer;
use Formation\Entity\Db\Formateur;
use Formation\Entity\Db\Interfaces\HasModaliteInterface;
use Formation\Entity\Db\Seance;
use Formation\Entity\Db\Session;
use Formation\Entity\Db\SessionStructureValide;
use Formation\Provider\Privilege\FormationPrivileges;
use Formation\Provider\Privilege\SessionPrivileges;

/**
 * @var PhpRenderer $this
 * @see \Formation\Controller\SessionController::afficherFicheAction()
 * @var Session $session
 */

$canVoirLieuSession = $this->isAllowed($session, SessionPrivileges::SESSION_VOIR_LIEU);
$canModifierFormation   = $this->isAllowed(FormationPrivileges::getResourceId(FormationPrivileges::FORMATION_MODIFIER));

$formation = $session->getFormation();
$module = $formation->getModule();
@@ -63,6 +67,25 @@ $this->headTitle($pageTitle);
                <dt class="col-md-3"> Description </dt>
                <dd class="col-md-9"> <?php echo $session->getDescription(); ?> </dd>
            <?php endif; ?>
            <?php if ($formation->getFiche()) : ?>
                <dt class="col-md-4"> Fiche </dt>
                <dd class="col-md-8">
                    <?php echo $this->fichier($formation->getFiche(),
                        $this->url('formation/formation/telecharger-fiche', ["formation"=> $formation->getId()],[], true),
                        $this->url('formation/formation/supprimer-fiche', ["formation"=>$formation->getId(), "fichier" => $formation->getFiche()->getId()], ['query' => ['redirect' => $this->url('formation/formation/afficher', ["formation" => $formation->getId()])]], true),
                        $canModifierFormation,
                        "Fiche de la formation",
                        false,
                        false,
                        true
                    ); ?>
                </dd>
            <?php else: ?>
                <?php if ($formation->getLien()) : ?>
                    <dt class="col-md-4"> Lien vers la fiche </dt>
                    <dd class="col-md-8"> <a href="<?php echo $formation->getLien(); ?>" target="_blank"><?php echo $formation->getLien(); ?></a> </dd>
                <?php endif ?>
            <?php endif ?>
            <dt class="col-md-3"> Code </dt>
            <dd class="col-md-9"> <code><?php echo $session->getCode(); ?></code></dd>
            <dt class="col-md-3"> État </dt>