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

Correction sur les index des doctorants et formateurs

parent dfc2221b
Loading
Loading
Loading
Loading
−4
Changes for module/Formation/view/formation/index/index-doctorant.phtml: 0 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -232,10 +232,6 @@ $canCatalogueAfficher = $this->isAllowed(ModulePrivileges::getResourceId(ModuleP
        </table>
    </div>
    <div role="tabpanel" class="tab-pane" id="inscription">
        <h2>
            Mes inscriptions en cours
        </h2>

        <h2> Mes inscriptions </h2>

        <table class="table table-sm">
+14
Changes for module/Formation/view/formation/index/index-formateur.phtml: 14 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -10,17 +10,31 @@

use Application\Entity\Db\Individu;
use Formation\Entity\Db\Session;
use Formation\Provider\Privilege\ModulePrivileges;
use Formation\Provider\Privilege\SessionPrivileges;

$this->headTitle('Mes formations');

//todo assertion car dépend du rôle les formateurs ne doivent voir que leurs formations ...
$canSessionVoir = $this->isAllowed(SessionPrivileges::getResourceId(SessionPrivileges::SESSION_AFFICHER));
$canCatalogueAfficher = $this->isAllowed(ModulePrivileges::getResourceId(ModulePrivileges::MODULE_CATALOGUE));
?>

<div class="row">
    <div class="col-md-9">
        <h1 class="page-header">
            Mes Formations
        </h1>
    </div>
    <div class="col-md-3">
        <?php if ($canCatalogueAfficher) : ?>
            <?php /** @see \Formation\Controller\ModuleController::catalogueAction() */?>
            <a href="<?php echo $this->url('formation/catalogue',[],[], true); ?>" class="btn btn-primary" target="_blank">
                <span class="icon icon-voir"> Accéder au catalogue des formations</span>
            </a>
        <?php endif; ?>
    </div>
</div>

<?php if ($individu === null) : ?>
    <p class="lead">