Loading CHANGELOG.md +1 −0 Changes for CHANGELOG.md: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -8,6 +8,7 @@ Journal des modifications - Admission (convention de formation) : correction du texte à l'attention du candidat, des directions de thèse et des unités de recherche. - Admission (documents à fournir) : déplacement du passeport dans la section des documents obligatoires pour tous. - Admission (convention et charte) : retrait du filigrane 'PROJET' sur le PDF. - Formulaire d'autorisation d'inscription : plus de question à propos de la création de l'année universitaire suivante (pas créée, du coup). - [FIX] Soutenance HDR : la génération des convocations devait planter (méthode manquante dans une classe). - [FIX] Rapport d'activité : la génération du nom de fichier déposé normalisé plantait si aucune UR n'était associée à la thèse. - [FIX] Ressources distantes ajax-loader-*.gif rappatriées en local. Loading module/AutorisationInscriptionThese/src/AutorisationInscriptionThese/Controller/AutorisationInscriptionTheseController.php +1 −14 Changes for module/AutorisationInscriptionThese/src/AutorisationInscriptionThese/Controller/AutorisationInscriptionTheseController.php: 1 added line, 14 removed lines. Original line number Diff line number Diff line Loading @@ -128,25 +128,12 @@ class AutorisationInscriptionTheseController extends AbstractController implemen /** @var AutorisationInscriptionThese $entity */ $entity = $this->autorisationInscriptionTheseForm->getData(); $creerTheseAnneeUnivSuivante = $this->autorisationInscriptionTheseForm->get('creerTheseAnneeUnivSuivante')->getValue() === '1'; try { $this->creationProcess->creerAutorisationInscriptionThese($entity, $creerTheseAnneeUnivSuivante); $this->creationProcess->creerAutorisationInscriptionThese($entity, false); $this->flashMessenger()->addSuccessMessage(sprintf( "Création de l'autorisation de réinscription pour l'année %s effectuée avec succès.", $entity->getAnneeUniv()->getAnneeUnivToString() )); if ($creerTheseAnneeUnivSuivante) { $this->flashMessenger()->addSuccessMessage(sprintf( "Conformément à ce que vous avez précisé, l'année d'inscription %s a été ajoutée avec succés pour la thèse concernée.", $entity->getAnneeUniv()->getAnneeUnivToString() )); } else { $this->flashMessenger()->addInfoMessage(sprintf( "Conformément à ce que vous avez précisé, l'année d'inscription %s n'a pas été ajoutée pour la thèse concernée.", $entity->getAnneeUniv()->getAnneeUnivToString() )); } if ($redirectUrl = $this->params()->fromQuery('redirect')) { return $this->redirect()->toUrl($redirectUrl); Loading module/AutorisationInscriptionThese/src/AutorisationInscriptionThese/Form/AutorisationInscriptionTheseForm.php +0 −25 Changes for module/AutorisationInscriptionThese/src/AutorisationInscriptionThese/Form/AutorisationInscriptionTheseForm.php: 0 added lines, 25 removed lines. Original line number Diff line number Diff line Loading @@ -52,32 +52,10 @@ class AutorisationInscriptionTheseForm extends Form implements InputFilterProvid ->setAttributes(['id' => 'commentaires']) ); $this->add( (new Radio('creerTheseAnneeUnivSuivante')) ->setValueOptions([ 1 => "Oui, car l'application n'est pas connectée à un logiciel de scolarité", 0 => "Non, car elle sera créée automatiquement lorsque l'application recevra l'inscription administrative du logiciel de scolarité", ]) ->setAttributes(['id' => 'creerTheseAnneeUnivSuivante']) ->setLabel("Créer l'année d'inscription %s pour la thèse ?") ->setLabelOptions(['disable_html_escape' => true,]) ); FormUtils::addCsrfButton($this, 600); FormUtils::addSaveButton($this); } public function prepare(): static { $creerTheseAnneeUnivSuivanteElem = $this->get('creerTheseAnneeUnivSuivante'); $creerTheseAnneeUnivSuivanteElem->setLabel(sprintf( $creerTheseAnneeUnivSuivanteElem->getLabel(), $this->object->getAnneeUniv() )); return parent::prepare(); } public function getInputFilterSpecification(): array { return [ Loading @@ -87,9 +65,6 @@ class AutorisationInscriptionTheseForm extends Form implements InputFilterProvid 'commentaires' => [ 'required' => $this->get('autorisation')->getValue() === '0', ], 'creerTheseAnneeUnivSuivante' => [ 'required' => $this->get('autorisation')->getValue() === '1', ], ]; } } No newline at end of file module/AutorisationInscriptionThese/view/autorisation-inscription-these/autorisation-inscription-these/creer.phtml +1 −15 Changes for module/AutorisationInscriptionThese/view/autorisation-inscription-these/autorisation-inscription-these/creer.phtml: 1 added line, 15 removed lines. Original line number Diff line number Diff line Loading @@ -28,11 +28,8 @@ $entity = $form->getObject(); </div> <div class="row"> <div class="col-md-9"> <?php echo $this->formControlGroup($form->get('commentaires')); ?> <div class="creerTheseAnneeUnivSuivante"> <?php echo $this->formControlGroup($form->get('creerTheseAnneeUnivSuivante')); ?> </div> <?php echo $this->formControlGroup($form->get('commentaires')); echo $this->formControlGroup($form->get('security')); echo $this->formControlGroup($form->get('submit')); ?> Loading @@ -43,17 +40,6 @@ $entity = $form->getObject(); <script> $(function () { const updateUI = function() { console.log("UpdateUI", $('input[name="autorisation"]:checked').val()); if ($('input[name="autorisation"]:checked').val() === '1') { $(".creerTheseAnneeUnivSuivante").show(); } else { $(".creerTheseAnneeUnivSuivante").hide(); } }; $('input[name="autorisation"]').on('change', updateUI); updateUI(); $('[data-bs-toggle="tooltip"]').tooltip({}); }); </script> Loading
CHANGELOG.md +1 −0 Changes for CHANGELOG.md: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -8,6 +8,7 @@ Journal des modifications - Admission (convention de formation) : correction du texte à l'attention du candidat, des directions de thèse et des unités de recherche. - Admission (documents à fournir) : déplacement du passeport dans la section des documents obligatoires pour tous. - Admission (convention et charte) : retrait du filigrane 'PROJET' sur le PDF. - Formulaire d'autorisation d'inscription : plus de question à propos de la création de l'année universitaire suivante (pas créée, du coup). - [FIX] Soutenance HDR : la génération des convocations devait planter (méthode manquante dans une classe). - [FIX] Rapport d'activité : la génération du nom de fichier déposé normalisé plantait si aucune UR n'était associée à la thèse. - [FIX] Ressources distantes ajax-loader-*.gif rappatriées en local. Loading
module/AutorisationInscriptionThese/src/AutorisationInscriptionThese/Controller/AutorisationInscriptionTheseController.php +1 −14 Changes for module/AutorisationInscriptionThese/src/AutorisationInscriptionThese/Controller/AutorisationInscriptionTheseController.php: 1 added line, 14 removed lines. Original line number Diff line number Diff line Loading @@ -128,25 +128,12 @@ class AutorisationInscriptionTheseController extends AbstractController implemen /** @var AutorisationInscriptionThese $entity */ $entity = $this->autorisationInscriptionTheseForm->getData(); $creerTheseAnneeUnivSuivante = $this->autorisationInscriptionTheseForm->get('creerTheseAnneeUnivSuivante')->getValue() === '1'; try { $this->creationProcess->creerAutorisationInscriptionThese($entity, $creerTheseAnneeUnivSuivante); $this->creationProcess->creerAutorisationInscriptionThese($entity, false); $this->flashMessenger()->addSuccessMessage(sprintf( "Création de l'autorisation de réinscription pour l'année %s effectuée avec succès.", $entity->getAnneeUniv()->getAnneeUnivToString() )); if ($creerTheseAnneeUnivSuivante) { $this->flashMessenger()->addSuccessMessage(sprintf( "Conformément à ce que vous avez précisé, l'année d'inscription %s a été ajoutée avec succés pour la thèse concernée.", $entity->getAnneeUniv()->getAnneeUnivToString() )); } else { $this->flashMessenger()->addInfoMessage(sprintf( "Conformément à ce que vous avez précisé, l'année d'inscription %s n'a pas été ajoutée pour la thèse concernée.", $entity->getAnneeUniv()->getAnneeUnivToString() )); } if ($redirectUrl = $this->params()->fromQuery('redirect')) { return $this->redirect()->toUrl($redirectUrl); Loading
module/AutorisationInscriptionThese/src/AutorisationInscriptionThese/Form/AutorisationInscriptionTheseForm.php +0 −25 Changes for module/AutorisationInscriptionThese/src/AutorisationInscriptionThese/Form/AutorisationInscriptionTheseForm.php: 0 added lines, 25 removed lines. Original line number Diff line number Diff line Loading @@ -52,32 +52,10 @@ class AutorisationInscriptionTheseForm extends Form implements InputFilterProvid ->setAttributes(['id' => 'commentaires']) ); $this->add( (new Radio('creerTheseAnneeUnivSuivante')) ->setValueOptions([ 1 => "Oui, car l'application n'est pas connectée à un logiciel de scolarité", 0 => "Non, car elle sera créée automatiquement lorsque l'application recevra l'inscription administrative du logiciel de scolarité", ]) ->setAttributes(['id' => 'creerTheseAnneeUnivSuivante']) ->setLabel("Créer l'année d'inscription %s pour la thèse ?") ->setLabelOptions(['disable_html_escape' => true,]) ); FormUtils::addCsrfButton($this, 600); FormUtils::addSaveButton($this); } public function prepare(): static { $creerTheseAnneeUnivSuivanteElem = $this->get('creerTheseAnneeUnivSuivante'); $creerTheseAnneeUnivSuivanteElem->setLabel(sprintf( $creerTheseAnneeUnivSuivanteElem->getLabel(), $this->object->getAnneeUniv() )); return parent::prepare(); } public function getInputFilterSpecification(): array { return [ Loading @@ -87,9 +65,6 @@ class AutorisationInscriptionTheseForm extends Form implements InputFilterProvid 'commentaires' => [ 'required' => $this->get('autorisation')->getValue() === '0', ], 'creerTheseAnneeUnivSuivante' => [ 'required' => $this->get('autorisation')->getValue() === '1', ], ]; } } No newline at end of file
module/AutorisationInscriptionThese/view/autorisation-inscription-these/autorisation-inscription-these/creer.phtml +1 −15 Changes for module/AutorisationInscriptionThese/view/autorisation-inscription-these/autorisation-inscription-these/creer.phtml: 1 added line, 15 removed lines. Original line number Diff line number Diff line Loading @@ -28,11 +28,8 @@ $entity = $form->getObject(); </div> <div class="row"> <div class="col-md-9"> <?php echo $this->formControlGroup($form->get('commentaires')); ?> <div class="creerTheseAnneeUnivSuivante"> <?php echo $this->formControlGroup($form->get('creerTheseAnneeUnivSuivante')); ?> </div> <?php echo $this->formControlGroup($form->get('commentaires')); echo $this->formControlGroup($form->get('security')); echo $this->formControlGroup($form->get('submit')); ?> Loading @@ -43,17 +40,6 @@ $entity = $form->getObject(); <script> $(function () { const updateUI = function() { console.log("UpdateUI", $('input[name="autorisation"]:checked').val()); if ($('input[name="autorisation"]:checked').val() === '1') { $(".creerTheseAnneeUnivSuivante").show(); } else { $(".creerTheseAnneeUnivSuivante").hide(); } }; $('input[name="autorisation"]').on('change', updateUI); updateUI(); $('[data-bs-toggle="tooltip"]').tooltip({}); }); </script>