var/cache/dev/twig/36/363430d2010865d6b4ffcd1d014023c7fa400592eb905b9f60530a0624a5a6ff.php line 58

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. /* sonata/standard_layout.html.twig */
  14. class __TwigTemplate_af7af507e2ed35b2d2d124277fcf88518a9cf133061e4d2fab261262388bbf6e 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.             'meta_tags' => [$this'block_meta_tags'],
  24.             'admin_lte_skin_class' => [$this'block_admin_lte_skin_class'],
  25.             'stylesheets' => [$this'block_stylesheets'],
  26.             'javascripts' => [$this'block_javascripts'],
  27.             'logo' => [$this'block_logo'],
  28.             'sonata_top_nav_menu' => [$this'block_sonata_top_nav_menu'],
  29.             'sonata_top_nav_menu_add_block' => [$this'block_sonata_top_nav_menu_add_block'],
  30.             'sonata_top_nav_menu_user_block' => [$this'block_sonata_top_nav_menu_user_block'],
  31.             'sonata_wrapper' => [$this'block_sonata_wrapper'],
  32.             'sonata_admin_content_actions_wrappers' => [$this'block_sonata_admin_content_actions_wrappers'],
  33.             'sonata_head_title' => [$this'block_sonata_head_title'],
  34.         ];
  35.     }
  36.     protected function doGetParent(array $context)
  37.     {
  38.         // line 1
  39.         return "@SonataAdmin/standard_layout.html.twig";
  40.     }
  41.     protected function doDisplay(array $context, array $blocks = [])
  42.     {
  43.         $macros $this->macros;
  44.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  45.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""sonata/standard_layout.html.twig"));
  46.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  47.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""sonata/standard_layout.html.twig"));
  48.         $this->parent $this->loadTemplate("@SonataAdmin/standard_layout.html.twig""sonata/standard_layout.html.twig"1);
  49.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  50.         
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  52.         
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  54.     }
  55.     // line 3
  56.     public function block_meta_tags($context, array $blocks = [])
  57.     {
  58.         $macros $this->macros;
  59.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  60.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta_tags"));
  61.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  62.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta_tags"));
  63.         // line 4
  64.         echo "    ";
  65.         $this->displayParentBlock("meta_tags"$context$blocks);
  66.         echo "
  67.     ";
  68.         // line 6
  69.         $context["favicon_path"] = "/favicon/";
  70.         // line 7
  71.         echo "    ";
  72.         if (twig_in_filter("test.genesii.fr"twig_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.'7$this->source); })()), "request", [], "any"falsefalsefalse7), "host", [], "any"falsefalsefalse7))) {
  73.             // line 8
  74.             echo "        ";
  75.             $context["favicon_path"] = "/favicon-test/";
  76.             // line 9
  77.             echo "    ";
  78.         }
  79.         // line 10
  80.         echo "
  81.     <link rel=\"apple-touch-icon\" sizes=\"180x180\" href=\"";
  82.         // line 11
  83.         echo twig_escape_filter($this->env, (isset($context["favicon_path"]) || array_key_exists("favicon_path"$context) ? $context["favicon_path"] : (function () { throw new RuntimeError('Variable "favicon_path" does not exist.'11$this->source); })()), "html"nulltrue);
  84.         echo "apple-touch-icon.png\">
  85.     <link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"";
  86.         // line 12
  87.         echo twig_escape_filter($this->env, (isset($context["favicon_path"]) || array_key_exists("favicon_path"$context) ? $context["favicon_path"] : (function () { throw new RuntimeError('Variable "favicon_path" does not exist.'12$this->source); })()), "html"nulltrue);
  88.         echo "favicon-32x32.png\">
  89.     <link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"";
  90.         // line 13
  91.         echo twig_escape_filter($this->env, (isset($context["favicon_path"]) || array_key_exists("favicon_path"$context) ? $context["favicon_path"] : (function () { throw new RuntimeError('Variable "favicon_path" does not exist.'13$this->source); })()), "html"nulltrue);
  92.         echo "favicon-16x16.png\">
  93.     <link rel=\"manifest\" href=\"/favicon/site.webmanifest\">
  94.     <link rel=\"mask-icon\" href=\"/favicon/safari-pinned-tab.svg\" color=\"#2c2c2c\">
  95.     <meta name=\"msapplication-TileColor\" content=\"#2c2c2c\">
  96.     <meta name=\"theme-color\" content=\"#2c2c2c\">
  97. ";
  98.         
  99.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  100.         
  101.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  102.     }
  103.     // line 20
  104.     public function block_admin_lte_skin_class($context, array $blocks = [])
  105.     {
  106.         $macros $this->macros;
  107.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  108.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""admin_lte_skin_class"));
  109.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  110.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""admin_lte_skin_class"));
  111.         // line 21
  112.         echo "    ";
  113.         $this->displayParentBlock("admin_lte_skin_class"$context$blocks);
  114.         echo "
  115.     ";
  116.         // line 23
  117.         if (twig_get_attribute($this->env$this->source, ($context["admin"] ?? null), "code", [], "any"truetruefalse23)) {
  118.             // line 24
  119.             echo "        admin-view-";
  120.             echo twig_escape_filter($this->envtwig_lower_filter($this->envtwig_replace_filter(twig_get_attribute($this->env$this->source, (isset($context["admin"]) || array_key_exists("admin"$context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.'24$this->source); })()), "code", [], "any"falsefalsefalse24), ["." => "-"])), "html"nulltrue);
  121.             echo "
  122.     ";
  123.         }
  124.         
  125.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  126.         
  127.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  128.     }
  129.     // line 28
  130.     public function block_stylesheets($context, array $blocks = [])
  131.     {
  132.         $macros $this->macros;
  133.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  134.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  135.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  136.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  137.         // line 29
  138.         echo "    ";
  139.         $this->displayParentBlock("stylesheets"$context$blocks);
  140.         echo "
  141.     ";
  142.         // line 31
  143.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("admin");
  144.         echo "
  145. ";
  146.         
  147.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  148.         
  149.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  150.     }
  151.     // line 34
  152.     public function block_javascripts($context, array $blocks = [])
  153.     {
  154.         $macros $this->macros;
  155.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  156.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  157.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  158.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  159.         // line 35
  160.         echo "  ";
  161.         $this->displayParentBlock("javascripts"$context$blocks);
  162.         echo "
  163.   ";
  164.         // line 37
  165.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("admin");
  166.         echo "
  167.   <script type=\"text/javascript\">
  168.     jQuery(function(\$) {
  169.         \$('[data-toggle=\"tooltip\"]').tooltip();
  170.     });
  171.     \$(document).ajaxError(function() {
  172.       //\$('.pop-loader').slideUp(300);
  173.       \$('.pop-error-loader').slideUp(300);
  174.       // setTimeout(function() {
  175.       //   \$('.pop-error-loader').slideUp(300);
  176.       // }, 3000);
  177.     });
  178.     \$(document).ajaxSuccess(function() {
  179.         \$('.pop-loader').slideUp(300);
  180.     });
  181.     \$(document).ajaxSend(function() {
  182.       if(!\$('.pop-loader').is(':visible')) \$('.pop-loader').slideDown(300);
  183.     });
  184.     function isTablet() {
  185.         const userAgent = navigator.userAgent.toLowerCase();
  186.         const tabletKeys = ['tablet', 'ipad', 'kindle', 'fire', 'silk', 'android'];
  187.         const mobileKey = 'mobile';
  188.         const models = [\"SM-F936B\", \"SM-F936B/DS\", \"SM-F936U\", \"SM-F936U1\", \"SM-F936N\", \"SM-F936W\"];
  189.         const isZFold4 = models.some(model => navigator.userAgent.includes(model));
  190.         if (userAgent.includes(mobileKey)) {
  191.             return false;
  192.         }
  193.         for (const key of tabletKeys) {
  194.             if (userAgent.includes(key)) {
  195.                 if (isZFold4) {
  196.                     return false;
  197.                 }
  198.                 return true;
  199.             }
  200.         }
  201.         const touchSupported = ('ontouchstart' in window) || (navigator.maxTouchPoints > 0);
  202.         const screenSize = window.screen.width >= 600;
  203.         return touchSupported && screenSize;
  204.     }
  205.     window.addEventListener(\"touchstart\", function (event) {
  206.         if(isTablet()){
  207.             if(\$(event.target).is('.iCheck-helper') || \$(event.target).is('.control-label__text')){
  208.                 \$(event.target).trigger('click');
  209.             }
  210.         }
  211.     });
  212.     let isDragging = false;
  213.     function simulateMouseEvent(event, simulatedType) {
  214.         if (event.target.classList.contains('sonata-ba-sortable-handler')) {
  215.             let simulatedEvent = new MouseEvent(simulatedType, {
  216.                 bubbles: true,
  217.                 cancelable: true,
  218.                 view: window,
  219.                 detail: 1,
  220.                 screenX: event.changedTouches[0].screenX,
  221.                 screenY: event.changedTouches[0].screenY,
  222.                 clientX: event.changedTouches[0].clientX,
  223.                 clientY: event.changedTouches[0].clientY,
  224.             });
  225.             event.target.dispatchEvent(simulatedEvent);
  226.             if (simulatedType === 'mousemove') {
  227.                 event.preventDefault();
  228.             }
  229.         }
  230.     }
  231.     document.addEventListener(\"touchstart\", function(e) {
  232.         isDragging = true;
  233.         simulateMouseEvent(e, \"mousedown\");
  234.     }, false);
  235.     document.addEventListener(\"touchmove\", function(e) {
  236.         if (isDragging) { 
  237.             simulateMouseEvent(e, \"mousemove\");
  238.         }
  239.     }, { passive: false });
  240.     document.addEventListener(\"touchend\", function(e) {
  241.         isDragging = false;
  242.         simulateMouseEvent(e, \"mouseup\");
  243.     }, false);
  244.     //\$('.pop-loader').slideUp(300);
  245.   </script>
  246. ";
  247.         
  248.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  249.         
  250.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  251.     }
  252.     // line 140
  253.     public function block_logo($context, array $blocks = [])
  254.     {
  255.         $macros $this->macros;
  256.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  257.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""logo"));
  258.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  259.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""logo"));
  260.         // line 141
  261.         echo "    ";
  262.         ob_start();
  263.         // line 142
  264.         echo "        <a class=\"logo\" href=\"";
  265.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sonata_admin_dashboard");
  266.         echo "\">
  267.         ";
  268.         // line 143
  269.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_MASTER")) {
  270.             // line 144
  271.             echo "            ";
  272.             if (((=== twig_compare("icon"twig_get_attribute($this->env$this->source, (isset($context["sonata_config"]) || array_key_exists("sonata_config"$context) ? $context["sonata_config"] : (function () { throw new RuntimeError('Variable "sonata_config" does not exist.'144$this->source); })()), "getOption", [=> "logo_content"], "method"falsefalsefalse144))) || (=== twig_compare("all"twig_get_attribute($this->env$this->source, (isset($context["sonata_config"]) || array_key_exists("sonata_config"$context) ? $context["sonata_config"] : (function () { throw new RuntimeError('Variable "sonata_config" does not exist.'144$this->source); })()), "getOption", [=> "logo_content"], "method"falsefalsefalse144))))) {
  273.                 // line 145
  274.                 echo "                <img src=\"";
  275.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env$this->source, (isset($context["sonata_config"]) || array_key_exists("sonata_config"$context) ? $context["sonata_config"] : (function () { throw new RuntimeError('Variable "sonata_config" does not exist.'145$this->source); })()), "getOption", [=> "default_icon"], "method"falsefalsefalse145)), "html"nulltrue);
  276.                 echo "\" alt=\"";
  277.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["sonata_config"]) || array_key_exists("sonata_config"$context) ? $context["sonata_config"] : (function () { throw new RuntimeError('Variable "sonata_config" does not exist.'145$this->source); })()), "title", [], "any"falsefalsefalse145), "html"nulltrue);
  278.                 echo "\">
  279.             ";
  280.             }
  281.             // line 147
  282.             echo "            ";
  283.             if (((=== twig_compare("text"twig_get_attribute($this->env$this->source, (isset($context["sonata_config"]) || array_key_exists("sonata_config"$context) ? $context["sonata_config"] : (function () { throw new RuntimeError('Variable "sonata_config" does not exist.'147$this->source); })()), "getOption", [=> "logo_content"], "method"falsefalsefalse147))) || (=== twig_compare("all"twig_get_attribute($this->env$this->source, (isset($context["sonata_config"]) || array_key_exists("sonata_config"$context) ? $context["sonata_config"] : (function () { throw new RuntimeError('Variable "sonata_config" does not exist.'147$this->source); })()), "getOption", [=> "logo_content"], "method"falsefalsefalse147))))) {
  284.                 // line 148
  285.                 echo "                <span>";
  286.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["sonata_config"]) || array_key_exists("sonata_config"$context) ? $context["sonata_config"] : (function () { throw new RuntimeError('Variable "sonata_config" does not exist.'148$this->source); })()), "title", [], "any"falsefalsefalse148), "html"nulltrue);
  287.                 echo "</span>
  288.             ";
  289.             }
  290.             // line 150
  291.             echo "        ";
  292.         } else {
  293.             // line 151
  294.             echo "            ";
  295.             $context["logoAdmin"] = $this->extensions['App\Twig\LogoExtension']->getUserEntrepriseLogo();
  296.             // line 152
  297.             echo "            ";
  298.             if ((isset($context["logoAdmin"]) || array_key_exists("logoAdmin"$context) ? $context["logoAdmin"] : (function () { throw new RuntimeError('Variable "logoAdmin" does not exist.'152$this->source); })())) {
  299.                 // line 153
  300.                 echo "                <img src=\"";
  301.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("uploads/entreprises_logos/" . (isset($context["logoAdmin"]) || array_key_exists("logoAdmin"$context) ? $context["logoAdmin"] : (function () { throw new RuntimeError('Variable "logoAdmin" does not exist.'153$this->source); })()))), "html"nulltrue);
  302.                 echo "\" alt=\"";
  303.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["sonata_config"]) || array_key_exists("sonata_config"$context) ? $context["sonata_config"] : (function () { throw new RuntimeError('Variable "sonata_config" does not exist.'153$this->source); })()), "title", [], "any"falsefalsefalse153), "html"nulltrue);
  304.                 echo "\">
  305.             ";
  306.             } else {
  307.                 // line 155
  308.                 echo "                ";
  309.                 if (((=== twig_compare("icon"twig_get_attribute($this->env$this->source, (isset($context["sonata_config"]) || array_key_exists("sonata_config"$context) ? $context["sonata_config"] : (function () { throw new RuntimeError('Variable "sonata_config" does not exist.'155$this->source); })()), "getOption", [=> "logo_content"], "method"falsefalsefalse155))) || (=== twig_compare("all"twig_get_attribute($this->env$this->source, (isset($context["sonata_config"]) || array_key_exists("sonata_config"$context) ? $context["sonata_config"] : (function () { throw new RuntimeError('Variable "sonata_config" does not exist.'155$this->source); })()), "getOption", [=> "logo_content"], "method"falsefalsefalse155))))) {
  310.                     // line 156
  311.                     echo "                    <img src=\"";
  312.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/zada_logo_large.png"), "html"nulltrue);
  313.                     echo "\" alt=\"";
  314.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["sonata_config"]) || array_key_exists("sonata_config"$context) ? $context["sonata_config"] : (function () { throw new RuntimeError('Variable "sonata_config" does not exist.'156$this->source); })()), "title", [], "any"falsefalsefalse156), "html"nulltrue);
  315.                     echo "\">
  316.                 ";
  317.                 }
  318.                 // line 158
  319.                 echo "                ";
  320.                 if (((=== twig_compare("text"twig_get_attribute($this->env$this->source, (isset($context["sonata_config"]) || array_key_exists("sonata_config"$context) ? $context["sonata_config"] : (function () { throw new RuntimeError('Variable "sonata_config" does not exist.'158$this->source); })()), "getOption", [=> "logo_content"], "method"falsefalsefalse158))) || (=== twig_compare("all"twig_get_attribute($this->env$this->source, (isset($context["sonata_config"]) || array_key_exists("sonata_config"$context) ? $context["sonata_config"] : (function () { throw new RuntimeError('Variable "sonata_config" does not exist.'158$this->source); })()), "getOption", [=> "logo_content"], "method"falsefalsefalse158))))) {
  321.                     // line 159
  322.                     echo "                    <span>";
  323.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["sonata_config"]) || array_key_exists("sonata_config"$context) ? $context["sonata_config"] : (function () { throw new RuntimeError('Variable "sonata_config" does not exist.'159$this->source); })()), "title", [], "any"falsefalsefalse159), "html"nulltrue);
  324.                     echo "</span>
  325.                 ";
  326.                 }
  327.                 // line 161
  328.                 echo "            ";
  329.             }
  330.             // line 162
  331.             echo "        ";
  332.         }
  333.         // line 163
  334.         echo "        </a>
  335.     ";
  336.         $___internal_parse_0_ = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
  337.         // line 141
  338.         echo twig_spaceless($___internal_parse_0_);
  339.         
  340.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  341.         
  342.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  343.     }
  344.     // line 167
  345.     public function block_sonata_top_nav_menu($context, array $blocks = [])
  346.     {
  347.         $macros $this->macros;
  348.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  349.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_top_nav_menu"));
  350.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  351.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_top_nav_menu"));
  352.         // line 168
  353.         echo "    ";
  354.         if (twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'168$this->source); })()), "user", [], "any"falsefalsefalse168)) {
  355.             // line 169
  356.             echo "        <div class=\"navbar-custom-menu\">
  357.             <ul class=\"nav navbar-nav\">
  358.                 ";
  359.             // line 171
  360.             $this->displayBlock('sonata_top_nav_menu_add_block'$context$blocks);
  361.             // line 174
  362.             echo "                ";
  363.             $this->displayBlock('sonata_top_nav_menu_user_block'$context$blocks);
  364.             // line 187
  365.             echo "            </ul>
  366.         </div>
  367.     ";
  368.         }
  369.         
  370.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  371.         
  372.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  373.     }
  374.     // line 171
  375.     public function block_sonata_top_nav_menu_add_block($context, array $blocks = [])
  376.     {
  377.         $macros $this->macros;
  378.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  379.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_top_nav_menu_add_block"));
  380.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  381.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_top_nav_menu_add_block"));
  382.         // line 172
  383.         echo "
  384.                 ";
  385.         
  386.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  387.         
  388.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  389.     }
  390.     // line 174
  391.     public function block_sonata_top_nav_menu_user_block($context, array $blocks = [])
  392.     {
  393.         $macros $this->macros;
  394.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  395.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_top_nav_menu_user_block"));
  396.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  397.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_top_nav_menu_user_block"));
  398.         // line 175
  399.         echo "                  <li class=\"bonjour-nav\"><a>Bonjour ";
  400.         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.'175$this->source); })()), "user", [], "any"falsefalsefalse175), "prenom", [], "any"falsefalsefalse175), "html"nulltrue);
  401.         echo "</a></li>
  402.                   <li class=\"dropdown user-menu\">
  403.                     <a class=\"dropdown-toggle\" data-toggle=\"tooltip\" title=\"Dashboard\" href=\"";
  404.         // line 177
  405.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sonata_admin_dashboard");
  406.         echo "\">
  407.                         <i class=\"fa fa-home\" aria-hidden=\"true\" style=\"position: relative;\">";
  408.         // line 178
  409.         if (twig_length_filter($this->envtwig_array_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.'178$this->source); })()), "user", [], "any"falsefalsefalse178), "infosSuivis", [], "any"falsefalsefalse178), function ($__info__) use ($context$macros) { $context["info"] = $__info__; return  !twig_get_attribute($this->env$this->source, (isset($context["info"]) || array_key_exists("info"$context) ? $context["info"] : (function () { throw new RuntimeError('Variable "info" does not exist.'178$this->source); })()), "lu", [], "any"falsefalsefalse178); }))) {
  410.             echo "<span class=\"notifs-chip\"></span>";
  411.         }
  412.         echo "</i>
  413.                     </a>
  414.                   </li>
  415.                   <li class=\"dropdown user-menu\">
  416.                     <a class=\"dropdown-toggle\" data-toggle=\"tooltip\" title=\"Déconnexion\" href=\"";
  417.         // line 182
  418.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("login_logout");
  419.         echo "\">
  420.                         <i class=\"fa fa-sign-out fa-fw\" aria-hidden=\"true\"></i>
  421.                     </a>
  422.                   </li>
  423.                 ";
  424.         
  425.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  426.         
  427.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  428.     }
  429.     // line 192
  430.     public function block_sonata_wrapper($context, array $blocks = [])
  431.     {
  432.         $macros $this->macros;
  433.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  434.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_wrapper"));
  435.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  436.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_wrapper"));
  437.         // line 193
  438.         echo "  ";
  439.         $this->displayParentBlock("sonata_wrapper"$context$blocks);
  440.         echo "
  441.   <div class=\"pop-loader\">
  442.     <i class=\"fa fa-cog\" aria-hidden=\"true\"></i> Chargement en cours...
  443.   </div>
  444.   <div class=\"pop-loader-manuel\">
  445.     <i class=\"fa fa-cog\" aria-hidden=\"true\"></i> Mise à jour du tableau...
  446.   </div>
  447.   <div class=\"pop-error-loader\">
  448.     <i class=\"fa fa-frown-o\" aria-hidden=\"true\"></i> Une erreur est survenue !
  449.   </div>
  450. ";
  451.         
  452.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  453.         
  454.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  455.     }
  456.     // line 208
  457.     public function block_sonata_admin_content_actions_wrappers($context, array $blocks = [])
  458.     {
  459.         $macros $this->macros;
  460.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  461.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_admin_content_actions_wrappers"));
  462.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  463.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_admin_content_actions_wrappers"));
  464.         // line 209
  465.         echo "    ";
  466.         if ( !twig_test_empty(twig_trim_filter(twig_replace_filter((isset($context["_actions"]) || array_key_exists("_actions"$context) ? $context["_actions"] : (function () { throw new RuntimeError('Variable "_actions" does not exist.'209$this->source); })()), ["<li>" => """</li>" => ""])))) {
  467.             // line 210
  468.             echo "        <ul class=\"nav navbar-nav ";
  469.             if ((=== twig_compare((isset($context["action"]) || array_key_exists("action"$context) ? $context["action"] : (function () { throw new RuntimeError('Variable "action" does not exist.'210$this->source); })()), "list"))) {
  470.                 echo "navbar-left";
  471.             }
  472.             echo "\">
  473.         ";
  474.             // line 211
  475.             if ((=== twig_compare(twig_length_filter($this->envtwig_split_filter($this->env, (isset($context["_actions"]) || array_key_exists("_actions"$context) ? $context["_actions"] : (function () { throw new RuntimeError('Variable "_actions" does not exist.'211$this->source); })()), "</a>")), 2))) {
  476.                 // line 212
  477.                 echo "            <li class=\"dropdown sonata-actions\">
  478.                 <a href=\"#\" class=\"dropdown-toggle\" data-toggle=\"dropdown\">";
  479.                 // line 213
  480.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("link_actions", [], "SonataAdminBundle"), "html"nulltrue);
  481.                 echo " <b class=\"caret\"></b></a>
  482.                 <ul class=\"dropdown-menu\" role=\"menu\">
  483.                     ";
  484.                 // line 215
  485.                 echo (isset($context["_actions"]) || array_key_exists("_actions"$context) ? $context["_actions"] : (function () { throw new RuntimeError('Variable "_actions" does not exist.'215$this->source); })());
  486.                 echo "
  487.                 </ul>
  488.             </li>
  489.         ";
  490.             } else {
  491.                 // line 219
  492.                 echo "            ";
  493.                 echo (isset($context["_actions"]) || array_key_exists("_actions"$context) ? $context["_actions"] : (function () { throw new RuntimeError('Variable "_actions" does not exist.'219$this->source); })());
  494.                 echo "
  495.         ";
  496.             }
  497.             // line 221
  498.             echo "        </ul>
  499.     ";
  500.         }
  501.         
  502.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  503.         
  504.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  505.     }
  506.     // line 225
  507.     public function block_sonata_head_title($context, array $blocks = [])
  508.     {
  509.         $macros $this->macros;
  510.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  511.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_head_title"));
  512.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  513.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_head_title"));
  514.         // line 226
  515.         echo "    Zada |
  516.     ";
  517.         // line 228
  518.         if ( !twig_test_empty((isset($context["_title"]) || array_key_exists("_title"$context) ? $context["_title"] : (function () { throw new RuntimeError('Variable "_title" does not exist.'228$this->source); })()))) {
  519.             // line 229
  520.             echo "        ";
  521.             echo twig_striptags((isset($context["_title"]) || array_key_exists("_title"$context) ? $context["_title"] : (function () { throw new RuntimeError('Variable "_title" does not exist.'229$this->source); })()));
  522.             echo "
  523.     ";
  524.         } else {
  525.             // line 231
  526.             echo "        ";
  527.             if (array_key_exists("action"$context)) {
  528.                 // line 232
  529.                 echo "            ";
  530.                 echo $this->env->getRuntime('Sonata\AdminBundle\Twig\BreadcrumbsRuntime')->renderBreadcrumbsForTitle($this->env, (isset($context["admin"]) || array_key_exists("admin"$context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.'232$this->source); })()), (isset($context["action"]) || array_key_exists("action"$context) ? $context["action"] : (function () { throw new RuntimeError('Variable "action" does not exist.'232$this->source); })()));
  531.                 echo "
  532.         ";
  533.             }
  534.             // line 234
  535.             echo "    ";
  536.         }
  537.         
  538.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  539.         
  540.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  541.     }
  542.     public function getTemplateName()
  543.     {
  544.         return "sonata/standard_layout.html.twig";
  545.     }
  546.     public function isTraitable()
  547.     {
  548.         return false;
  549.     }
  550.     public function getDebugInfo()
  551.     {
  552.         return array (  628 => 234,  622 => 232,  619 => 231,  613 => 229,  611 => 228,  607 => 226,  597 => 225,  585 => 221,  579 => 219,  572 => 215,  567 => 213,  564 => 212,  562 => 211,  555 => 210,  552 => 209,  542 => 208,  517 => 193,  507 => 192,  492 => 182,  483 => 178,  479 => 177,  473 => 175,  463 => 174,  452 => 172,  442 => 171,  429 => 187,  426 => 174,  424 => 171,  420 => 169,  417 => 168,  407 => 167,  397 => 141,  393 => 163,  390 => 162,  387 => 161,  381 => 159,  378 => 158,  370 => 156,  367 => 155,  359 => 153,  356 => 152,  353 => 151,  350 => 150,  344 => 148,  341 => 147,  333 => 145,  330 => 144,  328 => 143,  323 => 142,  320 => 141,  310 => 140,  198 => 37,  192 => 35,  182 => 34,  170 => 31,  164 => 29,  154 => 28,  140 => 24,  138 => 23,  132 => 21,  122 => 20,  106 => 13,  102 => 12,  98 => 11,  95 => 10,  92 => 9,  89 => 8,  86 => 7,  84 => 6,  78 => 4,  68 => 3,  45 => 1,);
  553.     }
  554.     public function getSourceContext()
  555.     {
  556.         return new Source("{% extends '@SonataAdmin/standard_layout.html.twig' %}
  557. {% block meta_tags %}
  558.     {{ parent() }}
  559.     {% set favicon_path = '/favicon/' %}
  560.     {% if 'test.genesii.fr' in app.request.host %}
  561.         {% set favicon_path = '/favicon-test/' %}
  562.     {% endif %}
  563.     <link rel=\"apple-touch-icon\" sizes=\"180x180\" href=\"{{ favicon_path }}apple-touch-icon.png\">
  564.     <link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"{{ favicon_path }}favicon-32x32.png\">
  565.     <link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"{{ favicon_path }}favicon-16x16.png\">
  566.     <link rel=\"manifest\" href=\"/favicon/site.webmanifest\">
  567.     <link rel=\"mask-icon\" href=\"/favicon/safari-pinned-tab.svg\" color=\"#2c2c2c\">
  568.     <meta name=\"msapplication-TileColor\" content=\"#2c2c2c\">
  569.     <meta name=\"theme-color\" content=\"#2c2c2c\">
  570. {% endblock %}
  571. {% block admin_lte_skin_class %}
  572.     {{ parent() }}
  573.     {% if admin.code is defined %}
  574.         admin-view-{{ admin.code|replace({'.': '-'})|lower }}
  575.     {% endif %}
  576. {% endblock %}
  577. {% block stylesheets %}
  578.     {{ parent() }}
  579.     {{ encore_entry_link_tags('admin') }}
  580. {% endblock %}
  581. {% block javascripts %}
  582.   {{ parent() }}
  583.   {{ encore_entry_script_tags('admin') }}
  584.   <script type=\"text/javascript\">
  585.     jQuery(function(\$) {
  586.         \$('[data-toggle=\"tooltip\"]').tooltip();
  587.     });
  588.     \$(document).ajaxError(function() {
  589.       //\$('.pop-loader').slideUp(300);
  590.       \$('.pop-error-loader').slideUp(300);
  591.       // setTimeout(function() {
  592.       //   \$('.pop-error-loader').slideUp(300);
  593.       // }, 3000);
  594.     });
  595.     \$(document).ajaxSuccess(function() {
  596.         \$('.pop-loader').slideUp(300);
  597.     });
  598.     \$(document).ajaxSend(function() {
  599.       if(!\$('.pop-loader').is(':visible')) \$('.pop-loader').slideDown(300);
  600.     });
  601.     function isTablet() {
  602.         const userAgent = navigator.userAgent.toLowerCase();
  603.         const tabletKeys = ['tablet', 'ipad', 'kindle', 'fire', 'silk', 'android'];
  604.         const mobileKey = 'mobile';
  605.         const models = [\"SM-F936B\", \"SM-F936B/DS\", \"SM-F936U\", \"SM-F936U1\", \"SM-F936N\", \"SM-F936W\"];
  606.         const isZFold4 = models.some(model => navigator.userAgent.includes(model));
  607.         if (userAgent.includes(mobileKey)) {
  608.             return false;
  609.         }
  610.         for (const key of tabletKeys) {
  611.             if (userAgent.includes(key)) {
  612.                 if (isZFold4) {
  613.                     return false;
  614.                 }
  615.                 return true;
  616.             }
  617.         }
  618.         const touchSupported = ('ontouchstart' in window) || (navigator.maxTouchPoints > 0);
  619.         const screenSize = window.screen.width >= 600;
  620.         return touchSupported && screenSize;
  621.     }
  622.     window.addEventListener(\"touchstart\", function (event) {
  623.         if(isTablet()){
  624.             if(\$(event.target).is('.iCheck-helper') || \$(event.target).is('.control-label__text')){
  625.                 \$(event.target).trigger('click');
  626.             }
  627.         }
  628.     });
  629.     let isDragging = false;
  630.     function simulateMouseEvent(event, simulatedType) {
  631.         if (event.target.classList.contains('sonata-ba-sortable-handler')) {
  632.             let simulatedEvent = new MouseEvent(simulatedType, {
  633.                 bubbles: true,
  634.                 cancelable: true,
  635.                 view: window,
  636.                 detail: 1,
  637.                 screenX: event.changedTouches[0].screenX,
  638.                 screenY: event.changedTouches[0].screenY,
  639.                 clientX: event.changedTouches[0].clientX,
  640.                 clientY: event.changedTouches[0].clientY,
  641.             });
  642.             event.target.dispatchEvent(simulatedEvent);
  643.             if (simulatedType === 'mousemove') {
  644.                 event.preventDefault();
  645.             }
  646.         }
  647.     }
  648.     document.addEventListener(\"touchstart\", function(e) {
  649.         isDragging = true;
  650.         simulateMouseEvent(e, \"mousedown\");
  651.     }, false);
  652.     document.addEventListener(\"touchmove\", function(e) {
  653.         if (isDragging) { 
  654.             simulateMouseEvent(e, \"mousemove\");
  655.         }
  656.     }, { passive: false });
  657.     document.addEventListener(\"touchend\", function(e) {
  658.         isDragging = false;
  659.         simulateMouseEvent(e, \"mouseup\");
  660.     }, false);
  661.     //\$('.pop-loader').slideUp(300);
  662.   </script>
  663. {% endblock %}
  664. {% block logo %}
  665.     {% apply spaceless %}
  666.         <a class=\"logo\" href=\"{{ path('sonata_admin_dashboard') }}\">
  667.         {% if is_granted('ROLE_MASTER') %}
  668.             {% if 'icon' == sonata_config.getOption('logo_content') or 'all' == sonata_config.getOption('logo_content') %}
  669.                 <img src=\"{{ asset(sonata_config.getOption('default_icon')) }}\" alt=\"{{ sonata_config.title }}\">
  670.             {% endif %}
  671.             {% if 'text' == sonata_config.getOption('logo_content') or 'all' == sonata_config.getOption('logo_content') %}
  672.                 <span>{{ sonata_config.title }}</span>
  673.             {% endif %}
  674.         {% else %}
  675.             {% set logoAdmin = get_user_entreprise_logo() %}
  676.             {% if logoAdmin %}
  677.                 <img src=\"{{ asset('uploads/entreprises_logos/' ~ logoAdmin) }}\" alt=\"{{ sonata_config.title }}\">
  678.             {% else %}
  679.                 {% if 'icon' == sonata_config.getOption('logo_content') or 'all' == sonata_config.getOption('logo_content') %}
  680.                     <img src=\"{{ asset('build/images/zada_logo_large.png') }}\" alt=\"{{ sonata_config.title }}\">
  681.                 {% endif %}
  682.                 {% if 'text' == sonata_config.getOption('logo_content') or 'all' == sonata_config.getOption('logo_content') %}
  683.                     <span>{{ sonata_config.title }}</span>
  684.                 {% endif %}
  685.             {% endif %}
  686.         {% endif %}
  687.         </a>
  688.     {% endapply %}
  689. {% endblock %}
  690. {% block sonata_top_nav_menu %}
  691.     {% if app.user %}
  692.         <div class=\"navbar-custom-menu\">
  693.             <ul class=\"nav navbar-nav\">
  694.                 {% block sonata_top_nav_menu_add_block %}
  695.                 {% endblock %}
  696.                 {% block sonata_top_nav_menu_user_block %}
  697.                   <li class=\"bonjour-nav\"><a>Bonjour {{ app.user.prenom }}</a></li>
  698.                   <li class=\"dropdown user-menu\">
  699.                     <a class=\"dropdown-toggle\" data-toggle=\"tooltip\" title=\"Dashboard\" href=\"{{ path('sonata_admin_dashboard') }}\">
  700.                         <i class=\"fa fa-home\" aria-hidden=\"true\" style=\"position: relative;\">{% if app.user.infosSuivis|filter(info => not info.lu)|length %}<span class=\"notifs-chip\"></span>{% endif %}</i>
  701.                     </a>
  702.                   </li>
  703.                   <li class=\"dropdown user-menu\">
  704.                     <a class=\"dropdown-toggle\" data-toggle=\"tooltip\" title=\"Déconnexion\" href=\"{{ path('login_logout') }}\">
  705.                         <i class=\"fa fa-sign-out fa-fw\" aria-hidden=\"true\"></i>
  706.                     </a>
  707.                   </li>
  708.                 {% endblock %}
  709.             </ul>
  710.         </div>
  711.     {% endif %}
  712. {% endblock %}
  713. {% block sonata_wrapper %}
  714.   {{ parent() }}
  715.   <div class=\"pop-loader\">
  716.     <i class=\"fa fa-cog\" aria-hidden=\"true\"></i> Chargement en cours...
  717.   </div>
  718.   <div class=\"pop-loader-manuel\">
  719.     <i class=\"fa fa-cog\" aria-hidden=\"true\"></i> Mise à jour du tableau...
  720.   </div>
  721.   <div class=\"pop-error-loader\">
  722.     <i class=\"fa fa-frown-o\" aria-hidden=\"true\"></i> Une erreur est survenue !
  723.   </div>
  724. {% endblock sonata_wrapper %}
  725. {% block sonata_admin_content_actions_wrappers %}
  726.     {% if _actions|replace({ '<li>': '', '</li>': '' })|trim is not empty %}
  727.         <ul class=\"nav navbar-nav {% if action == 'list' %}navbar-left{% endif %}\">
  728.         {% if _actions|split('</a>')|length > 2 %}
  729.             <li class=\"dropdown sonata-actions\">
  730.                 <a href=\"#\" class=\"dropdown-toggle\" data-toggle=\"dropdown\">{{ 'link_actions'|trans({}, 'SonataAdminBundle') }} <b class=\"caret\"></b></a>
  731.                 <ul class=\"dropdown-menu\" role=\"menu\">
  732.                     {{ _actions|raw }}
  733.                 </ul>
  734.             </li>
  735.         {% else %}
  736.             {{ _actions|raw }}
  737.         {% endif %}
  738.         </ul>
  739.     {% endif %}
  740. {% endblock sonata_admin_content_actions_wrappers %}
  741. {% block sonata_head_title %}
  742.     Zada |
  743.     {% if _title is not empty %}
  744.         {{ _title|striptags|raw }}
  745.     {% else %}
  746.         {% if action is defined %}
  747.             {{ render_breadcrumbs_for_title(admin, action) }}
  748.         {% endif %}
  749.     {% endif %}
  750. {% endblock %}
  751. ""sonata/standard_layout.html.twig""/home/clients/d5fc483de73e2cf6f126c55abcd1b2e6/sites/lk1.test.genesii.fr/templates/sonata/standard_layout.html.twig");
  752.     }
  753. }