Commit 38cd0f2b authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Retouche de la carto

parent 7ad0226a
Loading
Loading
Loading
Loading
+4 −2
Changes for module/Application/src/Application/Controller/MetierController.php: 4 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -587,6 +587,7 @@ class MetierController extends AbstractActionController {

                $entry = [
                    'metier'     => ($metier) ? $metier->__toString() : "---",
                    'niveau'     => ($metier) ? $metier->getNiveau() : "---",
                    'références' => implode("<br/>", $references),
                    'domaine'    => ($domaine) ? $domaine->__toString() : "---",
                    'fonction'   => ($fonction) ? $fonction : "---",
@@ -627,7 +628,8 @@ class MetierController extends AbstractActionController {

                $entry = [
                    'metier'     => ($metier) ? $metier->__toString() : "---",
                    'références' => implode("<br/>", $references),
                    'niveau'     => ($metier) ? $metier->getNiveau() : "---",
                    'références' => implode("\n", $references),
                    'domaine'    => ($domaine) ? $domaine->__toString() : "---",
                    'fonction'   => ($fonction) ? $fonction : "---",
                    'famille'    => ($famille) ? $famille->__toString() : "---",
@@ -642,7 +644,7 @@ class MetierController extends AbstractActionController {
            return $a['domaine'] > $b['domaine'];
        });

        $headers = [ 'Metier', 'Références', 'Domaine', 'Fonction', 'Famille', '#Fiche'];
        $headers = [ 'Metier', 'Niveau', 'Références', 'Domaine', 'Fonction', 'Famille', '#Fiche'];

        $today = new DateTime();

+15 −1
Changes for module/Application/view/application/metier/cartographie.phtml: 15 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -37,10 +37,11 @@ $this->headTitle('Cartographie des métiers');

    </div>

    <table class="table table-condensed">
    <table class="datatable table table-condensed">
        <thead>
            <tr>
                <th> Métier </th>
                <th> Niveau </th>
                <th> Références </th>
                <th> Domaine </th>
                <th> Fonction </th>
@@ -55,6 +56,7 @@ $this->headTitle('Cartographie des métiers');

            <tr>
                <td> <?php echo $result['metier']; ?> </td>
                <td> <?php echo $result['niveau']; ?> </td>
                <td> <?php echo $result['références']; ?> </td>
                <td> <?php echo $result['domaine']; ?> </td>
                <td> <?php echo $result['fonction']; ?> </td>
@@ -65,3 +67,15 @@ $this->headTitle('Cartographie des métiers');
        </tbody>
    </table>
</div>

<script>
    $(document).ready(function() {
        $('.datatable').DataTable( {
            // sorting: false,
            paging: false,
            language: {
                url: '/localisation/fr_FR.json'
            }
        } );
    } );
</script>
 No newline at end of file