Commit 2f7127f3 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

réorg menus intervenants (wip)

parent 2a953431
Loading
Loading
Loading
Loading
Loading
+1 −1
Changes for data/indicateurs.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -273,7 +273,7 @@ return [
                'enabled'           => true,
                'libelle_singulier' => '%s vacataire doit être pris en charge ou renouvelés dans le SI RH',
                'libelle_pluriel'   => '%s vacataires doivent être pris en charge ou renouvelés dans le SI RH',
                'route'             => 'intervenant/exporter-rh',
                'route'             => 'intervenant/exporter',
                'irrecevables'      => false,
            ],
        ],
−1
Changes for module/Dossier/config/module.config.php: 0 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -25,7 +25,6 @@ use Dossier\Tbl\Process\DossierProcess;
use Dossier\Tbl\Process\DossierProcessFactory;
use Dossier\View\Helper\ValidationViewHelperFactory;
use Unicaen\Framework\Authorize\Authorize;
use Workflow\Entity\Db\WorkflowEtape;

return [
    'routes' => [
+24 −11
Changes for module/ExportRh/config/module.config.php: 24 added lines, 11 removed lines.
Original line number Diff line number Diff line
@@ -22,40 +22,53 @@ return [
                    'route'         => '/:intervenant/exporter',
                    'controller'    => Controller\ExportRhController::class,
                    'action'        => 'exporter',
                ],
                'exporter-rh'    => [
                    'route'  => '/:intervenant/voir?tab=export-rh',
                    'action' => 'voir',
                    'privileges'    => Privileges::INTERVENANT_EXPORTER,
                    'assertion'     => ExportRhAssertion::class,
                ],
                'pec'         => [
                    'may_terminate' => false,
                    'route'         => '/:intervenant/pec',
                    'controller'    => Controller\ExportRhController::class,
                    'action'        => 'prise-en-charge',
                    'privileges'    => Privileges::INTERVENANT_EXPORTER,
                    'assertion'     => ExportRhAssertion::class,
                ],
                'ren'         => [
                    'may_terminate' => false,
                    'route'         => '/:intervenant/ren',
                    'controller'    => Controller\ExportRhController::class,
                    'action'        => 'renouvellement',
                    'privileges'    => Privileges::INTERVENANT_EXPORTER,
                    'assertion'     => ExportRhAssertion::class,
                ],
                'sync'        => [
                    'may_terminate' => false,
                    'route'         => '/:intervenant/sync',
                    'controller'    => Controller\ExportRhController::class,
                    'action'        => 'synchroniser',
                    'privileges'    => Privileges::INTERVENANT_EXPORTER,
                    'assertion'     => ExportRhAssertion::class,
                ],
            ],
        ],
    ],

    'guards' => [
        [
            'controller' => Controller\ExportRhController::class,
            'action'     => ['exporter', 'prise-en-charge', 'renouvellement', 'synchroniser'],
            'privileges' => [Privileges::INTERVENANT_EXPORTER],
            'assertion'  => ExportRhAssertion::class,

    'navigation' => [
        'intervenant' => [
            'pages' => [
                'export-rh'  => [
                    'label'        => 'Export RH',
                    'title'        => 'Export vers le logiciel de gestion RH',
                    'route'        => 'intervenant/exporter',
                    'order'        => 10,
                ],
                'agrement-conseil-academique' => [
                    'label'        => 'Agrément : Conseil académique',
                    'title'        => 'Agrément : Conseil académique',
                    'route'        => 'intervenant/agrement/conseil-academique',
                    'order'        => 11,
                ],
            ],
        ],
    ],

+2
Changes for module/ExportRh/view/export-rh/export-rh/exporter.phtml: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -18,6 +18,8 @@ if ($priseEnCharge) {
    $action = 'intervenant/sync';
}

$this->intervenant($intervenant)->renderTitle('Export vers le logiciel RH');

?>
<br/>
<?php if ($this->isAllowed($intervenant, \ExportRh\Assertion\ExportRhAssertion::PRIV_CAN_INTERVENANT_EXPORT_RH)): ?>
+30 −1
Changes for module/Intervenant/config/intervenant.config.php: 30 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -129,6 +129,35 @@ return [
                ],
            ],
        ],
        'intervenant-admin' => [
            'visible' => false,
            'pages'   => [
                'fiche'           => [
                    'label' => 'Fiche',
                    'icon'  => 'fas fa-eye',
                    'route' => 'intervenant/fiche',
                    'order' => 1,
                ],
                'edition'         => [
                    'label' => 'Édition',
                    'icon'  => 'fas fa-pencil',
                    'route' => 'intervenant/saisir',
                    'order' => 2,
                ],
                'synchronisation' => [
                    'label' => 'Synchronisation',
                    'icon'  => 'fas fa-download',
                    'route' => 'intervenant/synchronisation',
                    'order' => 3,
                ],
                'suppression' => [
                    'label' => 'Suppression',
                    'icon'  => 'fas fa-trash-can',
                    'route' => 'intervenant/supprimer',
                    'order' => 4,
                ],
            ],
        ],
    ],


@@ -210,7 +239,7 @@ return [

    'laminas-cli' => [
        'commands' => [
            'calcul-feuille-de-route' => Command\CalculFeuilleDeRouteCommand::class
            'calcul-feuille-de-route' => Command\CalculFeuilleDeRouteCommand::class,
        ],
    ],
];
 No newline at end of file
Loading