From 06193f2640c729c989290b8dd78fb18819d9caa9 Mon Sep 17 00:00:00 2001 From: Aina Sitraka <35221835+aynsix@users.noreply.github.com> Date: Thu, 7 Sep 2023 14:51:35 +0300 Subject: [PATCH] PHRAS-3903 Admin - object inspector - record index debug tools (#4369) * add admin record index tools * add databox_id filter * add url encode * use options provider * return uri along with es result --------- Co-authored-by: jygaulier --- .../Controller/Admin/RootController.php | 38 +++++++++ .../Phrasea/ControllerProvider/Admin/Root.php | 6 ++ resources/locales/messages.de.xlf | 82 +++++++++++-------- resources/locales/messages.en.xlf | 82 +++++++++++-------- resources/locales/messages.fr.xlf | 82 +++++++++++-------- resources/locales/messages.nl.xlf | 82 +++++++++++-------- resources/locales/validators.de.xlf | 2 +- resources/locales/validators.en.xlf | 2 +- resources/locales/validators.fr.xlf | 2 +- resources/locales/validators.nl.xlf | 2 +- .../admin/inspector/record-index.html.twig | 48 +++++++++++ templates/web/admin/tree.html.twig | 6 ++ 12 files changed, 298 insertions(+), 136 deletions(-) create mode 100644 templates/web/admin/inspector/record-index.html.twig diff --git a/lib/Alchemy/Phrasea/Controller/Admin/RootController.php b/lib/Alchemy/Phrasea/Controller/Admin/RootController.php index f7a18b5c8d..c1086d519e 100644 --- a/lib/Alchemy/Phrasea/Controller/Admin/RootController.php +++ b/lib/Alchemy/Phrasea/Controller/Admin/RootController.php @@ -15,7 +15,9 @@ use Alchemy\Phrasea\Core\Event\Record\Structure\StatusBitEvent; use Alchemy\Phrasea\Core\Event\Record\Structure\StatusBitUpdatedEvent; use Alchemy\Phrasea\Exception\SessionNotFound; +use Alchemy\Phrasea\SearchEngine\Elastic\ElasticsearchOptions; use Alchemy\Phrasea\Status\StatusStructureProviderInterface; +use GuzzleHttp\Client; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException; @@ -360,6 +362,42 @@ public function submitStatusBitAction(Request $request, $databox_id, $bit) { return $this->app->redirectPath('database_display_statusbit', ['databox_id' => $databox_id, 'success' => 1]); } + public function displayInspector(Request $request) + { + $databoxIds = array_map(function (\databox $databox) { + return $databox->get_sbas_id(); + }, + $this->app->getApplicationBox()->get_databoxes() + ); + + return $this->render('admin/inspector/record-index.html.twig', ['databoxIds' => $databoxIds]); + } + + public function getESRecord(Request $request) + { + $client = new Client(); + + /** @var ElasticsearchOptions $options */ + $options = $this->app['elasticsearch.options']; + + $uri = $options->getHost() . ":" . $options->getPort() . "/" . urlencode($options->getIndexName()) . "/record/" . urlencode($request->query->get('databoxId')) . "_" . urlencode($request->query->get('recordId')); + + $ret = [ + 'uri' => $uri + ]; + $js = $client->get($uri, ['http_errors' => false])->getBody()->getContents(); + $arr = json_decode($js,true); + if(is_null($arr)) { + $ret['result'] = "*** error decoding json ***"; + $ret['raw'] = $js; + } + else { + $ret['result'] = $arr; + } + + return json_encode($ret, JSON_PRETTY_PRINT, 512); + } + private function dispatchEvent($eventName, StatusBitEvent $event = null) { $this->app['dispatcher']->dispatch($eventName, $event); diff --git a/lib/Alchemy/Phrasea/ControllerProvider/Admin/Root.php b/lib/Alchemy/Phrasea/ControllerProvider/Admin/Root.php index 3bc53b860e..b655fd065c 100644 --- a/lib/Alchemy/Phrasea/ControllerProvider/Admin/Root.php +++ b/lib/Alchemy/Phrasea/ControllerProvider/Admin/Root.php @@ -80,6 +80,12 @@ public function connect(Application $app) ->assert('bit', '\d+') ->bind('database_submit_statusbit'); + $controllers->get('/inspector/', 'controller.admin.root:displayInspector') + ->bind('admin_inspector'); + + $controllers->get('/inspector/record/', 'controller.admin.root:getESRecord') + ->bind('admin_inspector_record'); + return $controllers; } } diff --git a/resources/locales/messages.de.xlf b/resources/locales/messages.de.xlf index 1874383200..fa6ac04fca 100644 --- a/resources/locales/messages.de.xlf +++ b/resources/locales/messages.de.xlf @@ -1,6 +1,6 @@ - +
The source node in most cases contains the sample message as written by the developer. If it looks like a dot-delimitted string such as "form.label.firstname", then the developer has not provided a default message. @@ -1459,8 +1459,8 @@ Bad request format, only JSON is allowed Bad Request Format, nur JSON wird erlaubt Controller/Root/AccountController.php - Controller/Admin/RootController.php - Controller/Admin/RootController.php + Controller/Admin/RootController.php + Controller/Admin/RootController.php Controller/Admin/DataboxController.php @@ -1603,7 +1603,7 @@ CHAMPS Felder - web/admin/tree.html.twig + web/admin/tree.html.twig Camera Model @@ -2792,7 +2792,7 @@ Email '%email%' for login '%login%' already exists in database Email '%email%' für Login '%login%' existiert schon in der Databank - Controller/Admin/UserController.php + Controller/Admin/UserController.php Email Name @@ -3309,7 +3309,7 @@ File is too big : 64k max Datei ist gross: 64k max. - Controller/Admin/RootController.php + Controller/Admin/RootController.php File upload has been cancelled @@ -4218,17 +4218,17 @@ Login %login% already exists in database Benutzername %login% existiert schon im Datenbank - Controller/Admin/UserController.php + Controller/Admin/UserController.php Login %login% is already defined in the file at line %line% Benutzername %login% ist schon in Datei in Linie %line% definiert - Controller/Admin/UserController.php + Controller/Admin/UserController.php Login line %line% is empty Benutzername Zeile %line% ist leer - Controller/Admin/UserController.php + Controller/Admin/UserController.php Login to link your account @@ -4250,7 +4250,7 @@ Mail line %line% is empty Email Zeile %line% ist leer - Controller/Admin/UserController.php + Controller/Admin/UserController.php Mail sent @@ -4378,7 +4378,7 @@ Missing "structure" parameter Fehlende "Struktur" Parameter - Controller/Admin/RootController.php + Controller/Admin/RootController.php Missing labels parameter @@ -4394,7 +4394,7 @@ Missing path parameter Path Parameter fehlen - Controller/Admin/RootController.php + Controller/Admin/RootController.php Missing target collection @@ -4404,7 +4404,7 @@ Missing tests parameter Tests Parameter fehlen - Controller/Admin/RootController.php + Controller/Admin/RootController.php Missing view name parameter @@ -4959,7 +4959,7 @@ Password is empty at line %line% Passwort ist leer in Zeile %line% - Controller/Admin/UserController.php + Controller/Admin/UserController.php Past year @@ -5261,7 +5261,7 @@ web/common/menubar.html.twig web/prod/index.html.twig admin/publications/wrapper.html.twig - web/admin/tree.html.twig + web/admin/tree.html.twig Publier @@ -5931,7 +5931,7 @@ SUBDEFS Unterauflösungen - web/admin/tree.html.twig + web/admin/tree.html.twig Save @@ -6266,7 +6266,7 @@ Something wrong happend Es ist etwas schief gelaufen ! - Controller/Admin/RootController.php + Controller/Admin/RootController.php Something wrong happened, please try again or contact an admin. @@ -6355,12 +6355,12 @@ Status icon upload failed : can not write on disk Status Ikone Upload ist fehlgeschlagen: kann nicht auf die Platte beschreiben - Controller/Admin/RootController.php + Controller/Admin/RootController.php Status icon upload failed : upload error Status Ikone Upload ist fehlgeschlagen: Upload Fehler - Controller/Admin/RootController.php + Controller/Admin/RootController.php Stop @@ -6623,7 +6623,7 @@ Controller/Prod/TOUController.php web/login/cgus.html.twig login/layout/base-layout.html.twig - web/admin/tree.html.twig + web/admin/tree.html.twig The Phraseanet Web API allows other web application to rely on this instance @@ -7697,7 +7697,7 @@ Worker Manager Worker Manager - web/admin/tree.html.twig + web/admin/tree.html.twig Would you like to continue ? @@ -7810,7 +7810,7 @@ You do not enough rights to update status Sie haben nicht die genügende Rechte, um den Status zu aktualisieren - Controller/Admin/RootController.php + Controller/Admin/RootController.php You do not have access to this basket @@ -8199,6 +8199,21 @@ admin/user/registrations.html.twig admin/user/registrations.html.twig + + admin:: find record + admin:: find record + admin/inspector/record-index.html.twig + + + admin:: object inspector + admin:: object inspector + web/admin/tree.html.twig + + + admin:: record index + admin:: record index + admin/inspector/record-index.html.twig + admin:: refuser l'acces Zugriff verboten @@ -8318,7 +8333,7 @@ admin::base: preferences de collection Kollektionseinstellungen - web/admin/tree.html.twig + web/admin/tree.html.twig admin::base: structure @@ -8524,7 +8539,7 @@ admin::collection: ordre des collections Kollektionen Ordnung - web/admin/tree.html.twig + web/admin/tree.html.twig admin::collection:: Gestionnaires des commandes @@ -8967,7 +8982,7 @@ admin::plugins: plugins Plugins admin/plugins/index.html.twig - web/admin/tree.html.twig + web/admin/tree.html.twig admin::plugins: retrieveConfigurationError @@ -9047,7 +9062,7 @@ admin::status: reglage des status Status Einstellungen - web/admin/tree.html.twig + web/admin/tree.html.twig admin::status: texte a afficher @@ -9069,7 +9084,7 @@ admin::structure: reglage de la structure Struktur Einstellung - web/admin/tree.html.twig + web/admin/tree.html.twig admin::sugval: Attention, passer en mode graphique implique la perte des modifications du xml si vous n'appliquez pas les changements avant. @@ -9384,7 +9399,7 @@ admin::utilisateurs: bases de donnees Datenbanken - web/admin/tree.html.twig + web/admin/tree.html.twig admin::utilisateurs: demandes en cours @@ -9394,14 +9409,14 @@ admin::utilisateurs: gestionnaire de taches Aufgabe-Scheduler - web/admin/tree.html.twig + web/admin/tree.html.twig admin::utilisateurs: utilisateurs Benutzer web/admin/tree.html.twig - web/admin/tree.html.twig - web/admin/tree.html.twig + web/admin/tree.html.twig + web/admin/tree.html.twig admin::utilisateurs: utilisateurs connectes @@ -10477,6 +10492,7 @@ button::choose databox Alle Databox admin/worker-manager/worker_info.html.twig + admin/inspector/record-index.html.twig web/admin/editusers.html.twig web/admin/editusers.html.twig @@ -11589,12 +11605,12 @@ login::register:email: Vous avez ete accepte sur les collections suivantes : Ihr Zugriff wurde für die folgende Kollektionen genehmigt : - Controller/Admin/UserController.php + Controller/Admin/UserController.php login::register:email: Vous avez ete refuse sur les collections suivantes : Ihr Zugriff wurde für die folgende Kollektionen abgelehnt : - Controller/Admin/UserController.php + Controller/Admin/UserController.php mai diff --git a/resources/locales/messages.en.xlf b/resources/locales/messages.en.xlf index 67bf518067..2089da2627 100644 --- a/resources/locales/messages.en.xlf +++ b/resources/locales/messages.en.xlf @@ -1,6 +1,6 @@ - +
The source node in most cases contains the sample message as written by the developer. If it looks like a dot-delimitted string such as "form.label.firstname", then the developer has not provided a default message. @@ -1460,8 +1460,8 @@ Bad request format, only JSON is allowed Bad request format. Only JSON is allowed. Controller/Root/AccountController.php - Controller/Admin/RootController.php - Controller/Admin/RootController.php + Controller/Admin/RootController.php + Controller/Admin/RootController.php Controller/Admin/DataboxController.php @@ -1604,7 +1604,7 @@ CHAMPS Fields setup - web/admin/tree.html.twig + web/admin/tree.html.twig Camera Model @@ -2795,7 +2795,7 @@ Email '%email%' for login '%login%' already exists in database E-mail '%email%' for login '%login%' already exists in database - Controller/Admin/UserController.php + Controller/Admin/UserController.php Email Name @@ -3312,7 +3312,7 @@ File is too big : 64k max File is too large: 64kb max. - Controller/Admin/RootController.php + Controller/Admin/RootController.php File upload has been cancelled @@ -4221,17 +4221,17 @@ Login %login% already exists in database Login %login% already exists in database - Controller/Admin/UserController.php + Controller/Admin/UserController.php Login %login% is already defined in the file at line %line% Login %login% already exists in the file line %line% - Controller/Admin/UserController.php + Controller/Admin/UserController.php Login line %line% is empty Login line %line% is empty - Controller/Admin/UserController.php + Controller/Admin/UserController.php Login to link your account @@ -4253,7 +4253,7 @@ Mail line %line% is empty E-mail line %line% is empty - Controller/Admin/UserController.php + Controller/Admin/UserController.php Mail sent @@ -4381,7 +4381,7 @@ Missing "structure" parameter Missing "structure" parameter - Controller/Admin/RootController.php + Controller/Admin/RootController.php Missing labels parameter @@ -4397,7 +4397,7 @@ Missing path parameter Missing path parameter - Controller/Admin/RootController.php + Controller/Admin/RootController.php Missing target collection @@ -4407,7 +4407,7 @@ Missing tests parameter Missing test parameter - Controller/Admin/RootController.php + Controller/Admin/RootController.php Missing view name parameter @@ -4962,7 +4962,7 @@ Password is empty at line %line% Password is empty in line %line% - Controller/Admin/UserController.php + Controller/Admin/UserController.php Past year @@ -5264,7 +5264,7 @@ web/common/menubar.html.twig web/prod/index.html.twig admin/publications/wrapper.html.twig - web/admin/tree.html.twig + web/admin/tree.html.twig Publier @@ -5934,7 +5934,7 @@ SUBDEFS Subviews setup - web/admin/tree.html.twig + web/admin/tree.html.twig Save @@ -6269,7 +6269,7 @@ Something wrong happend Something wrong happened - Controller/Admin/RootController.php + Controller/Admin/RootController.php Something wrong happened, please try again or contact an admin. @@ -6358,12 +6358,12 @@ Status icon upload failed : can not write on disk Status icon upload failed: cannot write on disk - Controller/Admin/RootController.php + Controller/Admin/RootController.php Status icon upload failed : upload error Status icon upload failed: upload error - Controller/Admin/RootController.php + Controller/Admin/RootController.php Stop @@ -6626,7 +6626,7 @@ Controller/Prod/TOUController.php web/login/cgus.html.twig login/layout/base-layout.html.twig - web/admin/tree.html.twig + web/admin/tree.html.twig The Phraseanet Web API allows other web application to rely on this instance @@ -7700,7 +7700,7 @@ Worker Manager Worker Manager - web/admin/tree.html.twig + web/admin/tree.html.twig Would you like to continue ? @@ -7813,7 +7813,7 @@ You do not enough rights to update status Your user right do not allow you to change document status - Controller/Admin/RootController.php + Controller/Admin/RootController.php You do not have access to this basket @@ -8202,6 +8202,21 @@ admin/user/registrations.html.twig admin/user/registrations.html.twig + + admin:: find record + admin:: find record + admin/inspector/record-index.html.twig + + + admin:: object inspector + admin:: object inspector + web/admin/tree.html.twig + + + admin:: record index + admin:: record index + admin/inspector/record-index.html.twig + admin:: refuser l'acces Deny access @@ -8321,7 +8336,7 @@ admin::base: preferences de collection Collection Settings - web/admin/tree.html.twig + web/admin/tree.html.twig admin::base: structure @@ -8527,7 +8542,7 @@ admin::collection: ordre des collections Collection Order - web/admin/tree.html.twig + web/admin/tree.html.twig admin::collection:: Gestionnaires des commandes @@ -8970,7 +8985,7 @@ admin::plugins: plugins Plugins admin/plugins/index.html.twig - web/admin/tree.html.twig + web/admin/tree.html.twig admin::plugins: retrieveConfigurationError @@ -9050,7 +9065,7 @@ admin::status: reglage des status Status setup - web/admin/tree.html.twig + web/admin/tree.html.twig admin::status: texte a afficher @@ -9072,7 +9087,7 @@ admin::structure: reglage de la structure Structure setup - web/admin/tree.html.twig + web/admin/tree.html.twig admin::sugval: Attention, passer en mode graphique implique la perte des modifications du xml si vous n'appliquez pas les changements avant. @@ -9387,7 +9402,7 @@ admin::utilisateurs: bases de donnees Databases - web/admin/tree.html.twig + web/admin/tree.html.twig admin::utilisateurs: demandes en cours @@ -9397,14 +9412,14 @@ admin::utilisateurs: gestionnaire de taches Task Manager - web/admin/tree.html.twig + web/admin/tree.html.twig admin::utilisateurs: utilisateurs Users web/admin/tree.html.twig - web/admin/tree.html.twig - web/admin/tree.html.twig + web/admin/tree.html.twig + web/admin/tree.html.twig admin::utilisateurs: utilisateurs connectes @@ -10480,6 +10495,7 @@ button::choose databox All Databox admin/worker-manager/worker_info.html.twig + admin/inspector/record-index.html.twig web/admin/editusers.html.twig web/admin/editusers.html.twig @@ -11592,12 +11608,12 @@ login::register:email: Vous avez ete accepte sur les collections suivantes : Your access has been granted on these bases and collections: - Controller/Admin/UserController.php + Controller/Admin/UserController.php login::register:email: Vous avez ete refuse sur les collections suivantes : Your access has been denied to the following databases and collections: - Controller/Admin/UserController.php + Controller/Admin/UserController.php mai diff --git a/resources/locales/messages.fr.xlf b/resources/locales/messages.fr.xlf index 5da62e48ab..e3088d3ee5 100644 --- a/resources/locales/messages.fr.xlf +++ b/resources/locales/messages.fr.xlf @@ -1,6 +1,6 @@ - +
The source node in most cases contains the sample message as written by the developer. If it looks like a dot-delimitted string such as "form.label.firstname", then the developer has not provided a default message. @@ -1459,8 +1459,8 @@ Bad request format, only JSON is allowed Mauvais format de requête. Seul JSON est autorisé. Controller/Root/AccountController.php - Controller/Admin/RootController.php - Controller/Admin/RootController.php + Controller/Admin/RootController.php + Controller/Admin/RootController.php Controller/Admin/DataboxController.php @@ -1603,7 +1603,7 @@ CHAMPS Champs - web/admin/tree.html.twig + web/admin/tree.html.twig Camera Model @@ -2792,7 +2792,7 @@ Email '%email%' for login '%login%' already exists in database L'adresse e-mail '%email%' pour l'identifiant '%login%' existe déjà dans la base - Controller/Admin/UserController.php + Controller/Admin/UserController.php Email Name @@ -3309,7 +3309,7 @@ File is too big : 64k max Le poids du fichier ne peut dépasser 64 Ko - Controller/Admin/RootController.php + Controller/Admin/RootController.php File upload has been cancelled @@ -4218,17 +4218,17 @@ Login %login% already exists in database L'identifiant %login% existe déjà dans la base de données - Controller/Admin/UserController.php + Controller/Admin/UserController.php Login %login% is already defined in the file at line %line% L'identifiant %login% est déjà mentionné dans le fichier à la ligne %line% - Controller/Admin/UserController.php + Controller/Admin/UserController.php Login line %line% is empty L'identifiant n'est pas renseigné à la ligne %line% - Controller/Admin/UserController.php + Controller/Admin/UserController.php Login to link your account @@ -4250,7 +4250,7 @@ Mail line %line% is empty L'adresse e-mail n'est pas renseignée à la ligne %line% - Controller/Admin/UserController.php + Controller/Admin/UserController.php Mail sent @@ -4378,7 +4378,7 @@ Missing "structure" parameter Le paramètre "structure" est manquant - Controller/Admin/RootController.php + Controller/Admin/RootController.php Missing labels parameter @@ -4394,7 +4394,7 @@ Missing path parameter Paramètre Path (Chemin d'accès) manquant - Controller/Admin/RootController.php + Controller/Admin/RootController.php Missing target collection @@ -4404,7 +4404,7 @@ Missing tests parameter Paramètre de test manquant - Controller/Admin/RootController.php + Controller/Admin/RootController.php Missing view name parameter @@ -4959,7 +4959,7 @@ Password is empty at line %line% Le mot de passe est vide à la ligne %line% - Controller/Admin/UserController.php + Controller/Admin/UserController.php Past year @@ -5261,7 +5261,7 @@ web/common/menubar.html.twig web/prod/index.html.twig admin/publications/wrapper.html.twig - web/admin/tree.html.twig + web/admin/tree.html.twig Publier @@ -5931,7 +5931,7 @@ SUBDEFS Sous-définitions - web/admin/tree.html.twig + web/admin/tree.html.twig Save @@ -6266,7 +6266,7 @@ Something wrong happend Un problème est survenu - Controller/Admin/RootController.php + Controller/Admin/RootController.php Something wrong happened, please try again or contact an admin. @@ -6355,12 +6355,12 @@ Status icon upload failed : can not write on disk L'ajout de l'icône de Status a échoué, impossible d'écrire sur le disque - Controller/Admin/RootController.php + Controller/Admin/RootController.php Status icon upload failed : upload error L'ajout de l'icône de Status a échoué - Controller/Admin/RootController.php + Controller/Admin/RootController.php Stop @@ -6623,7 +6623,7 @@ Controller/Prod/TOUController.php web/login/cgus.html.twig login/layout/base-layout.html.twig - web/admin/tree.html.twig + web/admin/tree.html.twig The Phraseanet Web API allows other web application to rely on this instance @@ -7697,7 +7697,7 @@ Worker Manager Worker Manager - web/admin/tree.html.twig + web/admin/tree.html.twig Would you like to continue ? @@ -7810,7 +7810,7 @@ You do not enough rights to update status Vous ne disposez pas des droits suffisants pour changer les Status - Controller/Admin/RootController.php + Controller/Admin/RootController.php You do not have access to this basket @@ -8199,6 +8199,21 @@ admin/user/registrations.html.twig admin/user/registrations.html.twig + + admin:: find record + admin:: find record + admin/inspector/record-index.html.twig + + + admin:: object inspector + admin:: object inspector + web/admin/tree.html.twig + + + admin:: record index + admin:: record index + admin/inspector/record-index.html.twig + admin:: refuser l'acces Refuser l'accès @@ -8318,7 +8333,7 @@ admin::base: preferences de collection Réglages de collection - web/admin/tree.html.twig + web/admin/tree.html.twig admin::base: structure @@ -8524,7 +8539,7 @@ admin::collection: ordre des collections Ordre des collections - web/admin/tree.html.twig + web/admin/tree.html.twig admin::collection:: Gestionnaires des commandes @@ -8968,7 +8983,7 @@ Si vous recevez cet e-mail sans l'avoir sollicité, merci de l'ignorer ou de le admin::plugins: plugins Plugins admin/plugins/index.html.twig - web/admin/tree.html.twig + web/admin/tree.html.twig admin::plugins: retrieveConfigurationError @@ -9048,7 +9063,7 @@ Si vous recevez cet e-mail sans l'avoir sollicité, merci de l'ignorer ou de le admin::status: reglage des status Réglage des Status - web/admin/tree.html.twig + web/admin/tree.html.twig admin::status: texte a afficher @@ -9070,7 +9085,7 @@ Si vous recevez cet e-mail sans l'avoir sollicité, merci de l'ignorer ou de le admin::structure: reglage de la structure Réglage de la structure - web/admin/tree.html.twig + web/admin/tree.html.twig admin::sugval: Attention, passer en mode graphique implique la perte des modifications du xml si vous n'appliquez pas les changements avant. @@ -9385,7 +9400,7 @@ Si vous recevez cet e-mail sans l'avoir sollicité, merci de l'ignorer ou de le admin::utilisateurs: bases de donnees Bases - web/admin/tree.html.twig + web/admin/tree.html.twig admin::utilisateurs: demandes en cours @@ -9395,14 +9410,14 @@ Si vous recevez cet e-mail sans l'avoir sollicité, merci de l'ignorer ou de le admin::utilisateurs: gestionnaire de taches Gestionnaire de tâches - web/admin/tree.html.twig + web/admin/tree.html.twig admin::utilisateurs: utilisateurs Utilisateurs web/admin/tree.html.twig - web/admin/tree.html.twig - web/admin/tree.html.twig + web/admin/tree.html.twig + web/admin/tree.html.twig admin::utilisateurs: utilisateurs connectes @@ -10478,6 +10493,7 @@ Si vous recevez cet e-mail sans l'avoir sollicité, merci de l'ignorer ou de le button::choose databox Toutes les Databox admin/worker-manager/worker_info.html.twig + admin/inspector/record-index.html.twig web/admin/editusers.html.twig web/admin/editusers.html.twig @@ -11590,12 +11606,12 @@ Si vous recevez cet e-mail sans l'avoir sollicité, merci de l'ignorer ou de le login::register:email: Vous avez ete accepte sur les collections suivantes : Votre accès a été validé pour les collections suivantes : - Controller/Admin/UserController.php + Controller/Admin/UserController.php login::register:email: Vous avez ete refuse sur les collections suivantes : Votre accès a été refusé pour les collections suivantes : - Controller/Admin/UserController.php + Controller/Admin/UserController.php mai diff --git a/resources/locales/messages.nl.xlf b/resources/locales/messages.nl.xlf index bfd76e81c4..426a0b9ee6 100644 --- a/resources/locales/messages.nl.xlf +++ b/resources/locales/messages.nl.xlf @@ -1,6 +1,6 @@ - +
The source node in most cases contains the sample message as written by the developer. If it looks like a dot-delimitted string such as "form.label.firstname", then the developer has not provided a default message. @@ -1460,8 +1460,8 @@ Bad request format, only JSON is allowed Slecht verzoek formaat, enkel JSON is toegestaan Controller/Root/AccountController.php - Controller/Admin/RootController.php - Controller/Admin/RootController.php + Controller/Admin/RootController.php + Controller/Admin/RootController.php Controller/Admin/DataboxController.php @@ -1604,7 +1604,7 @@ CHAMPS VELDEN - web/admin/tree.html.twig + web/admin/tree.html.twig Camera Model @@ -2795,7 +2795,7 @@ Email '%email%' for login '%login%' already exists in database Email '%email%' for login '%login%' already exists in database - Controller/Admin/UserController.php + Controller/Admin/UserController.php Email Name @@ -3315,7 +3315,7 @@ File is too big : 64k max File is te groot : 64k max - Controller/Admin/RootController.php + Controller/Admin/RootController.php File upload has been cancelled @@ -4224,17 +4224,17 @@ Login %login% already exists in database Login %login% already exists in database - Controller/Admin/UserController.php + Controller/Admin/UserController.php Login %login% is already defined in the file at line %line% Login %login% is already defined in the file at line %line% - Controller/Admin/UserController.php + Controller/Admin/UserController.php Login line %line% is empty Login line %line% is empty - Controller/Admin/UserController.php + Controller/Admin/UserController.php Login to link your account @@ -4256,7 +4256,7 @@ Mail line %line% is empty Mail line %line% is empty - Controller/Admin/UserController.php + Controller/Admin/UserController.php Mail sent @@ -4384,7 +4384,7 @@ Missing "structure" parameter Missing "structure" parameter - Controller/Admin/RootController.php + Controller/Admin/RootController.php Missing labels parameter @@ -4400,7 +4400,7 @@ Missing path parameter Pad parameter ontbreekt - Controller/Admin/RootController.php + Controller/Admin/RootController.php Missing target collection @@ -4410,7 +4410,7 @@ Missing tests parameter Test parameter ontbreekt - Controller/Admin/RootController.php + Controller/Admin/RootController.php Missing view name parameter @@ -4965,7 +4965,7 @@ Password is empty at line %line% Password is empty at line %line% - Controller/Admin/UserController.php + Controller/Admin/UserController.php Past year @@ -5267,7 +5267,7 @@ web/common/menubar.html.twig web/prod/index.html.twig admin/publications/wrapper.html.twig - web/admin/tree.html.twig + web/admin/tree.html.twig Publier @@ -5937,7 +5937,7 @@ SUBDEFS THUMBNAILS - web/admin/tree.html.twig + web/admin/tree.html.twig Save @@ -6272,7 +6272,7 @@ Something wrong happend Er is iets verkeerd gelopen - Controller/Admin/RootController.php + Controller/Admin/RootController.php Something wrong happened, please try again or contact an admin. @@ -6361,12 +6361,12 @@ Status icon upload failed : can not write on disk Status icon upload niet gelukt : kan niet naar de schijf schrijven - Controller/Admin/RootController.php + Controller/Admin/RootController.php Status icon upload failed : upload error Status icon upload niet gelukt : upload fout - Controller/Admin/RootController.php + Controller/Admin/RootController.php Stop @@ -6629,7 +6629,7 @@ Controller/Prod/TOUController.php web/login/cgus.html.twig login/layout/base-layout.html.twig - web/admin/tree.html.twig + web/admin/tree.html.twig The Phraseanet Web API allows other web application to rely on this instance @@ -7703,7 +7703,7 @@ Worker Manager Worker Manager - web/admin/tree.html.twig + web/admin/tree.html.twig Would you like to continue ? @@ -7816,7 +7816,7 @@ You do not enough rights to update status U hebt niet voldoende rechten om de status up te date - Controller/Admin/RootController.php + Controller/Admin/RootController.php You do not have access to this basket @@ -8205,6 +8205,21 @@ admin/user/registrations.html.twig admin/user/registrations.html.twig + + admin:: find record + admin:: find record + admin/inspector/record-index.html.twig + + + admin:: object inspector + admin:: object inspector + web/admin/tree.html.twig + + + admin:: record index + admin:: record index + admin/inspector/record-index.html.twig + admin:: refuser l'acces Weiger de toegang @@ -8324,7 +8339,7 @@ admin::base: preferences de collection voorkeuren van de collectie - web/admin/tree.html.twig + web/admin/tree.html.twig admin::base: structure @@ -8530,7 +8545,7 @@ admin::collection: ordre des collections volgorde van de collecties - web/admin/tree.html.twig + web/admin/tree.html.twig admin::collection:: Gestionnaires des commandes @@ -8973,7 +8988,7 @@ admin::plugins: plugins admin::plugins: plugins admin/plugins/index.html.twig - web/admin/tree.html.twig + web/admin/tree.html.twig admin::plugins: retrieveConfigurationError @@ -9053,7 +9068,7 @@ admin::status: reglage des status statusinstellingen - web/admin/tree.html.twig + web/admin/tree.html.twig admin::status: texte a afficher @@ -9075,7 +9090,7 @@ admin::structure: reglage de la structure structuurinstellingen - web/admin/tree.html.twig + web/admin/tree.html.twig admin::sugval: Attention, passer en mode graphique implique la perte des modifications du xml si vous n'appliquez pas les changements avant. @@ -9390,7 +9405,7 @@ admin::utilisateurs: bases de donnees datables - web/admin/tree.html.twig + web/admin/tree.html.twig admin::utilisateurs: demandes en cours @@ -9400,14 +9415,14 @@ admin::utilisateurs: gestionnaire de taches taak beheerder - web/admin/tree.html.twig + web/admin/tree.html.twig admin::utilisateurs: utilisateurs gebruikers web/admin/tree.html.twig - web/admin/tree.html.twig - web/admin/tree.html.twig + web/admin/tree.html.twig + web/admin/tree.html.twig admin::utilisateurs: utilisateurs connectes @@ -10483,6 +10498,7 @@ button::choose databox button::choose databox admin/worker-manager/worker_info.html.twig + admin/inspector/record-index.html.twig web/admin/editusers.html.twig web/admin/editusers.html.twig @@ -11595,12 +11611,12 @@ login::register:email: Vous avez ete accepte sur les collections suivantes : login::register:email: Vous avez ete accepte sur les collections suivantes : - Controller/Admin/UserController.php + Controller/Admin/UserController.php login::register:email: Vous avez ete refuse sur les collections suivantes : login::register:email: Vous avez ete refuse sur les collections suivantes : - Controller/Admin/UserController.php + Controller/Admin/UserController.php mai diff --git a/resources/locales/validators.de.xlf b/resources/locales/validators.de.xlf index de81b9ebcd..1113fe54a0 100644 --- a/resources/locales/validators.de.xlf +++ b/resources/locales/validators.de.xlf @@ -1,6 +1,6 @@ - +
The source node in most cases contains the sample message as written by the developer. If it looks like a dot-delimitted string such as "form.label.firstname", then the developer has not provided a default message. diff --git a/resources/locales/validators.en.xlf b/resources/locales/validators.en.xlf index a4d565691a..acf75f2c72 100644 --- a/resources/locales/validators.en.xlf +++ b/resources/locales/validators.en.xlf @@ -1,6 +1,6 @@ - +
The source node in most cases contains the sample message as written by the developer. If it looks like a dot-delimitted string such as "form.label.firstname", then the developer has not provided a default message. diff --git a/resources/locales/validators.fr.xlf b/resources/locales/validators.fr.xlf index c0989b4546..e9c5343de7 100644 --- a/resources/locales/validators.fr.xlf +++ b/resources/locales/validators.fr.xlf @@ -1,6 +1,6 @@ - +
The source node in most cases contains the sample message as written by the developer. If it looks like a dot-delimitted string such as "form.label.firstname", then the developer has not provided a default message. diff --git a/resources/locales/validators.nl.xlf b/resources/locales/validators.nl.xlf index c0f830e93a..ce014db152 100644 --- a/resources/locales/validators.nl.xlf +++ b/resources/locales/validators.nl.xlf @@ -1,6 +1,6 @@ - +
The source node in most cases contains the sample message as written by the developer. If it looks like a dot-delimitted string such as "form.label.firstname", then the developer has not provided a default message. diff --git a/templates/web/admin/inspector/record-index.html.twig b/templates/web/admin/inspector/record-index.html.twig new file mode 100644 index 0000000000..abed2104be --- /dev/null +++ b/templates/web/admin/inspector/record-index.html.twig @@ -0,0 +1,48 @@ + + +
+ + + + + +
+ +
+
+
+    
+
+ + diff --git a/templates/web/admin/tree.html.twig b/templates/web/admin/tree.html.twig index 349e9a8fc0..3c70a3938c 100644 --- a/templates/web/admin/tree.html.twig +++ b/templates/web/admin/tree.html.twig @@ -65,6 +65,12 @@ {% trans %}Auth failure{% endtrans %} +
  • + + + {{ 'admin:: object inspector' | trans }} + +
  • {% endif %} {% if app.getAclForUser(app.getAuthenticatedUser()).has_right(constant('\\ACL::BAS_CHUPUB')) %}