var/cache/dev/twig/8d/8da4b91778c9c670a202a704eba317e8.php line 41

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* Reporting/Dashboard/index.html.twig */
  14. class __TwigTemplate_e029414aa09457705051c0c6ca907c9c extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'body_head' => [$this'block_body_head'],
  24.             'breadcrumb' => [$this'block_breadcrumb'],
  25.             'body' => [$this'block_body'],
  26.             'javascripts' => [$this'block_javascripts'],
  27.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 1
  32.         return "base.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Reporting/Dashboard/index.html.twig"));
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Reporting/Dashboard/index.html.twig"));
  41.         // line 3
  42.         $context["bodyClass"] = "reporting_dashboard";
  43.         // line 4
  44.         $context["menuItem"] = "reporting_dashboard";
  45.         // line 1
  46.         $this->parent $this->loadTemplate("base.html.twig""Reporting/Dashboard/index.html.twig"1);
  47.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  48.         
  49.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  50.         
  51.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  52.     }
  53.     // line 6
  54.     public function block_body_head($context, array $blocks = [])
  55.     {
  56.         $macros $this->macros;
  57.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body_head"));
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body_head"));
  61.         // line 7
  62.         echo "    <h1>
  63.         ";
  64.         // line 8
  65.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("reporting.dashboard.title.index"), "html"nulltrue);
  66.         echo "
  67.         <small>";
  68.         // line 9
  69.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse9), "collectivity", [], "any"falsefalsefalse9), "html"nulltrue);
  70.         echo "</small>
  71.     </h1>
  72. ";
  73.         
  74.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  75.         
  76.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  77.     }
  78.     // line 13
  79.     public function block_breadcrumb($context, array $blocks = [])
  80.     {
  81.         $macros $this->macros;
  82.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  83.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""breadcrumb"));
  84.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  85.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""breadcrumb"));
  86.         // line 14
  87.         echo "    ";
  88.         $context["breadcrumb"] = [];
  89.         // line 15
  90.         echo "    ";
  91.         $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); })())]));
  92.         
  93.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  94.         
  95.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  96.     }
  97.     // line 18
  98.     public function block_body($context, array $blocks = [])
  99.     {
  100.         $macros $this->macros;
  101.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  102.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  103.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  104.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  105.         // line 19
  106.         echo "    <div class=\"tdb\">
  107.         <div class=\"row\">
  108.             ";
  109.         // line 22
  110.         echo "            <div class=\"col-md-6\">
  111.                 <div class=\"row\">
  112.                     ";
  113.         // line 25
  114.         echo "                    <div class=\"col-md-6\">
  115.                         <div class=\"box box-solid\">
  116.                             <div class=\"box-header with-border\"><h3 class=\"box-title\">Sous-traitants</h3></div>
  117.                             <div class=\"box-body\">
  118.                                 ";
  119.         // line 29
  120.         if ((== twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse29), "all", [], "any"falsefalsefalse29))) {
  121.             // line 30
  122.             echo "                                    Aucune donnée à afficher
  123.                                 ";
  124.         } else {
  125.             // line 32
  126.             echo "                                    <div class=\"col-sm-6 col-sm-offset-0 col-xs-4 col-xs-offset-1 text-center\">
  127.                                         <canvas id=\"contractor-clauses\" width=\"400\" height=\"400\"></canvas>
  128.                                         <p>";
  129.             // line 34
  130.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("reporting.dashboard.contractor.contractual_clauses_verified.title"), "html"nulltrue);
  131.             echo "</p>
  132.                                     </div>
  133.                                     <div class=\"col-sm-6 col-sm-offset-0 col-xs-4 col-xs-offset-1 text-center\">
  134.                                         <canvas id=\"contractor-adopted-security-features\" width=\"400\" height=\"400\"></canvas>
  135.                                         <p>";
  136.             // line 38
  137.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("reporting.dashboard.contractor.adopted_security_features.title"), "html"nulltrue);
  138.             echo "</p>
  139.                                     </div>
  140.                                     <div class=\"col-sm-6 col-sm-offset-0 col-xs-4 col-xs-offset-1 text-center\">
  141.                                         <canvas id=\"contractor-maintains-treatment-register\" width=\"400\" height=\"400\"></canvas>
  142.                                         <p>";
  143.             // line 42
  144.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("reporting.dashboard.contractor.maintains_treatment_register.title"), "html"nulltrue);
  145.             echo "</p>
  146.                                     </div>
  147.                                     <div class=\"col-sm-6 col-sm-offset-0 col-xs-4 col-xs-offset-1 text-center\">
  148.                                         <canvas id=\"contractor-sending-data-outside-eu\" width=\"400\" height=\"400\"></canvas>
  149.                                         <p>";
  150.             // line 46
  151.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("reporting.dashboard.contractor.sending_data_outside_eu.title"), "html"nulltrue);
  152.             echo "</p>
  153.                                     </div>
  154.                                 ";
  155.         }
  156.         // line 49
  157.         echo "                            </div>
  158.                         </div>
  159.                     </div>
  160.                     <div class=\"col-md-6\">
  161.                         ";
  162.         // line 54
  163.         echo "                        <div class=\"small-box bg-yellow\">
  164.                             <div class=\"inner\">
  165.                                 <h3>";
  166.         // line 56
  167.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse56), "value", [], "any"falsefalsefalse56), "status", [], "any"falsefalsefalse56), "toProcess", [], "any"falsefalsefalse56), "html"nulltrue);
  168.         echo "</h3>
  169.                                 <p>Demandes à traiter</p>
  170.                             </div>
  171.                             <div class=\"icon\">
  172.                                 <i class=\"fa fa-users\"></i>
  173.                             </div>
  174.                             <a aria-label=\"Plus d'informations\" href=\"";
  175.         // line 63
  176.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("registry_request_list");
  177.         echo "\" class=\"small-box-footer\">
  178.                                 Plus d'informations <i class=\"fa fa-arrow-circle-right\"></i>
  179.                             </a>
  180.                         </div>
  181.                         <div class=\"box box-solid\">
  182.                             <div class=\"box-header with-border\"><h3 class=\"box-title\">Demandes</h3></div>
  183.                             <div class=\"box-body\">
  184.                                 ";
  185.         // line 70
  186.         if ((== twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse70), "value", [], "any"falsefalsefalse70), "all", [], "any"falsefalsefalse70))) {
  187.             // line 71
  188.             echo "                                    Aucune donnée à afficher
  189.                                 ";
  190.         } else {
  191.             // line 73
  192.             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;\">
  193.                                         <canvas id=\"request-type\" width=\"500\" height=\"500\"></canvas>
  194.                                         <p>";
  195.             // line 75
  196.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("reporting.dashboard.request.type.title"), "html"nulltrue);
  197.             echo "</p>
  198.                                     </div>
  199.                                     <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;\">
  200.                                         <canvas id=\"request-status\" width=\"500\" height=\"500\"></canvas>
  201.                                         <p>";
  202.             // line 79
  203.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("reporting.dashboard.request.status.title"), "html"nulltrue);
  204.             echo "</p>
  205.                                     </div>
  206.                                 ";
  207.         }
  208.         // line 82
  209.         echo "                            </div>
  210.                         </div>
  211.                     </div>
  212.                 </div>
  213.                 <div class=\"row\">
  214.                     <div class=\"col-md-12\">
  215.                         ";
  216.         // line 89
  217.         echo "                        <div class=\"box box-solid\">
  218.                             <div class=\"box-header with-border\"><h3 class=\"box-title\">Indice de maturité</h3></div>
  219.                             <div class=\"box-body\">
  220.                                 <style>
  221.                                     .dropdown.bootstrap-select {
  222.                                         width: 100% !important;
  223.                                     }
  224.                                 </style>
  225.                                 <select class=\"selectpicker\" id=\"referentiel-chooser\">
  226.                                     ";
  227.         // line 98
  228.         $context['_parent'] = $context;
  229.         $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); })()));
  230.         foreach ($context['_seq'] as $context["_key"] => $context["ref"]) {
  231.             // line 99
  232.             echo "                                        <option value=\"";
  233.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["ref"], "id", [], "any"falsefalsefalse99), "html"nulltrue);
  234.             echo "\" ";
  235.             if ((twig_get_attribute($this->env$this->source$context["ref"], "id", [], "any"falsefalsefalse99) == 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"falsefalsefalse99))) {
  236.                 echo "selected";
  237.             }
  238.             echo ">";
  239.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["ref"], "name", [], "any"falsefalsefalse99), "html"nulltrue);
  240.             echo "</option>
  241.                                     ";
  242.         }
  243.         $_parent $context['_parent'];
  244.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ref'], $context['_parent'], $context['loop']);
  245.         $context array_intersect_key($context$_parent) + $_parent;
  246.         // line 101
  247.         echo "                                </select>
  248.                                 <div style=\"margin-top: 1em\">
  249.                                     ";
  250.         // line 103
  251.         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"falsefalsefalse103))) {
  252.             // line 104
  253.             echo "                                        Aucun indice à afficher
  254.                                     ";
  255.         } else {
  256.             // line 106
  257.             echo "                                        ";
  258.             if (((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["data"] ?? null), "maturity", [], "any"falsetruefalse106), "new", [], "any"truetruefalse106) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["data"] ?? null), "maturity", [], "any"falsetruefalse106), "new", [], "any"falsetruefalse106), "data", [], "any"truetruefalse106)) && (twig_length_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse106), "new", [], "any"falsefalsefalse106), "data", [], "any"falsefalsefalse106)) >= 3))) {
  259.                 // line 107
  260.                 echo "
  261.                                         <canvas id=\"maturity-radar\"></canvas>
  262.                                             ";
  263.             } else {
  264.                 // line 110
  265.                 echo "                                            Le référentiel contient moins de trois sections
  266.                                         ";
  267.             }
  268.             // line 112
  269.             echo "                                    ";
  270.         }
  271.         // line 113
  272.         echo "                                </div>
  273.                             </div>
  274.                         </div>
  275.                         ";
  276.         // line 118
  277.         echo "                        <div class=\"box box-solid\">
  278.                             <div class=\"box-header with-border\"><h3 class=\"box-title\">Mesures de sécurité</h3></div>
  279.                             <div class=\"box-body\">
  280.                                 ";
  281.         // line 121
  282.         if ((== twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse121), "value", [], "any"falsefalsefalse121), "numeric", [], "any"falsefalsefalse121))) {
  283.             // line 122
  284.             echo "                                    Aucun traitement utilisable pour ce graphe
  285.                                 ";
  286.         } else {
  287.             // line 124
  288.             echo "                                    <canvas id=\"treatment-bar\"></canvas>
  289.                                 ";
  290.         }
  291.         // line 126
  292.         echo "                            </div>
  293.                         </div>
  294.                     </div>
  295.                 </div>
  296.                 ";
  297.         // line 130
  298.         if (((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse130), "collectivity", [], "any"falsefalsefalse130), "hasModuleConformiteTraitement", [], "any"falsefalsefalse130) == true) || (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 131
  299. (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'131$this->source); })()), "user", [], "any"falsefalsefalse131), "collectivity", [], "any"falsefalsefalse131), "hasModuleConformiteOrganisation", [], "any"falsefalsefalse131) == true))) {
  300.             // line 132
  301.             echo "                    <div class=\"row\">
  302.                         <div class=\"col-md-12\">
  303.                             ";
  304.             // line 135
  305.             echo "                            ";
  306.             if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse135), "collectivity", [], "any"falsefalsefalse135), "hasModuleConformiteTraitement", [], "any"falsefalsefalse135) == true)) {
  307.                 // line 136
  308.                 echo "                                <div class=\"box box-solid\">
  309.                                     <div class=\"box-header with-border\"><h3 class=\"box-title\">Conformité des traitements</h3></div>
  310.                                     <div class=\"box-body\">
  311.                                         ";
  312.                 // line 139
  313.                 if (twig_test_empty(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse139), "data", [], "any"falsefalsefalse139))) {
  314.                     // line 140
  315.                     echo "                                            Aucune donnée à afficher
  316.                                         ";
  317.                 } else {
  318.                     // line 142
  319.                     echo "                                            <canvas id=\"conformiteTraitement-pie\"></canvas>
  320.                                         ";
  321.                 }
  322.                 // line 144
  323.                 echo "                                    </div>
  324.                                 </div>
  325.                             ";
  326.             }
  327.             // line 147
  328.             echo "                        </div>
  329.                     </div>
  330.                 ";
  331.         }
  332.         // line 150
  333.         echo "            </div>
  334.             ";
  335.         // line 153
  336.         echo "            <div class=\"col-md-6\">
  337.                 <div class=\"row\">
  338.                     ";
  339.         // line 156
  340.         echo "                    <div class=\"col-sm-6 col-xs-12\">
  341.                         ";
  342.         // line 157
  343.         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse157), "collectivity", [], "any"falsefalsefalse157), "hasModuleConformiteTraitement", [], "any"falsefalsefalse157) == true)) {
  344.             // line 158
  345.             echo "                            <div class=\"small-box bg-light-blue\">
  346.                                 <div class=\"inner\">
  347.                                     <h3>";
  348.             // line 160
  349.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse160), "toDo", [], "any"falsefalsefalse160), "html"nulltrue);
  350.             echo "</h3>
  351.                                     <p>AIPD à réaliser</p>
  352.                                 </div>
  353.                                 <div class=\"icon\">
  354.                                     <i class=\"fa fa-clipboard-list\"></i>
  355.                                 </div>
  356.                                 <a aria-label=\"Plus d'informations\" href=\"";
  357.             // line 166
  358.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("registry_conformite_traitement_list");
  359.             echo "\" class=\"small-box-footer\">
  360.                                     Plus d'informations <i class=\"fa fa-arrow-circle-right\"></i>
  361.                                 </a>
  362.                             </div>
  363.                         ";
  364.         }
  365.         // line 171
  366.         echo "                    </div>
  367.                     ";
  368.         // line 174
  369.         echo "                    <div class=\"col-sm-6 col-xs-12\">
  370.                         <div class=\"small-box bg-aqua\">
  371.                             <div class=\"inner\">
  372.                                 <h3>";
  373.         // line 177
  374.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse177), "value", [], "any"falsefalsefalse177), "planified", [], "any"falsefalsefalse177), "html"nulltrue);
  375.         echo "</h3>
  376.                                 <p>Actions planifiées</p>
  377.                             </div>
  378.                             <div class=\"icon\">
  379.                                 <i class=\"fa fa-bullseye\"></i>
  380.                             </div>
  381.                             <a aria-label=\"Plus d'informations\" href=\"";
  382.         // line 183
  383.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("registry_mesurement_action_plan");
  384.         echo "\" class=\"small-box-footer\">
  385.                                 Plus d'informations <i class=\"fa fa-arrow-circle-right\"></i>
  386.                             </a>
  387.                         </div>
  388.                     </div>
  389.                 </div>
  390.                 <div class=\"row\">
  391.                     ";
  392.         // line 191
  393.         echo "                    <div class=\"col-sm-6 col-xs-12\">
  394.                         <div class=\"small-box bg-red\">
  395.                             <div class=\"inner\">
  396.                                 <h3>";
  397.         // line 194
  398.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse194), "value", [], "any"falsefalsefalse194), "all", [], "any"falsefalsefalse194), "html"nulltrue);
  399.         echo "</h3>
  400.                                 <p>Violations</p>
  401.                             </div>
  402.                             <div class=\"icon\">
  403.                                 <i class=\"fa fa-exclamation-circle\"></i>
  404.                             </div>
  405.                             <a aria-label=\"Plus d'informations\" href=\"";
  406.         // line 200
  407.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("registry_violation_list");
  408.         echo "\" class=\"small-box-footer\">
  409.                                 Plus d'informations <i class=\"fa fa-arrow-circle-right\"></i>
  410.                             </a>
  411.                         </div>
  412.                     </div>
  413.                     ";
  414.         // line 207
  415.         echo "                    <div class=\"col-sm-6 col-xs-12\">
  416.                         <div class=\"small-box bg-green\">
  417.                             <div class=\"inner\">
  418.                                 <h3>";
  419.         // line 210
  420.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse210), "value", [], "any"falsefalsefalse210), "applied", [], "any"falsefalsefalse210), "html"nulltrue);
  421.         echo "</h3>
  422.                                 <p>Actions mises en place</p>
  423.                             </div>
  424.                             <div class=\"icon\">
  425.                                 <i class=\"fa fa-adjust\"></i>
  426.                             </div>
  427.                             <a aria-label=\"Plus d'informations\" href=\"";
  428.         // line 216
  429.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("registry_mesurement_list");
  430.         echo "\" class=\"small-box-footer\">
  431.                                 Plus d'informations <i class=\"fa fa-arrow-circle-right\"></i>
  432.                             </a>
  433.                         </div>
  434.                     </div>
  435. ";
  436.         // line 229
  437.         echo "
  438.                 </div>
  439.                 <div class=\"row\">
  440.                     <div class=\"col-md-12\">
  441.                         <div class=\"box box-warning\">
  442.                             <div class=\"box-header with-border\"><h3 class=\"box-title\">Plan d'actions <small>";
  443.         // line 234
  444.         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"nulltrue);
  445.         echo " prochaines</small></h3></div>
  446.                             <div class=\"box-body\">
  447.                                 <table role=\"presentation\" class=\"table table-striped table-bordered\">
  448.                                     <thead>
  449.                                     <tr>
  450.                                         <th scope=\"col\">";
  451.         // line 239
  452.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("registry.mesurement.list.name"), "html"nulltrue);
  453.         echo "</th>
  454.                                         <th scope=\"col\">";
  455.         // line 240
  456.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("registry.mesurement.list.planification_date"), "html"nulltrue);
  457.         echo "</th>
  458.                                         <th scope=\"col\">";
  459.         // line 241
  460.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("registry.mesurement.list.priority"), "html"nulltrue);
  461.         echo "</th>
  462.                                         <th scope=\"col\">";
  463.         // line 242
  464.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("registry.mesurement.list.manager"), "html"nulltrue);
  465.         echo "</th>
  466.                                         <th scope=\"col\">";
  467.         // line 243
  468.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.action_link"), "html"nulltrue);
  469.         echo "</th>
  470.                                     </tr>
  471.                                     </thead>
  472.                                     <tbody>
  473.                                     ";
  474.         // line 248
  475.         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); })()))) {
  476.             // line 249
  477.             echo "                                        <tr>
  478.                                             <td colspan=\"5\" style=\"text-align: center\">
  479.                                                 Aucune action planifiée
  480.                                             </td>
  481.                                         </tr>
  482.                                     ";
  483.         }
  484.         // line 255
  485.         echo "                                    ";
  486.         $context['_parent'] = $context;
  487.         $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); })()));
  488.         foreach ($context['_seq'] as $context["_key"] => $context["action"]) {
  489.             // line 256
  490.             echo "                                        <tr>
  491.                                             <td>";
  492.             // line 257
  493.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["action"], "name", [], "any"falsefalsefalse257), "html"nulltrue);
  494.             echo "</td>
  495.                                             <td>";
  496.             // line 258
  497.             echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["action"], "planificationDate", [], "any"falsefalsefalse258), "d/m/Y"), "html"nulltrue);
  498.             echo "</td>
  499.                                             <td>
  500.                                                 ";
  501.             // line 260
  502.             $context["key"] = twig_get_attribute($this->env$this->source$context["action"], "priority", [], "any"falsefalsefalse260);
  503.             // line 261
  504.             echo "                                                ";
  505.             if ( !(null === (isset($context["key"]) || array_key_exists("key"$context) ? $context["key"] : (function () { throw new RuntimeError('Variable "key" does not exist.'261$this->source); })()))) {
  506.                 // line 262
  507.                 echo "                                                    ";
  508.                 if (((isset($context["key"]) || array_key_exists("key"$context) ? $context["key"] : (function () { throw new RuntimeError('Variable "key" does not exist.'262$this->source); })()) === "low")) {
  509.                     // line 263
  510.                     echo "                                                        <span class=\"badge bg-blue\">";
  511.                     echo twig_escape_filter($this->envtwig_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"falsefalsefalse263), "html"nulltrue);
  512.                     echo "</span>
  513.                                                     ";
  514.                 } elseif ((                // line 264
  515. (isset($context["key"]) || array_key_exists("key"$context) ? $context["key"] : (function () { throw new RuntimeError('Variable "key" does not exist.'264$this->source); })()) === "normal")) {
  516.                     // line 265
  517.                     echo "                                                        <span class=\"badge bg-yellow\">";
  518.                     echo twig_escape_filter($this->envtwig_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"falsefalsefalse265), "html"nulltrue);
  519.                     echo "</span>
  520.                                                     ";
  521.                 } elseif ((                // line 266
  522. (isset($context["key"]) || array_key_exists("key"$context) ? $context["key"] : (function () { throw new RuntimeError('Variable "key" does not exist.'266$this->source); })()) === "high")) {
  523.                     // line 267
  524.                     echo "                                                        <span class=\"badge bg-red\">";
  525.                     echo twig_escape_filter($this->envtwig_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"falsefalsefalse267), "html"nulltrue);
  526.                     echo "</span>
  527.                                                     ";
  528.                 }
  529.                 // line 269
  530.                 echo "                                                ";
  531.             }
  532.             // line 270
  533.             echo "                                            </td>
  534.                                             <td>";
  535.             // line 271
  536.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["action"], "manager", [], "any"falsefalsefalse271), "html"nulltrue);
  537.             echo "</td>
  538.                                             <td>
  539.                                                 <a aria-label=\"Chercher\" href=\"/actions-de-protection/visualiser/";
  540.             // line 273
  541.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["action"], "id", [], "any"falsefalsefalse273), "html"nulltrue);
  542.             echo "\" ><i class=\"fas fa-search\"></i></a>
  543.                                             </td>
  544.                                         </tr>
  545.                                     ";
  546.         }
  547.         $_parent $context['_parent'];
  548.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['action'], $context['_parent'], $context['loop']);
  549.         $context array_intersect_key($context$_parent) + $_parent;
  550.         // line 277
  551.         echo "                                    </tbody>
  552.                                 </table>
  553.                             </div>
  554.                         </div>
  555.                     </div>
  556.                 </div>
  557.                 <div class=\"row\">
  558.                     ";
  559.         // line 284
  560.         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse284), "collectivity", [], "any"falsefalsefalse284), "hasModuleConformiteOrganisation", [], "any"falsefalsefalse284) == true)) {
  561.             // line 285
  562.             echo "                        <div class=\"col-md-12\">
  563.                             ";
  564.             // line 287
  565.             echo "                            <div class=\"box box-solid\">
  566.                                 <div class=\"box-header with-border\"><h3 class=\"box-title\">Conformité de la structure</h3></div>
  567.                                 ";
  568.             // line 289
  569.             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"falsefalsefalse289))) {
  570.                 // line 290
  571.                 echo "                                    <div class=\"box-body\">
  572.                                         Aucune donnée à afficher
  573.                                     </div>
  574.                                 ";
  575.             } else {
  576.                 // line 294
  577.                 echo "                                    <div class=\"box-body no-padding\">
  578.                                         <table role=\"presentation\" class=\"table table-striped\">
  579.                                             <thead>
  580.                                             <tr>
  581.                                                 <th scope=\"col\">Processus</th>
  582.                                                 <th scope=\"col\">Progression</th>
  583.                                                 <th style=\"width: 40px\" scope=\"col\">Conformité</th>
  584.                                             </tr>
  585.                                             </thead>
  586.                                             <tbody>
  587.                                             ";
  588.                 // line 304
  589.                 $context['_parent'] = $context;
  590.                 $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"falsefalsefalse304));
  591.                 foreach ($context['_seq'] as $context["_key"] => $context["conformite"]) {
  592.                     // line 305
  593.                     echo "                                                ";
  594.                     $context["score"] = ((twig_get_attribute($this->env$this->source$context["conformite"], "conformite", [], "array"falsefalsefalse305) / 5) * 100);
  595.                     // line 306
  596.                     echo "                                                ";
  597.                     if (((isset($context["score"]) || array_key_exists("score"$context) ? $context["score"] : (function () { throw new RuntimeError('Variable "score" does not exist.'306$this->source); })()) < 50)) {
  598.                         // line 307
  599.                         echo "                                                    ";
  600.                         $context["color"] = "red";
  601.                         // line 308
  602.                         echo "
  603.                                                 ";
  604.                     } elseif ((                    // line 309
  605. (isset($context["score"]) || array_key_exists("score"$context) ? $context["score"] : (function () { throw new RuntimeError('Variable "score" does not exist.'309$this->source); })()) < 70)) {
  606.                         // line 310
  607.                         echo "                                                    ";
  608.                         $context["color"] = "yellow";
  609.                         // line 311
  610.                         echo "                                                ";
  611.                     } else {
  612.                         // line 312
  613.                         echo "                                                    ";
  614.                         $context["color"] = "green";
  615.                         // line 313
  616.                         echo "                                                ";
  617.                     }
  618.                     // line 314
  619.                     echo "                                                <tr>
  620.                                                     <td>";
  621.                     // line 315
  622.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["conformite"], "processus", [], "array"falsefalsefalse315), "html"nulltrue);
  623.                     echo "</td>
  624.                                                     <td>
  625.                                                         <div class=\"progress progress-xs\">
  626.                                                             <div class=\"progress-bar progress-bar-";
  627.                     // line 318
  628.                     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"nulltrue);
  629.                     echo "\" style=\"width: ";
  630.                     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"nulltrue);
  631.                     echo "%\"></div>
  632.                                                         </div>
  633.                                                     </td>
  634.                                                     <td>
  635.                                                         <span style=\"min-width: 100%\" class=\"badge bg-";
  636.                     // line 322
  637.                     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"nulltrue);
  638.                     echo "\">";
  639.                     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"nulltrue);
  640.                     echo "%</span>
  641.                                                     </td>
  642.                                                 </tr>
  643.                                             ";
  644.                 }
  645.                 $_parent $context['_parent'];
  646.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['conformite'], $context['_parent'], $context['loop']);
  647.                 $context array_intersect_key($context$_parent) + $_parent;
  648.                 // line 326
  649.                 echo "                                            </tbody>
  650.                                         </table>
  651.                                     </div>
  652.                                 ";
  653.             }
  654.             // line 330
  655.             echo "                            </div>
  656.                         </div>
  657.                     ";
  658.         }
  659.         // line 333
  660.         echo "                </div>
  661.             </div>
  662.         </div>
  663.         ";
  664.         // line 338
  665.         echo "        <div class=\"row\">
  666.             <div class=\"col-md-12\">
  667.                 <div class=\"box box-solid\">
  668.                     <div class=\"box-header with-border\">
  669.                         <h3 class=\"box-title\">Journalisation <small>";
  670.         // line 342
  671.         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"nulltrue);
  672.         echo " dernières actions</small></h3>
  673.                     </div>
  674.                     <div class=\"box-body no-padding\">
  675.                         <table role=\"presentation\" class=\"table\">
  676.                             <thead>
  677.                             <tr>
  678.                                 <th scope=\"col\">Nom utilisateur</th>
  679.                                 <th scope=\"col\">Email utilisateur</th>
  680.                                 <th scope=\"col\">Date</th>
  681.                                 <th scope=\"col\">Sujet</th>
  682.                                 <th scope=\"col\">Action</th>
  683.                                 <th scope=\"col\">Nom</th>
  684.                                 <th scope=\"col\">Lien</th>
  685.                             </tr>
  686.                             </thead>
  687.                             <tbody>
  688.                             ";
  689.         // line 358
  690.         $context['_parent'] = $context;
  691.         $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"falsefalsefalse358));
  692.         foreach ($context['_seq'] as $context["_key"] => $context["logJournal"]) {
  693.             // line 359
  694.             echo "                                ";
  695.             $context["logJournalLink"] = $this->extensions['App\Domain\Reporting\Twig\Extension\LogJournalExtension']->getLogJournalLink($context["logJournal"]);
  696.             // line 360
  697.             echo "                                <tr>
  698.                                     <td>";
  699.             // line 361
  700.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["logJournal"], "userFullName", [], "any"falsefalsefalse361), "html"nulltrue);
  701.             echo "</td>
  702.                                     <td>";
  703.             // line 362
  704.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["logJournal"], "userEmail", [], "any"falsefalsefalse362), "html"nulltrue);
  705.             echo "</td>
  706.                                     <td>";
  707.             // line 363
  708.             echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["logJournal"], "date", [], "any"falsefalsefalse363), "d/m/Y"), "html"nulltrue);
  709.             echo "</td>
  710.                                     <td>";
  711.             // line 364
  712.             ((twig_get_attribute($this->env$this->source$context["logJournal"], "subjectType", [], "any"falsefalsefalse364)) ? (print (twig_escape_filter($this->env$this->env->getFilter('dictionary')->getCallable()(twig_get_attribute($this->env$this->source$context["logJournal"], "subjectType", [], "any"falsefalsefalse364), "reporting_log_journal_subject"), "html"nulltrue))) : (print ("")));
  713.             echo "</td>
  714.                                     <td>";
  715.             // line 365
  716.             ((twig_get_attribute($this->env$this->source$context["logJournal"], "action", [], "any"falsefalsefalse365)) ? (print (twig_escape_filter($this->env$this->env->getFilter('dictionary')->getCallable()(twig_get_attribute($this->env$this->source$context["logJournal"], "action", [], "any"falsefalsefalse365), "reporting_log_journal_action"), "html"nulltrue))) : (print ("")));
  717.             echo "</td>
  718.                                     <td>";
  719.             // line 366
  720.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["logJournal"], "subjectName", [], "any"falsefalsefalse366), "html"nulltrue);
  721.             echo "</td>
  722.                                     <td>
  723.                                         ";
  724.             // line 368
  725.             if (twig_get_attribute($this->env$this->source$context["logJournal"], "isDeleted", [], "any"falsefalsefalse368)) {
  726.                 // line 369
  727.                 echo "                                            ";
  728.                 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"nulltrue);
  729.                 echo "
  730.                                         ";
  731.             } elseif ( !(null ===             // line 370
  732. (isset($context["logJournalLink"]) || array_key_exists("logJournalLink"$context) ? $context["logJournalLink"] : (function () { throw new RuntimeError('Variable "logJournalLink" does not exist.'370$this->source); })()))) {
  733.                 // line 371
  734.                 echo "                                            <a aria-label=\"Lien\" href=\"";
  735.                 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"nulltrue);
  736.                 echo "\">Lien</a>
  737.                                         ";
  738.             }
  739.             // line 373
  740.             echo "                                    </td>
  741.                                 </tr>
  742.                             ";
  743.         }
  744.         $_parent $context['_parent'];
  745.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['logJournal'], $context['_parent'], $context['loop']);
  746.         $context array_intersect_key($context$_parent) + $_parent;
  747.         // line 376
  748.         echo "                            </tbody>
  749.                         </table>
  750.                     </div>
  751.                 </div>
  752.             </div>
  753.         </div>
  754.     </div>
  755.     ";
  756.         
  757.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  758.         
  759.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  760.     }
  761.     // line 385
  762.     public function block_javascripts($context, array $blocks = [])
  763.     {
  764.         $macros $this->macros;
  765.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  766.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  767.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  768.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  769.         // line 386
  770.         echo "    <script src=\"https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.min.js\"></script>
  771.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.bundle.min.js\"></script>
  772.     ";
  773.         // line 390
  774.         echo "    <script>
  775.         let labelYes = '";
  776.         // line 391
  777.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.yes"), "html"nulltrue);
  778.         echo "';
  779.         let labelNo = '";
  780.         // line 392
  781.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.no"), "html"nulltrue);
  782.         echo "';
  783.         let colorBlue = 'rgba(54, 162, 235, 1)';
  784.         let colorBlueOpacity = 'rgba(54, 162, 235, 0.5)';
  785.         let colorGreen = ' rgba(48, 183, 44, 1)';
  786.         let colorGreenOpacity = ' rgba(48, 183, 44, 0.5)';
  787.         let colorPurple = 'rgba(153, 51, 204, 1)';
  788.         let colorPurpleOpacity = 'rgba(153, 51, 204, 0.5)';
  789.         let colorRed = 'rgba(255, 99, 132, 1)';
  790.         let colorRedOpacity = 'rgba(255, 99, 132, 0.5)';
  791.         let colorTeal = 'rgba(0, 105, 92, 1)';
  792.         let colorTealOpacity = 'rgba(0, 105, 92, 0.5)';
  793.         let colorOrange = 'rgb(255, 136, 0, 1)';
  794.         let colorOrangeOpacity = 'rgb(255, 136, 0, 0.5)';
  795.         let labelYesNo = [labelYes, labelNo];
  796.         // CONTRACTOR
  797.         let contractorClausesData = [";
  798.         // line 410
  799.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse410), "clauses", [], "any"falsefalsefalse410), "yes", [], "any"falsefalsefalse410), "html"nulltrue);
  800.         echo ", ";
  801.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse410), "clauses", [], "any"falsefalsefalse410), "no", [], "any"falsefalsefalse410), "html"nulltrue);
  802.         echo "];
  803.         let contractorAdoptedSecurityFeaturesData = [";
  804.         // line 411
  805.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse411), "adoptedSecurityFeatures", [], "any"falsefalsefalse411), "yes", [], "any"falsefalsefalse411), "html"nulltrue);
  806.         echo ", ";
  807.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse411), "adoptedSecurityFeatures", [], "any"falsefalsefalse411), "no", [], "any"falsefalsefalse411), "html"nulltrue);
  808.         echo "];
  809.         let contractorMaintainsTreatmentRegisterData = [";
  810.         // line 412
  811.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse412), "maintainsTreatmentRegister", [], "any"falsefalsefalse412), "yes", [], "any"falsefalsefalse412), "html"nulltrue);
  812.         echo ", ";
  813.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse412), "maintainsTreatmentRegister", [], "any"falsefalsefalse412), "no", [], "any"falsefalsefalse412), "html"nulltrue);
  814.         echo "];
  815.         let contractorSendingDataOutsideEuData = [";
  816.         // line 413
  817.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse413), "sendingDataOutsideEu", [], "any"falsefalsefalse413), "yes", [], "any"falsefalsefalse413), "html"nulltrue);
  818.         echo ", ";
  819.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse413), "sendingDataOutsideEu", [], "any"falsefalsefalse413), "no", [], "any"falsefalsefalse413), "html"nulltrue);
  820.         echo "];
  821.         // MESUREMENT
  822.         let mesurementStatusData = [";
  823.         // line 416
  824.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse416), "value", [], "any"falsefalsefalse416), "applied", [], "any"falsefalsefalse416), "html"nulltrue);
  825.         echo ", ";
  826.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse416), "value", [], "any"falsefalsefalse416), "planified", [], "any"falsefalsefalse416), "html"nulltrue);
  827.         echo ", ";
  828.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse416), "value", [], "any"falsefalsefalse416), "notApplied", [], "any"falsefalsefalse416), "html"nulltrue);
  829.         echo "];
  830.         // MATURITY
  831.         let maturityLabels = [];
  832.         let maturitySerieLabel = [];
  833.         let maturityData = [];
  834.         ";
  835.         // line 423
  836.         if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["data"] ?? null), "maturity", [], "any"falsetruefalse423), "new", [], "any"truetruefalse423)) {
  837.             // line 424
  838.             echo "            let tmpData1 = [];
  839.             maturitySerieLabel.push('";
  840.             // line 425
  841.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse425), "new", [], "any"falsefalsefalse425), "name", [], "any"falsefalsefalse425), "html"nulltrue);
  842.             echo "');
  843.             ";
  844.             // line 426
  845.             $context['_parent'] = $context;
  846.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse426), "new", [], "any"falsefalsefalse426), "data", [], "any"falsefalsefalse426));
  847.             foreach ($context['_seq'] as $context["position"] => $context["info"]) {
  848.                 // line 427
  849.                 echo "                maturityLabels.push('";
  850.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["info"], "name", [], "any"falsefalsefalse427), "html"nulltrue);
  851.                 echo "');
  852.                 tmpData1.push('";
  853.                 // line 428
  854.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["info"], "score", [], "any"falsefalsefalse428), "html"nulltrue);
  855.                 echo "');
  856.             ";
  857.             }
  858.             $_parent $context['_parent'];
  859.             unset($context['_seq'], $context['_iterated'], $context['position'], $context['info'], $context['_parent'], $context['loop']);
  860.             $context array_intersect_key($context$_parent) + $_parent;
  861.             // line 430
  862.             echo "            maturityData.push(tmpData1);
  863.         ";
  864.         }
  865.         // line 432
  866.         echo "        ";
  867.         if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["data"] ?? null), "maturity", [], "any"falsetruefalse432), "old", [], "any"truetruefalse432)) {
  868.             // line 433
  869.             echo "            let tmpData2 = [];
  870.             maturitySerieLabel.push('";
  871.             // line 434
  872.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse434), "old", [], "any"falsefalsefalse434), "name", [], "any"falsefalsefalse434), "html"nulltrue);
  873.             echo "');
  874.             ";
  875.             // line 435
  876.             $context['_parent'] = $context;
  877.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse435), "old", [], "any"falsefalsefalse435), "data", [], "any"falsefalsefalse435));
  878.             foreach ($context['_seq'] as $context["position"] => $context["info"]) {
  879.                 // line 436
  880.                 echo "                tmpData2.push('";
  881.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["info"], "score", [], "any"falsefalsefalse436), "html"nulltrue);
  882.                 echo "');
  883.             ";
  884.             }
  885.             $_parent $context['_parent'];
  886.             unset($context['_seq'], $context['_iterated'], $context['position'], $context['info'], $context['_parent'], $context['loop']);
  887.             $context array_intersect_key($context$_parent) + $_parent;
  888.             // line 438
  889.             echo "            maturityData.push(tmpData2);
  890.         ";
  891.         }
  892.         // line 440
  893.         echo "
  894.         // REQUEST
  895.         let requestTypeLabel = [
  896.             'Rectifier des données',
  897.             'Supprimer des données',
  898.             'Retirer le consentement',
  899.             'Accéder à des données',
  900.             'Portabilité des données',
  901.             'Limiter le traitement',
  902.             'Autre',
  903.         ];
  904.         let requestTypeData = [];
  905.         ";
  906.         // line 453
  907.         if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse453), "value", [], "any"falsefalsefalse453), "type", [], "any"falsefalsefalse453), "correct", [], "any"falsefalsefalse453)) {
  908.             // line 454
  909.             echo "            requestTypeData.push(";
  910.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse454), "value", [], "any"falsefalsefalse454), "type", [], "any"falsefalsefalse454), "correct", [], "any"falsefalsefalse454), "html"nulltrue);
  911.             echo ");
  912.         ";
  913.         } elseif (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 455
  914. (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'455$this->source); })()), "request", [], "any"falsefalsefalse455), "value", [], "any"falsefalsefalse455), "type", [], "any"falsefalsefalse455), "delete", [], "any"falsefalsefalse455)) {
  915.             // line 456
  916.             echo "            requestTypeData.push(";
  917.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse456), "value", [], "any"falsefalsefalse456), "type", [], "any"falsefalsefalse456), "delete", [], "any"falsefalsefalse456), "html"nulltrue);
  918.             echo ");
  919.         ";
  920.         } elseif (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 457
  921. (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'457$this->source); })()), "request", [], "any"falsefalsefalse457), "value", [], "any"falsefalsefalse457), "type", [], "any"falsefalsefalse457), "withdrawConsent", [], "any"falsefalsefalse457)) {
  922.             // line 458
  923.             echo "            requestTypeData.push(";
  924.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse458), "value", [], "any"falsefalsefalse458), "type", [], "any"falsefalsefalse458), "withdrawConsent", [], "any"falsefalsefalse458), "html"nulltrue);
  925.             echo ");
  926.         ";
  927.         } elseif (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 459
  928. (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'459$this->source); })()), "request", [], "any"falsefalsefalse459), "value", [], "any"falsefalsefalse459), "type", [], "any"falsefalsefalse459), "access", [], "any"falsefalsefalse459)) {
  929.             // line 460
  930.             echo "            requestTypeData.push(";
  931.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse460), "value", [], "any"falsefalsefalse460), "type", [], "any"falsefalsefalse460), "access", [], "any"falsefalsefalse460), "html"nulltrue);
  932.             echo ");
  933.         ";
  934.         } elseif (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 461
  935. (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'461$this->source); })()), "request", [], "any"falsefalsefalse461), "value", [], "any"falsefalsefalse461), "type", [], "any"falsefalsefalse461), "dataPortability", [], "any"falsefalsefalse461)) {
  936.             // line 462
  937.             echo "            requestTypeData.push(";
  938.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse462), "value", [], "any"falsefalsefalse462), "type", [], "any"falsefalsefalse462), "dataPortability", [], "any"falsefalsefalse462), "html"nulltrue);
  939.             echo ");
  940.         ";
  941.         } elseif (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 463
  942. (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'463$this->source); })()), "request", [], "any"falsefalsefalse463), "value", [], "any"falsefalsefalse463), "type", [], "any"falsefalsefalse463), "limitTreatment", [], "any"falsefalsefalse463)) {
  943.             // line 464
  944.             echo "            requestTypeData.push(";
  945.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse464), "value", [], "any"falsefalsefalse464), "type", [], "any"falsefalsefalse464), "limitTreatment", [], "any"falsefalsefalse464), "html"nulltrue);
  946.             echo ");
  947.         ";
  948.         } elseif (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 465
  949. (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'465$this->source); })()), "request", [], "any"falsefalsefalse465), "value", [], "any"falsefalsefalse465), "type", [], "any"falsefalsefalse465), "other", [], "any"falsefalsefalse465)) {
  950.             // line 466
  951.             echo "            requestTypeData.push(";
  952.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse466), "value", [], "any"falsefalsefalse466), "type", [], "any"falsefalsefalse466), "other", [], "any"falsefalsefalse466), "html"nulltrue);
  953.             echo ");
  954.         ";
  955.         }
  956.         // line 468
  957.         echo "
  958.         let requestStatusLabel = [
  959.             'Traité',
  960.             'À traiter',
  961.             'Non-recevable',
  962.         ];
  963.         let requestStatusData = [];
  964.         ";
  965.         // line 475
  966.         if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse475), "value", [], "any"falsefalsefalse475), "status", [], "any"falsefalsefalse475), "processed", [], "any"falsefalsefalse475)) {
  967.             // line 476
  968.             echo "            requestStatusData.push(";
  969.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse476), "value", [], "any"falsefalsefalse476), "status", [], "any"falsefalsefalse476), "processed", [], "any"falsefalsefalse476), "html"nulltrue);
  970.             echo ");
  971.         ";
  972.         } elseif (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 477
  973. (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'477$this->source); })()), "request", [], "any"falsefalsefalse477), "value", [], "any"falsefalsefalse477), "status", [], "any"falsefalsefalse477), "toProcess", [], "any"falsefalsefalse477)) {
  974.             // line 478
  975.             echo "            requestStatusData.push(";
  976.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse478), "value", [], "any"falsefalsefalse478), "status", [], "any"falsefalsefalse478), "toProcess", [], "any"falsefalsefalse478), "html"nulltrue);
  977.             echo ");
  978.         ";
  979.         } elseif (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 479
  980. (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'479$this->source); })()), "request", [], "any"falsefalsefalse479), "value", [], "any"falsefalsefalse479), "status", [], "any"falsefalsefalse479), "incomplete", [], "any"falsefalsefalse479)) {
  981.             // line 480
  982.             echo "            requestStatusData.push(";
  983.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse480), "value", [], "any"falsefalsefalse480), "status", [], "any"falsefalsefalse480), "incomplete", [], "any"falsefalsefalse480), "html"nulltrue);
  984.             echo ");
  985.         ";
  986.         }
  987.         // line 482
  988.         echo "
  989.         // TREATMENT
  990.         let treatmentLabels = [
  991.             'Contrôle d\\'accès',
  992.             'Traçabilité',
  993.             'Sauvegarde',
  994.             'Mises à jour',
  995.         ];
  996.         let treatmentDatasetYes = [];
  997.         let treatmentDatasetNo = [];
  998.         ";
  999.         // line 492
  1000.         $context['_parent'] = $context;
  1001.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse492), "value", [], "any"falsefalsefalse492), "data", [], "any"falsefalsefalse492));
  1002.         foreach ($context['_seq'] as $context["key"] => $context["item"]) {
  1003.             // line 493
  1004.             echo "            ";
  1005.             $context["yesItem"] = twig_get_attribute($this->env$this->source$context["item"], "yes", [], "any"falsefalsefalse493);
  1006.             // line 494
  1007.             echo "            ";
  1008.             $context["noItem"] = twig_get_attribute($this->env$this->source$context["item"], "no", [], "any"falsefalsefalse494);
  1009.             // line 495
  1010.             echo "            ";
  1011.             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))) {
  1012.                 // line 496
  1013.                 echo "            treatmentDatasetYes.push('";
  1014.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "yes", [], "any"falsefalsefalse496), "html"nulltrue);
  1015.                 echo "');
  1016.             treatmentDatasetNo.push('";
  1017.                 // line 497
  1018.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "no", [], "any"falsefalsefalse497), "html"nulltrue);
  1019.                 echo "');
  1020.             ";
  1021.             }
  1022.             // line 499
  1023.             echo "        ";
  1024.         }
  1025.         $_parent $context['_parent'];
  1026.         unset($context['_seq'], $context['_iterated'], $context['key'], $context['item'], $context['_parent'], $context['loop']);
  1027.         $context array_intersect_key($context$_parent) + $_parent;
  1028.         // line 500
  1029.         echo "
  1030.         // CONFORMITE TRAITEMENT
  1031.         let conformiteTraitementLabels = ";
  1032.         // line 502
  1033.         echo json_encode(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse502), "labels", [], "any"falsefalsefalse502));
  1034.         echo ";
  1035.         let conformiteTraitementData = [];
  1036.         ";
  1037.         // line 504
  1038.         if (twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse504), "data", [], "any"falsefalsefalse504)) {
  1039.             // line 505
  1040.             echo "            conformiteTraitementData = ";
  1041.             echo json_encode(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse505), "data", [], "any"falsefalsefalse505));
  1042.             echo ";
  1043.         ";
  1044.         }
  1045.         // line 507
  1046.         echo "        let conformiteTraitementColors = ";
  1047.         echo json_encode(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse507), "colors", [], "any"falsefalsefalse507));
  1048.         echo ";
  1049.     </script>
  1050.     ";
  1051.         // line 511
  1052.         echo "    ";
  1053.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("js/dashboard");
  1054.         echo "
  1055.     <script>
  1056.         \$(document).ready(function() {
  1057.             \$('body').on('change', '#referentiel-chooser', function() {
  1058.                 console.log('change', \$(this).val());
  1059.                 window.location.href = \"";
  1060.         // line 517
  1061.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse517), "pathinfo", [], "any"falsefalsefalse517), "html"nulltrue);
  1062.         echo "?referentiel=\" + \$(this).val();
  1063.             })
  1064.         })
  1065.     </script>
  1066. ";
  1067.         
  1068.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1069.         
  1070.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1071.     }
  1072.     /**
  1073.      * @codeCoverageIgnore
  1074.      */
  1075.     public function getTemplateName()
  1076.     {
  1077.         return "Reporting/Dashboard/index.html.twig";
  1078.     }
  1079.     /**
  1080.      * @codeCoverageIgnore
  1081.      */
  1082.     public function isTraitable()
  1083.     {
  1084.         return false;
  1085.     }
  1086.     /**
  1087.      * @codeCoverageIgnore
  1088.      */
  1089.     public function getDebugInfo()
  1090.     {
  1091.         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,);
  1092.     }
  1093.     public function getSourceContext()
  1094.     {
  1095.         return new Source("{% extends 'base.html.twig' %}
  1096. {% set bodyClass = 'reporting_dashboard' %}
  1097. {% set menuItem = 'reporting_dashboard' %}
  1098. {% block body_head %}
  1099.     <h1>
  1100.         {{ 'reporting.dashboard.title.index'|trans }}
  1101.         <small>{{ app.user.collectivity }}</small>
  1102.     </h1>
  1103. {% endblock %}
  1104. {% block breadcrumb %}
  1105.     {% set breadcrumb = [] %}
  1106.     {% include '_breadcrumb.html.twig' with {'breadcrumb': breadcrumb} %}
  1107. {% endblock %}
  1108. {% block body %}
  1109.     <div class=\"tdb\">
  1110.         <div class=\"row\">
  1111.             {# LEFT #}
  1112.             <div class=\"col-md-6\">
  1113.                 <div class=\"row\">
  1114.                     {# DETAIL : CONTRACTOR #}
  1115.                     <div class=\"col-md-6\">
  1116.                         <div class=\"box box-solid\">
  1117.                             <div class=\"box-header with-border\"><h3 class=\"box-title\">Sous-traitants</h3></div>
  1118.                             <div class=\"box-body\">
  1119.                                 {% if 0 == data.contractor.all %}
  1120.                                     Aucune donnée à afficher
  1121.                                 {% else %}
  1122.                                     <div class=\"col-sm-6 col-sm-offset-0 col-xs-4 col-xs-offset-1 text-center\">
  1123.                                         <canvas id=\"contractor-clauses\" width=\"400\" height=\"400\"></canvas>
  1124.                                         <p>{{ 'reporting.dashboard.contractor.contractual_clauses_verified.title'|trans }}</p>
  1125.                                     </div>
  1126.                                     <div class=\"col-sm-6 col-sm-offset-0 col-xs-4 col-xs-offset-1 text-center\">
  1127.                                         <canvas id=\"contractor-adopted-security-features\" width=\"400\" height=\"400\"></canvas>
  1128.                                         <p>{{ 'reporting.dashboard.contractor.adopted_security_features.title'|trans }}</p>
  1129.                                     </div>
  1130.                                     <div class=\"col-sm-6 col-sm-offset-0 col-xs-4 col-xs-offset-1 text-center\">
  1131.                                         <canvas id=\"contractor-maintains-treatment-register\" width=\"400\" height=\"400\"></canvas>
  1132.                                         <p>{{ 'reporting.dashboard.contractor.maintains_treatment_register.title'|trans }}</p>
  1133.                                     </div>
  1134.                                     <div class=\"col-sm-6 col-sm-offset-0 col-xs-4 col-xs-offset-1 text-center\">
  1135.                                         <canvas id=\"contractor-sending-data-outside-eu\" width=\"400\" height=\"400\"></canvas>
  1136.                                         <p>{{ 'reporting.dashboard.contractor.sending_data_outside_eu.title'|trans }}</p>
  1137.                                     </div>
  1138.                                 {% endif %}
  1139.                             </div>
  1140.                         </div>
  1141.                     </div>
  1142.                     <div class=\"col-md-6\">
  1143.                         {# REQUEST #}
  1144.                         <div class=\"small-box bg-yellow\">
  1145.                             <div class=\"inner\">
  1146.                                 <h3>{{ data.request.value.status.toProcess }}</h3>
  1147.                                 <p>Demandes à traiter</p>
  1148.                             </div>
  1149.                             <div class=\"icon\">
  1150.                                 <i class=\"fa fa-users\"></i>
  1151.                             </div>
  1152.                             <a aria-label=\"Plus d'informations\" href=\"{{ path('registry_request_list') }}\" class=\"small-box-footer\">
  1153.                                 Plus d'informations <i class=\"fa fa-arrow-circle-right\"></i>
  1154.                             </a>
  1155.                         </div>
  1156.                         <div class=\"box box-solid\">
  1157.                             <div class=\"box-header with-border\"><h3 class=\"box-title\">Demandes</h3></div>
  1158.                             <div class=\"box-body\">
  1159.                                 {% if 0 == data.request.value.all %}
  1160.                                     Aucune donnée à afficher
  1161.                                 {% else %}
  1162.                                     <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;\">
  1163.                                         <canvas id=\"request-type\" width=\"500\" height=\"500\"></canvas>
  1164.                                         <p>{{ 'reporting.dashboard.request.type.title'|trans }}</p>
  1165.                                     </div>
  1166.                                     <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;\">
  1167.                                         <canvas id=\"request-status\" width=\"500\" height=\"500\"></canvas>
  1168.                                         <p>{{ 'reporting.dashboard.request.status.title'|trans }}</p>
  1169.                                     </div>
  1170.                                 {% endif %}
  1171.                             </div>
  1172.                         </div>
  1173.                     </div>
  1174.                 </div>
  1175.                 <div class=\"row\">
  1176.                     <div class=\"col-md-12\">
  1177.                         {# DETAIL : MATURITY #}
  1178.                         <div class=\"box box-solid\">
  1179.                             <div class=\"box-header with-border\"><h3 class=\"box-title\">Indice de maturité</h3></div>
  1180.                             <div class=\"box-body\">
  1181.                                 <style>
  1182.                                     .dropdown.bootstrap-select {
  1183.                                         width: 100% !important;
  1184.                                     }
  1185.                                 </style>
  1186.                                 <select class=\"selectpicker\" id=\"referentiel-chooser\">
  1187.                                     {% for ref in referentiels %}
  1188.                                         <option value=\"{{ ref.id }}\" {% if ref.id == selected_ref.id %}selected{% endif %}>{{ ref.name }}</option>
  1189.                                     {% endfor %}
  1190.                                 </select>
  1191.                                 <div style=\"margin-top: 1em\">
  1192.                                     {% if data.maturity is empty %}
  1193.                                         Aucun indice à afficher
  1194.                                     {% else %}
  1195.                                         {% if data.maturity.new is defined and data.maturity.new.data is defined and data.maturity.new.data|length >= 3 %}
  1196.                                         <canvas id=\"maturity-radar\"></canvas>
  1197.                                             {% else %}
  1198.                                             Le référentiel contient moins de trois sections
  1199.                                         {% endif %}
  1200.                                     {% endif %}
  1201.                                 </div>
  1202.                             </div>
  1203.                         </div>
  1204.                         {# DETAIL : TREATMENTS #}
  1205.                         <div class=\"box box-solid\">
  1206.                             <div class=\"box-header with-border\"><h3 class=\"box-title\">Mesures de sécurité</h3></div>
  1207.                             <div class=\"box-body\">
  1208.                                 {% if 0 == data.treatment.value.numeric %}
  1209.                                     Aucun traitement utilisable pour ce graphe
  1210.                                 {% else %}
  1211.                                     <canvas id=\"treatment-bar\"></canvas>
  1212.                                 {% endif %}
  1213.                             </div>
  1214.                         </div>
  1215.                     </div>
  1216.                 </div>
  1217.                 {% if app.user.collectivity.hasModuleConformiteTraitement == true or
  1218.                     app.user.collectivity.hasModuleConformiteOrganisation == true %}
  1219.                     <div class=\"row\">
  1220.                         <div class=\"col-md-12\">
  1221.                             {# DETAIL : CONFORMITE TRAITEMENT #}
  1222.                             {% if app.user.collectivity.hasModuleConformiteTraitement == true %}
  1223.                                 <div class=\"box box-solid\">
  1224.                                     <div class=\"box-header with-border\"><h3 class=\"box-title\">Conformité des traitements</h3></div>
  1225.                                     <div class=\"box-body\">
  1226.                                         {% if data.conformiteTraitement.data is empty %}
  1227.                                             Aucune donnée à afficher
  1228.                                         {% else %}
  1229.                                             <canvas id=\"conformiteTraitement-pie\"></canvas>
  1230.                                         {% endif %}
  1231.                                     </div>
  1232.                                 </div>
  1233.                             {% endif %}
  1234.                         </div>
  1235.                     </div>
  1236.                 {% endif %}
  1237.             </div>
  1238.             {# RIGHT #}
  1239.             <div class=\"col-md-6\">
  1240.                 <div class=\"row\">
  1241.                     {# AIPD #}
  1242.                     <div class=\"col-sm-6 col-xs-12\">
  1243.                         {% if app.user.collectivity.hasModuleConformiteTraitement == true %}
  1244.                             <div class=\"small-box bg-light-blue\">
  1245.                                 <div class=\"inner\">
  1246.                                     <h3>{{ data.aipd.toDo }}</h3>
  1247.                                     <p>AIPD à réaliser</p>
  1248.                                 </div>
  1249.                                 <div class=\"icon\">
  1250.                                     <i class=\"fa fa-clipboard-list\"></i>
  1251.                                 </div>
  1252.                                 <a aria-label=\"Plus d'informations\" href=\"{{ path('registry_conformite_traitement_list') }}\" class=\"small-box-footer\">
  1253.                                     Plus d'informations <i class=\"fa fa-arrow-circle-right\"></i>
  1254.                                 </a>
  1255.                             </div>
  1256.                         {% endif %}
  1257.                     </div>
  1258.                     {# Action to realize #}
  1259.                     <div class=\"col-sm-6 col-xs-12\">
  1260.                         <div class=\"small-box bg-aqua\">
  1261.                             <div class=\"inner\">
  1262.                                 <h3>{{ data.mesurement.value.planified }}</h3>
  1263.                                 <p>Actions planifiées</p>
  1264.                             </div>
  1265.                             <div class=\"icon\">
  1266.                                 <i class=\"fa fa-bullseye\"></i>
  1267.                             </div>
  1268.                             <a aria-label=\"Plus d'informations\" href=\"{{ path('registry_mesurement_action_plan') }}\" class=\"small-box-footer\">
  1269.                                 Plus d'informations <i class=\"fa fa-arrow-circle-right\"></i>
  1270.                             </a>
  1271.                         </div>
  1272.                     </div>
  1273.                 </div>
  1274.                 <div class=\"row\">
  1275.                     {# VIOLATION #}
  1276.                     <div class=\"col-sm-6 col-xs-12\">
  1277.                         <div class=\"small-box bg-red\">
  1278.                             <div class=\"inner\">
  1279.                                 <h3>{{ data.violation.value.all }}</h3>
  1280.                                 <p>Violations</p>
  1281.                             </div>
  1282.                             <div class=\"icon\">
  1283.                                 <i class=\"fa fa-exclamation-circle\"></i>
  1284.                             </div>
  1285.                             <a aria-label=\"Plus d'informations\" href=\"{{ path('registry_violation_list') }}\" class=\"small-box-footer\">
  1286.                                 Plus d'informations <i class=\"fa fa-arrow-circle-right\"></i>
  1287.                             </a>
  1288.                         </div>
  1289.                     </div>
  1290.                     {# MESUREMENT : applied #}
  1291.                     <div class=\"col-sm-6 col-xs-12\">
  1292.                         <div class=\"small-box bg-green\">
  1293.                             <div class=\"inner\">
  1294.                                 <h3>{{ data.mesurement.value.applied }}</h3>
  1295.                                 <p>Actions mises en place</p>
  1296.                             </div>
  1297.                             <div class=\"icon\">
  1298.                                 <i class=\"fa fa-adjust\"></i>
  1299.                             </div>
  1300.                             <a aria-label=\"Plus d'informations\" href=\"{{ path('registry_mesurement_list') }}\" class=\"small-box-footer\">
  1301.                                 Plus d'informations <i class=\"fa fa-arrow-circle-right\"></i>
  1302.                             </a>
  1303.                         </div>
  1304.                     </div>
  1305. {#                    <div class=\"col-sm-12\">#}
  1306. {#                        {% if app_activate_notifications and app_notification_dashboard_shown == 'true' %}#}
  1307. {#                            #}{# {{app_notification_max_shown}} #}
  1308. {#                            <div id=\"notifications\" class=\"box box-solid\">#}
  1309. {#                                {{ block(\"body\", \"Notification/Notification/box.html.twig\") }}#}
  1310. {#                            </div>#}
  1311. {#                        {% endif %}#}
  1312. {#                    </div>#}
  1313.                 </div>
  1314.                 <div class=\"row\">
  1315.                     <div class=\"col-md-12\">
  1316.                         <div class=\"box box-warning\">
  1317.                             <div class=\"box-header with-border\"><h3 class=\"box-title\">Plan d'actions <small>{{ app_user_dashboard_action_plan_limit }} prochaines</small></h3></div>
  1318.                             <div class=\"box-body\">
  1319.                                 <table role=\"presentation\" class=\"table table-striped table-bordered\">
  1320.                                     <thead>
  1321.                                     <tr>
  1322.                                         <th scope=\"col\">{{ 'registry.mesurement.list.name'|trans }}</th>
  1323.                                         <th scope=\"col\">{{ 'registry.mesurement.list.planification_date'|trans }}</th>
  1324.                                         <th scope=\"col\">{{ 'registry.mesurement.list.priority'|trans }}</th>
  1325.                                         <th scope=\"col\">{{ 'registry.mesurement.list.manager'|trans }}</th>
  1326.                                         <th scope=\"col\">{{ 'label.action_link'|trans }}</th>
  1327.                                     </tr>
  1328.                                     </thead>
  1329.                                     <tbody>
  1330.                                     {% if not actions|length %}
  1331.                                         <tr>
  1332.                                             <td colspan=\"5\" style=\"text-align: center\">
  1333.                                                 Aucune action planifiée
  1334.                                             </td>
  1335.                                         </tr>
  1336.                                     {% endif %}
  1337.                                     {% for action in actions %}
  1338.                                         <tr>
  1339.                                             <td>{{ action.name }}</td>
  1340.                                             <td>{{ action.planificationDate|date('d/m/Y') }}</td>
  1341.                                             <td>
  1342.                                                 {% set key = action.priority %}
  1343.                                                 {% if key is not null %}
  1344.                                                     {% if key is same as ('low') %}
  1345.                                                         <span class=\"badge bg-blue\">{{ dictionary('registry_mesurement_priority')[key] }}</span>
  1346.                                                     {% elseif key is same as ('normal') %}
  1347.                                                         <span class=\"badge bg-yellow\">{{ dictionary('registry_mesurement_priority')[key] }}</span>
  1348.                                                     {% elseif key is same as ('high') %}
  1349.                                                         <span class=\"badge bg-red\">{{ dictionary('registry_mesurement_priority')[key] }}</span>
  1350.                                                     {% endif %}
  1351.                                                 {% endif %}
  1352.                                             </td>
  1353.                                             <td>{{ action.manager }}</td>
  1354.                                             <td>
  1355.                                                 <a aria-label=\"Chercher\" href=\"/actions-de-protection/visualiser/{{ action.id }}\" ><i class=\"fas fa-search\"></i></a>
  1356.                                             </td>
  1357.                                         </tr>
  1358.                                     {% endfor %}
  1359.                                     </tbody>
  1360.                                 </table>
  1361.                             </div>
  1362.                         </div>
  1363.                     </div>
  1364.                 </div>
  1365.                 <div class=\"row\">
  1366.                     {% if app.user.collectivity.hasModuleConformiteOrganisation == true %}
  1367.                         <div class=\"col-md-12\">
  1368.                             {# DETAIL : CONFORMITE ORGANISATION #}
  1369.                             <div class=\"box box-solid\">
  1370.                                 <div class=\"box-header with-border\"><h3 class=\"box-title\">Conformité de la structure</h3></div>
  1371.                                 {% if data.conformiteOrganisation is empty %}
  1372.                                     <div class=\"box-body\">
  1373.                                         Aucune donnée à afficher
  1374.                                     </div>
  1375.                                 {% else %}
  1376.                                     <div class=\"box-body no-padding\">
  1377.                                         <table role=\"presentation\" class=\"table table-striped\">
  1378.                                             <thead>
  1379.                                             <tr>
  1380.                                                 <th scope=\"col\">Processus</th>
  1381.                                                 <th scope=\"col\">Progression</th>
  1382.                                                 <th style=\"width: 40px\" scope=\"col\">Conformité</th>
  1383.                                             </tr>
  1384.                                             </thead>
  1385.                                             <tbody>
  1386.                                             {% for conformite in data.conformiteOrganisation %}
  1387.                                                 {% set score = (conformite['conformite'] / 5 * 100) %}
  1388.                                                 {% if score < 50 %}
  1389.                                                     {% set color = 'red' %}
  1390.                                                 {% elseif score < 70 %}
  1391.                                                     {% set color = 'yellow' %}
  1392.                                                 {% else %}
  1393.                                                     {% set color = 'green' %}
  1394.                                                 {% endif %}
  1395.                                                 <tr>
  1396.                                                     <td>{{ conformite['processus'] }}</td>
  1397.                                                     <td>
  1398.                                                         <div class=\"progress progress-xs\">
  1399.                                                             <div class=\"progress-bar progress-bar-{{ color }}\" style=\"width: {{ score }}%\"></div>
  1400.                                                         </div>
  1401.                                                     </td>
  1402.                                                     <td>
  1403.                                                         <span style=\"min-width: 100%\" class=\"badge bg-{{ color }}\">{{ score }}%</span>
  1404.                                                     </td>
  1405.                                                 </tr>
  1406.                                             {% endfor %}
  1407.                                             </tbody>
  1408.                                         </table>
  1409.                                     </div>
  1410.                                 {% endif %}
  1411.                             </div>
  1412.                         </div>
  1413.                     {% endif %}
  1414.                 </div>
  1415.             </div>
  1416.         </div>
  1417.         {# JOURNALISATION #}
  1418.         <div class=\"row\">
  1419.             <div class=\"col-md-12\">
  1420.                 <div class=\"box box-solid\">
  1421.                     <div class=\"box-header with-border\">
  1422.                         <h3 class=\"box-title\">Journalisation <small>{{ app_user_dashboard_journalisation_limit }} dernières actions</small></h3>
  1423.                     </div>
  1424.                     <div class=\"box-body no-padding\">
  1425.                         <table role=\"presentation\" class=\"table\">
  1426.                             <thead>
  1427.                             <tr>
  1428.                                 <th scope=\"col\">Nom utilisateur</th>
  1429.                                 <th scope=\"col\">Email utilisateur</th>
  1430.                                 <th scope=\"col\">Date</th>
  1431.                                 <th scope=\"col\">Sujet</th>
  1432.                                 <th scope=\"col\">Action</th>
  1433.                                 <th scope=\"col\">Nom</th>
  1434.                                 <th scope=\"col\">Lien</th>
  1435.                             </tr>
  1436.                             </thead>
  1437.                             <tbody>
  1438.                             {% for logJournal in data.logJournal %}
  1439.                                 {% set logJournalLink = getLogJournalLink(logJournal) %}
  1440.                                 <tr>
  1441.                                     <td>{{ logJournal.userFullName }}</td>
  1442.                                     <td>{{ logJournal.userEmail }}</td>
  1443.                                     <td>{{ logJournal.date|date('d/m/Y') }}</td>
  1444.                                     <td>{{ logJournal.subjectType ? logJournal.subjectType|dictionary('reporting_log_journal_subject') : '' }}</td>
  1445.                                     <td>{{ logJournal.action ? logJournal.action|dictionary('reporting_log_journal_action') : '' }}</td>
  1446.                                     <td>{{ logJournal.subjectName }}</td>
  1447.                                     <td>
  1448.                                         {% if logJournal.isDeleted %}
  1449.                                             {{ logJournalLink }}
  1450.                                         {% elseif logJournalLink is not null %}
  1451.                                             <a aria-label=\"Lien\" href=\"{{ logJournalLink }}\">Lien</a>
  1452.                                         {% endif %}
  1453.                                     </td>
  1454.                                 </tr>
  1455.                             {% endfor %}
  1456.                             </tbody>
  1457.                         </table>
  1458.                     </div>
  1459.                 </div>
  1460.             </div>
  1461.         </div>
  1462.     </div>
  1463.     {% endblock %}
  1464. {% block javascripts %}
  1465.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.min.js\"></script>
  1466.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.bundle.min.js\"></script>
  1467.     {# DEFINE DATA #}
  1468.     <script>
  1469.         let labelYes = '{{ 'label.yes'|trans }}';
  1470.         let labelNo = '{{ 'label.no'|trans }}';
  1471.         let colorBlue = 'rgba(54, 162, 235, 1)';
  1472.         let colorBlueOpacity = 'rgba(54, 162, 235, 0.5)';
  1473.         let colorGreen = ' rgba(48, 183, 44, 1)';
  1474.         let colorGreenOpacity = ' rgba(48, 183, 44, 0.5)';
  1475.         let colorPurple = 'rgba(153, 51, 204, 1)';
  1476.         let colorPurpleOpacity = 'rgba(153, 51, 204, 0.5)';
  1477.         let colorRed = 'rgba(255, 99, 132, 1)';
  1478.         let colorRedOpacity = 'rgba(255, 99, 132, 0.5)';
  1479.         let colorTeal = 'rgba(0, 105, 92, 1)';
  1480.         let colorTealOpacity = 'rgba(0, 105, 92, 0.5)';
  1481.         let colorOrange = 'rgb(255, 136, 0, 1)';
  1482.         let colorOrangeOpacity = 'rgb(255, 136, 0, 0.5)';
  1483.         let labelYesNo = [labelYes, labelNo];
  1484.         // CONTRACTOR
  1485.         let contractorClausesData = [{{ data.contractor.clauses.yes }}, {{ data.contractor.clauses.no }}];
  1486.         let contractorAdoptedSecurityFeaturesData = [{{ data.contractor.adoptedSecurityFeatures.yes }}, {{ data.contractor.adoptedSecurityFeatures.no }}];
  1487.         let contractorMaintainsTreatmentRegisterData = [{{ data.contractor.maintainsTreatmentRegister.yes }}, {{ data.contractor.maintainsTreatmentRegister.no }}];
  1488.         let contractorSendingDataOutsideEuData = [{{ data.contractor.sendingDataOutsideEu.yes }}, {{ data.contractor.sendingDataOutsideEu.no }}];
  1489.         // MESUREMENT
  1490.         let mesurementStatusData = [{{ data.mesurement.value.applied }}, {{ data.mesurement.value.planified }}, {{ data.mesurement.value.notApplied }}];
  1491.         // MATURITY
  1492.         let maturityLabels = [];
  1493.         let maturitySerieLabel = [];
  1494.         let maturityData = [];
  1495.         {% if data.maturity.new is defined %}
  1496.             let tmpData1 = [];
  1497.             maturitySerieLabel.push('{{ data.maturity.new.name }}');
  1498.             {% for position, info in data.maturity.new.data %}
  1499.                 maturityLabels.push('{{ info.name }}');
  1500.                 tmpData1.push('{{ info.score }}');
  1501.             {% endfor %}
  1502.             maturityData.push(tmpData1);
  1503.         {% endif %}
  1504.         {% if data.maturity.old is defined %}
  1505.             let tmpData2 = [];
  1506.             maturitySerieLabel.push('{{ data.maturity.old.name }}');
  1507.             {% for position, info in data.maturity.old.data %}
  1508.                 tmpData2.push('{{ info.score }}');
  1509.             {% endfor %}
  1510.             maturityData.push(tmpData2);
  1511.         {% endif %}
  1512.         // REQUEST
  1513.         let requestTypeLabel = [
  1514.             'Rectifier des données',
  1515.             'Supprimer des données',
  1516.             'Retirer le consentement',
  1517.             'Accéder à des données',
  1518.             'Portabilité des données',
  1519.             'Limiter le traitement',
  1520.             'Autre',
  1521.         ];
  1522.         let requestTypeData = [];
  1523.         {% if data.request.value.type.correct %}
  1524.             requestTypeData.push({{ data.request.value.type.correct }});
  1525.         {% elseif data.request.value.type.delete %}
  1526.             requestTypeData.push({{ data.request.value.type.delete }});
  1527.         {% elseif data.request.value.type.withdrawConsent %}
  1528.             requestTypeData.push({{ data.request.value.type.withdrawConsent }});
  1529.         {% elseif data.request.value.type.access %}
  1530.             requestTypeData.push({{ data.request.value.type.access }});
  1531.         {% elseif data.request.value.type.dataPortability %}
  1532.             requestTypeData.push({{ data.request.value.type.dataPortability }});
  1533.         {% elseif data.request.value.type.limitTreatment %}
  1534.             requestTypeData.push({{ data.request.value.type.limitTreatment }});
  1535.         {% elseif data.request.value.type.other %}
  1536.             requestTypeData.push({{ data.request.value.type.other }});
  1537.         {% endif %}
  1538.         let requestStatusLabel = [
  1539.             'Traité',
  1540.             'À traiter',
  1541.             'Non-recevable',
  1542.         ];
  1543.         let requestStatusData = [];
  1544.         {% if data.request.value.status.processed %}
  1545.             requestStatusData.push({{ data.request.value.status.processed }});
  1546.         {% elseif data.request.value.status.toProcess %}
  1547.             requestStatusData.push({{ data.request.value.status.toProcess }});
  1548.         {% elseif data.request.value.status.incomplete %}
  1549.             requestStatusData.push({{ data.request.value.status.incomplete }});
  1550.         {% endif %}
  1551.         // TREATMENT
  1552.         let treatmentLabels = [
  1553.             'Contrôle d\\'accès',
  1554.             'Traçabilité',
  1555.             'Sauvegarde',
  1556.             'Mises à jour',
  1557.         ];
  1558.         let treatmentDatasetYes = [];
  1559.         let treatmentDatasetNo = [];
  1560.         {% for key, item in data.treatment.value.data %}
  1561.             {% set yesItem = attribute(item, 'yes') %}
  1562.             {% set noItem = attribute(item, 'no') %}
  1563.             {% if yesItem > 0 or noItem > 0  %}
  1564.             treatmentDatasetYes.push('{{ attribute(item, 'yes') }}');
  1565.             treatmentDatasetNo.push('{{ attribute(item, 'no') }}');
  1566.             {% endif %}
  1567.         {% endfor %}
  1568.         // CONFORMITE TRAITEMENT
  1569.         let conformiteTraitementLabels = {{ data.conformiteTraitement.labels|json_encode|raw }};
  1570.         let conformiteTraitementData = [];
  1571.         {% if data.conformiteTraitement.data %}
  1572.             conformiteTraitementData = {{ data.conformiteTraitement.data|json_encode|raw }};
  1573.         {% endif %}
  1574.         let conformiteTraitementColors = {{ data.conformiteTraitement.colors|json_encode|raw }};
  1575.     </script>
  1576.     {# USE DATA & DEFINE GRAPH #}
  1577.     {{ encore_entry_script_tags('js/dashboard') }}
  1578.     <script>
  1579.         \$(document).ready(function() {
  1580.             \$('body').on('change', '#referentiel-chooser', function() {
  1581.                 console.log('change', \$(this).val());
  1582.                 window.location.href = \"{{ app.request.pathinfo }}?referentiel=\" + \$(this).val();
  1583.             })
  1584.         })
  1585.     </script>
  1586. {% endblock %}
  1587. ""Reporting/Dashboard/index.html.twig""/var/www/madis/templates/Reporting/Dashboard/index.html.twig");
  1588.     }
  1589. }