Loading module/Application/src/Controller/TypeFormationController.php +4 −4 Original line number Diff line number Diff line Loading @@ -52,10 +52,10 @@ class TypeFormationController extends AbstractController $form = $this->getFormTypeFormationSaisie(); if (empty($typeFormations)) { $title = "Création d'une nouvelle formation"; $title = "Création d'un nouveau type de formation"; $typeFormations = $this->getServiceTypeFormation()->newEntity(); } else { $title = "Edition d'une formation"; $title = "Édition d'un type de formation"; } $form->bindRequestSave($typeFormations, $this->getRequest(), function () use ($typeFormations, $form) { Loading @@ -77,10 +77,10 @@ class TypeFormationController extends AbstractController $form = $this->getFormGroupeTypeFormationSaisie(); if (empty($groupeTypeFormation)) { $title = "Création d'un nouveau groupe de types de formations"; $title = "Création d'un nouveau groupe"; $groupeTypeFormation = $this->getServiceGroupeTypeFormation()->newEntity(); } else { $title = "Edition d'un groupe de type de formations"; $title = "Édition d'un groupe"; } $form->bindRequestSave($groupeTypeFormation, $this->getRequest(), function () use ($groupeTypeFormation, $form) { Loading module/Application/src/Form/GroupeTypeFormation/GroupeTypeFormationSaisieForm.php +1 −1 Original line number Diff line number Diff line Loading @@ -30,7 +30,7 @@ class GroupeTypeFormationSaisieForm extends AbstractForm $this->get('libelleCourt')->setLabel('Libellé court'); $this->get('libelleLong')->setLabel('Libellé long'); $this->get('pertinenceNiveau')->setLabel('Suffixer l\'année en fin de nom'); $this->get('pertinenceNiveau')->setLabel('Le niveau (1 pour L1, etc...) devra être précisé dans les formations correspondantes'); $this->addSubmit(); Loading module/Application/view/application/type-formation/index.phtml +12 −14 Original line number Diff line number Diff line Loading @@ -26,24 +26,23 @@ echo $this->messenger()->addCurrentMessagesFromFlashMessenger(); <div class="champ-triable" data-id= <?php echo $groupeTypeFormation->getId() ?>> <div class="panel panel-default"> <div class="panel-heading"><?= $groupeTypeFormation->getLibelleLong(); ?> (<?= $groupeTypeFormation->getLibelleCourt(); ?>) <span class="badge badge-info"><?= affBooleen($groupeTypeFormation->isPertinenceNiveau()); ?></span> <span class="badge"><?= $groupeTypeFormation->getSource()->getLibelle(); ?></span> <?php if ($canEdit): ?> <i class="fas fa-arrows-up-down-left-right pull-right" title="Vous pouvez trier les champs en déplaçant les lignes du tableau"></i> <span class="pull-right"> </span> <a class="pop-ajax pull-right" data-title="Suppression d'une collection" data-content="Êtes-vous sur de vouloir supprimer" <div class="pull-right"> <a class="ajax-modal " data-event="type-formation-edition" href="<?= $this->url('type-formation/saisie-groupe', ['groupeTypeFormation' => $groupeTypeFormation->getId()], ['query' => ['tab' => 'edition']]) ?>" title="Modifier la collection"><i class="fas fa-pen-to-square"></i></a> <a class="pop-ajax " data-title="Suppression d'une collection" data-content="Êtes-vous sur de vouloir supprimer" data-confirm="true" data-submit-reload="true" href="<?= $this->url('type-formation/supprimer-groupe', ['groupeTypeFormation' => $groupeTypeFormation->getId()]) ?>" title="Supprimer la collection"><i class="fas fa-trash-can"></i></a> <span class="pull-right"> </span> <a class="ajax-modal pull-right" data-event="type-formation-edition" href="<?= $this->url('type-formation/saisie-groupe', ['groupeTypeFormation' => $groupeTypeFormation->getId()], ['query' => ['tab' => 'edition']]) ?>" title="Modifier la collection"><i class="fas fa-pen-to-square"></i></a> <i class="fas fa-arrows-up-down-left-right" title="Vous pouvez trier les champs en déplaçant les lignes du tableau"></i> </div> <?php endif; ?> </div> <div class="type-formations"> <table class="table table-bordered table-condensed"> <thead> <tr> Loading @@ -58,7 +57,7 @@ echo $this->messenger()->addCurrentMessagesFromFlashMessenger(); <tbody class="triables ui-sortable"> <?php foreach ($groupeTypeFormation->getTypeFormation() as $typeFormation): ?> <tr class="champ-triable" data-id= <?php echo $typeFormation->getId() ?>> <td style="text-align: center"><?= $typeFormation->getLibelleCourt(); ?></td> <td><?= $typeFormation->getLibelleCourt(); ?></td> <td style="text-align: center"><?= $typeFormation->getLibelleLong(); ?></td> <td style="text-align: center"><?= $typeFormation->getSource()->getLibelle(); ?></td> <?php if ($canEdit): ?> Loading @@ -80,7 +79,6 @@ echo $this->messenger()->addCurrentMessagesFromFlashMessenger(); </table> </div> </div> </div> <?php endforeach; ?> Loading @@ -89,7 +87,7 @@ echo $this->messenger()->addCurrentMessagesFromFlashMessenger(); <tr class="champ-triable"> <a class="btn btn-primary ajax-modal " data-event="groupe-type-formation-edition" href="<?= $this->url('type-formation/saisie-groupe'); ?>"><i class="fas fa-plus"></i> Ajout d'une nouvele collection Ajout d'un nouveau groupe </a> </tr> <?php endif; ?> Loading Loading
module/Application/src/Controller/TypeFormationController.php +4 −4 Original line number Diff line number Diff line Loading @@ -52,10 +52,10 @@ class TypeFormationController extends AbstractController $form = $this->getFormTypeFormationSaisie(); if (empty($typeFormations)) { $title = "Création d'une nouvelle formation"; $title = "Création d'un nouveau type de formation"; $typeFormations = $this->getServiceTypeFormation()->newEntity(); } else { $title = "Edition d'une formation"; $title = "Édition d'un type de formation"; } $form->bindRequestSave($typeFormations, $this->getRequest(), function () use ($typeFormations, $form) { Loading @@ -77,10 +77,10 @@ class TypeFormationController extends AbstractController $form = $this->getFormGroupeTypeFormationSaisie(); if (empty($groupeTypeFormation)) { $title = "Création d'un nouveau groupe de types de formations"; $title = "Création d'un nouveau groupe"; $groupeTypeFormation = $this->getServiceGroupeTypeFormation()->newEntity(); } else { $title = "Edition d'un groupe de type de formations"; $title = "Édition d'un groupe"; } $form->bindRequestSave($groupeTypeFormation, $this->getRequest(), function () use ($groupeTypeFormation, $form) { Loading
module/Application/src/Form/GroupeTypeFormation/GroupeTypeFormationSaisieForm.php +1 −1 Original line number Diff line number Diff line Loading @@ -30,7 +30,7 @@ class GroupeTypeFormationSaisieForm extends AbstractForm $this->get('libelleCourt')->setLabel('Libellé court'); $this->get('libelleLong')->setLabel('Libellé long'); $this->get('pertinenceNiveau')->setLabel('Suffixer l\'année en fin de nom'); $this->get('pertinenceNiveau')->setLabel('Le niveau (1 pour L1, etc...) devra être précisé dans les formations correspondantes'); $this->addSubmit(); Loading
module/Application/view/application/type-formation/index.phtml +12 −14 Original line number Diff line number Diff line Loading @@ -26,24 +26,23 @@ echo $this->messenger()->addCurrentMessagesFromFlashMessenger(); <div class="champ-triable" data-id= <?php echo $groupeTypeFormation->getId() ?>> <div class="panel panel-default"> <div class="panel-heading"><?= $groupeTypeFormation->getLibelleLong(); ?> (<?= $groupeTypeFormation->getLibelleCourt(); ?>) <span class="badge badge-info"><?= affBooleen($groupeTypeFormation->isPertinenceNiveau()); ?></span> <span class="badge"><?= $groupeTypeFormation->getSource()->getLibelle(); ?></span> <?php if ($canEdit): ?> <i class="fas fa-arrows-up-down-left-right pull-right" title="Vous pouvez trier les champs en déplaçant les lignes du tableau"></i> <span class="pull-right"> </span> <a class="pop-ajax pull-right" data-title="Suppression d'une collection" data-content="Êtes-vous sur de vouloir supprimer" <div class="pull-right"> <a class="ajax-modal " data-event="type-formation-edition" href="<?= $this->url('type-formation/saisie-groupe', ['groupeTypeFormation' => $groupeTypeFormation->getId()], ['query' => ['tab' => 'edition']]) ?>" title="Modifier la collection"><i class="fas fa-pen-to-square"></i></a> <a class="pop-ajax " data-title="Suppression d'une collection" data-content="Êtes-vous sur de vouloir supprimer" data-confirm="true" data-submit-reload="true" href="<?= $this->url('type-formation/supprimer-groupe', ['groupeTypeFormation' => $groupeTypeFormation->getId()]) ?>" title="Supprimer la collection"><i class="fas fa-trash-can"></i></a> <span class="pull-right"> </span> <a class="ajax-modal pull-right" data-event="type-formation-edition" href="<?= $this->url('type-formation/saisie-groupe', ['groupeTypeFormation' => $groupeTypeFormation->getId()], ['query' => ['tab' => 'edition']]) ?>" title="Modifier la collection"><i class="fas fa-pen-to-square"></i></a> <i class="fas fa-arrows-up-down-left-right" title="Vous pouvez trier les champs en déplaçant les lignes du tableau"></i> </div> <?php endif; ?> </div> <div class="type-formations"> <table class="table table-bordered table-condensed"> <thead> <tr> Loading @@ -58,7 +57,7 @@ echo $this->messenger()->addCurrentMessagesFromFlashMessenger(); <tbody class="triables ui-sortable"> <?php foreach ($groupeTypeFormation->getTypeFormation() as $typeFormation): ?> <tr class="champ-triable" data-id= <?php echo $typeFormation->getId() ?>> <td style="text-align: center"><?= $typeFormation->getLibelleCourt(); ?></td> <td><?= $typeFormation->getLibelleCourt(); ?></td> <td style="text-align: center"><?= $typeFormation->getLibelleLong(); ?></td> <td style="text-align: center"><?= $typeFormation->getSource()->getLibelle(); ?></td> <?php if ($canEdit): ?> Loading @@ -80,7 +79,6 @@ echo $this->messenger()->addCurrentMessagesFromFlashMessenger(); </table> </div> </div> </div> <?php endforeach; ?> Loading @@ -89,7 +87,7 @@ echo $this->messenger()->addCurrentMessagesFromFlashMessenger(); <tr class="champ-triable"> <a class="btn btn-primary ajax-modal " data-event="groupe-type-formation-edition" href="<?= $this->url('type-formation/saisie-groupe'); ?>"><i class="fas fa-plus"></i> Ajout d'une nouvele collection Ajout d'un nouveau groupe </a> </tr> <?php endif; ?> Loading