Commit e6298347 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Initialisation nouvelle page dédiée RGPD

parent 659534e9
Loading
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -283,6 +283,14 @@ return [
        ],
    ],

    'rgpd' => [
        'libelle'    => 'Matrice fonctionnelle RGPD',
        'privileges' => [
            'visualisation' => 'Visualisation',
            'edition'       => 'Édition',
        ],
    ],

    'import' => [
        'libelle'    => 'Import',
        'privileges' => [
+22 −0
Original line number Diff line number Diff line
<template>
    <h2>Matrice fonctionnelle pour RGPD</h2>
</template>

<script>
export default {
    name: "Rgpd",
    props: {
        data: Object
    },
    data()
    {
        return {

        };
    }
}
</script>

<style scoped>

</style>
 No newline at end of file
+2 −2
Original line number Diff line number Diff line
@@ -9,8 +9,8 @@ use UnicaenPrivilege\Guard\PrivilegeController;
$rubriques = [
    'droits'          => [
        'icon'     => 'fas fa-lock-open',
        'label'    => "Droits d'accès",
        'title'    => "Gestion des droits d'accès",
        'label'    => "Droits d'accès / RGPD",
        'title'    => "Gestion des droits d'accès & des problématiques RGPD",
        'resource' => PrivilegeController::getResourceId('Application\Controller\Droits', 'index'),
        'color'    => '#bbcf55',
    ],
+49 −0
Original line number Diff line number Diff line
<?php

namespace Administration;

use Application\Provider\Privilege\Privileges;
use UnicaenPrivilege\Guard\PrivilegeController;

return [
    'routes' => [
        'rgpd' => [
            'route'      => '/rgpd',
            'controller' => Controller\RgpdController::class,
            'action'     => 'index',
            'privileges' => [
               // Privileges::,
            ],
        ],
    ],

    'navigation' => [
        'administration' => [
            'pages' => [
                'droits' => [
                    'pages' => [
                        'rgpd' => [
                            'label'    => "Matrice fonctionnelle pour RGPD",
                            'route'    => 'rgpd',
                            'order'    => 40,
                            'resource' => PrivilegeController::getResourceId(Controller\RgpdController::class, 'index'),
                        ],
                    ],
                ],
            ],
        ],
    ],

    'controllers' => [
        Controller\RgpdController::class => Controller\RgpdControllerFactory::class,
    ],

    'forms' => [

    ],

    'services' => [

    ],
];
+25 −0
Original line number Diff line number Diff line
<?php

namespace Administration\Controller;

use Application\Controller\AbstractController;
use UnicaenVue\View\Model\VueModel;


/**
 * Description of RgpdController
 *
 * @author Laurent Lécluse <laurent.lecluse at unicaen.fr>
 */
class RgpdController extends AbstractController
{

    public function indexAction()
    {

        $vueModel = new VueModel();
        $vueModel->setTemplate('administration/rgpd');
        return $vueModel;
    }

}
 No newline at end of file
Loading