<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* Reporting/Dashboard/index.html.twig */
class __TwigTemplate_e029414aa09457705051c0c6ca907c9c extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'body_head' => [$this, 'block_body_head'],
'breadcrumb' => [$this, 'block_breadcrumb'],
'body' => [$this, 'block_body'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Reporting/Dashboard/index.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Reporting/Dashboard/index.html.twig"));
// line 3
$context["bodyClass"] = "reporting_dashboard";
// line 4
$context["menuItem"] = "reporting_dashboard";
// line 1
$this->parent = $this->loadTemplate("base.html.twig", "Reporting/Dashboard/index.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 6
public function block_body_head($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body_head"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body_head"));
// line 7
echo " <h1>
";
// line 8
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("reporting.dashboard.title.index"), "html", null, true);
echo "
<small>";
// line 9
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 9, $this->source); })()), "user", [], "any", false, false, false, 9), "collectivity", [], "any", false, false, false, 9), "html", null, true);
echo "</small>
</h1>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 13
public function block_breadcrumb($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "breadcrumb"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "breadcrumb"));
// line 14
echo " ";
$context["breadcrumb"] = [];
// line 15
echo " ";
$this->loadTemplate("_breadcrumb.html.twig", "Reporting/Dashboard/index.html.twig", 15)->display(twig_array_merge($context, ["breadcrumb" => (isset($context["breadcrumb"]) || array_key_exists("breadcrumb", $context) ? $context["breadcrumb"] : (function () { throw new RuntimeError('Variable "breadcrumb" does not exist.', 15, $this->source); })())]));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 18
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 19
echo " <div class=\"tdb\">
<div class=\"row\">
";
// line 22
echo " <div class=\"col-md-6\">
<div class=\"row\">
";
// line 25
echo " <div class=\"col-md-6\">
<div class=\"box box-solid\">
<div class=\"box-header with-border\"><h3 class=\"box-title\">Sous-traitants</h3></div>
<div class=\"box-body\">
";
// line 29
if ((0 == twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 29, $this->source); })()), "contractor", [], "any", false, false, false, 29), "all", [], "any", false, false, false, 29))) {
// line 30
echo " Aucune donnée à afficher
";
} else {
// line 32
echo " <div class=\"col-sm-6 col-sm-offset-0 col-xs-4 col-xs-offset-1 text-center\">
<canvas id=\"contractor-clauses\" width=\"400\" height=\"400\"></canvas>
<p>";
// line 34
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("reporting.dashboard.contractor.contractual_clauses_verified.title"), "html", null, true);
echo "</p>
</div>
<div class=\"col-sm-6 col-sm-offset-0 col-xs-4 col-xs-offset-1 text-center\">
<canvas id=\"contractor-adopted-security-features\" width=\"400\" height=\"400\"></canvas>
<p>";
// line 38
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("reporting.dashboard.contractor.adopted_security_features.title"), "html", null, true);
echo "</p>
</div>
<div class=\"col-sm-6 col-sm-offset-0 col-xs-4 col-xs-offset-1 text-center\">
<canvas id=\"contractor-maintains-treatment-register\" width=\"400\" height=\"400\"></canvas>
<p>";
// line 42
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("reporting.dashboard.contractor.maintains_treatment_register.title"), "html", null, true);
echo "</p>
</div>
<div class=\"col-sm-6 col-sm-offset-0 col-xs-4 col-xs-offset-1 text-center\">
<canvas id=\"contractor-sending-data-outside-eu\" width=\"400\" height=\"400\"></canvas>
<p>";
// line 46
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("reporting.dashboard.contractor.sending_data_outside_eu.title"), "html", null, true);
echo "</p>
</div>
";
}
// line 49
echo " </div>
</div>
</div>
<div class=\"col-md-6\">
";
// line 54
echo " <div class=\"small-box bg-yellow\">
<div class=\"inner\">
<h3>";
// line 56
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 56, $this->source); })()), "request", [], "any", false, false, false, 56), "value", [], "any", false, false, false, 56), "status", [], "any", false, false, false, 56), "toProcess", [], "any", false, false, false, 56), "html", null, true);
echo "</h3>
<p>Demandes à traiter</p>
</div>
<div class=\"icon\">
<i class=\"fa fa-users\"></i>
</div>
<a aria-label=\"Plus d'informations\" href=\"";
// line 63
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("registry_request_list");
echo "\" class=\"small-box-footer\">
Plus d'informations <i class=\"fa fa-arrow-circle-right\"></i>
</a>
</div>
<div class=\"box box-solid\">
<div class=\"box-header with-border\"><h3 class=\"box-title\">Demandes</h3></div>
<div class=\"box-body\">
";
// line 70
if ((0 == twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 70, $this->source); })()), "request", [], "any", false, false, false, 70), "value", [], "any", false, false, false, 70), "all", [], "any", false, false, false, 70))) {
// line 71
echo " Aucune donnée à afficher
";
} else {
// line 73
echo " <div class=\"col-sm-6 col-sm-offset-0 col-xs-4 col-xs-offset-1 text-center\" style=\"padding-left: 0; padding-right: 0;\">
<canvas id=\"request-type\" width=\"500\" height=\"500\"></canvas>
<p>";
// line 75
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("reporting.dashboard.request.type.title"), "html", null, true);
echo "</p>
</div>
<div class=\"col-sm-6 col-sm-offset-0 col-xs-4 col-xs-offset-1 text-center\" style=\"padding-left: 0; padding-right: 0;\">
<canvas id=\"request-status\" width=\"500\" height=\"500\"></canvas>
<p>";
// line 79
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("reporting.dashboard.request.status.title"), "html", null, true);
echo "</p>
</div>
";
}
// line 82
echo " </div>
</div>
</div>
</div>
<div class=\"row\">
<div class=\"col-md-12\">
";
// line 89
echo " <div class=\"box box-solid\">
<div class=\"box-header with-border\"><h3 class=\"box-title\">Indice de maturité</h3></div>
<div class=\"box-body\">
<style>
.dropdown.bootstrap-select {
width: 100% !important;
}
</style>
<select class=\"selectpicker\" id=\"referentiel-chooser\">
";
// line 98
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["referentiels"]) || array_key_exists("referentiels", $context) ? $context["referentiels"] : (function () { throw new RuntimeError('Variable "referentiels" does not exist.', 98, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["ref"]) {
// line 99
echo " <option value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["ref"], "id", [], "any", false, false, false, 99), "html", null, true);
echo "\" ";
if ((twig_get_attribute($this->env, $this->source, $context["ref"], "id", [], "any", false, false, false, 99) == twig_get_attribute($this->env, $this->source, (isset($context["selected_ref"]) || array_key_exists("selected_ref", $context) ? $context["selected_ref"] : (function () { throw new RuntimeError('Variable "selected_ref" does not exist.', 99, $this->source); })()), "id", [], "any", false, false, false, 99))) {
echo "selected";
}
echo ">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["ref"], "name", [], "any", false, false, false, 99), "html", null, true);
echo "</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ref'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 101
echo " </select>
<div style=\"margin-top: 1em\">
";
// line 103
if (twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 103, $this->source); })()), "maturity", [], "any", false, false, false, 103))) {
// line 104
echo " Aucun indice à afficher
";
} else {
// line 106
echo " ";
if (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["data"] ?? null), "maturity", [], "any", false, true, false, 106), "new", [], "any", true, true, false, 106) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["data"] ?? null), "maturity", [], "any", false, true, false, 106), "new", [], "any", false, true, false, 106), "data", [], "any", true, true, false, 106)) && (twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 106, $this->source); })()), "maturity", [], "any", false, false, false, 106), "new", [], "any", false, false, false, 106), "data", [], "any", false, false, false, 106)) >= 3))) {
// line 107
echo "
<canvas id=\"maturity-radar\"></canvas>
";
} else {
// line 110
echo " Le référentiel contient moins de trois sections
";
}
// line 112
echo " ";
}
// line 113
echo " </div>
</div>
</div>
";
// line 118
echo " <div class=\"box box-solid\">
<div class=\"box-header with-border\"><h3 class=\"box-title\">Mesures de sécurité</h3></div>
<div class=\"box-body\">
";
// line 121
if ((0 == twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 121, $this->source); })()), "treatment", [], "any", false, false, false, 121), "value", [], "any", false, false, false, 121), "numeric", [], "any", false, false, false, 121))) {
// line 122
echo " Aucun traitement utilisable pour ce graphe
";
} else {
// line 124
echo " <canvas id=\"treatment-bar\"></canvas>
";
}
// line 126
echo " </div>
</div>
</div>
</div>
";
// line 130
if (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 130, $this->source); })()), "user", [], "any", false, false, false, 130), "collectivity", [], "any", false, false, false, 130), "hasModuleConformiteTraitement", [], "any", false, false, false, 130) == true) || (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 131
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 131, $this->source); })()), "user", [], "any", false, false, false, 131), "collectivity", [], "any", false, false, false, 131), "hasModuleConformiteOrganisation", [], "any", false, false, false, 131) == true))) {
// line 132
echo " <div class=\"row\">
<div class=\"col-md-12\">
";
// line 135
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 135, $this->source); })()), "user", [], "any", false, false, false, 135), "collectivity", [], "any", false, false, false, 135), "hasModuleConformiteTraitement", [], "any", false, false, false, 135) == true)) {
// line 136
echo " <div class=\"box box-solid\">
<div class=\"box-header with-border\"><h3 class=\"box-title\">Conformité des traitements</h3></div>
<div class=\"box-body\">
";
// line 139
if (twig_test_empty(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 139, $this->source); })()), "conformiteTraitement", [], "any", false, false, false, 139), "data", [], "any", false, false, false, 139))) {
// line 140
echo " Aucune donnée à afficher
";
} else {
// line 142
echo " <canvas id=\"conformiteTraitement-pie\"></canvas>
";
}
// line 144
echo " </div>
</div>
";
}
// line 147
echo " </div>
</div>
";
}
// line 150
echo " </div>
";
// line 153
echo " <div class=\"col-md-6\">
<div class=\"row\">
";
// line 156
echo " <div class=\"col-sm-6 col-xs-12\">
";
// line 157
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 157, $this->source); })()), "user", [], "any", false, false, false, 157), "collectivity", [], "any", false, false, false, 157), "hasModuleConformiteTraitement", [], "any", false, false, false, 157) == true)) {
// line 158
echo " <div class=\"small-box bg-light-blue\">
<div class=\"inner\">
<h3>";
// line 160
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 160, $this->source); })()), "aipd", [], "any", false, false, false, 160), "toDo", [], "any", false, false, false, 160), "html", null, true);
echo "</h3>
<p>AIPD à réaliser</p>
</div>
<div class=\"icon\">
<i class=\"fa fa-clipboard-list\"></i>
</div>
<a aria-label=\"Plus d'informations\" href=\"";
// line 166
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("registry_conformite_traitement_list");
echo "\" class=\"small-box-footer\">
Plus d'informations <i class=\"fa fa-arrow-circle-right\"></i>
</a>
</div>
";
}
// line 171
echo " </div>
";
// line 174
echo " <div class=\"col-sm-6 col-xs-12\">
<div class=\"small-box bg-aqua\">
<div class=\"inner\">
<h3>";
// line 177
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 177, $this->source); })()), "mesurement", [], "any", false, false, false, 177), "value", [], "any", false, false, false, 177), "planified", [], "any", false, false, false, 177), "html", null, true);
echo "</h3>
<p>Actions planifiées</p>
</div>
<div class=\"icon\">
<i class=\"fa fa-bullseye\"></i>
</div>
<a aria-label=\"Plus d'informations\" href=\"";
// line 183
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("registry_mesurement_action_plan");
echo "\" class=\"small-box-footer\">
Plus d'informations <i class=\"fa fa-arrow-circle-right\"></i>
</a>
</div>
</div>
</div>
<div class=\"row\">
";
// line 191
echo " <div class=\"col-sm-6 col-xs-12\">
<div class=\"small-box bg-red\">
<div class=\"inner\">
<h3>";
// line 194
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 194, $this->source); })()), "violation", [], "any", false, false, false, 194), "value", [], "any", false, false, false, 194), "all", [], "any", false, false, false, 194), "html", null, true);
echo "</h3>
<p>Violations</p>
</div>
<div class=\"icon\">
<i class=\"fa fa-exclamation-circle\"></i>
</div>
<a aria-label=\"Plus d'informations\" href=\"";
// line 200
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("registry_violation_list");
echo "\" class=\"small-box-footer\">
Plus d'informations <i class=\"fa fa-arrow-circle-right\"></i>
</a>
</div>
</div>
";
// line 207
echo " <div class=\"col-sm-6 col-xs-12\">
<div class=\"small-box bg-green\">
<div class=\"inner\">
<h3>";
// line 210
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 210, $this->source); })()), "mesurement", [], "any", false, false, false, 210), "value", [], "any", false, false, false, 210), "applied", [], "any", false, false, false, 210), "html", null, true);
echo "</h3>
<p>Actions mises en place</p>
</div>
<div class=\"icon\">
<i class=\"fa fa-adjust\"></i>
</div>
<a aria-label=\"Plus d'informations\" href=\"";
// line 216
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("registry_mesurement_list");
echo "\" class=\"small-box-footer\">
Plus d'informations <i class=\"fa fa-arrow-circle-right\"></i>
</a>
</div>
</div>
";
// line 229
echo "
</div>
<div class=\"row\">
<div class=\"col-md-12\">
<div class=\"box box-warning\">
<div class=\"box-header with-border\"><h3 class=\"box-title\">Plan d'actions <small>";
// line 234
echo twig_escape_filter($this->env, (isset($context["app_user_dashboard_action_plan_limit"]) || array_key_exists("app_user_dashboard_action_plan_limit", $context) ? $context["app_user_dashboard_action_plan_limit"] : (function () { throw new RuntimeError('Variable "app_user_dashboard_action_plan_limit" does not exist.', 234, $this->source); })()), "html", null, true);
echo " prochaines</small></h3></div>
<div class=\"box-body\">
<table role=\"presentation\" class=\"table table-striped table-bordered\">
<thead>
<tr>
<th scope=\"col\">";
// line 239
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("registry.mesurement.list.name"), "html", null, true);
echo "</th>
<th scope=\"col\">";
// line 240
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("registry.mesurement.list.planification_date"), "html", null, true);
echo "</th>
<th scope=\"col\">";
// line 241
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("registry.mesurement.list.priority"), "html", null, true);
echo "</th>
<th scope=\"col\">";
// line 242
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("registry.mesurement.list.manager"), "html", null, true);
echo "</th>
<th scope=\"col\">";
// line 243
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.action_link"), "html", null, true);
echo "</th>
</tr>
</thead>
<tbody>
";
// line 248
if ( !twig_length_filter($this->env, (isset($context["actions"]) || array_key_exists("actions", $context) ? $context["actions"] : (function () { throw new RuntimeError('Variable "actions" does not exist.', 248, $this->source); })()))) {
// line 249
echo " <tr>
<td colspan=\"5\" style=\"text-align: center\">
Aucune action planifiée
</td>
</tr>
";
}
// line 255
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["actions"]) || array_key_exists("actions", $context) ? $context["actions"] : (function () { throw new RuntimeError('Variable "actions" does not exist.', 255, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["action"]) {
// line 256
echo " <tr>
<td>";
// line 257
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["action"], "name", [], "any", false, false, false, 257), "html", null, true);
echo "</td>
<td>";
// line 258
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["action"], "planificationDate", [], "any", false, false, false, 258), "d/m/Y"), "html", null, true);
echo "</td>
<td>
";
// line 260
$context["key"] = twig_get_attribute($this->env, $this->source, $context["action"], "priority", [], "any", false, false, false, 260);
// line 261
echo " ";
if ( !(null === (isset($context["key"]) || array_key_exists("key", $context) ? $context["key"] : (function () { throw new RuntimeError('Variable "key" does not exist.', 261, $this->source); })()))) {
// line 262
echo " ";
if (((isset($context["key"]) || array_key_exists("key", $context) ? $context["key"] : (function () { throw new RuntimeError('Variable "key" does not exist.', 262, $this->source); })()) === "low")) {
// line 263
echo " <span class=\"badge bg-blue\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $this->env->getFunction('dictionary')->getCallable()("registry_mesurement_priority"), (isset($context["key"]) || array_key_exists("key", $context) ? $context["key"] : (function () { throw new RuntimeError('Variable "key" does not exist.', 263, $this->source); })()), [], "array", false, false, false, 263), "html", null, true);
echo "</span>
";
} elseif (( // line 264
(isset($context["key"]) || array_key_exists("key", $context) ? $context["key"] : (function () { throw new RuntimeError('Variable "key" does not exist.', 264, $this->source); })()) === "normal")) {
// line 265
echo " <span class=\"badge bg-yellow\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $this->env->getFunction('dictionary')->getCallable()("registry_mesurement_priority"), (isset($context["key"]) || array_key_exists("key", $context) ? $context["key"] : (function () { throw new RuntimeError('Variable "key" does not exist.', 265, $this->source); })()), [], "array", false, false, false, 265), "html", null, true);
echo "</span>
";
} elseif (( // line 266
(isset($context["key"]) || array_key_exists("key", $context) ? $context["key"] : (function () { throw new RuntimeError('Variable "key" does not exist.', 266, $this->source); })()) === "high")) {
// line 267
echo " <span class=\"badge bg-red\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $this->env->getFunction('dictionary')->getCallable()("registry_mesurement_priority"), (isset($context["key"]) || array_key_exists("key", $context) ? $context["key"] : (function () { throw new RuntimeError('Variable "key" does not exist.', 267, $this->source); })()), [], "array", false, false, false, 267), "html", null, true);
echo "</span>
";
}
// line 269
echo " ";
}
// line 270
echo " </td>
<td>";
// line 271
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["action"], "manager", [], "any", false, false, false, 271), "html", null, true);
echo "</td>
<td>
<a aria-label=\"Chercher\" href=\"/actions-de-protection/visualiser/";
// line 273
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["action"], "id", [], "any", false, false, false, 273), "html", null, true);
echo "\" ><i class=\"fas fa-search\"></i></a>
</td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['action'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 277
echo " </tbody>
</table>
</div>
</div>
</div>
</div>
<div class=\"row\">
";
// line 284
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 284, $this->source); })()), "user", [], "any", false, false, false, 284), "collectivity", [], "any", false, false, false, 284), "hasModuleConformiteOrganisation", [], "any", false, false, false, 284) == true)) {
// line 285
echo " <div class=\"col-md-12\">
";
// line 287
echo " <div class=\"box box-solid\">
<div class=\"box-header with-border\"><h3 class=\"box-title\">Conformité de la structure</h3></div>
";
// line 289
if (twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 289, $this->source); })()), "conformiteOrganisation", [], "any", false, false, false, 289))) {
// line 290
echo " <div class=\"box-body\">
Aucune donnée à afficher
</div>
";
} else {
// line 294
echo " <div class=\"box-body no-padding\">
<table role=\"presentation\" class=\"table table-striped\">
<thead>
<tr>
<th scope=\"col\">Processus</th>
<th scope=\"col\">Progression</th>
<th style=\"width: 40px\" scope=\"col\">Conformité</th>
</tr>
</thead>
<tbody>
";
// line 304
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 304, $this->source); })()), "conformiteOrganisation", [], "any", false, false, false, 304));
foreach ($context['_seq'] as $context["_key"] => $context["conformite"]) {
// line 305
echo " ";
$context["score"] = ((twig_get_attribute($this->env, $this->source, $context["conformite"], "conformite", [], "array", false, false, false, 305) / 5) * 100);
// line 306
echo " ";
if (((isset($context["score"]) || array_key_exists("score", $context) ? $context["score"] : (function () { throw new RuntimeError('Variable "score" does not exist.', 306, $this->source); })()) < 50)) {
// line 307
echo " ";
$context["color"] = "red";
// line 308
echo "
";
} elseif (( // line 309
(isset($context["score"]) || array_key_exists("score", $context) ? $context["score"] : (function () { throw new RuntimeError('Variable "score" does not exist.', 309, $this->source); })()) < 70)) {
// line 310
echo " ";
$context["color"] = "yellow";
// line 311
echo " ";
} else {
// line 312
echo " ";
$context["color"] = "green";
// line 313
echo " ";
}
// line 314
echo " <tr>
<td>";
// line 315
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["conformite"], "processus", [], "array", false, false, false, 315), "html", null, true);
echo "</td>
<td>
<div class=\"progress progress-xs\">
<div class=\"progress-bar progress-bar-";
// line 318
echo twig_escape_filter($this->env, (isset($context["color"]) || array_key_exists("color", $context) ? $context["color"] : (function () { throw new RuntimeError('Variable "color" does not exist.', 318, $this->source); })()), "html", null, true);
echo "\" style=\"width: ";
echo twig_escape_filter($this->env, (isset($context["score"]) || array_key_exists("score", $context) ? $context["score"] : (function () { throw new RuntimeError('Variable "score" does not exist.', 318, $this->source); })()), "html", null, true);
echo "%\"></div>
</div>
</td>
<td>
<span style=\"min-width: 100%\" class=\"badge bg-";
// line 322
echo twig_escape_filter($this->env, (isset($context["color"]) || array_key_exists("color", $context) ? $context["color"] : (function () { throw new RuntimeError('Variable "color" does not exist.', 322, $this->source); })()), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, (isset($context["score"]) || array_key_exists("score", $context) ? $context["score"] : (function () { throw new RuntimeError('Variable "score" does not exist.', 322, $this->source); })()), "html", null, true);
echo "%</span>
</td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['conformite'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 326
echo " </tbody>
</table>
</div>
";
}
// line 330
echo " </div>
</div>
";
}
// line 333
echo " </div>
</div>
</div>
";
// line 338
echo " <div class=\"row\">
<div class=\"col-md-12\">
<div class=\"box box-solid\">
<div class=\"box-header with-border\">
<h3 class=\"box-title\">Journalisation <small>";
// line 342
echo twig_escape_filter($this->env, (isset($context["app_user_dashboard_journalisation_limit"]) || array_key_exists("app_user_dashboard_journalisation_limit", $context) ? $context["app_user_dashboard_journalisation_limit"] : (function () { throw new RuntimeError('Variable "app_user_dashboard_journalisation_limit" does not exist.', 342, $this->source); })()), "html", null, true);
echo " dernières actions</small></h3>
</div>
<div class=\"box-body no-padding\">
<table role=\"presentation\" class=\"table\">
<thead>
<tr>
<th scope=\"col\">Nom utilisateur</th>
<th scope=\"col\">Email utilisateur</th>
<th scope=\"col\">Date</th>
<th scope=\"col\">Sujet</th>
<th scope=\"col\">Action</th>
<th scope=\"col\">Nom</th>
<th scope=\"col\">Lien</th>
</tr>
</thead>
<tbody>
";
// line 358
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 358, $this->source); })()), "logJournal", [], "any", false, false, false, 358));
foreach ($context['_seq'] as $context["_key"] => $context["logJournal"]) {
// line 359
echo " ";
$context["logJournalLink"] = $this->extensions['App\Domain\Reporting\Twig\Extension\LogJournalExtension']->getLogJournalLink($context["logJournal"]);
// line 360
echo " <tr>
<td>";
// line 361
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["logJournal"], "userFullName", [], "any", false, false, false, 361), "html", null, true);
echo "</td>
<td>";
// line 362
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["logJournal"], "userEmail", [], "any", false, false, false, 362), "html", null, true);
echo "</td>
<td>";
// line 363
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["logJournal"], "date", [], "any", false, false, false, 363), "d/m/Y"), "html", null, true);
echo "</td>
<td>";
// line 364
((twig_get_attribute($this->env, $this->source, $context["logJournal"], "subjectType", [], "any", false, false, false, 364)) ? (print (twig_escape_filter($this->env, $this->env->getFilter('dictionary')->getCallable()(twig_get_attribute($this->env, $this->source, $context["logJournal"], "subjectType", [], "any", false, false, false, 364), "reporting_log_journal_subject"), "html", null, true))) : (print ("")));
echo "</td>
<td>";
// line 365
((twig_get_attribute($this->env, $this->source, $context["logJournal"], "action", [], "any", false, false, false, 365)) ? (print (twig_escape_filter($this->env, $this->env->getFilter('dictionary')->getCallable()(twig_get_attribute($this->env, $this->source, $context["logJournal"], "action", [], "any", false, false, false, 365), "reporting_log_journal_action"), "html", null, true))) : (print ("")));
echo "</td>
<td>";
// line 366
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["logJournal"], "subjectName", [], "any", false, false, false, 366), "html", null, true);
echo "</td>
<td>
";
// line 368
if (twig_get_attribute($this->env, $this->source, $context["logJournal"], "isDeleted", [], "any", false, false, false, 368)) {
// line 369
echo " ";
echo twig_escape_filter($this->env, (isset($context["logJournalLink"]) || array_key_exists("logJournalLink", $context) ? $context["logJournalLink"] : (function () { throw new RuntimeError('Variable "logJournalLink" does not exist.', 369, $this->source); })()), "html", null, true);
echo "
";
} elseif ( !(null === // line 370
(isset($context["logJournalLink"]) || array_key_exists("logJournalLink", $context) ? $context["logJournalLink"] : (function () { throw new RuntimeError('Variable "logJournalLink" does not exist.', 370, $this->source); })()))) {
// line 371
echo " <a aria-label=\"Lien\" href=\"";
echo twig_escape_filter($this->env, (isset($context["logJournalLink"]) || array_key_exists("logJournalLink", $context) ? $context["logJournalLink"] : (function () { throw new RuntimeError('Variable "logJournalLink" does not exist.', 371, $this->source); })()), "html", null, true);
echo "\">Lien</a>
";
}
// line 373
echo " </td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['logJournal'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 376
echo " </tbody>
</table>
</div>
</div>
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 385
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 386
echo " <script src=\"https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.min.js\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.bundle.min.js\"></script>
";
// line 390
echo " <script>
let labelYes = '";
// line 391
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.yes"), "html", null, true);
echo "';
let labelNo = '";
// line 392
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.no"), "html", null, true);
echo "';
let colorBlue = 'rgba(54, 162, 235, 1)';
let colorBlueOpacity = 'rgba(54, 162, 235, 0.5)';
let colorGreen = ' rgba(48, 183, 44, 1)';
let colorGreenOpacity = ' rgba(48, 183, 44, 0.5)';
let colorPurple = 'rgba(153, 51, 204, 1)';
let colorPurpleOpacity = 'rgba(153, 51, 204, 0.5)';
let colorRed = 'rgba(255, 99, 132, 1)';
let colorRedOpacity = 'rgba(255, 99, 132, 0.5)';
let colorTeal = 'rgba(0, 105, 92, 1)';
let colorTealOpacity = 'rgba(0, 105, 92, 0.5)';
let colorOrange = 'rgb(255, 136, 0, 1)';
let colorOrangeOpacity = 'rgb(255, 136, 0, 0.5)';
let labelYesNo = [labelYes, labelNo];
// CONTRACTOR
let contractorClausesData = [";
// line 410
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 410, $this->source); })()), "contractor", [], "any", false, false, false, 410), "clauses", [], "any", false, false, false, 410), "yes", [], "any", false, false, false, 410), "html", null, true);
echo ", ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 410, $this->source); })()), "contractor", [], "any", false, false, false, 410), "clauses", [], "any", false, false, false, 410), "no", [], "any", false, false, false, 410), "html", null, true);
echo "];
let contractorAdoptedSecurityFeaturesData = [";
// line 411
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 411, $this->source); })()), "contractor", [], "any", false, false, false, 411), "adoptedSecurityFeatures", [], "any", false, false, false, 411), "yes", [], "any", false, false, false, 411), "html", null, true);
echo ", ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 411, $this->source); })()), "contractor", [], "any", false, false, false, 411), "adoptedSecurityFeatures", [], "any", false, false, false, 411), "no", [], "any", false, false, false, 411), "html", null, true);
echo "];
let contractorMaintainsTreatmentRegisterData = [";
// line 412
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 412, $this->source); })()), "contractor", [], "any", false, false, false, 412), "maintainsTreatmentRegister", [], "any", false, false, false, 412), "yes", [], "any", false, false, false, 412), "html", null, true);
echo ", ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 412, $this->source); })()), "contractor", [], "any", false, false, false, 412), "maintainsTreatmentRegister", [], "any", false, false, false, 412), "no", [], "any", false, false, false, 412), "html", null, true);
echo "];
let contractorSendingDataOutsideEuData = [";
// line 413
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 413, $this->source); })()), "contractor", [], "any", false, false, false, 413), "sendingDataOutsideEu", [], "any", false, false, false, 413), "yes", [], "any", false, false, false, 413), "html", null, true);
echo ", ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 413, $this->source); })()), "contractor", [], "any", false, false, false, 413), "sendingDataOutsideEu", [], "any", false, false, false, 413), "no", [], "any", false, false, false, 413), "html", null, true);
echo "];
// MESUREMENT
let mesurementStatusData = [";
// line 416
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 416, $this->source); })()), "mesurement", [], "any", false, false, false, 416), "value", [], "any", false, false, false, 416), "applied", [], "any", false, false, false, 416), "html", null, true);
echo ", ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 416, $this->source); })()), "mesurement", [], "any", false, false, false, 416), "value", [], "any", false, false, false, 416), "planified", [], "any", false, false, false, 416), "html", null, true);
echo ", ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 416, $this->source); })()), "mesurement", [], "any", false, false, false, 416), "value", [], "any", false, false, false, 416), "notApplied", [], "any", false, false, false, 416), "html", null, true);
echo "];
// MATURITY
let maturityLabels = [];
let maturitySerieLabel = [];
let maturityData = [];
";
// line 423
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["data"] ?? null), "maturity", [], "any", false, true, false, 423), "new", [], "any", true, true, false, 423)) {
// line 424
echo " let tmpData1 = [];
maturitySerieLabel.push('";
// line 425
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 425, $this->source); })()), "maturity", [], "any", false, false, false, 425), "new", [], "any", false, false, false, 425), "name", [], "any", false, false, false, 425), "html", null, true);
echo "');
";
// line 426
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 426, $this->source); })()), "maturity", [], "any", false, false, false, 426), "new", [], "any", false, false, false, 426), "data", [], "any", false, false, false, 426));
foreach ($context['_seq'] as $context["position"] => $context["info"]) {
// line 427
echo " maturityLabels.push('";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["info"], "name", [], "any", false, false, false, 427), "html", null, true);
echo "');
tmpData1.push('";
// line 428
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["info"], "score", [], "any", false, false, false, 428), "html", null, true);
echo "');
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['position'], $context['info'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 430
echo " maturityData.push(tmpData1);
";
}
// line 432
echo " ";
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["data"] ?? null), "maturity", [], "any", false, true, false, 432), "old", [], "any", true, true, false, 432)) {
// line 433
echo " let tmpData2 = [];
maturitySerieLabel.push('";
// line 434
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 434, $this->source); })()), "maturity", [], "any", false, false, false, 434), "old", [], "any", false, false, false, 434), "name", [], "any", false, false, false, 434), "html", null, true);
echo "');
";
// line 435
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 435, $this->source); })()), "maturity", [], "any", false, false, false, 435), "old", [], "any", false, false, false, 435), "data", [], "any", false, false, false, 435));
foreach ($context['_seq'] as $context["position"] => $context["info"]) {
// line 436
echo " tmpData2.push('";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["info"], "score", [], "any", false, false, false, 436), "html", null, true);
echo "');
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['position'], $context['info'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 438
echo " maturityData.push(tmpData2);
";
}
// line 440
echo "
// REQUEST
let requestTypeLabel = [
'Rectifier des données',
'Supprimer des données',
'Retirer le consentement',
'Accéder à des données',
'Portabilité des données',
'Limiter le traitement',
'Autre',
];
let requestTypeData = [];
";
// line 453
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 453, $this->source); })()), "request", [], "any", false, false, false, 453), "value", [], "any", false, false, false, 453), "type", [], "any", false, false, false, 453), "correct", [], "any", false, false, false, 453)) {
// line 454
echo " requestTypeData.push(";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 454, $this->source); })()), "request", [], "any", false, false, false, 454), "value", [], "any", false, false, false, 454), "type", [], "any", false, false, false, 454), "correct", [], "any", false, false, false, 454), "html", null, true);
echo ");
";
} elseif (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 455
(isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 455, $this->source); })()), "request", [], "any", false, false, false, 455), "value", [], "any", false, false, false, 455), "type", [], "any", false, false, false, 455), "delete", [], "any", false, false, false, 455)) {
// line 456
echo " requestTypeData.push(";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 456, $this->source); })()), "request", [], "any", false, false, false, 456), "value", [], "any", false, false, false, 456), "type", [], "any", false, false, false, 456), "delete", [], "any", false, false, false, 456), "html", null, true);
echo ");
";
} elseif (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 457
(isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 457, $this->source); })()), "request", [], "any", false, false, false, 457), "value", [], "any", false, false, false, 457), "type", [], "any", false, false, false, 457), "withdrawConsent", [], "any", false, false, false, 457)) {
// line 458
echo " requestTypeData.push(";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 458, $this->source); })()), "request", [], "any", false, false, false, 458), "value", [], "any", false, false, false, 458), "type", [], "any", false, false, false, 458), "withdrawConsent", [], "any", false, false, false, 458), "html", null, true);
echo ");
";
} elseif (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 459
(isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 459, $this->source); })()), "request", [], "any", false, false, false, 459), "value", [], "any", false, false, false, 459), "type", [], "any", false, false, false, 459), "access", [], "any", false, false, false, 459)) {
// line 460
echo " requestTypeData.push(";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 460, $this->source); })()), "request", [], "any", false, false, false, 460), "value", [], "any", false, false, false, 460), "type", [], "any", false, false, false, 460), "access", [], "any", false, false, false, 460), "html", null, true);
echo ");
";
} elseif (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 461
(isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 461, $this->source); })()), "request", [], "any", false, false, false, 461), "value", [], "any", false, false, false, 461), "type", [], "any", false, false, false, 461), "dataPortability", [], "any", false, false, false, 461)) {
// line 462
echo " requestTypeData.push(";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 462, $this->source); })()), "request", [], "any", false, false, false, 462), "value", [], "any", false, false, false, 462), "type", [], "any", false, false, false, 462), "dataPortability", [], "any", false, false, false, 462), "html", null, true);
echo ");
";
} elseif (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 463
(isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 463, $this->source); })()), "request", [], "any", false, false, false, 463), "value", [], "any", false, false, false, 463), "type", [], "any", false, false, false, 463), "limitTreatment", [], "any", false, false, false, 463)) {
// line 464
echo " requestTypeData.push(";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 464, $this->source); })()), "request", [], "any", false, false, false, 464), "value", [], "any", false, false, false, 464), "type", [], "any", false, false, false, 464), "limitTreatment", [], "any", false, false, false, 464), "html", null, true);
echo ");
";
} elseif (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 465
(isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 465, $this->source); })()), "request", [], "any", false, false, false, 465), "value", [], "any", false, false, false, 465), "type", [], "any", false, false, false, 465), "other", [], "any", false, false, false, 465)) {
// line 466
echo " requestTypeData.push(";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 466, $this->source); })()), "request", [], "any", false, false, false, 466), "value", [], "any", false, false, false, 466), "type", [], "any", false, false, false, 466), "other", [], "any", false, false, false, 466), "html", null, true);
echo ");
";
}
// line 468
echo "
let requestStatusLabel = [
'Traité',
'À traiter',
'Non-recevable',
];
let requestStatusData = [];
";
// line 475
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 475, $this->source); })()), "request", [], "any", false, false, false, 475), "value", [], "any", false, false, false, 475), "status", [], "any", false, false, false, 475), "processed", [], "any", false, false, false, 475)) {
// line 476
echo " requestStatusData.push(";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 476, $this->source); })()), "request", [], "any", false, false, false, 476), "value", [], "any", false, false, false, 476), "status", [], "any", false, false, false, 476), "processed", [], "any", false, false, false, 476), "html", null, true);
echo ");
";
} elseif (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 477
(isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 477, $this->source); })()), "request", [], "any", false, false, false, 477), "value", [], "any", false, false, false, 477), "status", [], "any", false, false, false, 477), "toProcess", [], "any", false, false, false, 477)) {
// line 478
echo " requestStatusData.push(";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 478, $this->source); })()), "request", [], "any", false, false, false, 478), "value", [], "any", false, false, false, 478), "status", [], "any", false, false, false, 478), "toProcess", [], "any", false, false, false, 478), "html", null, true);
echo ");
";
} elseif (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 479
(isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 479, $this->source); })()), "request", [], "any", false, false, false, 479), "value", [], "any", false, false, false, 479), "status", [], "any", false, false, false, 479), "incomplete", [], "any", false, false, false, 479)) {
// line 480
echo " requestStatusData.push(";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 480, $this->source); })()), "request", [], "any", false, false, false, 480), "value", [], "any", false, false, false, 480), "status", [], "any", false, false, false, 480), "incomplete", [], "any", false, false, false, 480), "html", null, true);
echo ");
";
}
// line 482
echo "
// TREATMENT
let treatmentLabels = [
'Contrôle d\\'accès',
'Traçabilité',
'Sauvegarde',
'Mises à jour',
];
let treatmentDatasetYes = [];
let treatmentDatasetNo = [];
";
// line 492
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 492, $this->source); })()), "treatment", [], "any", false, false, false, 492), "value", [], "any", false, false, false, 492), "data", [], "any", false, false, false, 492));
foreach ($context['_seq'] as $context["key"] => $context["item"]) {
// line 493
echo " ";
$context["yesItem"] = twig_get_attribute($this->env, $this->source, $context["item"], "yes", [], "any", false, false, false, 493);
// line 494
echo " ";
$context["noItem"] = twig_get_attribute($this->env, $this->source, $context["item"], "no", [], "any", false, false, false, 494);
// line 495
echo " ";
if ((((isset($context["yesItem"]) || array_key_exists("yesItem", $context) ? $context["yesItem"] : (function () { throw new RuntimeError('Variable "yesItem" does not exist.', 495, $this->source); })()) > 0) || ((isset($context["noItem"]) || array_key_exists("noItem", $context) ? $context["noItem"] : (function () { throw new RuntimeError('Variable "noItem" does not exist.', 495, $this->source); })()) > 0))) {
// line 496
echo " treatmentDatasetYes.push('";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "yes", [], "any", false, false, false, 496), "html", null, true);
echo "');
treatmentDatasetNo.push('";
// line 497
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "no", [], "any", false, false, false, 497), "html", null, true);
echo "');
";
}
// line 499
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 500
echo "
// CONFORMITE TRAITEMENT
let conformiteTraitementLabels = ";
// line 502
echo json_encode(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 502, $this->source); })()), "conformiteTraitement", [], "any", false, false, false, 502), "labels", [], "any", false, false, false, 502));
echo ";
let conformiteTraitementData = [];
";
// line 504
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 504, $this->source); })()), "conformiteTraitement", [], "any", false, false, false, 504), "data", [], "any", false, false, false, 504)) {
// line 505
echo " conformiteTraitementData = ";
echo json_encode(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 505, $this->source); })()), "conformiteTraitement", [], "any", false, false, false, 505), "data", [], "any", false, false, false, 505));
echo ";
";
}
// line 507
echo " let conformiteTraitementColors = ";
echo json_encode(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 507, $this->source); })()), "conformiteTraitement", [], "any", false, false, false, 507), "colors", [], "any", false, false, false, 507));
echo ";
</script>
";
// line 511
echo " ";
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("js/dashboard");
echo "
<script>
\$(document).ready(function() {
\$('body').on('change', '#referentiel-chooser', function() {
console.log('change', \$(this).val());
window.location.href = \"";
// line 517
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 517, $this->source); })()), "request", [], "any", false, false, false, 517), "pathinfo", [], "any", false, false, false, 517), "html", null, true);
echo "?referentiel=\" + \$(this).val();
})
})
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "Reporting/Dashboard/index.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 1107 => 517, 1097 => 511, 1090 => 507, 1084 => 505, 1082 => 504, 1077 => 502, 1073 => 500, 1067 => 499, 1062 => 497, 1057 => 496, 1054 => 495, 1051 => 494, 1048 => 493, 1044 => 492, 1032 => 482, 1026 => 480, 1024 => 479, 1019 => 478, 1017 => 477, 1012 => 476, 1010 => 475, 1001 => 468, 995 => 466, 993 => 465, 988 => 464, 986 => 463, 981 => 462, 979 => 461, 974 => 460, 972 => 459, 967 => 458, 965 => 457, 960 => 456, 958 => 455, 953 => 454, 951 => 453, 936 => 440, 932 => 438, 923 => 436, 919 => 435, 915 => 434, 912 => 433, 909 => 432, 905 => 430, 897 => 428, 892 => 427, 888 => 426, 884 => 425, 881 => 424, 879 => 423, 865 => 416, 857 => 413, 851 => 412, 845 => 411, 839 => 410, 818 => 392, 814 => 391, 811 => 390, 806 => 386, 796 => 385, 779 => 376, 771 => 373, 765 => 371, 763 => 370, 758 => 369, 756 => 368, 751 => 366, 747 => 365, 743 => 364, 739 => 363, 735 => 362, 731 => 361, 728 => 360, 725 => 359, 721 => 358, 702 => 342, 696 => 338, 690 => 333, 685 => 330, 679 => 326, 667 => 322, 658 => 318, 652 => 315, 649 => 314, 646 => 313, 643 => 312, 640 => 311, 637 => 310, 635 => 309, 632 => 308, 629 => 307, 626 => 306, 623 => 305, 619 => 304, 607 => 294, 601 => 290, 599 => 289, 595 => 287, 592 => 285, 590 => 284, 581 => 277, 571 => 273, 566 => 271, 563 => 270, 560 => 269, 554 => 267, 552 => 266, 547 => 265, 545 => 264, 540 => 263, 537 => 262, 534 => 261, 532 => 260, 527 => 258, 523 => 257, 520 => 256, 515 => 255, 507 => 249, 505 => 248, 497 => 243, 493 => 242, 489 => 241, 485 => 240, 481 => 239, 473 => 234, 466 => 229, 458 => 216, 449 => 210, 444 => 207, 435 => 200, 426 => 194, 421 => 191, 411 => 183, 402 => 177, 397 => 174, 393 => 171, 385 => 166, 376 => 160, 372 => 158, 370 => 157, 367 => 156, 363 => 153, 359 => 150, 354 => 147, 349 => 144, 345 => 142, 341 => 140, 339 => 139, 334 => 136, 331 => 135, 327 => 132, 325 => 131, 324 => 130, 318 => 126, 314 => 124, 310 => 122, 308 => 121, 303 => 118, 297 => 113, 294 => 112, 290 => 110, 285 => 107, 282 => 106, 278 => 104, 276 => 103, 272 => 101, 257 => 99, 253 => 98, 242 => 89, 234 => 82, 228 => 79, 221 => 75, 217 => 73, 213 => 71, 211 => 70, 201 => 63, 191 => 56, 187 => 54, 181 => 49, 175 => 46, 168 => 42, 161 => 38, 154 => 34, 150 => 32, 146 => 30, 144 => 29, 138 => 25, 134 => 22, 130 => 19, 120 => 18, 109 => 15, 106 => 14, 96 => 13, 83 => 9, 79 => 8, 76 => 7, 66 => 6, 55 => 1, 53 => 4, 51 => 3, 38 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% set bodyClass = 'reporting_dashboard' %}
{% set menuItem = 'reporting_dashboard' %}
{% block body_head %}
<h1>
{{ 'reporting.dashboard.title.index'|trans }}
<small>{{ app.user.collectivity }}</small>
</h1>
{% endblock %}
{% block breadcrumb %}
{% set breadcrumb = [] %}
{% include '_breadcrumb.html.twig' with {'breadcrumb': breadcrumb} %}
{% endblock %}
{% block body %}
<div class=\"tdb\">
<div class=\"row\">
{# LEFT #}
<div class=\"col-md-6\">
<div class=\"row\">
{# DETAIL : CONTRACTOR #}
<div class=\"col-md-6\">
<div class=\"box box-solid\">
<div class=\"box-header with-border\"><h3 class=\"box-title\">Sous-traitants</h3></div>
<div class=\"box-body\">
{% if 0 == data.contractor.all %}
Aucune donnée à afficher
{% else %}
<div class=\"col-sm-6 col-sm-offset-0 col-xs-4 col-xs-offset-1 text-center\">
<canvas id=\"contractor-clauses\" width=\"400\" height=\"400\"></canvas>
<p>{{ 'reporting.dashboard.contractor.contractual_clauses_verified.title'|trans }}</p>
</div>
<div class=\"col-sm-6 col-sm-offset-0 col-xs-4 col-xs-offset-1 text-center\">
<canvas id=\"contractor-adopted-security-features\" width=\"400\" height=\"400\"></canvas>
<p>{{ 'reporting.dashboard.contractor.adopted_security_features.title'|trans }}</p>
</div>
<div class=\"col-sm-6 col-sm-offset-0 col-xs-4 col-xs-offset-1 text-center\">
<canvas id=\"contractor-maintains-treatment-register\" width=\"400\" height=\"400\"></canvas>
<p>{{ 'reporting.dashboard.contractor.maintains_treatment_register.title'|trans }}</p>
</div>
<div class=\"col-sm-6 col-sm-offset-0 col-xs-4 col-xs-offset-1 text-center\">
<canvas id=\"contractor-sending-data-outside-eu\" width=\"400\" height=\"400\"></canvas>
<p>{{ 'reporting.dashboard.contractor.sending_data_outside_eu.title'|trans }}</p>
</div>
{% endif %}
</div>
</div>
</div>
<div class=\"col-md-6\">
{# REQUEST #}
<div class=\"small-box bg-yellow\">
<div class=\"inner\">
<h3>{{ data.request.value.status.toProcess }}</h3>
<p>Demandes à traiter</p>
</div>
<div class=\"icon\">
<i class=\"fa fa-users\"></i>
</div>
<a aria-label=\"Plus d'informations\" href=\"{{ path('registry_request_list') }}\" class=\"small-box-footer\">
Plus d'informations <i class=\"fa fa-arrow-circle-right\"></i>
</a>
</div>
<div class=\"box box-solid\">
<div class=\"box-header with-border\"><h3 class=\"box-title\">Demandes</h3></div>
<div class=\"box-body\">
{% if 0 == data.request.value.all %}
Aucune donnée à afficher
{% else %}
<div class=\"col-sm-6 col-sm-offset-0 col-xs-4 col-xs-offset-1 text-center\" style=\"padding-left: 0; padding-right: 0;\">
<canvas id=\"request-type\" width=\"500\" height=\"500\"></canvas>
<p>{{ 'reporting.dashboard.request.type.title'|trans }}</p>
</div>
<div class=\"col-sm-6 col-sm-offset-0 col-xs-4 col-xs-offset-1 text-center\" style=\"padding-left: 0; padding-right: 0;\">
<canvas id=\"request-status\" width=\"500\" height=\"500\"></canvas>
<p>{{ 'reporting.dashboard.request.status.title'|trans }}</p>
</div>
{% endif %}
</div>
</div>
</div>
</div>
<div class=\"row\">
<div class=\"col-md-12\">
{# DETAIL : MATURITY #}
<div class=\"box box-solid\">
<div class=\"box-header with-border\"><h3 class=\"box-title\">Indice de maturité</h3></div>
<div class=\"box-body\">
<style>
.dropdown.bootstrap-select {
width: 100% !important;
}
</style>
<select class=\"selectpicker\" id=\"referentiel-chooser\">
{% for ref in referentiels %}
<option value=\"{{ ref.id }}\" {% if ref.id == selected_ref.id %}selected{% endif %}>{{ ref.name }}</option>
{% endfor %}
</select>
<div style=\"margin-top: 1em\">
{% if data.maturity is empty %}
Aucun indice à afficher
{% else %}
{% if data.maturity.new is defined and data.maturity.new.data is defined and data.maturity.new.data|length >= 3 %}
<canvas id=\"maturity-radar\"></canvas>
{% else %}
Le référentiel contient moins de trois sections
{% endif %}
{% endif %}
</div>
</div>
</div>
{# DETAIL : TREATMENTS #}
<div class=\"box box-solid\">
<div class=\"box-header with-border\"><h3 class=\"box-title\">Mesures de sécurité</h3></div>
<div class=\"box-body\">
{% if 0 == data.treatment.value.numeric %}
Aucun traitement utilisable pour ce graphe
{% else %}
<canvas id=\"treatment-bar\"></canvas>
{% endif %}
</div>
</div>
</div>
</div>
{% if app.user.collectivity.hasModuleConformiteTraitement == true or
app.user.collectivity.hasModuleConformiteOrganisation == true %}
<div class=\"row\">
<div class=\"col-md-12\">
{# DETAIL : CONFORMITE TRAITEMENT #}
{% if app.user.collectivity.hasModuleConformiteTraitement == true %}
<div class=\"box box-solid\">
<div class=\"box-header with-border\"><h3 class=\"box-title\">Conformité des traitements</h3></div>
<div class=\"box-body\">
{% if data.conformiteTraitement.data is empty %}
Aucune donnée à afficher
{% else %}
<canvas id=\"conformiteTraitement-pie\"></canvas>
{% endif %}
</div>
</div>
{% endif %}
</div>
</div>
{% endif %}
</div>
{# RIGHT #}
<div class=\"col-md-6\">
<div class=\"row\">
{# AIPD #}
<div class=\"col-sm-6 col-xs-12\">
{% if app.user.collectivity.hasModuleConformiteTraitement == true %}
<div class=\"small-box bg-light-blue\">
<div class=\"inner\">
<h3>{{ data.aipd.toDo }}</h3>
<p>AIPD à réaliser</p>
</div>
<div class=\"icon\">
<i class=\"fa fa-clipboard-list\"></i>
</div>
<a aria-label=\"Plus d'informations\" href=\"{{ path('registry_conformite_traitement_list') }}\" class=\"small-box-footer\">
Plus d'informations <i class=\"fa fa-arrow-circle-right\"></i>
</a>
</div>
{% endif %}
</div>
{# Action to realize #}
<div class=\"col-sm-6 col-xs-12\">
<div class=\"small-box bg-aqua\">
<div class=\"inner\">
<h3>{{ data.mesurement.value.planified }}</h3>
<p>Actions planifiées</p>
</div>
<div class=\"icon\">
<i class=\"fa fa-bullseye\"></i>
</div>
<a aria-label=\"Plus d'informations\" href=\"{{ path('registry_mesurement_action_plan') }}\" class=\"small-box-footer\">
Plus d'informations <i class=\"fa fa-arrow-circle-right\"></i>
</a>
</div>
</div>
</div>
<div class=\"row\">
{# VIOLATION #}
<div class=\"col-sm-6 col-xs-12\">
<div class=\"small-box bg-red\">
<div class=\"inner\">
<h3>{{ data.violation.value.all }}</h3>
<p>Violations</p>
</div>
<div class=\"icon\">
<i class=\"fa fa-exclamation-circle\"></i>
</div>
<a aria-label=\"Plus d'informations\" href=\"{{ path('registry_violation_list') }}\" class=\"small-box-footer\">
Plus d'informations <i class=\"fa fa-arrow-circle-right\"></i>
</a>
</div>
</div>
{# MESUREMENT : applied #}
<div class=\"col-sm-6 col-xs-12\">
<div class=\"small-box bg-green\">
<div class=\"inner\">
<h3>{{ data.mesurement.value.applied }}</h3>
<p>Actions mises en place</p>
</div>
<div class=\"icon\">
<i class=\"fa fa-adjust\"></i>
</div>
<a aria-label=\"Plus d'informations\" href=\"{{ path('registry_mesurement_list') }}\" class=\"small-box-footer\">
Plus d'informations <i class=\"fa fa-arrow-circle-right\"></i>
</a>
</div>
</div>
{# <div class=\"col-sm-12\">#}
{# {% if app_activate_notifications and app_notification_dashboard_shown == 'true' %}#}
{# #}{# {{app_notification_max_shown}} #}
{# <div id=\"notifications\" class=\"box box-solid\">#}
{# {{ block(\"body\", \"Notification/Notification/box.html.twig\") }}#}
{# </div>#}
{# {% endif %}#}
{# </div>#}
</div>
<div class=\"row\">
<div class=\"col-md-12\">
<div class=\"box box-warning\">
<div class=\"box-header with-border\"><h3 class=\"box-title\">Plan d'actions <small>{{ app_user_dashboard_action_plan_limit }} prochaines</small></h3></div>
<div class=\"box-body\">
<table role=\"presentation\" class=\"table table-striped table-bordered\">
<thead>
<tr>
<th scope=\"col\">{{ 'registry.mesurement.list.name'|trans }}</th>
<th scope=\"col\">{{ 'registry.mesurement.list.planification_date'|trans }}</th>
<th scope=\"col\">{{ 'registry.mesurement.list.priority'|trans }}</th>
<th scope=\"col\">{{ 'registry.mesurement.list.manager'|trans }}</th>
<th scope=\"col\">{{ 'label.action_link'|trans }}</th>
</tr>
</thead>
<tbody>
{% if not actions|length %}
<tr>
<td colspan=\"5\" style=\"text-align: center\">
Aucune action planifiée
</td>
</tr>
{% endif %}
{% for action in actions %}
<tr>
<td>{{ action.name }}</td>
<td>{{ action.planificationDate|date('d/m/Y') }}</td>
<td>
{% set key = action.priority %}
{% if key is not null %}
{% if key is same as ('low') %}
<span class=\"badge bg-blue\">{{ dictionary('registry_mesurement_priority')[key] }}</span>
{% elseif key is same as ('normal') %}
<span class=\"badge bg-yellow\">{{ dictionary('registry_mesurement_priority')[key] }}</span>
{% elseif key is same as ('high') %}
<span class=\"badge bg-red\">{{ dictionary('registry_mesurement_priority')[key] }}</span>
{% endif %}
{% endif %}
</td>
<td>{{ action.manager }}</td>
<td>
<a aria-label=\"Chercher\" href=\"/actions-de-protection/visualiser/{{ action.id }}\" ><i class=\"fas fa-search\"></i></a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class=\"row\">
{% if app.user.collectivity.hasModuleConformiteOrganisation == true %}
<div class=\"col-md-12\">
{# DETAIL : CONFORMITE ORGANISATION #}
<div class=\"box box-solid\">
<div class=\"box-header with-border\"><h3 class=\"box-title\">Conformité de la structure</h3></div>
{% if data.conformiteOrganisation is empty %}
<div class=\"box-body\">
Aucune donnée à afficher
</div>
{% else %}
<div class=\"box-body no-padding\">
<table role=\"presentation\" class=\"table table-striped\">
<thead>
<tr>
<th scope=\"col\">Processus</th>
<th scope=\"col\">Progression</th>
<th style=\"width: 40px\" scope=\"col\">Conformité</th>
</tr>
</thead>
<tbody>
{% for conformite in data.conformiteOrganisation %}
{% set score = (conformite['conformite'] / 5 * 100) %}
{% if score < 50 %}
{% set color = 'red' %}
{% elseif score < 70 %}
{% set color = 'yellow' %}
{% else %}
{% set color = 'green' %}
{% endif %}
<tr>
<td>{{ conformite['processus'] }}</td>
<td>
<div class=\"progress progress-xs\">
<div class=\"progress-bar progress-bar-{{ color }}\" style=\"width: {{ score }}%\"></div>
</div>
</td>
<td>
<span style=\"min-width: 100%\" class=\"badge bg-{{ color }}\">{{ score }}%</span>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endif %}
</div>
</div>
{% endif %}
</div>
</div>
</div>
{# JOURNALISATION #}
<div class=\"row\">
<div class=\"col-md-12\">
<div class=\"box box-solid\">
<div class=\"box-header with-border\">
<h3 class=\"box-title\">Journalisation <small>{{ app_user_dashboard_journalisation_limit }} dernières actions</small></h3>
</div>
<div class=\"box-body no-padding\">
<table role=\"presentation\" class=\"table\">
<thead>
<tr>
<th scope=\"col\">Nom utilisateur</th>
<th scope=\"col\">Email utilisateur</th>
<th scope=\"col\">Date</th>
<th scope=\"col\">Sujet</th>
<th scope=\"col\">Action</th>
<th scope=\"col\">Nom</th>
<th scope=\"col\">Lien</th>
</tr>
</thead>
<tbody>
{% for logJournal in data.logJournal %}
{% set logJournalLink = getLogJournalLink(logJournal) %}
<tr>
<td>{{ logJournal.userFullName }}</td>
<td>{{ logJournal.userEmail }}</td>
<td>{{ logJournal.date|date('d/m/Y') }}</td>
<td>{{ logJournal.subjectType ? logJournal.subjectType|dictionary('reporting_log_journal_subject') : '' }}</td>
<td>{{ logJournal.action ? logJournal.action|dictionary('reporting_log_journal_action') : '' }}</td>
<td>{{ logJournal.subjectName }}</td>
<td>
{% if logJournal.isDeleted %}
{{ logJournalLink }}
{% elseif logJournalLink is not null %}
<a aria-label=\"Lien\" href=\"{{ logJournalLink }}\">Lien</a>
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
{% endblock %}
{% block javascripts %}
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.min.js\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.bundle.min.js\"></script>
{# DEFINE DATA #}
<script>
let labelYes = '{{ 'label.yes'|trans }}';
let labelNo = '{{ 'label.no'|trans }}';
let colorBlue = 'rgba(54, 162, 235, 1)';
let colorBlueOpacity = 'rgba(54, 162, 235, 0.5)';
let colorGreen = ' rgba(48, 183, 44, 1)';
let colorGreenOpacity = ' rgba(48, 183, 44, 0.5)';
let colorPurple = 'rgba(153, 51, 204, 1)';
let colorPurpleOpacity = 'rgba(153, 51, 204, 0.5)';
let colorRed = 'rgba(255, 99, 132, 1)';
let colorRedOpacity = 'rgba(255, 99, 132, 0.5)';
let colorTeal = 'rgba(0, 105, 92, 1)';
let colorTealOpacity = 'rgba(0, 105, 92, 0.5)';
let colorOrange = 'rgb(255, 136, 0, 1)';
let colorOrangeOpacity = 'rgb(255, 136, 0, 0.5)';
let labelYesNo = [labelYes, labelNo];
// CONTRACTOR
let contractorClausesData = [{{ data.contractor.clauses.yes }}, {{ data.contractor.clauses.no }}];
let contractorAdoptedSecurityFeaturesData = [{{ data.contractor.adoptedSecurityFeatures.yes }}, {{ data.contractor.adoptedSecurityFeatures.no }}];
let contractorMaintainsTreatmentRegisterData = [{{ data.contractor.maintainsTreatmentRegister.yes }}, {{ data.contractor.maintainsTreatmentRegister.no }}];
let contractorSendingDataOutsideEuData = [{{ data.contractor.sendingDataOutsideEu.yes }}, {{ data.contractor.sendingDataOutsideEu.no }}];
// MESUREMENT
let mesurementStatusData = [{{ data.mesurement.value.applied }}, {{ data.mesurement.value.planified }}, {{ data.mesurement.value.notApplied }}];
// MATURITY
let maturityLabels = [];
let maturitySerieLabel = [];
let maturityData = [];
{% if data.maturity.new is defined %}
let tmpData1 = [];
maturitySerieLabel.push('{{ data.maturity.new.name }}');
{% for position, info in data.maturity.new.data %}
maturityLabels.push('{{ info.name }}');
tmpData1.push('{{ info.score }}');
{% endfor %}
maturityData.push(tmpData1);
{% endif %}
{% if data.maturity.old is defined %}
let tmpData2 = [];
maturitySerieLabel.push('{{ data.maturity.old.name }}');
{% for position, info in data.maturity.old.data %}
tmpData2.push('{{ info.score }}');
{% endfor %}
maturityData.push(tmpData2);
{% endif %}
// REQUEST
let requestTypeLabel = [
'Rectifier des données',
'Supprimer des données',
'Retirer le consentement',
'Accéder à des données',
'Portabilité des données',
'Limiter le traitement',
'Autre',
];
let requestTypeData = [];
{% if data.request.value.type.correct %}
requestTypeData.push({{ data.request.value.type.correct }});
{% elseif data.request.value.type.delete %}
requestTypeData.push({{ data.request.value.type.delete }});
{% elseif data.request.value.type.withdrawConsent %}
requestTypeData.push({{ data.request.value.type.withdrawConsent }});
{% elseif data.request.value.type.access %}
requestTypeData.push({{ data.request.value.type.access }});
{% elseif data.request.value.type.dataPortability %}
requestTypeData.push({{ data.request.value.type.dataPortability }});
{% elseif data.request.value.type.limitTreatment %}
requestTypeData.push({{ data.request.value.type.limitTreatment }});
{% elseif data.request.value.type.other %}
requestTypeData.push({{ data.request.value.type.other }});
{% endif %}
let requestStatusLabel = [
'Traité',
'À traiter',
'Non-recevable',
];
let requestStatusData = [];
{% if data.request.value.status.processed %}
requestStatusData.push({{ data.request.value.status.processed }});
{% elseif data.request.value.status.toProcess %}
requestStatusData.push({{ data.request.value.status.toProcess }});
{% elseif data.request.value.status.incomplete %}
requestStatusData.push({{ data.request.value.status.incomplete }});
{% endif %}
// TREATMENT
let treatmentLabels = [
'Contrôle d\\'accès',
'Traçabilité',
'Sauvegarde',
'Mises à jour',
];
let treatmentDatasetYes = [];
let treatmentDatasetNo = [];
{% for key, item in data.treatment.value.data %}
{% set yesItem = attribute(item, 'yes') %}
{% set noItem = attribute(item, 'no') %}
{% if yesItem > 0 or noItem > 0 %}
treatmentDatasetYes.push('{{ attribute(item, 'yes') }}');
treatmentDatasetNo.push('{{ attribute(item, 'no') }}');
{% endif %}
{% endfor %}
// CONFORMITE TRAITEMENT
let conformiteTraitementLabels = {{ data.conformiteTraitement.labels|json_encode|raw }};
let conformiteTraitementData = [];
{% if data.conformiteTraitement.data %}
conformiteTraitementData = {{ data.conformiteTraitement.data|json_encode|raw }};
{% endif %}
let conformiteTraitementColors = {{ data.conformiteTraitement.colors|json_encode|raw }};
</script>
{# USE DATA & DEFINE GRAPH #}
{{ encore_entry_script_tags('js/dashboard') }}
<script>
\$(document).ready(function() {
\$('body').on('change', '#referentiel-chooser', function() {
console.log('change', \$(this).val());
window.location.href = \"{{ app.request.pathinfo }}?referentiel=\" + \$(this).val();
})
})
</script>
{% endblock %}
", "Reporting/Dashboard/index.html.twig", "/var/www/madis/templates/Reporting/Dashboard/index.html.twig");
}
}