var/cache/dev/twig/cd/cdf0fbc5bdbab0cc31f77922eb30efea48885a86529cff474f2a9a5cfc91ff00.php line 40

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. /* content/structure/show.html.twig */
  14. class __TwigTemplate_5161a4e7500241860e4eefc1f979bce2d550d81d995afea2c18a91eaa79f21ef 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.             'title' => [$this'block_title'],
  24.             'body' => [$this'block_body'],
  25.             'javascripts' => [$this'block_javascripts'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "content/baseImmemory.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""content/structure/show.html.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""content/structure/show.html.twig"));
  40.         $this->parent $this->loadTemplate("content/baseImmemory.html.twig""content/structure/show.html.twig"1);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  44.         
  45.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  46.     }
  47.     // line 4
  48.     public function block_title($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  55.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["stack"]) || array_key_exists("stack"$context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.'4$this->source); })()), "nom", [], "any"falsefalsefalse4), "html"nulltrue);
  56.         echo " ";
  57.         
  58.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  59.         
  60.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  61.     }
  62.     // line 6
  63.     public function block_body($context, array $blocks = [])
  64.     {
  65.         $macros $this->macros;
  66.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  67.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  68.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  69.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  70.         // line 7
  71.         echo "  <div class=\"col-12 menuShow\">
  72.     ";
  73.         // line 8
  74.         $this->loadTemplate("content/structure/breadcrumb.html.twig""content/structure/show.html.twig"8)->display($context);
  75.         // line 9
  76.         echo "  </div>
  77.   <div class=\"container-fluid\">
  78.     <div class=\"row fondintro\">
  79.       <div class=\"col-12 titreCard\">
  80.         <h1>
  81.           ";
  82.         // line 17
  83.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["stack"]) || array_key_exists("stack"$context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.'17$this->source); })()), "nom", [], "any"falsefalsefalse17), "html"nulltrue);
  84.         echo "
  85.         </h1>
  86.       </div>
  87.       <div class=\"col-12 col-md-6 showAdmin\">
  88.         <div class=\"zonesImg";
  89.         // line 22
  90.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["stack"]) || array_key_exists("stack"$context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.'22$this->source); })()), "id", [], "any"falsefalsefalse22), "html"nulltrue);
  91.         echo "\" style=\"position:relative; \">
  92.           <img src=\"";
  93.         // line 23
  94.         echo twig_escape_filter($this->env, (isset($context["pathLocal"]) || array_key_exists("pathLocal"$context) ? $context["pathLocal"] : (function () { throw new RuntimeError('Variable "pathLocal" does not exist.'23$this->source); })()), "html"nulltrue);
  95.         echo "/";
  96.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["stack"]) || array_key_exists("stack"$context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.'23$this->source); })()), "urlImage", [], "any"falsefalsefalse23), "html"nulltrue);
  97.         echo "\" alt=\"";
  98.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["stack"]) || array_key_exists("stack"$context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.'23$this->source); })()), "urlImage", [], "any"falsefalsefalse23), "html"nulltrue);
  99.         echo "\" class=\" img-fluid\">
  100.           ";
  101.         // line 24
  102.         $this->loadTemplate("content/structure/zonesActives.html.twig""content/structure/show.html.twig"24)->display($context);
  103.         // line 25
  104.         echo "        </div>
  105.       </div>
  106.       <div class=\"col-12 col-md-6\">
  107.         <div class=\"col-12 details\">
  108.           <ul>
  109.             <li>Id : <span class=\"categorie_details\">";
  110.         // line 32
  111.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["stack"]) || array_key_exists("stack"$context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.'32$this->source); })()), "id", [], "any"falsefalsefalse32), "html"nulltrue);
  112.         echo "</span></li>
  113.             <li>Catégorie : <span class=\"categorie_details\">";
  114.         // line 33
  115.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["stack"]) || array_key_exists("stack"$context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.'33$this->source); })()), "Scategorie", [], "any"falsefalsefalse33), "nom", [], "any"falsefalsefalse33), "html"nulltrue);
  116.         echo "</span></li>
  117.             <li>Séquence : <span class=\"categorie_details\">";
  118.         // line 34
  119.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["stack"]) || array_key_exists("stack"$context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.'34$this->source); })()), "Ssequence", [], "any"falsefalsefalse34), "nom", [], "any"falsefalsefalse34), "html"nulltrue);
  120.         echo "</span></li>
  121.             <li>Card : <span class=\"categorie_details\">";
  122.         // line 35
  123.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["stack"]) || array_key_exists("stack"$context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.'35$this->source); })()), "nom", [], "any"falsefalsefalse35), "html"nulltrue);
  124.         echo "</span></li>
  125.           </ul>
  126.         </div>
  127.         <div class=\"col-12 showBtns\">
  128.           <a class=\"btn btnImmemory\" href=\"";
  129.         // line 40
  130.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_cdrom_900_ciblebif", ["id" => twig_get_attribute($this->env$this->source, (isset($context["stack"]) || array_key_exists("stack"$context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.'40$this->source); })()), "id", [], "any"falsefalsefalse40)]), "html"nulltrue);
  131.         echo "\" target=\"_blank\">
  132.             voir dans CDRom
  133.           </a>
  134.           ";
  135.         // line 44
  136.         if ( !(null === 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.'44$this->source); })()), "user", [], "any"falsefalsefalse44))) {
  137.             // line 45
  138.             echo "            ";
  139.             $context['_parent'] = $context;
  140.             $context['_seq'] = twig_ensure_traversable(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.'45$this->source); })()), "user", [], "any"falsefalsefalse45), "roles", [], "any"falsefalsefalse45));
  141.             foreach ($context['_seq'] as $context["_key"] => $context["role"]) {
  142.                 // line 46
  143.                 echo "              ";
  144.                 if ((=== twig_compare($context["role"], "ROLE_ADMIN"))) {
  145.                     // line 47
  146.                     echo "                <a class=\"btn btnImmemory\" href=\"";
  147.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_stacks_edit", ["id" => twig_get_attribute($this->env$this->source, (isset($context["stack"]) || array_key_exists("stack"$context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.'47$this->source); })()), "id", [], "any"falsefalsefalse47)]), "html"nulltrue);
  148.                     echo "\">
  149.                   Modifier
  150.                 </a>
  151.                 <a class=\"btn btnImmemory\" href=\"";
  152.                     // line 50
  153.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_stacks_delete", ["id" => twig_get_attribute($this->env$this->source, (isset($context["stack"]) || array_key_exists("stack"$context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.'50$this->source); })()), "id", [], "any"falsefalsefalse50)]), "html"nulltrue);
  154.                     echo "\">
  155.                   Supprimer
  156.                 </a>
  157.               ";
  158.                 } else {
  159.                     // line 54
  160.                     echo "              ";
  161.                 }
  162.                 // line 55
  163.                 echo "            ";
  164.             }
  165.             $_parent $context['_parent'];
  166.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['role'], $context['_parent'], $context['loop']);
  167.             $context array_intersect_key($context$_parent) + $_parent;
  168.             // line 56
  169.             echo "          ";
  170.         }
  171.         // line 57
  172.         echo "
  173.           ";
  174.         // line 58
  175.         if ((=== twig_compare((isset($context["recherche"]) || array_key_exists("recherche"$context) ? $context["recherche"] : (function () { throw new RuntimeError('Variable "recherche" does not exist.'58$this->source); })()), 0))) {
  176.             // line 59
  177.             echo "            <a class=\"btn btnImmemory rouge\" href=\"";
  178.             echo twig_escape_filter($this->env, (isset($context["urlBack"]) || array_key_exists("urlBack"$context) ? $context["urlBack"] : (function () { throw new RuntimeError('Variable "urlBack" does not exist.'59$this->source); })()), "html"nulltrue);
  179.             echo "\">
  180.           ";
  181.         } else {
  182.             // line 61
  183.             echo "            <a class=\"btn btnImmemory rouge\" href=\"";
  184.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("webSite_stacks_sequence_recherche", ["page" => 1"search" => (isset($context["recherche"]) || array_key_exists("recherche"$context) ? $context["recherche"] : (function () { throw new RuntimeError('Variable "recherche" does not exist.'61$this->source); })())]), "html"nulltrue);
  185.             echo "\">
  186.           ";
  187.         }
  188.         // line 63
  189.         echo "              Retour
  190.             </a>
  191.         </div>
  192.         <div class=\"listNav\">
  193.           <h3>Navigation :</h3>
  194.           <div id=\"navigationImmemory\" class=\"\">
  195.             ";
  196.         // line 70
  197.         $this->loadTemplate("content/structure/menuZonesActives.html.twig""content/structure/show.html.twig"70)->display($context);
  198.         // line 71
  199.         echo "          </div>
  200.         </div>
  201.         ";
  202.         // line 74
  203.         if ( !(null === 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.'74$this->source); })()), "user", [], "any"falsefalsefalse74))) {
  204.             // line 75
  205.             echo "          <h3>Commentaires :</h3>
  206.           ";
  207.             // line 76
  208.             if ((=== twig_compare(twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["stack"]) || array_key_exists("stack"$context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.'76$this->source); })()), "commentaires", [], "any"falsefalsefalse76)), 0))) {
  209.                 // line 77
  210.                 echo "            Pas de Commentaire
  211.           ";
  212.             } else {
  213.                 // line 79
  214.                 echo "            ";
  215.                 $context['_parent'] = $context;
  216.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["stack"]) || array_key_exists("stack"$context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.'79$this->source); })()), "commentaires", [], "any"falsefalsefalse79));
  217.                 foreach ($context['_seq'] as $context["_key"] => $context["comm"]) {
  218.                     // line 80
  219.                     echo "              <div class=\"commentaire\" style=\"background-color:beige; padding:7px 7px 0 7px;border: 1px solid grey;\">
  220.                 ";
  221.                     // line 81
  222.                     echo twig_get_attribute($this->env$this->source$context["comm"], "texte", [], "any"falsefalsefalse81);
  223.                     echo "
  224.                 <div class=\"row\" style=\"padding:4px 0; border-top:1px solid grey; \">
  225.                   <div class=\"col-6\" style=\"text-align: left;\">
  226.                     <small> ";
  227.                     // line 85
  228.                     echo twig_escape_filter($this->envtwig_capitalize_string_filter($this->envtwig_slice($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["comm"], "userCrea", [], "any"falsefalsefalse85), 0, [], "array"falsefalsefalse85), "username", [], "any"falsefalsefalse85), 01)), "html"nulltrue);
  229.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["comm"], "userCrea", [], "any"falsefalsefalse85), 0, [], "array"falsefalsefalse85), "id", [], "any"falsefalsefalse85), "html"nulltrue);
  230.                     echo " le ";
  231.                     echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["comm"], "dateModif", [], "any"falsefalsefalse85), "d m Y"), "html"nulltrue);
  232.                     echo " à ";
  233.                     echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["comm"], "dateModif", [], "any"falsefalsefalse85), "H:i:s"), "html"nulltrue);
  234.                     echo " </small>
  235.                   </div>
  236.                   <div class=\"col-6\" style=\"text-align:right;\">
  237.                     ";
  238.                     // line 89
  239.                     if (((=== twig_compare(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.'89$this->source); })()), "user", [], "any"falsefalsefalse89), "id", [], "any"falsefalsefalse89), twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["comm"], "userCrea", [], "any"falsefalsefalse89), 0, [], "array"falsefalsefalse89), "id", [], "any"falsefalsefalse89))) || (=== twig_compare(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.'89$this->source); })()), "user", [], "any"falsefalsefalse89), "roles", [], "any"falsefalsefalse89), 0, [], "array"falsefalsefalse89), "ROLE_ADMIN")))) {
  240.                         // line 90
  241.                         echo "                      <a id=\"btnModifComm_";
  242.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["comm"], "id", [], "any"falsefalsefalse90), "html"nulltrue);
  243.                         echo "\" href=\"#ligne_";
  244.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["stack"]) || array_key_exists("stack"$context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.'90$this->source); })()), "id", [], "any"falsefalsefalse90), "html"nulltrue);
  245.                         echo "\" class=\"btn btn-sm btn-warning\" title=\"Modifier\">
  246.                         <i class=\"fa fa-pencil-square-o\" aria-hidden=\"true\"></i>
  247.                       </a>
  248.                       <a id=\"btnSupprComm_";
  249.                         // line 93
  250.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["comm"], "id", [], "any"falsefalsefalse93), "html"nulltrue);
  251.                         echo "\" href=\"#ligne_";
  252.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["stack"]) || array_key_exists("stack"$context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.'93$this->source); })()), "id", [], "any"falsefalsefalse93), "html"nulltrue);
  253.                         echo "\" class=\"btn btn-sm btn-danger\" title=\"Effacer\">
  254.                         <i class=\"fa fa-trash\" aria-hidden=\"true\"></i>
  255.                       </a>
  256.                     ";
  257.                     }
  258.                     // line 97
  259.                     echo "                  </div>
  260.                 </div>
  261.               </div>
  262.             ";
  263.                 }
  264.                 $_parent $context['_parent'];
  265.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['comm'], $context['_parent'], $context['loop']);
  266.                 $context array_intersect_key($context$_parent) + $_parent;
  267.                 // line 102
  268.                 echo "          ";
  269.             }
  270.             // line 103
  271.             echo "        ";
  272.         } else {
  273.             // line 104
  274.             echo "        ";
  275.         }
  276.         // line 105
  277.         echo "        <br><br>
  278.         <h3>Médias :</h3>
  279.         ";
  280.         // line 109
  281.         if ((((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["stack"] ?? null), "film", [], "any"falsetruefalse109), "nom", [], "any"truetruefalse109) && (!== twig_compare(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["stack"]) || array_key_exists("stack"$context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.'109$this->source); })()), "film", [], "any"falsefalsefalse109), "nom", [], "any"falsefalsefalse109), "-"))) && (!== twig_compare(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["stack"]) || array_key_exists("stack"$context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.'109$this->source); })()), "film", [], "any"falsefalsefalse109), "nom", [], "any"falsefalsefalse109), "Vide"))) && (!== twig_compare(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["stack"]) || array_key_exists("stack"$context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.'109$this->source); })()), "film", [], "any"falsefalsefalse109), "id", [], "any"falsefalsefalse109), 1)))) {
  282.             // line 110
  283.             echo "          <!-- film -->
  284.           <h3>Movies :</h3>
  285.           <h5> ";
  286.             // line 112
  287.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["stack"]) || array_key_exists("stack"$context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.'112$this->source); })()), "film", [], "any"falsefalsefalse112), "id", [], "any"falsefalsefalse112), "html"nulltrue);
  288.             echo ". ";
  289.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["stack"]) || array_key_exists("stack"$context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.'112$this->source); })()), "film", [], "any"falsefalsefalse112), "nom", [], "any"falsefalsefalse112), "html"nulltrue);
  290.             echo " </h5>
  291.         ";
  292.         } else {
  293.             // line 114
  294.             echo "          <i> No clip</i> <br>
  295.         ";
  296.         }
  297.         // line 116
  298.         echo "        <br><br>
  299.         ";
  300.         // line 119
  301.         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["stack"] ?? null), "transitIn", [], "any"falsetruefalse119), "son0", [], "any"truetruefalse119) &&  !(null === twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["stack"]) || array_key_exists("stack"$context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.'119$this->source); })()), "transitIn", [], "any"falsefalsefalse119), "son0", [], "any"falsefalsefalse119)))) {
  302.             // line 120
  303.             echo "          <!-- Son -->
  304.           <h3>Sound :</h3>
  305.           <h5>  ";
  306.             // line 122
  307.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["stack"]) || array_key_exists("stack"$context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.'122$this->source); })()), "transitIn", [], "any"falsefalsefalse122), "son0", [], "any"falsefalsefalse122), "html"nulltrue);
  308.             echo " </h5>
  309.         ";
  310.         } else {
  311.             // line 124
  312.             echo "          <i>No sound </i><br>
  313.         ";
  314.         }
  315.         // line 126
  316.         echo "
  317.       </div>
  318.       <div id=\"txt\" class=\" col-12 textShowAdmin\">
  319.         ";
  320.         // line 130
  321.         if ((twig_get_attribute($this->env$this->source, ($context["stack"] ?? null), "texte", [], "any"truetruefalse130) &&  !(null === twig_get_attribute($this->env$this->source, (isset($context["stack"]) || array_key_exists("stack"$context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.'130$this->source); })()), "texte", [], "any"falsefalsefalse130)))) {
  322.             // line 131
  323.             echo "          <!-- Texte -->
  324.           <h3>Text :</h3>
  325.           <p>  ";
  326.             // line 133
  327.             echo twig_get_attribute($this->env$this->source, (isset($context["stack"]) || array_key_exists("stack"$context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.'133$this->source); })()), "texte", [], "any"falsefalsefalse133);
  328.             echo " </p>
  329.         ";
  330.         } else {
  331.             // line 135
  332.             echo "          <i> No text</i> <br>
  333.         ";
  334.         }
  335.         // line 137
  336.         echo "      </div>
  337.     </div>
  338.   </div>
  339.   <div id=\"fondForm\" class=\"fondForm\" style=\"
  340.                 background-color: black;
  341.                 position: fixed;
  342.                 display: none;
  343.                 width: 100%;
  344.                 height: 100%; color:white;
  345.                 top:0; left:0; z-index:200; opacity:1;\">
  346.       <div class=\"container\">
  347.         <div class=\"row justify-content-center\">
  348.           <div id=\"contenuForm\" class=\"col-12\">
  349.           </div>
  350.         </div>
  351.       </div>
  352.   </div>
  353. ";
  354.         
  355.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  356.         
  357.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  358.     }
  359.     // line 165
  360.     public function block_javascripts($context, array $blocks = [])
  361.     {
  362.         $macros $this->macros;
  363.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  364.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  365.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  366.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  367.         // line 166
  368.         echo "<script type=\"text/javascript\">
  369.   \$(function(){
  370. // ---------------------------------------
  371. // gestion du bouton ajouter un commentaire
  372. \$('[id ^= \"btnAjouteComm_\"]').click(function(){
  373.   // recup code
  374.   monid = \$(this).attr('id').substr(14);
  375.   console.log( monid );
  376.   // affiche le fond du formulaire
  377.   \$(\"#fondForm\").show(145);
  378.   // charge le formulaire d'ajout de commentaire dans le fond du formulaire
  379.   \$.ajax({
  380.     type: \"POST\",
  381.     url: \"";
  382.         // line 184
  383.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("membre_stacks_commentaire_formAjoute");
  384.         echo "\",
  385.     data: {
  386.       cardId: \$(this).attr('id').substr(14),
  387.     },
  388.     success: function(msg)
  389.     {
  390.       // affiche le code de la stack
  391.       \$( \"#contenuForm\" ).html( msg );
  392.       \$(\"#btnCloseForm\").click(function(){
  393.         \$(\"#fondForm\").hide(145);
  394.       });
  395.       \$(\"#btnCloseForm2\").click(function(){
  396.         \$(\"#fondForm\").hide(145);
  397.       });
  398.       \$('[name ^= \"form\"]').submit(function(evt){
  399.         evt.preventDefault();
  400.         // recup données
  401.         texte = CKEDITOR.instances['form_texte'].getData()
  402.         \$.ajax({
  403.           type: \"POST\",
  404.           url: \"";
  405.         // line 209
  406.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("membre_stacks_commentaire_formTraitement");
  407.         echo "\",
  408.           data: {
  409.             texte: texte,
  410.             monid: monid,
  411.           },
  412.           success: function(msg2)
  413.           {
  414.             console.log(\"formTraitement \" + msg2['ok']);
  415.             \$(\"#fondForm\").hide(145);
  416.             location.reload(true);
  417.           }
  418.         });
  419.         console.log(\"submit form \" + texte);
  420.       });
  421.     }
  422.   });
  423. });
  424. // gestion du bouton ajouter un commentaire
  425. \$('[id ^= \"btnModifComm_\"]').click(function(){
  426.   // recup code
  427.   monid = \$(this).attr('id').substr(13);
  428.   console.log( monid );
  429.   // affiche le fond du formulaire
  430.   \$(\"#fondForm\").show(145);
  431.   // charge le formulaire d'ajout de commentaire dans le fond du formulaire
  432.   \$.ajax({
  433.     type: \"POST\",
  434.     url: \"";
  435.         // line 242
  436.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("membre_stacks_commentaire_formModif");
  437.         echo "\",
  438.     data: {
  439.       commId: monid,
  440.     },
  441.     success: function(msg)
  442.     {
  443.       // affiche le code de la stack
  444.       \$( \"#contenuForm\" ).html( msg );
  445.       \$(\"#btnCloseForm\").click(function(){
  446.         \$(\"#fondForm\").hide(145);
  447.         \$( \"#contenuForm\" ).html( \"\" );
  448.       });
  449.       \$(\"#btnCloseForm2\").click(function(){
  450.         \$(\"#fondForm\").hide(145);
  451.         \$( \"#contenuForm\" ).html( \"\" );
  452.       });
  453.       //
  454.       \$('[name ^= \"form\"]').submit(function(evt){
  455.         evt.preventDefault();
  456.         // recup données
  457.         texte = CKEDITOR.instances['form_texte'].getData()
  458.         \$.ajax({
  459.           type: \"POST\",
  460.           url: \"";
  461.         // line 270
  462.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("membre_stacks_commentaire_formModifTraitement");
  463.         echo "\",
  464.           data: {
  465.             texte: texte,
  466.             monid: monid,
  467.           },
  468.         /*
  469.         */
  470.           success: function(msg2)
  471.           {
  472.             console.log(\"formModifTraitement \" + msg2['ok']);
  473.             \$(\"#fondForm\").hide(145);
  474.             \$( \"#contenuForm\" ).html( \"\" );
  475.             location.reload(true);
  476.           }
  477.         });
  478.         console.log(\"submit form \" + texte);
  479.       });
  480.     }
  481.   });
  482. });
  483. // gestion du bouton ajouter un commentaire
  484. \$('[id ^= \"btnSupprComm_\"]').click(function(){
  485.   // recup code
  486.   monid = \$(this).attr('id').substr(13);
  487.   console.log( monid );
  488.   // affiche le fond du formulaire
  489.   \$(\"#fondForm\").show(145);
  490.   // charge le formulaire d'ajout de commentaire dans le fond du formulaire
  491.   \$.ajax({
  492.     type: \"POST\",
  493.     url: \"";
  494.         // line 306
  495.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("membre_stacks_commentaire_formSuppr");
  496.         echo "\",
  497.     data: {
  498.       commId: monid,
  499.     },
  500.     success: function(msg)
  501.     {
  502.       // affiche le code de la stack
  503.       \$( \"#contenuForm\" ).html( msg );
  504.       \$(\"#btnCloseForm\").click(function(){
  505.         \$(\"#fondForm\").hide(145);
  506.         \$( \"#contenuForm\" ).html( \"\" );
  507.       });
  508.       \$(\"#btnCloseForm2\").click(function(){
  509.         \$(\"#fondForm\").hide(145);
  510.         \$( \"#contenuForm\" ).html( \"\" );
  511.       });
  512.       //
  513.       \$('[id ^= \"btnSuppCommOui_\"]').click(function(){
  514.         console.log(\"oui\");
  515.         \$.ajax({
  516.           type: \"POST\",
  517.           url: \"";
  518.         // line 331
  519.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("membre_stacks_commentaire_formSupprTraitement");
  520.         echo "\",
  521.           data: {
  522.             monid: monid,
  523.           },
  524.           success: function(msg2)
  525.           {
  526.             console.log(\"formSupprTraitement \" + msg2['ok']);
  527.             \$(\"#fondForm\").hide(145);
  528.             \$( \"#contenuForm\" ).html( \"\" );
  529.             location.reload(true);
  530.           }
  531.           /*
  532.           */
  533.         });
  534.       });
  535.     }
  536.   });
  537. });
  538. });
  539. </script>
  540. ";
  541.         
  542.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  543.         
  544.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  545.     }
  546.     public function getTemplateName()
  547.     {
  548.         return "content/structure/show.html.twig";
  549.     }
  550.     public function isTraitable()
  551.     {
  552.         return false;
  553.     }
  554.     public function getDebugInfo()
  555.     {
  556.         return array (  600 => 331,  572 => 306,  533 => 270,  502 => 242,  466 => 209,  438 => 184,  418 => 166,  408 => 165,  373 => 137,  369 => 135,  364 => 133,  360 => 131,  358 => 130,  352 => 126,  348 => 124,  343 => 122,  339 => 120,  337 => 119,  332 => 116,  328 => 114,  321 => 112,  317 => 110,  315 => 109,  309 => 105,  306 => 104,  303 => 103,  300 => 102,  290 => 97,  281 => 93,  272 => 90,  270 => 89,  258 => 85,  251 => 81,  248 => 80,  243 => 79,  239 => 77,  237 => 76,  234 => 75,  232 => 74,  227 => 71,  225 => 70,  216 => 63,  210 => 61,  204 => 59,  202 => 58,  199 => 57,  196 => 56,  190 => 55,  187 => 54,  180 => 50,  173 => 47,  170 => 46,  165 => 45,  163 => 44,  156 => 40,  148 => 35,  144 => 34,  140 => 33,  136 => 32,  127 => 25,  125 => 24,  117 => 23,  113 => 22,  105 => 17,  95 => 9,  93 => 8,  90 => 7,  80 => 6,  60 => 4,  37 => 1,);
  557.     }
  558.     public function getSourceContext()
  559.     {
  560.         return new Source("{% extends 'content/baseImmemory.html.twig' %}
  561. {# extends 'realisations/immemory/base.html.twig' #}
  562. {% block title %}{{ stack.nom }} {% endblock %}
  563. {% block body %}
  564.   <div class=\"col-12 menuShow\">
  565.     {% include \"content/structure/breadcrumb.html.twig\" %}
  566.   </div>
  567.   <div class=\"container-fluid\">
  568.     <div class=\"row fondintro\">
  569.       <div class=\"col-12 titreCard\">
  570.         <h1>
  571.           {{ stack.nom }}
  572.         </h1>
  573.       </div>
  574.       <div class=\"col-12 col-md-6 showAdmin\">
  575.         <div class=\"zonesImg{{ stack.id }}\" style=\"position:relative; \">
  576.           <img src=\"{{ pathLocal }}/{{ stack.urlImage }}\" alt=\"{{ stack.urlImage }}\" class=\" img-fluid\">
  577.           {% include \"content/structure/zonesActives.html.twig\" %}
  578.         </div>
  579.       </div>
  580.       <div class=\"col-12 col-md-6\">
  581.         <div class=\"col-12 details\">
  582.           <ul>
  583.             <li>Id : <span class=\"categorie_details\">{{ stack.id }}</span></li>
  584.             <li>Catégorie : <span class=\"categorie_details\">{{ stack.Scategorie.nom }}</span></li>
  585.             <li>Séquence : <span class=\"categorie_details\">{{ stack.Ssequence.nom }}</span></li>
  586.             <li>Card : <span class=\"categorie_details\">{{ stack.nom }}</span></li>
  587.           </ul>
  588.         </div>
  589.         <div class=\"col-12 showBtns\">
  590.           <a class=\"btn btnImmemory\" href=\"{{ path('front_cdrom_900_ciblebif', {'id': stack.id}) }}\" target=\"_blank\">
  591.             voir dans CDRom
  592.           </a>
  593.           {% if app.user is not null %}
  594.             {% for role in app.user.roles  %}
  595.               {% if role == \"ROLE_ADMIN\" %}
  596.                 <a class=\"btn btnImmemory\" href=\"{{ path('admin_stacks_edit', {'id': stack.id}) }}\">
  597.                   Modifier
  598.                 </a>
  599.                 <a class=\"btn btnImmemory\" href=\"{{ path('admin_stacks_delete', {'id': stack.id}) }}\">
  600.                   Supprimer
  601.                 </a>
  602.               {% else %}
  603.               {% endif %}
  604.             {% endfor %}
  605.           {% endif %}
  606.           {% if recherche == 0 %}
  607.             <a class=\"btn btnImmemory rouge\" href=\"{{ urlBack }}\">
  608.           {% else %}
  609.             <a class=\"btn btnImmemory rouge\" href=\"{{ path('webSite_stacks_sequence_recherche', {'page': 1, 'search': recherche }) }}\">
  610.           {% endif %}
  611.               Retour
  612.             </a>
  613.         </div>
  614.         <div class=\"listNav\">
  615.           <h3>Navigation :</h3>
  616.           <div id=\"navigationImmemory\" class=\"\">
  617.             {% include \"content/structure/menuZonesActives.html.twig\" %}
  618.           </div>
  619.         </div>
  620.         {% if app.user is not null %}
  621.           <h3>Commentaires :</h3>
  622.           {% if stack.commentaires|length == 0 %}
  623.             Pas de Commentaire
  624.           {% else %}
  625.             {% for comm in stack.commentaires %}
  626.               <div class=\"commentaire\" style=\"background-color:beige; padding:7px 7px 0 7px;border: 1px solid grey;\">
  627.                 {{ comm.texte|raw }}
  628.                 <div class=\"row\" style=\"padding:4px 0; border-top:1px solid grey; \">
  629.                   <div class=\"col-6\" style=\"text-align: left;\">
  630.                     <small> {{ comm.userCrea[0].username|slice(0, 1) | capitalize }}{{ comm.userCrea[0].id }} le {{ comm.dateModif|date(\"d m Y\") }} à {{ comm.dateModif|date(\"H:i:s\") }} </small>
  631.                   </div>
  632.                   <div class=\"col-6\" style=\"text-align:right;\">
  633.                     {% if app.user.id == comm.userCrea[0].id or app.user.roles[0] == \"ROLE_ADMIN\" %}
  634.                       <a id=\"btnModifComm_{{ comm.id }}\" href=\"#ligne_{{ stack.id }}\" class=\"btn btn-sm btn-warning\" title=\"Modifier\">
  635.                         <i class=\"fa fa-pencil-square-o\" aria-hidden=\"true\"></i>
  636.                       </a>
  637.                       <a id=\"btnSupprComm_{{ comm.id }}\" href=\"#ligne_{{ stack.id }}\" class=\"btn btn-sm btn-danger\" title=\"Effacer\">
  638.                         <i class=\"fa fa-trash\" aria-hidden=\"true\"></i>
  639.                       </a>
  640.                     {% endif %}
  641.                   </div>
  642.                 </div>
  643.               </div>
  644.             {% endfor %}
  645.           {% endif %}
  646.         {% else %}
  647.         {% endif %}
  648.         <br><br>
  649.         <h3>Médias :</h3>
  650.         {% if stack.film.nom is defined and stack.film.nom != \"-\" and stack.film.nom != \"Vide\" and stack.film.id != 1 %}
  651.           <!-- film -->
  652.           <h3>Movies :</h3>
  653.           <h5> {{ stack.film.id }}. {{ stack.film.nom }} </h5>
  654.         {% else %}
  655.           <i> No clip</i> <br>
  656.         {% endif %}
  657.         <br><br>
  658.         {% if stack.transitIn.son0 is defined and stack.transitIn.son0 is not null %}
  659.           <!-- Son -->
  660.           <h3>Sound :</h3>
  661.           <h5>  {{ stack.transitIn.son0 }} </h5>
  662.         {% else %}
  663.           <i>No sound </i><br>
  664.         {% endif %}
  665.       </div>
  666.       <div id=\"txt\" class=\" col-12 textShowAdmin\">
  667.         {% if stack.texte is defined and stack.texte is not null %}
  668.           <!-- Texte -->
  669.           <h3>Text :</h3>
  670.           <p>  {{ stack.texte|raw }} </p>
  671.         {% else %}
  672.           <i> No text</i> <br>
  673.         {% endif %}
  674.       </div>
  675.     </div>
  676.   </div>
  677.   <div id=\"fondForm\" class=\"fondForm\" style=\"
  678.                 background-color: black;
  679.                 position: fixed;
  680.                 display: none;
  681.                 width: 100%;
  682.                 height: 100%; color:white;
  683.                 top:0; left:0; z-index:200; opacity:1;\">
  684.       <div class=\"container\">
  685.         <div class=\"row justify-content-center\">
  686.           <div id=\"contenuForm\" class=\"col-12\">
  687.           </div>
  688.         </div>
  689.       </div>
  690.   </div>
  691. {% endblock %}
  692. {% block javascripts %}
  693. <script type=\"text/javascript\">
  694.   \$(function(){
  695. // ---------------------------------------
  696. // gestion du bouton ajouter un commentaire
  697. \$('[id ^= \"btnAjouteComm_\"]').click(function(){
  698.   // recup code
  699.   monid = \$(this).attr('id').substr(14);
  700.   console.log( monid );
  701.   // affiche le fond du formulaire
  702.   \$(\"#fondForm\").show(145);
  703.   // charge le formulaire d'ajout de commentaire dans le fond du formulaire
  704.   \$.ajax({
  705.     type: \"POST\",
  706.     url: \"{{ path('membre_stacks_commentaire_formAjoute') }}\",
  707.     data: {
  708.       cardId: \$(this).attr('id').substr(14),
  709.     },
  710.     success: function(msg)
  711.     {
  712.       // affiche le code de la stack
  713.       \$( \"#contenuForm\" ).html( msg );
  714.       \$(\"#btnCloseForm\").click(function(){
  715.         \$(\"#fondForm\").hide(145);
  716.       });
  717.       \$(\"#btnCloseForm2\").click(function(){
  718.         \$(\"#fondForm\").hide(145);
  719.       });
  720.       \$('[name ^= \"form\"]').submit(function(evt){
  721.         evt.preventDefault();
  722.         // recup données
  723.         texte = CKEDITOR.instances['form_texte'].getData()
  724.         \$.ajax({
  725.           type: \"POST\",
  726.           url: \"{{ path('membre_stacks_commentaire_formTraitement') }}\",
  727.           data: {
  728.             texte: texte,
  729.             monid: monid,
  730.           },
  731.           success: function(msg2)
  732.           {
  733.             console.log(\"formTraitement \" + msg2['ok']);
  734.             \$(\"#fondForm\").hide(145);
  735.             location.reload(true);
  736.           }
  737.         });
  738.         console.log(\"submit form \" + texte);
  739.       });
  740.     }
  741.   });
  742. });
  743. // gestion du bouton ajouter un commentaire
  744. \$('[id ^= \"btnModifComm_\"]').click(function(){
  745.   // recup code
  746.   monid = \$(this).attr('id').substr(13);
  747.   console.log( monid );
  748.   // affiche le fond du formulaire
  749.   \$(\"#fondForm\").show(145);
  750.   // charge le formulaire d'ajout de commentaire dans le fond du formulaire
  751.   \$.ajax({
  752.     type: \"POST\",
  753.     url: \"{{ path('membre_stacks_commentaire_formModif') }}\",
  754.     data: {
  755.       commId: monid,
  756.     },
  757.     success: function(msg)
  758.     {
  759.       // affiche le code de la stack
  760.       \$( \"#contenuForm\" ).html( msg );
  761.       \$(\"#btnCloseForm\").click(function(){
  762.         \$(\"#fondForm\").hide(145);
  763.         \$( \"#contenuForm\" ).html( \"\" );
  764.       });
  765.       \$(\"#btnCloseForm2\").click(function(){
  766.         \$(\"#fondForm\").hide(145);
  767.         \$( \"#contenuForm\" ).html( \"\" );
  768.       });
  769.       //
  770.       \$('[name ^= \"form\"]').submit(function(evt){
  771.         evt.preventDefault();
  772.         // recup données
  773.         texte = CKEDITOR.instances['form_texte'].getData()
  774.         \$.ajax({
  775.           type: \"POST\",
  776.           url: \"{{ path('membre_stacks_commentaire_formModifTraitement') }}\",
  777.           data: {
  778.             texte: texte,
  779.             monid: monid,
  780.           },
  781.         /*
  782.         */
  783.           success: function(msg2)
  784.           {
  785.             console.log(\"formModifTraitement \" + msg2['ok']);
  786.             \$(\"#fondForm\").hide(145);
  787.             \$( \"#contenuForm\" ).html( \"\" );
  788.             location.reload(true);
  789.           }
  790.         });
  791.         console.log(\"submit form \" + texte);
  792.       });
  793.     }
  794.   });
  795. });
  796. // gestion du bouton ajouter un commentaire
  797. \$('[id ^= \"btnSupprComm_\"]').click(function(){
  798.   // recup code
  799.   monid = \$(this).attr('id').substr(13);
  800.   console.log( monid );
  801.   // affiche le fond du formulaire
  802.   \$(\"#fondForm\").show(145);
  803.   // charge le formulaire d'ajout de commentaire dans le fond du formulaire
  804.   \$.ajax({
  805.     type: \"POST\",
  806.     url: \"{{ path('membre_stacks_commentaire_formSuppr') }}\",
  807.     data: {
  808.       commId: monid,
  809.     },
  810.     success: function(msg)
  811.     {
  812.       // affiche le code de la stack
  813.       \$( \"#contenuForm\" ).html( msg );
  814.       \$(\"#btnCloseForm\").click(function(){
  815.         \$(\"#fondForm\").hide(145);
  816.         \$( \"#contenuForm\" ).html( \"\" );
  817.       });
  818.       \$(\"#btnCloseForm2\").click(function(){
  819.         \$(\"#fondForm\").hide(145);
  820.         \$( \"#contenuForm\" ).html( \"\" );
  821.       });
  822.       //
  823.       \$('[id ^= \"btnSuppCommOui_\"]').click(function(){
  824.         console.log(\"oui\");
  825.         \$.ajax({
  826.           type: \"POST\",
  827.           url: \"{{ path('membre_stacks_commentaire_formSupprTraitement') }}\",
  828.           data: {
  829.             monid: monid,
  830.           },
  831.           success: function(msg2)
  832.           {
  833.             console.log(\"formSupprTraitement \" + msg2['ok']);
  834.             \$(\"#fondForm\").hide(145);
  835.             \$( \"#contenuForm\" ).html( \"\" );
  836.             location.reload(true);
  837.           }
  838.           /*
  839.           */
  840.         });
  841.       });
  842.     }
  843.   });
  844. });
  845. });
  846. </script>
  847. {% endblock %}
  848. ""content/structure/show.html.twig""/var/www/clients/client2/web14/web/templates/content/structure/show.html.twig");
  849.     }
  850. }