var/cache/dev/twig/fc/fc7f57ccf9a5fba64d8db8e42913b81cb2e7ecb680f8ca2d33793acd06ec7dac.php line 107

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. /* SonataDoctrineORMAdminBundle:Form:form_admin_fields.html.twig */
  14. class __TwigTemplate_eeae2dadcda6a3dfe3d8cb93e86478aee1540cdf5f62f3920751aaf13ee938dc extends \Twig\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.             'sonata_admin_orm_one_to_one_widget' => [$this'block_sonata_admin_orm_one_to_one_widget'],
  24.             'sonata_admin_orm_many_to_many_widget' => [$this'block_sonata_admin_orm_many_to_many_widget'],
  25.             'sonata_admin_orm_many_to_one_widget' => [$this'block_sonata_admin_orm_many_to_one_widget'],
  26.             'sonata_admin_orm_one_to_many_widget' => [$this'block_sonata_admin_orm_one_to_many_widget'],
  27.             'sonata_type_model_widget' => [$this'block_sonata_type_model_widget'],
  28.             'sonata_type_model_list_widget' => [$this'block_sonata_type_model_list_widget'],
  29.             'sonata_type_admin_widget' => [$this'block_sonata_type_admin_widget'],
  30.             'sonata_type_collection_widget' => [$this'block_sonata_type_collection_widget'],
  31.         ];
  32.     }
  33.     protected function doGetParent(array $context)
  34.     {
  35.         // line 12
  36.         return "@SonataAdmin/Form/form_admin_fields.html.twig";
  37.     }
  38.     protected function doDisplay(array $context, array $blocks = [])
  39.     {
  40.         $macros $this->macros;
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  42.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""SonataDoctrineORMAdminBundle:Form:form_admin_fields.html.twig"));
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  44.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""SonataDoctrineORMAdminBundle:Form:form_admin_fields.html.twig"));
  45.         $this->parent $this->loadTemplate("@SonataAdmin/Form/form_admin_fields.html.twig""SonataDoctrineORMAdminBundle:Form:form_admin_fields.html.twig"12);
  46.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  47.         
  48.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  49.         
  50.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  51.     }
  52.     // line 16
  53.     public function block_sonata_admin_orm_one_to_one_widget($context, array $blocks = [])
  54.     {
  55.         $macros $this->macros;
  56.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  57.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_admin_orm_one_to_one_widget"));
  58.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  59.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_admin_orm_one_to_one_widget"));
  60.         // line 17
  61.         echo "    ";
  62.         $this->loadTemplate("@SonataAdmin/CRUD/Association/edit_one_to_one.html.twig""SonataDoctrineORMAdminBundle:Form:form_admin_fields.html.twig"17)->display($context);
  63.         
  64.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  65.         
  66.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  67.     }
  68.     // line 20
  69.     public function block_sonata_admin_orm_many_to_many_widget($context, array $blocks = [])
  70.     {
  71.         $macros $this->macros;
  72.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  73.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_admin_orm_many_to_many_widget"));
  74.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  75.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_admin_orm_many_to_many_widget"));
  76.         // line 21
  77.         echo "    ";
  78.         $this->loadTemplate("@SonataAdmin/CRUD/Association/edit_many_to_many.html.twig""SonataDoctrineORMAdminBundle:Form:form_admin_fields.html.twig"21)->display($context);
  79.         
  80.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  81.         
  82.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  83.     }
  84.     // line 24
  85.     public function block_sonata_admin_orm_many_to_one_widget($context, array $blocks = [])
  86.     {
  87.         $macros $this->macros;
  88.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  89.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_admin_orm_many_to_one_widget"));
  90.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  91.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_admin_orm_many_to_one_widget"));
  92.         // line 25
  93.         echo "    ";
  94.         $this->loadTemplate("@SonataAdmin/CRUD/Association/edit_many_to_one.html.twig""SonataDoctrineORMAdminBundle:Form:form_admin_fields.html.twig"25)->display($context);
  95.         
  96.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  97.         
  98.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  99.     }
  100.     // line 28
  101.     public function block_sonata_admin_orm_one_to_many_widget($context, array $blocks = [])
  102.     {
  103.         $macros $this->macros;
  104.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  105.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_admin_orm_one_to_many_widget"));
  106.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  107.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_admin_orm_one_to_many_widget"));
  108.         // line 29
  109.         echo "    ";
  110.         $this->loadTemplate("@SonataAdmin/CRUD/Association/edit_one_to_many.html.twig""SonataDoctrineORMAdminBundle:Form:form_admin_fields.html.twig"29)->display($context);
  111.         
  112.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  113.         
  114.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  115.     }
  116.     // line 32
  117.     public function block_sonata_type_model_widget($context, array $blocks = [])
  118.     {
  119.         $macros $this->macros;
  120.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  121.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_type_model_widget"));
  122.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  123.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_type_model_widget"));
  124.         // line 33
  125.         echo "    ";
  126.         // line 37
  127.         echo "
  128.     ";
  129.         // line 39
  130.         echo "
  131.     ";
  132.         // line 40
  133.         if (twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'40$this->source); })()), "field_description", [], "any"falsefalsefalse40))) {
  134.             // line 41
  135.             echo "        ";
  136.             $this->displayBlock("choice_widget"$context$blocks);
  137.             echo "
  138.     ";
  139.         } elseif ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 42
  140. (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'42$this->source); })()), "field_description", [], "any"falsefalsefalse42), "mappingtype", [], "any"falsefalsefalse42) == twig_constant("Doctrine\\ORM\\Mapping\\ClassMetadataInfo::ONE_TO_ONE"))) {
  141.             // line 43
  142.             echo "        ";
  143.             $this->displayBlock("sonata_admin_orm_one_to_one_widget"$context$blocks);
  144.             echo "
  145.     ";
  146.         } elseif ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 44
  147. (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'44$this->source); })()), "field_description", [], "any"falsefalsefalse44), "mappingtype", [], "any"falsefalsefalse44) == twig_constant("Doctrine\\ORM\\Mapping\\ClassMetadataInfo::MANY_TO_ONE"))) {
  148.             // line 45
  149.             echo "        ";
  150.             $this->displayBlock("sonata_admin_orm_many_to_one_widget"$context$blocks);
  151.             echo "
  152.     ";
  153.         } elseif ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 46
  154. (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'46$this->source); })()), "field_description", [], "any"falsefalsefalse46), "mappingtype", [], "any"falsefalsefalse46) == twig_constant("Doctrine\\ORM\\Mapping\\ClassMetadataInfo::MANY_TO_MANY"))) {
  155.             // line 47
  156.             echo "        ";
  157.             $this->displayBlock("sonata_admin_orm_many_to_many_widget"$context$blocks);
  158.             echo "
  159.     ";
  160.         } elseif ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 48
  161. (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'48$this->source); })()), "field_description", [], "any"falsefalsefalse48), "mappingtype", [], "any"falsefalsefalse48) == twig_constant("Doctrine\\ORM\\Mapping\\ClassMetadataInfo::ONE_TO_MANY"))) {
  162.             // line 49
  163.             echo "        ";
  164.             $this->displayBlock("sonata_admin_orm_one_to_many_widget"$context$blocks);
  165.             echo "
  166.     ";
  167.         } else {
  168.             // line 51
  169.             echo "        ";
  170.             // line 52
  171.             echo "        ";
  172.             $this->displayBlock("choice_widget"$context$blocks);
  173.             echo "
  174.     ";
  175.         }
  176.         
  177.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  178.         
  179.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  180.     }
  181.     // line 56
  182.     public function block_sonata_type_model_list_widget($context, array $blocks = [])
  183.     {
  184.         $macros $this->macros;
  185.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  186.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_type_model_list_widget"));
  187.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  188.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_type_model_list_widget"));
  189.         // line 57
  190.         echo "    <div id=\"field_container_";
  191.         echo twig_escape_filter($this->env, (isset($context["id"]) || array_key_exists("id"$context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.'57$this->source); })()), "html"nulltrue);
  192.         echo "\" class=\"field-container\">
  193.         <span id=\"field_widget_";
  194.         // line 58
  195.         echo twig_escape_filter($this->env, (isset($context["id"]) || array_key_exists("id"$context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.'58$this->source); })()), "html"nulltrue);
  196.         echo "\" class=\"field-short-description\">
  197.             ";
  198.         // line 59
  199.         if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'59$this->source); })()), "field_description", [], "any"falsefalsefalse59), "associationadmin", [], "any"falsefalsefalse59), "id", [=> twig_get_attribute($this->env$this->source, (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'59$this->source); })()), "value", [], "any"falsefalsefalse59)], "method"falsefalsefalse59)) {
  200.             // line 60
  201.             echo "                ";
  202.             echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sonata_admin_short_object_information", ["code" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,             // line 61
  203. (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'61$this->source); })()), "field_description", [], "any"falsefalsefalse61), "associationadmin", [], "any"falsefalsefalse61), "code", [], "any"falsefalsefalse61), "objectId" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,             // line 62
  204. (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'62$this->source); })()), "field_description", [], "any"falsefalsefalse62), "associationadmin", [], "any"falsefalsefalse62), "id", [=> twig_get_attribute($this->env$this->source, (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'62$this->source); })()), "value", [], "any"falsefalsefalse62)], "method"falsefalsefalse62), "uniqid" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,             // line 63
  205. (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'63$this->source); })()), "field_description", [], "any"falsefalsefalse63), "associationadmin", [], "any"falsefalsefalse63), "uniqid", [], "any"falsefalsefalse63), "linkParameters" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,             // line 64
  206. (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'64$this->source); })()), "field_description", [], "any"falsefalsefalse64), "options", [], "any"falsefalsefalse64), "link_parameters", [], "any"falsefalsefalse64)]));
  207.             // line 65
  208.             echo "
  209.             ";
  210.         } elseif ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 66
  211. ($context["sonata_admin"] ?? null), "field_description", [], "any"falsetruefalse66), "options", [], "any"falsetruefalse66), "placeholder", [], "any"truetruefalse66) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'66$this->source); })()), "field_description", [], "any"falsefalsefalse66), "options", [], "any"falsefalsefalse66), "placeholder", [], "any"falsefalsefalse66))) {
  212.             // line 67
  213.             echo "                <span class=\"inner-field-short-description\">
  214.                     ";
  215.             // line 68
  216.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'68$this->source); })()), "field_description", [], "any"falsefalsefalse68), "options", [], "any"falsefalsefalse68), "placeholder", [], "any"falsefalsefalse68), [], "SonataAdminBundle"), "html"nulltrue);
  217.             echo "
  218.                 </span>
  219.             ";
  220.         }
  221.         // line 71
  222.         echo "        </span>
  223.         <span id=\"field_actions_";
  224.         // line 72
  225.         echo twig_escape_filter($this->env, (isset($context["id"]) || array_key_exists("id"$context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.'72$this->source); })()), "html"nulltrue);
  226.         echo "\" class=\"field-actions\">
  227.             <span class=\"btn-group\">
  228.                 ";
  229.         // line 74
  230.         if (((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'74$this->source); })()), "field_description", [], "any"falsefalsefalse74), "associationadmin", [], "any"falsefalsefalse74), "hasroute", [=> "list"], "method"falsefalsefalse74) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'74$this->source); })()), "field_description", [], "any"falsefalsefalse74), "associationadmin", [], "any"falsefalsefalse74), "isGranted", [=> "LIST"], "method"falsefalsefalse74)) && (isset($context["btn_list"]) || array_key_exists("btn_list"$context) ? $context["btn_list"] : (function () { throw new RuntimeError('Variable "btn_list" does not exist.'74$this->source); })()))) {
  231.             // line 75
  232.             echo "                    <a  href=\"";
  233.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'75$this->source); })()), "field_description", [], "any"falsefalsefalse75), "associationadmin", [], "any"falsefalsefalse75), "generateUrl", [=> "list"], "method"falsefalsefalse75), "html"nulltrue);
  234.             echo "\"
  235.                         onclick=\"return start_field_dialog_form_list_";
  236.             // line 76
  237.             echo twig_escape_filter($this->env, (isset($context["id"]) || array_key_exists("id"$context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.'76$this->source); })()), "html"nulltrue);
  238.             echo "(this);\"
  239.                         class=\"btn btn-info btn-sm sonata-ba-action\"
  240.                         title=\"";
  241.             // line 78
  242.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["btn_list"]) || array_key_exists("btn_list"$context) ? $context["btn_list"] : (function () { throw new RuntimeError('Variable "btn_list" does not exist.'78$this->source); })()), [], (isset($context["btn_catalogue"]) || array_key_exists("btn_catalogue"$context) ? $context["btn_catalogue"] : (function () { throw new RuntimeError('Variable "btn_catalogue" does not exist.'78$this->source); })())), "html"nulltrue);
  243.             echo "\"
  244.                             >
  245.                         <i class=\"fa fa-list\"></i>
  246.                         ";
  247.             // line 81
  248.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["btn_list"]) || array_key_exists("btn_list"$context) ? $context["btn_list"] : (function () { throw new RuntimeError('Variable "btn_list" does not exist.'81$this->source); })()), [], (isset($context["btn_catalogue"]) || array_key_exists("btn_catalogue"$context) ? $context["btn_catalogue"] : (function () { throw new RuntimeError('Variable "btn_catalogue" does not exist.'81$this->source); })())), "html"nulltrue);
  249.             echo "
  250.                     </a>
  251.                 ";
  252.         }
  253.         // line 84
  254.         echo "
  255.                 ";
  256.         // line 85
  257.         if (((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'85$this->source); })()), "field_description", [], "any"falsefalsefalse85), "associationadmin", [], "any"falsefalsefalse85), "hasroute", [=> "create"], "method"falsefalsefalse85) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 86
  258. (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'86$this->source); })()), "field_description", [], "any"falsefalsefalse86), "associationadmin", [], "any"falsefalsefalse86), "isGranted", [=> "CREATE"], "method"falsefalsefalse86)) &&         // line 87
  259. (isset($context["btn_add"]) || array_key_exists("btn_add"$context) ? $context["btn_add"] : (function () { throw new RuntimeError('Variable "btn_add" does not exist.'87$this->source); })()))) {
  260.             // line 89
  261.             echo "                    <a  href=\"";
  262.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'89$this->source); })()), "field_description", [], "any"falsefalsefalse89), "associationadmin", [], "any"falsefalsefalse89), "generateUrl", [=> "create"], "method"falsefalsefalse89), "html"nulltrue);
  263.             echo "\"
  264.                         onclick=\"return start_field_dialog_form_add_";
  265.             // line 90
  266.             echo twig_escape_filter($this->env, (isset($context["id"]) || array_key_exists("id"$context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.'90$this->source); })()), "html"nulltrue);
  267.             echo "(this);\"
  268.                         class=\"btn btn-success btn-sm sonata-ba-action\"
  269.                         title=\"";
  270.             // line 92
  271.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["btn_add"]) || array_key_exists("btn_add"$context) ? $context["btn_add"] : (function () { throw new RuntimeError('Variable "btn_add" does not exist.'92$this->source); })()), [], (isset($context["btn_catalogue"]) || array_key_exists("btn_catalogue"$context) ? $context["btn_catalogue"] : (function () { throw new RuntimeError('Variable "btn_catalogue" does not exist.'92$this->source); })())), "html"nulltrue);
  272.             echo "\"
  273.                             >
  274.                         <i class=\"fa fa-plus-circle\"></i>
  275.                         ";
  276.             // line 95
  277.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["btn_add"]) || array_key_exists("btn_add"$context) ? $context["btn_add"] : (function () { throw new RuntimeError('Variable "btn_add" does not exist.'95$this->source); })()), [], (isset($context["btn_catalogue"]) || array_key_exists("btn_catalogue"$context) ? $context["btn_catalogue"] : (function () { throw new RuntimeError('Variable "btn_catalogue" does not exist.'95$this->source); })())), "html"nulltrue);
  278.             echo "
  279.                     </a>
  280.                 ";
  281.         }
  282.         // line 98
  283.         echo "                ";
  284.         if (((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'98$this->source); })()), "field_description", [], "any"falsefalsefalse98), "associationadmin", [], "any"falsefalsefalse98), "hasroute", [=> "edit"], "method"falsefalsefalse98) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 99
  285. (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'99$this->source); })()), "field_description", [], "any"falsefalsefalse99), "associationadmin", [], "any"falsefalsefalse99), "isGranted", [=> "EDIT"], "method"falsefalsefalse99)) &&         // line 100
  286. (isset($context["btn_edit"]) || array_key_exists("btn_edit"$context) ? $context["btn_edit"] : (function () { throw new RuntimeError('Variable "btn_edit" does not exist.'100$this->source); })()))) {
  287.             // line 102
  288.             echo "                    <a  href=\"";
  289.             // line 103
  290.             (((twig_get_attribute($this->env$this->source,             // line 102
  291. (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'102$this->source); })()), "value", [], "any"falsefalsefalse102) == null)) ? (print ("")) : (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'102$this->source); })()), "field_description", [], "any"falsefalsefalse102), "associationadmin", [], "any"falsefalsefalse102), "generateUrl", [=> "edit"=> ["id" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,             // line 103
  292. (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'103$this->source); })()), "field_description", [], "any"falsefalsefalse103), "associationadmin", [], "any"falsefalsefalse103), "normalizedIdentifier", [=> twig_get_attribute($this->env$this->source, (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'103$this->source); })()), "value", [], "any"falsefalsefalse103)], "method"falsefalsefalse103)]], "method"falsefalsefalse102), "html"nulltrue))));
  293.             // line 104
  294.             echo "\"
  295.                         onclick=\"return start_field_dialog_form_edit_";
  296.             // line 105
  297.             echo twig_escape_filter($this->env, (isset($context["id"]) || array_key_exists("id"$context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.'105$this->source); })()), "html"nulltrue);
  298.             echo "(this);\"
  299.                         class=\"btn btn-warning btn-sm sonata-ba-action ";
  300.             // line 106
  301.             if ((twig_get_attribute($this->env$this->source, (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'106$this->source); })()), "value", [], "any"falsefalsefalse106) == null)) {
  302.                 echo "hidden";
  303.             }
  304.             echo "\"
  305.                         title=\"";
  306.             // line 107
  307.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["btn_edit"]) || array_key_exists("btn_edit"$context) ? $context["btn_edit"] : (function () { throw new RuntimeError('Variable "btn_edit" does not exist.'107$this->source); })()), [], (isset($context["btn_catalogue"]) || array_key_exists("btn_catalogue"$context) ? $context["btn_catalogue"] : (function () { throw new RuntimeError('Variable "btn_catalogue" does not exist.'107$this->source); })())), "html"nulltrue);
  308.             echo "\"
  309.                             >
  310.                         <i class=\"fa fa-pencil\"></i>
  311.                         ";
  312.             // line 110
  313.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["btn_edit"]) || array_key_exists("btn_edit"$context) ? $context["btn_edit"] : (function () { throw new RuntimeError('Variable "btn_edit" does not exist.'110$this->source); })()), [], (isset($context["btn_catalogue"]) || array_key_exists("btn_catalogue"$context) ? $context["btn_catalogue"] : (function () { throw new RuntimeError('Variable "btn_catalogue" does not exist.'110$this->source); })())), "html"nulltrue);
  314.             echo "
  315.                     </a>
  316.                 ";
  317.         }
  318.         // line 113
  319.         echo "            </span>
  320.             <span class=\"btn-group\">
  321.                 ";
  322.         // line 116
  323.         if (((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'116$this->source); })()), "field_description", [], "any"falsefalsefalse116), "associationadmin", [], "any"falsefalsefalse116), "hasRoute", [=> "delete"], "method"falsefalsefalse116) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'116$this->source); })()), "field_description", [], "any"falsefalsefalse116), "associationadmin", [], "any"falsefalsefalse116), "isGranted", [=> "DELETE"], "method"falsefalsefalse116)) && (isset($context["btn_delete"]) || array_key_exists("btn_delete"$context) ? $context["btn_delete"] : (function () { throw new RuntimeError('Variable "btn_delete" does not exist.'116$this->source); })()))) {
  324.             // line 117
  325.             echo "                    <a  href=\"\"
  326.                         onclick=\"return remove_selected_element_";
  327.             // line 118
  328.             echo twig_escape_filter($this->env, (isset($context["id"]) || array_key_exists("id"$context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.'118$this->source); })()), "html"nulltrue);
  329.             echo "(this);\"
  330.                         class=\"btn btn-danger btn-sm sonata-ba-action\"
  331.                         title=\"";
  332.             // line 120
  333.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["btn_delete"]) || array_key_exists("btn_delete"$context) ? $context["btn_delete"] : (function () { throw new RuntimeError('Variable "btn_delete" does not exist.'120$this->source); })()), [], (isset($context["btn_catalogue"]) || array_key_exists("btn_catalogue"$context) ? $context["btn_catalogue"] : (function () { throw new RuntimeError('Variable "btn_catalogue" does not exist.'120$this->source); })())), "html"nulltrue);
  334.             echo "\"
  335.                             >
  336.                         <i class=\"fa fa-minus-circle\"></i>
  337.                         ";
  338.             // line 123
  339.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["btn_delete"]) || array_key_exists("btn_delete"$context) ? $context["btn_delete"] : (function () { throw new RuntimeError('Variable "btn_delete" does not exist.'123$this->source); })()), [], (isset($context["btn_catalogue"]) || array_key_exists("btn_catalogue"$context) ? $context["btn_catalogue"] : (function () { throw new RuntimeError('Variable "btn_catalogue" does not exist.'123$this->source); })())), "html"nulltrue);
  340.             echo "
  341.                     </a>
  342.                 ";
  343.         }
  344.         // line 126
  345.         echo "            </span>
  346.         </span>
  347.         <span style=\"display: none\" >
  348.             ";
  349.         // line 131
  350.         echo "            ";
  351.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'131$this->source); })()), 'widget', ["required" => false]);
  352.         echo "
  353.         </span>
  354.         ";
  355.         // line 134
  356.         $this->displayBlock("sonata_help"$context$blocks);
  357.         echo "
  358.         <div class=\"modal fade\" id=\"field_dialog_";
  359.         // line 136
  360.         echo twig_escape_filter($this->env, (isset($context["id"]) || array_key_exists("id"$context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.'136$this->source); })()), "html"nulltrue);
  361.         echo "\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"myModalLabel\" aria-hidden=\"true\">
  362.             <div class=\"modal-dialog modal-lg\">
  363.                 <div class=\"modal-content\">
  364.                     <div class=\"modal-header\">
  365.                         <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-hidden=\"true\">&times;</button>
  366.                         <h4 class=\"modal-title\"></h4>
  367.                     </div>
  368.                     <div class=\"modal-body\">
  369.                     </div>
  370.                 </div>
  371.             </div>
  372.         </div>
  373.     </div>
  374.     ";
  375.         // line 150
  376.         $this->loadTemplate("@SonataAdmin/CRUD/Association/edit_many_script.html.twig""SonataDoctrineORMAdminBundle:Form:form_admin_fields.html.twig"150)->display($context);
  377.         
  378.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  379.         
  380.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  381.     }
  382.     // line 153
  383.     public function block_sonata_type_admin_widget($context, array $blocks = [])
  384.     {
  385.         $macros $this->macros;
  386.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  387.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_type_admin_widget"));
  388.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  389.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_type_admin_widget"));
  390.         // line 154
  391.         echo "    ";
  392.         // line 155
  393.         echo "    ";
  394.         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'155$this->source); })()), "field_description", [], "any"falsefalsefalse155), "mappingtype", [], "any"falsefalsefalse155) == twig_constant("Doctrine\\ORM\\Mapping\\ClassMetadataInfo::ONE_TO_ONE"))) {
  395.             // line 156
  396.             echo "        ";
  397.             $this->displayBlock("sonata_admin_orm_one_to_one_widget"$context$blocks);
  398.             echo "
  399.     ";
  400.         } elseif ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 157
  401. (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'157$this->source); })()), "field_description", [], "any"falsefalsefalse157), "mappingtype", [], "any"falsefalsefalse157) == twig_constant("Doctrine\\ORM\\Mapping\\ClassMetadataInfo::MANY_TO_ONE"))) {
  402.             // line 158
  403.             echo "        ";
  404.             $this->displayBlock("sonata_admin_orm_many_to_one_widget"$context$blocks);
  405.             echo "
  406.     ";
  407.         } elseif ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 159
  408. (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'159$this->source); })()), "field_description", [], "any"falsefalsefalse159), "mappingtype", [], "any"falsefalsefalse159) == twig_constant("Doctrine\\ORM\\Mapping\\ClassMetadataInfo::MANY_TO_MANY"))) {
  409.             // line 160
  410.             echo "        ";
  411.             $this->displayBlock("sonata_admin_orm_many_to_many_widget"$context$blocks);
  412.             echo "
  413.     ";
  414.         } elseif ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 161
  415. (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'161$this->source); })()), "field_description", [], "any"falsefalsefalse161), "mappingtype", [], "any"falsefalsefalse161) == twig_constant("Doctrine\\ORM\\Mapping\\ClassMetadataInfo::ONE_TO_MANY"))) {
  416.             // line 162
  417.             echo "        ";
  418.             $this->displayBlock("sonata_admin_orm_one_to_many_widget"$context$blocks);
  419.             echo "
  420.     ";
  421.         } else {
  422.             // line 164
  423.             echo "        INVALID MODE : ";
  424.             echo twig_escape_filter($this->env, (isset($context["id"]) || array_key_exists("id"$context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.'164$this->source); })()), "html"nulltrue);
  425.             echo "
  426.     ";
  427.         }
  428.         
  429.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  430.         
  431.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  432.     }
  433.     // line 168
  434.     public function block_sonata_type_collection_widget($context, array $blocks = [])
  435.     {
  436.         $macros $this->macros;
  437.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  438.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_type_collection_widget"));
  439.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  440.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_type_collection_widget"));
  441.         // line 169
  442.         echo "    ";
  443.         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'169$this->source); })()), "field_description", [], "any"falsefalsefalse169), "mappingtype", [], "any"falsefalsefalse169) == twig_constant("Doctrine\\ORM\\Mapping\\ClassMetadataInfo::ONE_TO_MANY"))) {
  444.             // line 170
  445.             echo "        ";
  446.             $this->displayBlock("sonata_admin_orm_one_to_many_widget"$context$blocks);
  447.             echo "
  448.     ";
  449.         } elseif ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 171
  450. (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'171$this->source); })()), "field_description", [], "any"falsefalsefalse171), "mappingtype", [], "any"falsefalsefalse171) == twig_constant("Doctrine\\ORM\\Mapping\\ClassMetadataInfo::MANY_TO_MANY"))) {
  451.             // line 172
  452.             echo "        ";
  453.             $this->displayBlock("sonata_admin_orm_many_to_many_widget"$context$blocks);
  454.             echo "
  455.     ";
  456.         } else {
  457.             // line 174
  458.             echo "        INVALID MODE : ";
  459.             echo twig_escape_filter($this->env, (isset($context["id"]) || array_key_exists("id"$context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.'174$this->source); })()), "html"nulltrue);
  460.             echo " - type : CollectionType - mapping : ";
  461.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'174$this->source); })()), "field_description", [], "any"falsefalsefalse174), "mappingtype", [], "any"falsefalsefalse174), "html"nulltrue);
  462.             echo "
  463.     ";
  464.         }
  465.         
  466.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  467.         
  468.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  469.     }
  470.     public function getTemplateName()
  471.     {
  472.         return "SonataDoctrineORMAdminBundle:Form:form_admin_fields.html.twig";
  473.     }
  474.     public function isTraitable()
  475.     {
  476.         return false;
  477.     }
  478.     public function getDebugInfo()
  479.     {
  480.         return array (  512 => 174,  506 => 172,  504 => 171,  499 => 170,  496 => 169,  486 => 168,  472 => 164,  466 => 162,  464 => 161,  459 => 160,  457 => 159,  452 => 158,  450 => 157,  445 => 156,  442 => 155,  440 => 154,  430 => 153,  420 => 150,  403 => 136,  398 => 134,  391 => 131,  385 => 126,  379 => 123,  373 => 120,  368 => 118,  365 => 117,  363 => 116,  358 => 113,  352 => 110,  346 => 107,  340 => 106,  336 => 105,  333 => 104,  331 => 103,  330 => 102,  329 => 103,  327 => 102,  325 => 100,  324 => 99,  322 => 98,  316 => 95,  310 => 92,  305 => 90,  300 => 89,  298 => 87,  297 => 86,  296 => 85,  293 => 84,  287 => 81,  281 => 78,  276 => 76,  271 => 75,  269 => 74,  264 => 72,  261 => 71,  255 => 68,  252 => 67,  250 => 66,  247 => 65,  245 => 64,  244 => 63,  243 => 62,  242 => 61,  240 => 60,  238 => 59,  234 => 58,  229 => 57,  219 => 56,  205 => 52,  203 => 51,  197 => 49,  195 => 48,  190 => 47,  188 => 46,  183 => 45,  181 => 44,  176 => 43,  174 => 42,  169 => 41,  167 => 40,  164 => 39,  161 => 37,  159 => 33,  149 => 32,  138 => 29,  128 => 28,  117 => 25,  107 => 24,  96 => 21,  86 => 20,  75 => 17,  65 => 16,  42 => 12,);
  481.     }
  482.     public function getSourceContext()
  483.     {
  484.         return new Source("{#
  485. This file is part of the Sonata package.
  486. (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  487. For the full copyright and license information, please view the LICENSE
  488. file that was distributed with this source code.
  489. #}
  490. {% extends '@SonataAdmin/Form/form_admin_fields.html.twig' %}
  491. {# Custom Sonata Admin Extension #}
  492. {% block sonata_admin_orm_one_to_one_widget %}
  493.     {% include '@SonataAdmin/CRUD/Association/edit_one_to_one.html.twig' %}
  494. {% endblock %}
  495. {% block sonata_admin_orm_many_to_many_widget %}
  496.     {% include '@SonataAdmin/CRUD/Association/edit_many_to_many.html.twig' %}
  497. {% endblock %}
  498. {% block sonata_admin_orm_many_to_one_widget %}
  499.     {% include '@SonataAdmin/CRUD/Association/edit_many_to_one.html.twig' %}
  500. {% endblock %}
  501. {% block sonata_admin_orm_one_to_many_widget %}
  502.     {% include '@SonataAdmin/CRUD/Association/edit_one_to_many.html.twig' %}
  503. {% endblock %}
  504. {% block sonata_type_model_widget %}
  505.     {#
  506.         This is not the best way to do if
  507.         TODO : improve this part
  508.     #}
  509.     {#model {{ sonata_admin.field_description.mappingtype }}#}
  510.     {% if sonata_admin.field_description is empty %}
  511.         {{ block('choice_widget') }}
  512.     {% elseif sonata_admin.field_description.mappingtype == constant('Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo::ONE_TO_ONE') %}
  513.         {{ block('sonata_admin_orm_one_to_one_widget') }}
  514.     {% elseif sonata_admin.field_description.mappingtype == constant('Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo::MANY_TO_ONE') %}
  515.         {{ block('sonata_admin_orm_many_to_one_widget') }}
  516.     {% elseif sonata_admin.field_description.mappingtype == constant('Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo::MANY_TO_MANY') %}
  517.         {{ block('sonata_admin_orm_many_to_many_widget') }}
  518.     {% elseif sonata_admin.field_description.mappingtype == constant('Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo::ONE_TO_MANY') %}
  519.         {{ block('sonata_admin_orm_one_to_many_widget') }}
  520.     {% else %}
  521.         {#INVALID MODE : {{ id }}#}
  522.         {{ block('choice_widget') }}
  523.     {% endif %}
  524. {% endblock %}
  525. {% block sonata_type_model_list_widget %}
  526.     <div id=\"field_container_{{ id }}\" class=\"field-container\">
  527.         <span id=\"field_widget_{{ id }}\" class=\"field-short-description\">
  528.             {% if sonata_admin.field_description.associationadmin.id(sonata_admin.value) %}
  529.                 {{ render(path('sonata_admin_short_object_information', {
  530.                     'code':     sonata_admin.field_description.associationadmin.code,
  531.                     'objectId': sonata_admin.field_description.associationadmin.id(sonata_admin.value),
  532.                     'uniqid':   sonata_admin.field_description.associationadmin.uniqid,
  533.                     'linkParameters': sonata_admin.field_description.options.link_parameters
  534.                 })) }}
  535.             {% elseif sonata_admin.field_description.options.placeholder is defined and sonata_admin.field_description.options.placeholder %}
  536.                 <span class=\"inner-field-short-description\">
  537.                     {{ sonata_admin.field_description.options.placeholder|trans({}, 'SonataAdminBundle') }}
  538.                 </span>
  539.             {% endif %}
  540.         </span>
  541.         <span id=\"field_actions_{{ id }}\" class=\"field-actions\">
  542.             <span class=\"btn-group\">
  543.                 {% if sonata_admin.field_description.associationadmin.hasroute('list') and sonata_admin.field_description.associationadmin.isGranted('LIST') and btn_list %}
  544.                     <a  href=\"{{ sonata_admin.field_description.associationadmin.generateUrl('list') }}\"
  545.                         onclick=\"return start_field_dialog_form_list_{{ id }}(this);\"
  546.                         class=\"btn btn-info btn-sm sonata-ba-action\"
  547.                         title=\"{{ btn_list|trans({}, btn_catalogue) }}\"
  548.                             >
  549.                         <i class=\"fa fa-list\"></i>
  550.                         {{ btn_list|trans({}, btn_catalogue) }}
  551.                     </a>
  552.                 {% endif %}
  553.                 {% if sonata_admin.field_description.associationadmin.hasroute('create')
  554.                     and sonata_admin.field_description.associationadmin.isGranted('CREATE')
  555.                     and btn_add
  556.                 %}
  557.                     <a  href=\"{{ sonata_admin.field_description.associationadmin.generateUrl('create') }}\"
  558.                         onclick=\"return start_field_dialog_form_add_{{ id }}(this);\"
  559.                         class=\"btn btn-success btn-sm sonata-ba-action\"
  560.                         title=\"{{ btn_add|trans({}, btn_catalogue) }}\"
  561.                             >
  562.                         <i class=\"fa fa-plus-circle\"></i>
  563.                         {{ btn_add|trans({}, btn_catalogue) }}
  564.                     </a>
  565.                 {% endif %}
  566.                 {% if sonata_admin.field_description.associationadmin.hasroute('edit')
  567.                     and sonata_admin.field_description.associationadmin.isGranted('EDIT')
  568.                     and btn_edit
  569.                 %}
  570.                     <a  href=\"{{ sonata_admin.value == null ? '' : sonata_admin.field_description.associationadmin.generateUrl('edit', {
  571.                             'id' : sonata_admin.field_description.associationadmin.normalizedIdentifier(sonata_admin.value)})
  572.                         }}\"
  573.                         onclick=\"return start_field_dialog_form_edit_{{ id }}(this);\"
  574.                         class=\"btn btn-warning btn-sm sonata-ba-action {% if sonata_admin.value == null %}hidden{% endif %}\"
  575.                         title=\"{{ btn_edit|trans({}, btn_catalogue) }}\"
  576.                             >
  577.                         <i class=\"fa fa-pencil\"></i>
  578.                         {{ btn_edit|trans({}, btn_catalogue) }}
  579.                     </a>
  580.                 {% endif %}
  581.             </span>
  582.             <span class=\"btn-group\">
  583.                 {% if sonata_admin.field_description.associationadmin.hasRoute('delete') and sonata_admin.field_description.associationadmin.isGranted('DELETE') and btn_delete %}
  584.                     <a  href=\"\"
  585.                         onclick=\"return remove_selected_element_{{ id }}(this);\"
  586.                         class=\"btn btn-danger btn-sm sonata-ba-action\"
  587.                         title=\"{{ btn_delete|trans({}, btn_catalogue) }}\"
  588.                             >
  589.                         <i class=\"fa fa-minus-circle\"></i>
  590.                         {{ btn_delete|trans({}, btn_catalogue) }}
  591.                     </a>
  592.                 {% endif %}
  593.             </span>
  594.         </span>
  595.         <span style=\"display: none\" >
  596.             {# Hidden text input cannot be required, because browser will throw error \"An invalid form control with name='' is not focusable\"  #}
  597.             {{ form_widget(form, {'required':false}) }}
  598.         </span>
  599.         {{ block('sonata_help') }}
  600.         <div class=\"modal fade\" id=\"field_dialog_{{ id }}\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"myModalLabel\" aria-hidden=\"true\">
  601.             <div class=\"modal-dialog modal-lg\">
  602.                 <div class=\"modal-content\">
  603.                     <div class=\"modal-header\">
  604.                         <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-hidden=\"true\">&times;</button>
  605.                         <h4 class=\"modal-title\"></h4>
  606.                     </div>
  607.                     <div class=\"modal-body\">
  608.                     </div>
  609.                 </div>
  610.             </div>
  611.         </div>
  612.     </div>
  613.     {% include '@SonataAdmin/CRUD/Association/edit_many_script.html.twig' %}
  614. {% endblock %}
  615. {% block sonata_type_admin_widget %}
  616.     {#admin {{ sonata_admin.field_description.mappingtype }}#}
  617.     {% if sonata_admin.field_description.mappingtype == constant('Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo::ONE_TO_ONE') %}
  618.         {{ block('sonata_admin_orm_one_to_one_widget') }}
  619.     {% elseif sonata_admin.field_description.mappingtype == constant('Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo::MANY_TO_ONE') %}
  620.         {{ block('sonata_admin_orm_many_to_one_widget') }}
  621.     {% elseif sonata_admin.field_description.mappingtype == constant('Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo::MANY_TO_MANY') %}
  622.         {{ block('sonata_admin_orm_many_to_many_widget') }}
  623.     {% elseif sonata_admin.field_description.mappingtype == constant('Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo::ONE_TO_MANY') %}
  624.         {{ block('sonata_admin_orm_one_to_many_widget') }}
  625.     {% else %}
  626.         INVALID MODE : {{ id }}
  627.     {% endif %}
  628. {% endblock %}
  629. {% block sonata_type_collection_widget %}
  630.     {% if sonata_admin.field_description.mappingtype == constant('Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo::ONE_TO_MANY') %}
  631.         {{ block('sonata_admin_orm_one_to_many_widget') }}
  632.     {% elseif sonata_admin.field_description.mappingtype == constant('Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo::MANY_TO_MANY') %}
  633.         {{ block('sonata_admin_orm_many_to_many_widget') }}
  634.     {% else %}
  635.         INVALID MODE : {{ id }} - type : CollectionType - mapping : {{ sonata_admin.field_description.mappingtype }}
  636.     {% endif %}
  637. {% endblock %}
  638. ""SonataDoctrineORMAdminBundle:Form:form_admin_fields.html.twig""/var/www/radmin.tehnik.tech/vendor/sonata-project/doctrine-orm-admin-bundle/src/Resources/views/Form/form_admin_fields.html.twig");
  639.     }
  640. }