Commit dbfa168f authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Correction affichage reconduction offre complémentaire

parent a48eac12
Loading
Loading
Loading
Loading
Loading
+3 −15
Changes for module/OffreFormation/view/offre-formation/offre-formation/reconduction.phtml: 3 added lines, 15 removed lines.
Original line number Diff line number Diff line
@@ -35,7 +35,7 @@ $this->headScript()->offsetSetFile(100, $this->basePath('/js/reconduction-offre.
        <div class="alert alert-warning" role="alert">
            <strong>IMPORTANT</strong><br/>
            Vous pouvez ici reconduire les formations et éléments pédagogiques de l'année en cours pour l'année
            universitaire prochaine. Les lignes avec fond gris sont déjà reconduites pour l'année prochaine.
            universitaire prochaine. Les éléments pédagogiques déjà reconduits pour l'année prochaine ne sont pas affichés.
        </div>

        <h3>Offre de formation complémentaire / Année universitaire : <?php echo $anneeEnCours->getLibelle(); ?></h3>
@@ -71,9 +71,6 @@ $this->headScript()->offsetSetFile(100, $this->basePath('/js/reconduction-offre.
                        des formations.</a></p>
            <?php else: ?>
                <?php if ($reconductionTotale == 'non'): ?>
                    <div class="well">Les lignes avec le fond gris ont déjà été reconduites pour la prochaine année
                        universitaire.
                    </div>
                    <form action="<?= $this->url('aof/reconduction', [], ['query' => ['structure' => $structure->getId()]]) ?>"
                          method="POST" id="form-reconduction">

@@ -133,20 +130,11 @@ $this->headScript()->offsetSetFile(100, $this->basePath('/js/reconduction-offre.
                                <?php } ?>

                                <?php foreach ($ec['elements_pedagogique'] as $ep): ?>
                                    <tr id="<?= $ep['element']->getId() ?>"
                                        class="<?php if ($ep['reconduction'] == 'oui') {
                                            echo "active";
                                        } ?>">
                                        <?php if ($ep['reconduction'] == 'oui'): ?>
                                            <td>
                                                <span title="Elément pédagogique déjà reconduit pour l'année prochaine"
                                                      class="badge bg-warning text-dark">Reconduit</span>
                                            </td>
                                        <?php else: ?>
                                    <?php if ($ep['reconduction'] == 'oui') continue; //Elément déjà reconduit : inutile de l'afficher ?>
                                    <tr id="<?= $ep['element']->getId() ?>">
                                        <td><input class="checkbox-element" type="checkbox" checked="checked"
                                                   name="element[<?php echo $ec['etape']->getId(); ?>][]"
                                                   value="<?= $ep['element']->getId(); ?>"/></td>
                                        <?php endif; ?>
                                        <td class="element"><?= $ep['element']->getCode() ?></td>
                                        <td class="element"><?= $this->elementPedagogique($ep['element'])->renderLink($ep['element']->getLibelle()) ?></td>
                                        <td class="periode"><?= $ep['element']->getPeriode() ?: "" ?></td>