Commit 39d1d684 authored by Thomas Hamel's avatar Thomas Hamel
Browse files

Ajout d'un tri sur le type de formation affiché sur le tableau de bord des sessions

parent b3734a7a
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -87,6 +87,7 @@ class SessionSearchService extends SearchService
            $this->createEtatSorter(),
            $this->createModaliteSorter(),
            $this->createSeancesSorter(),
            $this->createTypeSorter(),
        ]);

        //tri affichant des sessions affichées
@@ -267,4 +268,9 @@ class SessionSearchService extends SearchService
        });
        return $sorter;
    }

    private function createTypeSorter(): SearchSorter
    {
        return new SearchSorter("Type", self::NAME_type);
    }
}
 No newline at end of file
+3 −3
Original line number Diff line number Diff line
@@ -79,19 +79,19 @@ $canExporterFormations = $this->isAllowed(FormationPrivileges::getResourceId
            <th>
                <a href="<?php echo $s = $this->sortable(FormationSearchService::NAME_site) ?>"
                   title="<?php echo $this->translate("Établissement organisateur") ?> ">
                    <?php echo $this->translate("Établissement organisateur") ?>*
                    <?php echo $this->translate("Établissement organisateur") ?>
                </a> <?php echo $s->icon() ?>
            </th>
            <th>
                <a href="<?php echo $s = $this->sortable(FormationSearchService::NAME_responsable) ?>"
                   title="<?php echo $this->translate("Responsable") ?> ">
                    <?php echo $this->translate("Responsable") ?>*
                    <?php echo $this->translate("Responsable") ?>
                </a> <?php echo $s->icon() ?>
            </th>
            <th>
                <a href="<?php echo $s = $this->sortable(FormationSearchService::NAME_modalite) ?>"
                   title="<?php echo $this->translate("Modalité") ?> ">
                    <?php echo $this->translate("Modalité") ?>*
                    <?php echo $this->translate("Modalité") ?>
                </a> <?php echo $s->icon() ?>
            </th>
            <th>
+7 −4
Original line number Diff line number Diff line
@@ -57,23 +57,26 @@ $queryParams = $this->queryParams();
            <th style="max-width: 6rem;">
                <a href="<?php echo $s = $this->sortable(SessionSearchService::NAME_site) ?>"
                   title="<?php echo $this->translate("Établissement organisateur") ?> ">
                    <?php echo $this->translate("Établissement organisateur") ?>*
                    <?php echo $this->translate("Établissement organisateur") ?>
                </a> <?php echo $s->icon() ?>
            </th>
            <th>
                <a href="<?php echo $s = $this->sortable(SessionSearchService::NAME_responsable) ?>"
                   title="<?php echo $this->translate("Responsable") ?> ">
                    <?php echo $this->translate("Responsable") ?>*
                    <?php echo $this->translate("Responsable") ?>
                </a> <?php echo $s->icon() ?>
            </th>
            <th>
                <a href="<?php echo $s = $this->sortable(SessionSearchService::NAME_modalite) ?>"
                   title="<?php echo $this->translate("Modalité") ?> ">
                    <?php echo $this->translate("Modalité") ?>*
                    <?php echo $this->translate("Modalité") ?>
                </a> <?php echo $s->icon() ?>
            </th>
            <th>
                Type
                <a href="<?php echo $s = $this->sortable(SessionSearchService::NAME_type) ?>"
                   title="<?php echo $this->translate("Type") ?> ">
                    <?php echo $this->translate("Type") ?>
                </a> <?php echo $s->icon() ?>
            </th>
            <th>
                <a href="<?php echo $s = $this->sortable(SessionSearchService::NAME_etat) ?>"