Commit 3241dba2 authored by Johnny Leveneur's avatar Johnny Leveneur
Browse files

ajout scan au menu Gestion des évènements

parent 1fb2c8dc
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -276,8 +276,8 @@ return [
                    ],
                    'catalogue' => [
                        'order' => 200,
                        'label' => 'Catalogue',
                        'title' => "Catalogue",
                        'label' => 'Programmation',
                        'title' => "Programmation",
                        'route' => 'catalogue',
                        'resource' => PrivilegeController::getResourceId(IndexController::class, 'index-catalogue'),
                    ],
+32 −2
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@

use Doctrine\ORM\Mapping\Driver\XmlDriver;
use Doctrine\Persistence\Mapping\Driver\MappingDriverChain;
use Evenementiel\Provider\Privilege\EvenementielinscriptionPrivileges;
use Laminas\Router\Http\Literal;
use Qr\Controller\ScanController;
use Qr\Controller\ScanControllerFactory;
@@ -34,14 +35,24 @@ return array(
    'bjyauthorize' => [
        'guards' => [
            PrivilegeController::class => [
//                [
//                    'controller' => ScanController::class,
//                    'action' => [
//                        'index', 'index-catalogue', 'callback',
//                    ],
//                    'roles' => 'guest'
//                ],
                [
                    'controller' => ScanController::class,
                    'action' => [
                        'index', 'index-catalogue', 'callback',
                        'index', 'callback'
                    ],
                    'roles' => 'guest'
                    'privileges' => [
                        EvenementielinscriptionPrivileges::MODIFIER,
                    ],
                ],

            ],
        ],
    ],

@@ -72,6 +83,25 @@ return array(
        ],
    ],

    'navigation' => [
        'default' => [
            'home' => [
                'pages' => [
                    'evenementiel' => [
                        'pages' => [
                            'scan' => [
                                'label' => "Scan",
                                'route' => 'qr-scan',
                                'resource' => PrivilegeController::getResourceId(scanController::class, 'index'),
                                'order' => 90,
                                'icon' => 'fas fa-angle-right',
                            ],
                        ],
                    ],
                ],
            ],
        ],
    ],
    'service_manager' => [
        'factories' => [
        ],
+1 −1
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@ $callbackUrl = $this->callbackUrl ?? '/qr/callback';
    <h1>Scanner un QR code</h1>

    <p>
        Autorisez l’accès à la caméra. Le QR sera détecté en continu et envoyé à votre application.
        Autorisez l’accès à la caméra. Le QR sera détecté en continu.
    </p>

    <video id="qr-video" autoplay playsinline style="width:100%;max-width:640px;border:1px solid #ddd;border-radius:8px;"></video>