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

Memtion du rôle dans le document pour signature du président + nouveau prédicats sur les membres

parent 5fa2a592
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@ namespace Soutenance\Entity;

use Application\Entity\Db\Acteur;
use Application\Entity\Db\Individu;
use Application\Entity\Db\Role;
use UnicaenApp\Entity\HistoriqueAwareTrait;
use UnicaenApp\Exception\RuntimeException;

@@ -300,4 +301,20 @@ class Membre {
        }
        return false;
    }

    public function estDirecteur()
    {
        if (!$this->getActeur()) return false;
        return (
            $this->getActeur()->getRole()->getCode() === Role::CODE_DIRECTEUR_THESE
        );
    }

    public function estCoDirecteur()
    {
        if (!$this->getActeur()) return false;
        return (
            $this->getActeur()->getRole()->getCode() === Role::CODE_CODIRECTEUR_THESE
        );
    }
}
 No newline at end of file
+18 −0
Original line number Diff line number Diff line
@@ -62,6 +62,8 @@ use Soutenance\Entity\Proposition;

    table.composition td{
        border-bottom:solid 1px gray;
        /*margin-right: 0.5rem;*/
        padding-right: 0.5rem;
    }

    table.composition tbody tr {
@@ -111,6 +113,8 @@ use Soutenance\Entity\Proposition;

<br/>
<br/>
<br/>
<br/>

<h2> Récapitulatif de la thèse et soutenance </h2>

@@ -153,6 +157,7 @@ use Soutenance\Entity\Proposition;
        <tr>
            <th> Dénomination </th>
            <th> Qualité </th>
            <th> Rôle </th>
            <th> Établissement/Organisme d'affectation </th>
            <th> Visio </th>
        </tr>
@@ -163,6 +168,19 @@ use Soutenance\Entity\Proposition;
            <tr>
                <td> <?php echo $membre->getDenomination(); ?> </td>
                <td> <?php echo ($membre->getQualite())?$membre->getQualite()->getLibelle():"Non définie"; ?> </td>
                <td>
                    <?php if ($membre->estRapporteur()) : ?>
                        Rapporteur
                    <?php else : ?>
                        Membre du jury
                    <?php endif; ?>
                    <?php if ($membre->estDirecteur()) : ?>
                        <br/> Directeur de thèse
                    <?php endif; ?>
                    <?php if ($membre->estCoDirecteur()) : ?>
                        <br/> Co-directeur de thèse
                    <?php endif; ?>
                </td>
                <td> <?php echo $membre->getEtablissement(); ?> </td>
                <td> <?php echo ($membre->isVisio())?"Oui":"Non"; ?></td>
            </tr>