Loading module/Soutenance/view/soutenance/proposition-hdr/partial/validations-acteurs.phtml +7 −5 Changes for module/Soutenance/view/soutenance/proposition-hdr/partial/validations-acteurs.phtml: 7 added lines, 5 removed lines. Original line number Diff line number Diff line Loading @@ -33,13 +33,9 @@ use Validation\Entity\Db\ValidationHDR; $object = $proposition->getObject(); $hasSursis = $proposition->hasSursis(); $isDateOk = (new DateTime())->add(new DateInterval('P2M')) < $proposition->getDate() || $hasSursis; $isAllOk = $isInformationsOk && $isIndicateursOk && $justificatifsOk; if($proposition->getEtat()->getCode() === Etat::EN_COURS_SAISIE || $proposition->getEtat()->getCode() === Etat::EN_COURS_EXAMEN) $isAllOk = $isAllOk && $isDateOk; $cssClass = ""; // Rôles à valider $rolesToValidate = [ Role::CODE_HDR_CANDIDAT, Loading @@ -53,8 +49,14 @@ foreach ($rolesToValidate as $roleCode) { } } //Ne pas prendre compte de savoir si le délai est respecté, si toutes les validations ont été faites if(($proposition->getEtat()->getCode() === Etat::EN_COURS_SAISIE || $proposition->getEtat()->getCode() === Etat::EN_COURS_EXAMEN) && !($validatedCount === count($rolesToValidate))) $isAllOk = $isAllOk && $isDateOk; //Si tout n'est pas OK pour pouvoir valider //ou si tout est OK pour pouvoir valider mais qu'aucune validation n'a encore été effectuée $cssClass = ""; if ($isAllOk === false || $validatedCount === 0) { $cssClass = "bg-danger"; //Si tout est OK pour pouvoir valider et que le circuit de validations est déjà commencé Loading Loading @@ -88,7 +90,7 @@ if ($isAllOk === false || $validatedCount === 0) { <?php if (!$isDateOk): ?> <li> Le délai de deux mois entre la date de validation et la date de soutenance est non respecté.</li> <?php endif; ?> <?php if (!$justificatifsOk): ?> <?php if ($justificatifsOk === false): ?> <li> Les justificatifs demandés n'ont pas tous été fournis. </li> <?php endif; ?> </ul> Loading module/Soutenance/view/soutenance/proposition-hdr/recherche/index.phtml +2 −0 Changes for module/Soutenance/view/soutenance/proposition-hdr/recherche/index.phtml: 2 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -153,6 +153,8 @@ $canVoirHDR = $this->isAllowed(HDRPrivileges::getResourceId(HDRPrivileges::HDR_C <?php endforeach; ?> </tbody> </table> <?php echo $paginationControl = $this->paginationControl($propositions, 'sliding', 'application/paginator.phtml', ['route' => 'soutenances/index-structure-hdr']) ?> <?php else: ?> <?php if ($propositions->containsRealSearchResult()): ?> Loading module/Soutenance/view/soutenance/proposition-these/partial/validations-acteurs.phtml +11 −6 Changes for module/Soutenance/view/soutenance/proposition-these/partial/validations-acteurs.phtml: 11 added lines, 6 removed lines. Original line number Diff line number Diff line Loading @@ -36,20 +36,15 @@ $object = $proposition->getObject(); $hasDeclaration= !empty($validations[TypeValidation::CODE_VALIDATION_DECLARATION_HONNEUR]); $hasAttestation = !empty($attestationsIntegriteScientifique); $hasSursis = $proposition->hasSursis(); $isDateOk = (new DateTime())->add(new DateInterval('P2M')) < $proposition->getDate() || $hasSursis; $isAllOk = $hasDeclaration && $hasAttestation && $isInformationsOk && $isIndicateursOk && $justificatifsOk; if($proposition->getEtat()->getCode() === Etat::EN_COURS_SAISIE || $proposition->getEtat()->getCode() === Etat::EN_COURS_EXAMEN) $isAllOk = $isAllOk && $isDateOk; $cssClass = ""; $isAllOk = $hasDeclaration && $hasAttestation && $isInformationsOk && $isIndicateursOk && $justificatifsOk !== false; // Rôles à valider $rolesToValidate = [ Role::CODE_DOCTORANT, Role::CODE_DIRECTEUR_THESE, ]; if(!$object->getActeursByRoleCode(Role::CODE_CODIRECTEUR_THESE)->isEmpty()) $rolesToValidate[] = Role::CODE_CODIRECTEUR_THESE; $validatedCount = 0; Loading @@ -59,8 +54,15 @@ foreach ($rolesToValidate as $roleCode) { } } //Ne pas prendre compte de savoir si le délai est respecté, si toutes les validations ont été faites if(($proposition->getEtat()->getCode() === Etat::EN_COURS_SAISIE || $proposition->getEtat()->getCode() === Etat::EN_COURS_EXAMEN) && !($validatedCount === count($rolesToValidate))) $isAllOk = $isAllOk && $isDateOk; //Si tout n'est pas OK pour pour pouvoir valider //ou si tout est OK pour pour pouvoir valider mais qu'aucune validation n'a encore été effectuée $cssClass = ""; if ($isAllOk === false || $validatedCount === 0) { $cssClass = "bg-danger"; //Si tout est OK pour pour pouvoir valider et que le circuit de validations est déjà commencé Loading Loading @@ -100,6 +102,9 @@ if ($isAllOk === false || $validatedCount === 0) { <?php if (!$hasAttestation) : ?> <li> L'attestation de suivi de la formation "Intégrité Scientifique" est manquante. </li> <?php endif; ?> <?php if ($justificatifsOk === false): ?> <li> Les justificatifs demandés n'ont pas tous été fournis. </li> <?php endif; ?> </ul> </div> <?php endif; ?> Loading module/Soutenance/view/soutenance/proposition-these/recherche/index.phtml +3 −1 Changes for module/Soutenance/view/soutenance/proposition-these/recherche/index.phtml: 3 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -134,7 +134,7 @@ $canVoirThese = $this->isAllowed(ThesePrivileges::getResourceId(ThesePrivileges: <?php if ($canSuppression) : ?> <a <?php $returnUrl = $this->url('soutenances/index-structure', [], [], true); $returnUrl = $this->url('soutenances/index-structure-these', [], [], true); /** @see \Soutenance\Controller\PropositionController::suppressionAction() */ ?> href="<?php echo $this->url("soutenance_these/proposition/suppression", ['these' => $these->getId()], ['query' => ['redirect' => $returnUrl]], true); ?>" data-toggle="confirmationx" data-event="modification" Loading @@ -151,6 +151,8 @@ $canVoirThese = $this->isAllowed(ThesePrivileges::getResourceId(ThesePrivileges: </tbody> </table> <?php echo $paginationControl = $this->paginationControl($propositions, 'sliding', 'application/paginator.phtml', ['route' => 'soutenances/index-structure-these']) ?> <style> #proposition-filters { min-width: 30px; Loading Loading
module/Soutenance/view/soutenance/proposition-hdr/partial/validations-acteurs.phtml +7 −5 Changes for module/Soutenance/view/soutenance/proposition-hdr/partial/validations-acteurs.phtml: 7 added lines, 5 removed lines. Original line number Diff line number Diff line Loading @@ -33,13 +33,9 @@ use Validation\Entity\Db\ValidationHDR; $object = $proposition->getObject(); $hasSursis = $proposition->hasSursis(); $isDateOk = (new DateTime())->add(new DateInterval('P2M')) < $proposition->getDate() || $hasSursis; $isAllOk = $isInformationsOk && $isIndicateursOk && $justificatifsOk; if($proposition->getEtat()->getCode() === Etat::EN_COURS_SAISIE || $proposition->getEtat()->getCode() === Etat::EN_COURS_EXAMEN) $isAllOk = $isAllOk && $isDateOk; $cssClass = ""; // Rôles à valider $rolesToValidate = [ Role::CODE_HDR_CANDIDAT, Loading @@ -53,8 +49,14 @@ foreach ($rolesToValidate as $roleCode) { } } //Ne pas prendre compte de savoir si le délai est respecté, si toutes les validations ont été faites if(($proposition->getEtat()->getCode() === Etat::EN_COURS_SAISIE || $proposition->getEtat()->getCode() === Etat::EN_COURS_EXAMEN) && !($validatedCount === count($rolesToValidate))) $isAllOk = $isAllOk && $isDateOk; //Si tout n'est pas OK pour pouvoir valider //ou si tout est OK pour pouvoir valider mais qu'aucune validation n'a encore été effectuée $cssClass = ""; if ($isAllOk === false || $validatedCount === 0) { $cssClass = "bg-danger"; //Si tout est OK pour pouvoir valider et que le circuit de validations est déjà commencé Loading Loading @@ -88,7 +90,7 @@ if ($isAllOk === false || $validatedCount === 0) { <?php if (!$isDateOk): ?> <li> Le délai de deux mois entre la date de validation et la date de soutenance est non respecté.</li> <?php endif; ?> <?php if (!$justificatifsOk): ?> <?php if ($justificatifsOk === false): ?> <li> Les justificatifs demandés n'ont pas tous été fournis. </li> <?php endif; ?> </ul> Loading
module/Soutenance/view/soutenance/proposition-hdr/recherche/index.phtml +2 −0 Changes for module/Soutenance/view/soutenance/proposition-hdr/recherche/index.phtml: 2 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -153,6 +153,8 @@ $canVoirHDR = $this->isAllowed(HDRPrivileges::getResourceId(HDRPrivileges::HDR_C <?php endforeach; ?> </tbody> </table> <?php echo $paginationControl = $this->paginationControl($propositions, 'sliding', 'application/paginator.phtml', ['route' => 'soutenances/index-structure-hdr']) ?> <?php else: ?> <?php if ($propositions->containsRealSearchResult()): ?> Loading
module/Soutenance/view/soutenance/proposition-these/partial/validations-acteurs.phtml +11 −6 Changes for module/Soutenance/view/soutenance/proposition-these/partial/validations-acteurs.phtml: 11 added lines, 6 removed lines. Original line number Diff line number Diff line Loading @@ -36,20 +36,15 @@ $object = $proposition->getObject(); $hasDeclaration= !empty($validations[TypeValidation::CODE_VALIDATION_DECLARATION_HONNEUR]); $hasAttestation = !empty($attestationsIntegriteScientifique); $hasSursis = $proposition->hasSursis(); $isDateOk = (new DateTime())->add(new DateInterval('P2M')) < $proposition->getDate() || $hasSursis; $isAllOk = $hasDeclaration && $hasAttestation && $isInformationsOk && $isIndicateursOk && $justificatifsOk; if($proposition->getEtat()->getCode() === Etat::EN_COURS_SAISIE || $proposition->getEtat()->getCode() === Etat::EN_COURS_EXAMEN) $isAllOk = $isAllOk && $isDateOk; $cssClass = ""; $isAllOk = $hasDeclaration && $hasAttestation && $isInformationsOk && $isIndicateursOk && $justificatifsOk !== false; // Rôles à valider $rolesToValidate = [ Role::CODE_DOCTORANT, Role::CODE_DIRECTEUR_THESE, ]; if(!$object->getActeursByRoleCode(Role::CODE_CODIRECTEUR_THESE)->isEmpty()) $rolesToValidate[] = Role::CODE_CODIRECTEUR_THESE; $validatedCount = 0; Loading @@ -59,8 +54,15 @@ foreach ($rolesToValidate as $roleCode) { } } //Ne pas prendre compte de savoir si le délai est respecté, si toutes les validations ont été faites if(($proposition->getEtat()->getCode() === Etat::EN_COURS_SAISIE || $proposition->getEtat()->getCode() === Etat::EN_COURS_EXAMEN) && !($validatedCount === count($rolesToValidate))) $isAllOk = $isAllOk && $isDateOk; //Si tout n'est pas OK pour pour pouvoir valider //ou si tout est OK pour pour pouvoir valider mais qu'aucune validation n'a encore été effectuée $cssClass = ""; if ($isAllOk === false || $validatedCount === 0) { $cssClass = "bg-danger"; //Si tout est OK pour pour pouvoir valider et que le circuit de validations est déjà commencé Loading Loading @@ -100,6 +102,9 @@ if ($isAllOk === false || $validatedCount === 0) { <?php if (!$hasAttestation) : ?> <li> L'attestation de suivi de la formation "Intégrité Scientifique" est manquante. </li> <?php endif; ?> <?php if ($justificatifsOk === false): ?> <li> Les justificatifs demandés n'ont pas tous été fournis. </li> <?php endif; ?> </ul> </div> <?php endif; ?> Loading
module/Soutenance/view/soutenance/proposition-these/recherche/index.phtml +3 −1 Changes for module/Soutenance/view/soutenance/proposition-these/recherche/index.phtml: 3 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -134,7 +134,7 @@ $canVoirThese = $this->isAllowed(ThesePrivileges::getResourceId(ThesePrivileges: <?php if ($canSuppression) : ?> <a <?php $returnUrl = $this->url('soutenances/index-structure', [], [], true); $returnUrl = $this->url('soutenances/index-structure-these', [], [], true); /** @see \Soutenance\Controller\PropositionController::suppressionAction() */ ?> href="<?php echo $this->url("soutenance_these/proposition/suppression", ['these' => $these->getId()], ['query' => ['redirect' => $returnUrl]], true); ?>" data-toggle="confirmationx" data-event="modification" Loading @@ -151,6 +151,8 @@ $canVoirThese = $this->isAllowed(ThesePrivileges::getResourceId(ThesePrivileges: </tbody> </table> <?php echo $paginationControl = $this->paginationControl($propositions, 'sliding', 'application/paginator.phtml', ['route' => 'soutenances/index-structure-these']) ?> <style> #proposition-filters { min-width: 30px; Loading