Skip to content
Snippets Groups Projects
Commit e6298347 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Initialisation nouvelle page dédiée RGPD

parent 659534e9
No related branches found
No related tags found
No related merge requests found
Pipeline #37933 passed
......@@ -283,6 +283,14 @@ return [
],
],
'rgpd' => [
'libelle' => 'Matrice fonctionnelle RGPD',
'privileges' => [
'visualisation' => 'Visualisation',
'edition' => 'Édition',
],
],
'import' => [
'libelle' => 'Import',
'privileges' => [
......
<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
......@@ -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',
],
......
<?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' => [
],
];
<?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
<?php
namespace Administration\Controller;
use Psr\Container\ContainerInterface;
/**
* Description of RgpdControllerFactory
*
* @author Laurent Lécluse <laurent.lecluse at unicaen.fr>
*/
class RgpdControllerFactory
{
/**
* @param ContainerInterface $container
* @param string $requestedName
* @param array|null $options
*
* @return RgpdController
*/
public function __invoke(ContainerInterface $container, $requestedName, $options = null): RgpdController
{
$controller = new RgpdController;
/* Injectez vos dépendances ICI */
return $controller;
}
}
\ No newline at end of file
......@@ -288,6 +288,8 @@ class Privileges extends \UnicaenPrivilege\Provider\Privilege\Privileges {
const REFERENTIEL_REALISE_VALIDATION = 'referentiel-realise-validation';
const REFERENTIEL_REALISE_VISUALISATION = 'referentiel-realise-visualisation';
const REFERENTIEL_SAISIE_TOUTES_COMPOSANTES = 'referentiel-saisie-toutes-composantes';
const RGPD_EDITION = 'rgpd-edition';
const RGPD_VISUALISATION = 'rgpd-visualisation';
const SIGNATURE_FLOW_EDITION = 'signature-flow-edition';
const STRUCTURES_ADMINISTRATION_EDITION = 'structures-administration-edition';
const STRUCTURES_ADMINISTRATION_VISUALISATION = 'structures-administration-visualisation';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment