Commit 23508b04 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

besoin_formation IHM Ok pour les types de mission

parent 087d9c62
Loading
Loading
Loading
Loading
+1 −1
Changes for module/Mission/src/Controller/MissionTypeController.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -55,7 +55,7 @@ class MissionTypeController extends AbstractController
            );
        });

        return compact('form', 'title', 'tab');
        return compact('form', 'title', 'tab', 'typeMission');
    }


+0 −9
Changes for module/Mission/src/Form/MissionTypeForm.php: 0 added lines, 9 removed lines.
Original line number Diff line number Diff line
@@ -42,13 +42,4 @@ class MissionTypeForm extends AbstractForm
        return $this;
    }



    public function bind($object, $flags = FormInterface::VALUES_NORMALIZED)
    {
        /* @var $object TypeMission */
        parent::bind($object, $flags);

        return $this;
    }
}
+2 −0
Changes for module/Mission/view/mission/mission-type/index.phtml: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ $canSupprimer = $this->isAllowed(Privileges::getResourceId(Privileges::MISSION_S
        <th>Libellé</th>
        <th>Code</th>
        <th>Accomp. Etudiants</th>
        <th>Besoin de formation</th>
        <th>Type de rémunération</th>
        <?php if ($canSupprimer || $canEdit): ?>
            <th>Action</th>
@@ -32,6 +33,7 @@ $canSupprimer = $this->isAllowed(Privileges::getResourceId(Privileges::MISSION_S
            <td><?= $missionType->getLibelle(); ?></td>
            <td class="text-center"><?= $missionType->getCode() ?></td>
            <td class="text-center"><i class="fas fa-<?= $missionType->isAccompagnementEtudiants() ? 'check text-success' : 'xmark text-danger' ?>"></i></td>
            <td class="text-center"><i class="fas fa-<?= $missionType->isBesoinFormation() ? 'check text-success' : 'xmark text-danger' ?>"></i></td>
            <td><?php if ($missionType->getTauxRemu()):
                    echo $missionType->getTauxRemu()->getLibelle();
                endif; ?></td>
+1 −2
Changes for module/Mission/view/mission/mission-type/saisir.phtml: 1 added line, 2 removed lines.
Original line number Diff line number Diff line
@@ -3,12 +3,11 @@
 * @var $this  \Application\View\Renderer\PhpRenderer
 * @var $form \Mission\Form\MissionTypeForm
 * @var $tab  string
 * @var $typeMission \Mission\Entity\Db\TypeMission
 */

use Application\Provider\Privilege\Privileges;

$typeMission = $form->getObject();

$visu = $this->messenger()->addCurrentMessagesFromFlashMessenger() . $this->form($form);

$tabs = [