var/cache/dev/twig/56/56270437ebf86719b82778a4ee1809fe.php line 80

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. /* @SonataAdmin/CRUD/Association/edit_one_to_many.html.twig */
  14. class __TwigTemplate_127f8ae20b873127de8dcd9a79a1b1e2 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->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SonataAdmin/CRUD/Association/edit_one_to_many.html.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SonataAdmin/CRUD/Association/edit_one_to_many.html.twig"));
  33.         // line 11
  34.         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.'11$this->source); })()), "field_description", [], "any"falsefalsefalse11), "hasassociationadmin", [], "any"falsefalsefalse11)) {
  35.             // line 12
  36.             echo "    ";
  37.             $context['_parent'] = $context;
  38.             $context['_seq'] = twig_ensure_traversable((isset($context["value"]) || array_key_exists("value"$context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.'12$this->source); })()));
  39.             foreach ($context['_seq'] as $context["_key"] => $context["element"]) {
  40.                 // line 13
  41.                 echo "        ";
  42.                 echo twig_escape_filter($this->env$this->env->getRuntime('Sonata\AdminBundle\Twig\RenderElementRuntime')->renderRelationElement($context["element"], 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.'13$this->source); })()), "field_description", [], "any"falsefalsefalse13)), "html"nulltrue);
  43.                 echo "
  44.     ";
  45.             }
  46.             $_parent $context['_parent'];
  47.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['element'], $context['_parent'], $context['loop']);
  48.             $context array_intersect_key($context$_parent) + $_parent;
  49.         } else {
  50.             // line 16
  51.             echo "
  52.     <div id=\"field_container_";
  53.             // line 17
  54.             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.'17$this->source); })()), "html"nulltrue);
  55.             echo "\" class=\"field-container\">
  56.         <span id=\"field_widget_";
  57.             // line 18
  58.             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.'18$this->source); })()), "html"nulltrue);
  59.             echo "\" >
  60.             ";
  61.             // line 19
  62.             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.'19$this->source); })()), "edit", [], "any"falsefalsefalse19) == "inline")) {
  63.                 // line 20
  64.                 echo "                ";
  65.                 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.'20$this->source); })()), "inline", [], "any"falsefalsefalse20) == "table")) {
  66.                     // line 21
  67.                     echo "                    ";
  68.                     if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'21$this->source); })()), "children", [], "any"falsefalsefalse21)) > 0)) {
  69.                         // line 22
  70.                         echo "                        ";
  71.                         $this->loadTemplate("@SonataAdmin/CRUD/Association/edit_one_to_many_inline_table.html.twig""@SonataAdmin/CRUD/Association/edit_one_to_many.html.twig"22)->display($context);
  72.                         // line 23
  73.                         echo "                    ";
  74.                     }
  75.                     // line 24
  76.                     echo "                ";
  77.                 } elseif ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'24$this->source); })()), "children", [], "any"falsefalsefalse24)) > 0)) {
  78.                     // line 25
  79.                     echo "                    ";
  80.                     $context["associationAdmin"] = 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.'25$this->source); })()), "field_description", [], "any"falsefalsefalse25), "associationadmin", [], "any"falsefalsefalse25);
  81.                     // line 26
  82.                     echo "                    ";
  83.                     $this->loadTemplate("@SonataAdmin/CRUD/Association/edit_one_to_many_inline_tabs.html.twig""@SonataAdmin/CRUD/Association/edit_one_to_many.html.twig"26)->display($context);
  84.                     // line 27
  85.                     echo "
  86.                 ";
  87.                 }
  88.                 // line 29
  89.                 echo "            ";
  90.             } else {
  91.                 // line 30
  92.                 echo "                ";
  93.                 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.'30$this->source); })()), 'widget');
  94.                 echo "
  95.             ";
  96.             }
  97.             // line 32
  98.             echo "
  99.         </span>
  100.         ";
  101.             // line 35
  102.             $context["display_create_button"] = (((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.'35$this->source); })()), "field_description", [], "any"falsefalsefalse35), "associationadmin", [], "any"falsefalsefalse35), "hasRoute", ["create"], "method"falsefalsefalse35) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,             // line 36
  103. (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'36$this->source); })()), "field_description", [], "any"falsefalsefalse36), "associationadmin", [], "any"falsefalsefalse36), "hasAccess", ["create"], "method"falsefalsefalse36)) &&             // line 37
  104. (isset($context["btn_add"]) || array_key_exists("btn_add"$context) ? $context["btn_add"] : (function () { throw new RuntimeError('Variable "btn_add" does not exist.'37$this->source); })())) && ((null === twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,             // line 39
  105. (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'39$this->source); })()), "field_description", [], "any"falsefalsefalse39), "option", ["limit"], "method"falsefalsefalse39)) || (twig_length_filter($this->envtwig_get_attribute($this->env$this->source,             // line 40
  106. (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'40$this->source); })()), "children", [], "any"falsefalsefalse40)) < 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.'40$this->source); })()), "field_description", [], "any"falsefalsefalse40), "option", ["limit"], "method"falsefalsefalse40))));
  107.             // line 42
  108.             echo "
  109.         ";
  110.             // line 43
  111.             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.'43$this->source); })()), "edit", [], "any"falsefalsefalse43) == "inline")) {
  112.                 // line 44
  113.                 echo "
  114.             ";
  115.                 // line 45
  116.                 if ((isset($context["display_create_button"]) || array_key_exists("display_create_button"$context) ? $context["display_create_button"] : (function () { throw new RuntimeError('Variable "display_create_button" does not exist.'45$this->source); })())) {
  117.                     // line 46
  118.                     echo "                <span id=\"field_actions_";
  119.                     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.'46$this->source); })()), "html"nulltrue);
  120.                     echo "\" >
  121.                     <a
  122.                         href=\"";
  123.                     // line 48
  124.                     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.'48$this->source); })()), "field_description", [], "any"falsefalsefalse48), "associationadmin", [], "any"falsefalsefalse48), "generateUrl", ["create"twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,                     // line 50
  125. (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'50$this->source); })()), "field_description", [], "any"falsefalsefalse50), "getOption", ["link_parameters", []], "method"falsefalsefalse50)], "method"falsefalsefalse48), "html"nulltrue);
  126.                     // line 51
  127.                     echo "\"
  128.                         onclick=\"return start_field_retrieve_";
  129.                     // line 52
  130.                     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.'52$this->source); })()), "html"nulltrue);
  131.                     echo "(this);\"
  132.                         class=\"btn btn-success btn-sm sonata-ba-action\"
  133.                         ";
  134.                     // line 55
  135.                     echo "                        title=\"";
  136.                     echo twig_escape_filter($this->env, (((((                    // line 56
  137. array_key_exists("btn_translation_domain"$context)) ? (_twig_default_filter((isset($context["btn_translation_domain"]) || array_key_exists("btn_translation_domain"$context) ? $context["btn_translation_domain"] : (function () { throw new RuntimeError('Variable "btn_translation_domain" does not exist.'56$this->source); })()), null)) : (null)) === false)) ? (                    // line 57
  138. (isset($context["btn_add"]) || array_key_exists("btn_add"$context) ? $context["btn_add"] : (function () { throw new RuntimeError('Variable "btn_add" does not exist.'57$this->source); })())) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(                    // line 58
  139. (isset($context["btn_add"]) || array_key_exists("btn_add"$context) ? $context["btn_add"] : (function () { throw new RuntimeError('Variable "btn_add" does not exist.'58$this->source); })()), [], ((array_key_exists("btn_translation_domain"$context)) ? (_twig_default_filter((isset($context["btn_translation_domain"]) || array_key_exists("btn_translation_domain"$context) ? $context["btn_translation_domain"] : (function () { throw new RuntimeError('Variable "btn_translation_domain" does not exist.'58$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.'58$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.'58$this->source); })())))))), "html"nulltrue);
  140.                     // line 59
  141.                     echo "\"
  142.                     >
  143.                         <i class=\"fas fa-plus-circle\"></i>
  144.                         ";
  145.                     // line 63
  146.                     echo "                        ";
  147.                     echo twig_escape_filter($this->env, (((((                    // line 64
  148. array_key_exists("btn_translation_domain"$context)) ? (_twig_default_filter((isset($context["btn_translation_domain"]) || array_key_exists("btn_translation_domain"$context) ? $context["btn_translation_domain"] : (function () { throw new RuntimeError('Variable "btn_translation_domain" does not exist.'64$this->source); })()), null)) : (null)) === false)) ? (                    // line 65
  149. (isset($context["btn_add"]) || array_key_exists("btn_add"$context) ? $context["btn_add"] : (function () { throw new RuntimeError('Variable "btn_add" does not exist.'65$this->source); })())) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(                    // line 66
  150. (isset($context["btn_add"]) || array_key_exists("btn_add"$context) ? $context["btn_add"] : (function () { throw new RuntimeError('Variable "btn_add" does not exist.'66$this->source); })()), [], ((array_key_exists("btn_translation_domain"$context)) ? (_twig_default_filter((isset($context["btn_translation_domain"]) || array_key_exists("btn_translation_domain"$context) ? $context["btn_translation_domain"] : (function () { throw new RuntimeError('Variable "btn_translation_domain" does not exist.'66$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.'66$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.'66$this->source); })())))))), "html"nulltrue);
  151.                     // line 67
  152.                     echo "
  153.                     </a>
  154.                 </span>
  155.             ";
  156.                 }
  157.                 // line 71
  158.                 echo "
  159.             ";
  160.                 // line 73
  161.                 echo "            ";
  162.                 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.'73$this->source); })()), "field_description", [], "any"falsefalsefalse73), "option", ["sortable"false], "method"falsefalsefalse73)) {
  163.                     // line 74
  164.                     echo "                ";
  165.                     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.'74$this->source); })()), "inline", [], "any"falsefalsefalse74) == "table")) {
  166.                         // line 75
  167.                         echo "                    ";
  168.                         $this->loadTemplate("@SonataAdmin/CRUD/Association/edit_one_to_many_sortable_script_table.html.twig""@SonataAdmin/CRUD/Association/edit_one_to_many.html.twig"75)->display($context);
  169.                         // line 76
  170.                         echo "                ";
  171.                     } else {
  172.                         // line 77
  173.                         echo "                    ";
  174.                         $this->loadTemplate("@SonataAdmin/CRUD/Association/edit_one_to_many_sortable_script_tabs.html.twig""@SonataAdmin/CRUD/Association/edit_one_to_many.html.twig"77)->display($context);
  175.                         // line 78
  176.                         echo "                ";
  177.                     }
  178.                     // line 79
  179.                     echo "            ";
  180.                 }
  181.                 // line 80
  182.                 echo "
  183.             ";
  184.                 // line 82
  185.                 echo "            ";
  186.                 $this->loadTemplate("@SonataAdmin/CRUD/Association/edit_one_script.html.twig""@SonataAdmin/CRUD/Association/edit_one_to_many.html.twig"82)->display($context);
  187.                 // line 83
  188.                 echo "
  189.         ";
  190.             } else {
  191.                 // line 85
  192.                 echo "            <span id=\"field_actions_";
  193.                 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.'85$this->source); })()), "html"nulltrue);
  194.                 echo "\" >
  195.                 ";
  196.                 // line 86
  197.                 if ((isset($context["display_create_button"]) || array_key_exists("display_create_button"$context) ? $context["display_create_button"] : (function () { throw new RuntimeError('Variable "display_create_button" does not exist.'86$this->source); })())) {
  198.                     // line 87
  199.                     echo "                    <a
  200.                         href=\"";
  201.                     // line 88
  202.                     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.'88$this->source); })()), "field_description", [], "any"falsefalsefalse88), "associationadmin", [], "any"falsefalsefalse88), "generateUrl", ["create"twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,                     // line 90
  203. (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'90$this->source); })()), "field_description", [], "any"falsefalsefalse90), "getOption", ["link_parameters", []], "method"falsefalsefalse90)], "method"falsefalsefalse88), "html"nulltrue);
  204.                     // line 91
  205.                     echo "\"
  206.                         onclick=\"return start_field_dialog_form_add_";
  207.                     // line 92
  208.                     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.'92$this->source); })()), "html"nulltrue);
  209.                     echo "(this);\"
  210.                         class=\"btn btn-success btn-sm sonata-ba-action\"
  211.                         ";
  212.                     // line 95
  213.                     echo "                        title=\"";
  214.                     echo twig_escape_filter($this->env, (((((                    // line 96
  215. array_key_exists("btn_translation_domain"$context)) ? (_twig_default_filter((isset($context["btn_translation_domain"]) || array_key_exists("btn_translation_domain"$context) ? $context["btn_translation_domain"] : (function () { throw new RuntimeError('Variable "btn_translation_domain" does not exist.'96$this->source); })()), null)) : (null)) === false)) ? (                    // line 97
  216. (isset($context["btn_add"]) || array_key_exists("btn_add"$context) ? $context["btn_add"] : (function () { throw new RuntimeError('Variable "btn_add" does not exist.'97$this->source); })())) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(                    // line 98
  217. (isset($context["btn_add"]) || array_key_exists("btn_add"$context) ? $context["btn_add"] : (function () { throw new RuntimeError('Variable "btn_add" does not exist.'98$this->source); })()), [], ((array_key_exists("btn_translation_domain"$context)) ? (_twig_default_filter((isset($context["btn_translation_domain"]) || array_key_exists("btn_translation_domain"$context) ? $context["btn_translation_domain"] : (function () { throw new RuntimeError('Variable "btn_translation_domain" does not exist.'98$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.'98$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.'98$this->source); })())))))), "html"nulltrue);
  218.                     // line 99
  219.                     echo "\"
  220.                     >
  221.                         <i class=\"fas fa-plus-circle\"></i>
  222.                         ";
  223.                     // line 103
  224.                     echo "                        ";
  225.                     echo twig_escape_filter($this->env, (((((                    // line 104
  226. array_key_exists("btn_translation_domain"$context)) ? (_twig_default_filter((isset($context["btn_translation_domain"]) || array_key_exists("btn_translation_domain"$context) ? $context["btn_translation_domain"] : (function () { throw new RuntimeError('Variable "btn_translation_domain" does not exist.'104$this->source); })()), null)) : (null)) === false)) ? (                    // line 105
  227. (isset($context["btn_add"]) || array_key_exists("btn_add"$context) ? $context["btn_add"] : (function () { throw new RuntimeError('Variable "btn_add" does not exist.'105$this->source); })())) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(                    // line 106
  228. (isset($context["btn_add"]) || array_key_exists("btn_add"$context) ? $context["btn_add"] : (function () { throw new RuntimeError('Variable "btn_add" does not exist.'106$this->source); })()), [], ((array_key_exists("btn_translation_domain"$context)) ? (_twig_default_filter((isset($context["btn_translation_domain"]) || array_key_exists("btn_translation_domain"$context) ? $context["btn_translation_domain"] : (function () { throw new RuntimeError('Variable "btn_translation_domain" does not exist.'106$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.'106$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.'106$this->source); })())))))), "html"nulltrue);
  229.                     // line 107
  230.                     echo "
  231.                     </a>
  232.                     ";
  233.                     // line 109
  234.                     $this->loadTemplate("@SonataAdmin/CRUD/Association/edit_modal.html.twig""@SonataAdmin/CRUD/Association/edit_one_to_many.html.twig"109)->display($context);
  235.                     // line 110
  236.                     echo "                    ";
  237.                     $this->loadTemplate("@SonataAdmin/CRUD/Association/edit_many_script.html.twig""@SonataAdmin/CRUD/Association/edit_one_to_many.html.twig"110)->display($context);
  238.                     // line 111
  239.                     echo "                ";
  240.                 }
  241.                 // line 112
  242.                 echo "            </span>
  243.         ";
  244.             }
  245.             // line 114
  246.             echo "    </div>
  247. ";
  248.         }
  249.         
  250.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  251.         
  252.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  253.     }
  254.     /**
  255.      * @codeCoverageIgnore
  256.      */
  257.     public function getTemplateName()
  258.     {
  259.         return "@SonataAdmin/CRUD/Association/edit_one_to_many.html.twig";
  260.     }
  261.     /**
  262.      * @codeCoverageIgnore
  263.      */
  264.     public function isTraitable()
  265.     {
  266.         return false;
  267.     }
  268.     /**
  269.      * @codeCoverageIgnore
  270.      */
  271.     public function getDebugInfo()
  272.     {
  273.         return array (  256 => 114,  252 => 112,  249 => 111,  246 => 110,  244 => 109,  240 => 107,  238 => 106,  237 => 105,  236 => 104,  234 => 103,  229 => 99,  227 => 98,  226 => 97,  225 => 96,  223 => 95,  218 => 92,  215 => 91,  213 => 90,  212 => 88,  209 => 87,  207 => 86,  202 => 85,  198 => 83,  195 => 82,  192 => 80,  189 => 79,  186 => 78,  183 => 77,  180 => 76,  177 => 75,  174 => 74,  171 => 73,  168 => 71,  162 => 67,  160 => 66,  159 => 65,  158 => 64,  156 => 63,  151 => 59,  149 => 58,  148 => 57,  147 => 56,  145 => 55,  140 => 52,  137 => 51,  135 => 50,  134 => 48,  128 => 46,  126 => 45,  123 => 44,  121 => 43,  118 => 42,  116 => 40,  115 => 39,  114 => 37,  113 => 36,  112 => 35,  107 => 32,  101 => 30,  98 => 29,  94 => 27,  91 => 26,  88 => 25,  85 => 24,  82 => 23,  79 => 22,  76 => 21,  73 => 20,  71 => 19,  67 => 18,  63 => 17,  60 => 16,  50 => 13,  45 => 12,  43 => 11,);
  274.     }
  275.     public function getSourceContext()
  276.     {
  277.         return new Source("{#
  278. This file is part of the Sonata package.
  279. (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  280. For the full copyright and license information, please view the LICENSE
  281. file that was distributed with this source code.
  282. #}
  283. {% if not sonata_admin.field_description.hasassociationadmin %}
  284.     {% for element in value %}
  285.         {{ element|render_relation_element(sonata_admin.field_description) }}
  286.     {% endfor %}
  287. {% else %}
  288.     <div id=\"field_container_{{ id }}\" class=\"field-container\">
  289.         <span id=\"field_widget_{{ id }}\" >
  290.             {% if sonata_admin.edit == 'inline' %}
  291.                 {% if sonata_admin.inline == 'table' %}
  292.                     {% if form.children|length > 0 %}
  293.                         {% include '@SonataAdmin/CRUD/Association/edit_one_to_many_inline_table.html.twig' %}
  294.                     {% endif %}
  295.                 {% elseif form.children|length > 0 %}
  296.                     {% set associationAdmin = sonata_admin.field_description.associationadmin %}
  297.                     {% include '@SonataAdmin/CRUD/Association/edit_one_to_many_inline_tabs.html.twig' %}
  298.                 {% endif %}
  299.             {% else %}
  300.                 {{ form_widget(form) }}
  301.             {% endif %}
  302.         </span>
  303.         {% set display_create_button = sonata_admin.field_description.associationadmin.hasRoute('create')
  304.             and sonata_admin.field_description.associationadmin.hasAccess('create')
  305.             and btn_add
  306.             and (
  307.                 sonata_admin.field_description.option('limit') is null or
  308.                 form.children|length < sonata_admin.field_description.option('limit')
  309.             ) %}
  310.         {% if sonata_admin.edit == 'inline' %}
  311.             {% if display_create_button %}
  312.                 <span id=\"field_actions_{{ id }}\" >
  313.                     <a
  314.                         href=\"{{ sonata_admin.field_description.associationadmin.generateUrl(
  315.                             'create',
  316.                             sonata_admin.field_description.getOption('link_parameters', {})
  317.                         ) }}\"
  318.                         onclick=\"return start_field_retrieve_{{ id }}(this);\"
  319.                         class=\"btn btn-success btn-sm sonata-ba-action\"
  320.                         {# NEXT_MAJOR: Remove the fallback on null and on btn_catalogue #}
  321.                         title=\"{{
  322.                             btn_translation_domain|default(null) is same as(false)
  323.                             ? btn_add
  324.                             : btn_add|trans({}, btn_translation_domain|default(btn_catalogue))
  325.                         }}\"
  326.                     >
  327.                         <i class=\"fas fa-plus-circle\"></i>
  328.                         {# NEXT_MAJOR: Remove the fallback on null and on btn_catalogue #}
  329.                         {{
  330.                             btn_translation_domain|default(null) is same as(false)
  331.                             ? btn_add
  332.                             : btn_add|trans({}, btn_translation_domain|default(btn_catalogue))
  333.                         }}
  334.                     </a>
  335.                 </span>
  336.             {% endif %}
  337.             {# add code for the sortable options #}
  338.             {% if sonata_admin.field_description.option('sortable', false) %}
  339.                 {% if sonata_admin.inline == 'table' %}
  340.                     {% include '@SonataAdmin/CRUD/Association/edit_one_to_many_sortable_script_table.html.twig' %}
  341.                 {% else %}
  342.                     {% include '@SonataAdmin/CRUD/Association/edit_one_to_many_sortable_script_tabs.html.twig' %}
  343.                 {% endif %}
  344.             {% endif %}
  345.             {# include association code #}
  346.             {% include '@SonataAdmin/CRUD/Association/edit_one_script.html.twig' %}
  347.         {% else %}
  348.             <span id=\"field_actions_{{ id }}\" >
  349.                 {% if display_create_button %}
  350.                     <a
  351.                         href=\"{{ sonata_admin.field_description.associationadmin.generateUrl(
  352.                             'create',
  353.                             sonata_admin.field_description.getOption('link_parameters', {})
  354.                         ) }}\"
  355.                         onclick=\"return start_field_dialog_form_add_{{ id }}(this);\"
  356.                         class=\"btn btn-success btn-sm sonata-ba-action\"
  357.                         {# NEXT_MAJOR: Remove the fallback on null and on btn_catalogue #}
  358.                         title=\"{{
  359.                             btn_translation_domain|default(null) is same as(false)
  360.                             ? btn_add
  361.                             : btn_add|trans({}, btn_translation_domain|default(btn_catalogue))
  362.                         }}\"
  363.                     >
  364.                         <i class=\"fas fa-plus-circle\"></i>
  365.                         {# NEXT_MAJOR: Remove the fallback on null and on btn_catalogue #}
  366.                         {{
  367.                             btn_translation_domain|default(null) is same as(false)
  368.                             ? btn_add
  369.                             : btn_add|trans({}, btn_translation_domain|default(btn_catalogue))
  370.                         }}
  371.                     </a>
  372.                     {% include '@SonataAdmin/CRUD/Association/edit_modal.html.twig' %}
  373.                     {% include '@SonataAdmin/CRUD/Association/edit_many_script.html.twig' %}
  374.                 {% endif %}
  375.             </span>
  376.         {% endif %}
  377.     </div>
  378. {% endif %}
  379. ""@SonataAdmin/CRUD/Association/edit_one_to_many.html.twig""/var/www/vhosts/perseo.comerziawatches.com/httpdocs/perseo/httpdocs/vendor/sonata-project/admin-bundle/src/Resources/views/CRUD/Association/edit_one_to_many.html.twig");
  380.     }
  381. }