var/cache/dev/twig/75/75a0cf92a1709d6d8045ed40c6ca8f68e310a312a720e3475b2e1c449a3a2e49.php line 38

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. /* bundles/EasyAdminBundle/mainexport.html.twig */
  14. class __TwigTemplate_5baea90585c5bfa63d33331e5e555f9af3312dee4b4631e3efcbf9b6ed3f9853 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.             'main' => [$this, 'block_main'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 1
  29.         return "@EasyAdmin/page/content.html.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros = $this->macros;
  34.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "bundles/EasyAdminBundle/mainexport.html.twig"));
  36.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "bundles/EasyAdminBundle/mainexport.html.twig"));
  38.         $this->parent = $this->loadTemplate("@EasyAdmin/page/content.html.twig", "bundles/EasyAdminBundle/mainexport.html.twig", 1);
  39.         $this->parent->display($context, array_merge($this->blocks, $blocks));
  40.         
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  42.         
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  44.     }
  45.     public function block_main($context, array $blocks = [])
  46.     {
  47.         $macros = $this->macros;
  48.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  49.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
  50.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  51.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
  52.         // line 2
  53.         echo "<div class=\"container\">
  54.     <div class=\"row\">
  55.         <div class=\"col-lg-4 col-md-4 col-xs-4\">
  56.             <label>
  57.                  Catégories formations <br>
  58.             </label>
  59.             <select class=\"form-control categorie\" required=\"required\">
  60.                     <option value=\"0\">Choisie catégorie</option>
  61.                     <option value=\"1\">Congré</option>
  62.                     <option value=\"2\">Autre</option>
  63.             </select>
  64.         </div>
  65.         <div class=\"col-lg-4 col-md-4 col-xs-4\">
  66.             <label>
  67.                  formation <br>
  68.             </label>
  69.             <select class=\"form-control formation\">
  70.                  
  71.                    
  72.             </select>
  73.         </div>
  74.         <div class=\"col-lg-12 col-md-12 col-xs-12\">
  75.             <br>
  76.             <button class=\"btn btn-info save\">Search</button>
  77.         </div>
  78.     </div>
  79. </div>
  80. <script src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.6.3/jquery.min.js\"></script>
  81. <script src=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js\"></script>
  82. <script>
  83.     categorie = 0;
  84.     formation = 0;
  85.     \$(\".save\").click(function() {
  86.         if (categorie == 0) {
  87.             \$(\".categorie\").css(\"border\", \"1px solid red\");
  88.         } else {
  89.             \$(\".categorie\").css(\"border\", \"1px solid green\");
  90.         }
  91.         if (formation == 0) {
  92.             \$(\".formation\").css(\"border\", \"1px solid red\");
  93.         } else {
  94.             \$(\".formation\").css(\"border\", \"1px solid green\");
  95.         }
  96.         if (categorie != 0 && formation != 0) {
  97.             if (categorie == 1) {
  98.                 window.location.href = \"/admin/export/\" + formation + \"/congre\"
  99.             } else {
  100.                 window.location.href = \"/admin/export/\" + formation + \"/autre\"
  101.             }
  102.         }
  103.     });
  104.     \$('.categorie').on('change', function() {
  105.         categorie = this.value;
  106.         \$ret = \"<option value='0'>Choisie formation</option>\";
  107.         if (categorie != 0) {
  108.             \$.get(\"/getall/\" + categorie, function(data, status) {
  109.                 for (i = 0; i < data.length; i++) {
  110.                     \$ret += \"<option value='\" + data[i]['id'] + \"'>\" + data[i]['titre'] + \"</option>\";
  111.                 }
  112.                 \$(\".formation\").html(\$ret);
  113.             });
  114.         }
  115.     });
  116.     \$('.formation').on('change', function() {
  117.         formation = this.value;
  118.     });
  119. </script>
  120. ";
  121.         
  122.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  123.         
  124.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  125.     }
  126.     /**
  127.      * @codeCoverageIgnore
  128.      */
  129.     public function getTemplateName()
  130.     {
  131.         return "bundles/EasyAdminBundle/mainexport.html.twig";
  132.     }
  133.     /**
  134.      * @codeCoverageIgnore
  135.      */
  136.     public function isTraitable()
  137.     {
  138.         return false;
  139.     }
  140.     /**
  141.      * @codeCoverageIgnore
  142.      */
  143.     public function getDebugInfo()
  144.     {
  145.         return array (  67 => 2,  35 => 1,);
  146.     }
  147.     public function getSourceContext()
  148.     {
  149.         return new Source("{# @var ea \\EasyCorp\\Bundle\\EasyAdminBundle\\Context\\AdminContext #} {% extends '@EasyAdmin/page/content.html.twig' %} {% block main %}
  150. <div class=\"container\">
  151.     <div class=\"row\">
  152.         <div class=\"col-lg-4 col-md-4 col-xs-4\">
  153.             <label>
  154.                  Catégories formations <br>
  155.             </label>
  156.             <select class=\"form-control categorie\" required=\"required\">
  157.                     <option value=\"0\">Choisie catégorie</option>
  158.                     <option value=\"1\">Congré</option>
  159.                     <option value=\"2\">Autre</option>
  160.             </select>
  161.         </div>
  162.         <div class=\"col-lg-4 col-md-4 col-xs-4\">
  163.             <label>
  164.                  formation <br>
  165.             </label>
  166.             <select class=\"form-control formation\">
  167.                  
  168.                    
  169.             </select>
  170.         </div>
  171.         <div class=\"col-lg-12 col-md-12 col-xs-12\">
  172.             <br>
  173.             <button class=\"btn btn-info save\">Search</button>
  174.         </div>
  175.     </div>
  176. </div>
  177. <script src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.6.3/jquery.min.js\"></script>
  178. <script src=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js\"></script>
  179. <script>
  180.     categorie = 0;
  181.     formation = 0;
  182.     \$(\".save\").click(function() {
  183.         if (categorie == 0) {
  184.             \$(\".categorie\").css(\"border\", \"1px solid red\");
  185.         } else {
  186.             \$(\".categorie\").css(\"border\", \"1px solid green\");
  187.         }
  188.         if (formation == 0) {
  189.             \$(\".formation\").css(\"border\", \"1px solid red\");
  190.         } else {
  191.             \$(\".formation\").css(\"border\", \"1px solid green\");
  192.         }
  193.         if (categorie != 0 && formation != 0) {
  194.             if (categorie == 1) {
  195.                 window.location.href = \"/admin/export/\" + formation + \"/congre\"
  196.             } else {
  197.                 window.location.href = \"/admin/export/\" + formation + \"/autre\"
  198.             }
  199.         }
  200.     });
  201.     \$('.categorie').on('change', function() {
  202.         categorie = this.value;
  203.         \$ret = \"<option value='0'>Choisie formation</option>\";
  204.         if (categorie != 0) {
  205.             \$.get(\"/getall/\" + categorie, function(data, status) {
  206.                 for (i = 0; i < data.length; i++) {
  207.                     \$ret += \"<option value='\" + data[i]['id'] + \"'>\" + data[i]['titre'] + \"</option>\";
  208.                 }
  209.                 \$(\".formation\").html(\$ret);
  210.             });
  211.         }
  212.     });
  213.     \$('.formation').on('change', function() {
  214.         formation = this.value;
  215.     });
  216. </script>
  217. {% endblock %}", "bundles/EasyAdminBundle/mainexport.html.twig", "/var/www/vhosts/astp.tn/httpdocs/templates/bundles/EasyAdminBundle/mainexport.html.twig");
  218.     }
  219. }