var/cache/dev/twig/d1/d1b65a90491c8dfcdc7ef57b687e52b8.php line 1875

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/Form/form_admin_fields.html.twig */
  14. class __TwigTemplate_6fba5879fb7e95c757ef47579da4a212 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'form_errors' => [$this'block_form_errors'],
  24.             'form_help' => [$this'block_form_help'],
  25.             'form_widget_simple' => [$this'block_form_widget_simple'],
  26.             'textarea_widget' => [$this'block_textarea_widget'],
  27.             'money_widget' => [$this'block_money_widget'],
  28.             'percent_widget' => [$this'block_percent_widget'],
  29.             'checkbox_widget' => [$this'block_checkbox_widget'],
  30.             'radio_widget' => [$this'block_radio_widget'],
  31.             'form_label' => [$this'block_form_label'],
  32.             'checkbox_label' => [$this'block_checkbox_label'],
  33.             'radio_label' => [$this'block_radio_label'],
  34.             'checkbox_radio_label' => [$this'block_checkbox_radio_label'],
  35.             'choice_widget_expanded' => [$this'block_choice_widget_expanded'],
  36.             'choice_widget_collapsed' => [$this'block_choice_widget_collapsed'],
  37.             'date_widget' => [$this'block_date_widget'],
  38.             'time_widget' => [$this'block_time_widget'],
  39.             'datetime_widget' => [$this'block_datetime_widget'],
  40.             'form_row' => [$this'block_form_row'],
  41.             'checkbox_row' => [$this'block_checkbox_row'],
  42.             'radio_row' => [$this'block_radio_row'],
  43.             'sonata_type_native_collection_widget_row' => [$this'block_sonata_type_native_collection_widget_row'],
  44.             'sonata_type_native_collection_widget' => [$this'block_sonata_type_native_collection_widget'],
  45.             'sonata_type_immutable_array_widget' => [$this'block_sonata_type_immutable_array_widget'],
  46.             'sonata_type_immutable_array_widget_row' => [$this'block_sonata_type_immutable_array_widget_row'],
  47.             'sonata_type_model_autocomplete_widget' => [$this'block_sonata_type_model_autocomplete_widget'],
  48.             'sonata_type_choice_field_mask_widget' => [$this'block_sonata_type_choice_field_mask_widget'],
  49.             'sonata_type_choice_multiple_sortable' => [$this'block_sonata_type_choice_multiple_sortable'],
  50.             'sonata_type_model_autocomplete_select2_options_js' => [$this'block_sonata_type_model_autocomplete_select2_options_js'],
  51.             'sonata_type_model_list_widget' => [$this'block_sonata_type_model_list_widget'],
  52.             'sonata_type_template_widget' => [$this'block_sonata_type_template_widget'],
  53.         ];
  54.     }
  55.     protected function doGetParent(array $context)
  56.     {
  57.         // line 12
  58.         return "form_div_layout.html.twig";
  59.     }
  60.     protected function doDisplay(array $context, array $blocks = [])
  61.     {
  62.         $macros $this->macros;
  63.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  64.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@!SonataAdmin/Form/form_admin_fields.html.twig"));
  65.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  66.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@!SonataAdmin/Form/form_admin_fields.html.twig"));
  67.         $this->parent $this->loadTemplate("form_div_layout.html.twig""@!SonataAdmin/Form/form_admin_fields.html.twig"12);
  68.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  69.         
  70.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  71.         
  72.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  73.     }
  74.     // line 14
  75.     public function block_form_errors($context, array $blocks = [])
  76.     {
  77.         $macros $this->macros;
  78.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  79.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""form_errors"));
  80.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  81.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""form_errors"));
  82.         // line 15
  83.         if ((twig_length_filter($this->env, (isset($context["errors"]) || array_key_exists("errors"$context) ? $context["errors"] : (function () { throw new RuntimeError('Variable "errors" does not exist.'15$this->source); })())) > 0)) {
  84.             // line 16
  85.             echo "        ";
  86.             if ( !twig_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.'16$this->source); })()), "parent", [], "any"falsefalsefalse16)) {
  87.                 echo "<div class=\"alert alert-danger\">";
  88.             }
  89.             // line 17
  90.             echo "            <ul class=\"list-unstyled\">
  91.                 ";
  92.             // line 18
  93.             $context['_parent'] = $context;
  94.             $context['_seq'] = twig_ensure_traversable((isset($context["errors"]) || array_key_exists("errors"$context) ? $context["errors"] : (function () { throw new RuntimeError('Variable "errors" does not exist.'18$this->source); })()));
  95.             foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
  96.                 // line 19
  97.                 echo "                    <li><i class=\"fas fa-exclamation-circle\" aria-hidden=\"true\"></i> ";
  98.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["error"], "message", [], "any"falsefalsefalse19), "html"nulltrue);
  99.                 echo "</li>
  100.                 ";
  101.             }
  102.             $_parent $context['_parent'];
  103.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
  104.             $context array_intersect_key($context$_parent) + $_parent;
  105.             // line 21
  106.             echo "            </ul>
  107.         ";
  108.             // line 22
  109.             if ( !twig_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.'22$this->source); })()), "parent", [], "any"falsefalsefalse22)) {
  110.                 echo "</div>";
  111.             }
  112.             // line 23
  113.             echo "    ";
  114.         }
  115.         
  116.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  117.         
  118.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  119.     }
  120.     // line 26
  121.     public function block_form_help($context, array $blocks = [])
  122.     {
  123.         $macros $this->macros;
  124.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  125.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""form_help"));
  126.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  127.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""form_help"));
  128.         // line 27
  129.         if ((array_key_exists("sonata_admin_translation_domain"$context) && (null === (isset($context["translation_domain"]) || array_key_exists("translation_domain"$context) ? $context["translation_domain"] : (function () { throw new RuntimeError('Variable "translation_domain" does not exist.'27$this->source); })())))) {
  130.             // line 28
  131.             echo "        ";
  132.             $context["translation_domain"] = (isset($context["sonata_admin_translation_domain"]) || array_key_exists("sonata_admin_translation_domain"$context) ? $context["sonata_admin_translation_domain"] : (function () { throw new RuntimeError('Variable "sonata_admin_translation_domain" does not exist.'28$this->source); })());
  133.             // line 29
  134.             echo "    ";
  135.         }
  136.         // line 30
  137.         echo "    ";
  138.         if ( !twig_test_empty((isset($context["help"]) || array_key_exists("help"$context) ? $context["help"] : (function () { throw new RuntimeError('Variable "help" does not exist.'30$this->source); })()))) {
  139.             // line 31
  140.             echo "        ";
  141.             $context["help_attr"] = twig_array_merge((isset($context["help_attr"]) || array_key_exists("help_attr"$context) ? $context["help_attr"] : (function () { throw new RuntimeError('Variable "help_attr" does not exist.'31$this->source); })()), ["class" => (((twig_get_attribute($this->env$this->source, ($context["help_attr"] ?? null), "class", [], "any"truetruefalse31)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["help_attr"] ?? null), "class", [], "any"falsefalsefalse31), "")) : ("")) . " help-block sonata-ba-field-help")]);
  142.             // line 32
  143.             echo "        ";
  144.             $this->displayParentBlock("form_help"$context$blocks);
  145.             echo "
  146.     ";
  147.         }
  148.         
  149.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  150.         
  151.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  152.     }
  153.     // line 36
  154.     public function block_form_widget_simple($context, array $blocks = [])
  155.     {
  156.         $macros $this->macros;
  157.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  158.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""form_widget_simple"));
  159.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  160.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""form_widget_simple"));
  161.         // line 37
  162.         echo "    ";
  163.         $context["type"] = ((array_key_exists("type"$context)) ? (_twig_default_filter((isset($context["type"]) || array_key_exists("type"$context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.'37$this->source); })()), "text")) : ("text"));
  164.         // line 38
  165.         echo "    ";
  166.         if (((isset($context["type"]) || array_key_exists("type"$context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.'38$this->source); })()) != "file")) {
  167.             // line 39
  168.             echo "        ";
  169.             $context["attr"] = twig_array_merge((isset($context["attr"]) || array_key_exists("attr"$context) ? $context["attr"] : (function () { throw new RuntimeError('Variable "attr" does not exist.'39$this->source); })()), ["class" => (((twig_get_attribute($this->env$this->source, ($context["attr"] ?? null), "class", [], "any"truetruefalse39)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["attr"] ?? null), "class", [], "any"falsefalsefalse39), "")) : ("")) . " form-control")]);
  170.             // line 40
  171.             echo "    ";
  172.         }
  173.         // line 41
  174.         echo "    ";
  175.         $this->displayParentBlock("form_widget_simple"$context$blocks);
  176.         echo "
  177. ";
  178.         
  179.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  180.         
  181.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  182.     }
  183.     // line 44
  184.     public function block_textarea_widget($context, array $blocks = [])
  185.     {
  186.         $macros $this->macros;
  187.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  188.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""textarea_widget"));
  189.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  190.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""textarea_widget"));
  191.         // line 45
  192.         echo "    ";
  193.         $context["attr"] = twig_array_merge((isset($context["attr"]) || array_key_exists("attr"$context) ? $context["attr"] : (function () { throw new RuntimeError('Variable "attr" does not exist.'45$this->source); })()), ["class" => (((twig_get_attribute($this->env$this->source, ($context["attr"] ?? null), "class", [], "any"truetruefalse45)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["attr"] ?? null), "class", [], "any"falsefalsefalse45), "")) : ("")) . " form-control")]);
  194.         // line 46
  195.         echo "    ";
  196.         $this->displayParentBlock("textarea_widget"$context$blocks);
  197.         echo "
  198. ";
  199.         
  200.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  201.         
  202.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  203.     }
  204.     // line 49
  205.     public function block_money_widget($context, array $blocks = [])
  206.     {
  207.         $macros $this->macros;
  208.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  209.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""money_widget"));
  210.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  211.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""money_widget"));
  212.         // line 50
  213.         if (((isset($context["money_pattern"]) || array_key_exists("money_pattern"$context) ? $context["money_pattern"] : (function () { throw new RuntimeError('Variable "money_pattern" does not exist.'50$this->source); })()) == "{{ widget }}")) {
  214.             // line 51
  215.             $this->displayBlock("form_widget_simple"$context$blocks);
  216.         } else {
  217.             // line 53
  218.             echo "        ";
  219.             $context["currencySymbol"] = twig_trim_filter(twig_replace_filter((isset($context["money_pattern"]) || array_key_exists("money_pattern"$context) ? $context["money_pattern"] : (function () { throw new RuntimeError('Variable "money_pattern" does not exist.'53$this->source); })()), ["{{ widget }}" => ""]));
  220.             // line 54
  221.             echo "        ";
  222.             if (twig_matches("/^{{ widget }}/", (isset($context["money_pattern"]) || array_key_exists("money_pattern"$context) ? $context["money_pattern"] : (function () { throw new RuntimeError('Variable "money_pattern" does not exist.'54$this->source); })()))) {
  223.                 // line 55
  224.                 echo "            <div class=\"input-group\">";
  225.                 // line 56
  226.                 $this->displayBlock("form_widget_simple"$context$blocks);
  227.                 // line 57
  228.                 echo "<span class=\"input-group-addon\">";
  229.                 echo twig_escape_filter($this->env, (isset($context["currencySymbol"]) || array_key_exists("currencySymbol"$context) ? $context["currencySymbol"] : (function () { throw new RuntimeError('Variable "currencySymbol" does not exist.'57$this->source); })()), "html"nulltrue);
  230.                 echo "</span>
  231.             </div>
  232.         ";
  233.             } elseif (twig_matches("/{{ widget }}\$/",             // line 59
  234. (isset($context["money_pattern"]) || array_key_exists("money_pattern"$context) ? $context["money_pattern"] : (function () { throw new RuntimeError('Variable "money_pattern" does not exist.'59$this->source); })()))) {
  235.                 // line 60
  236.                 echo "            <div class=\"input-group\">
  237.                 <span class=\"input-group-addon\">";
  238.                 // line 61
  239.                 echo twig_escape_filter($this->env, (isset($context["currencySymbol"]) || array_key_exists("currencySymbol"$context) ? $context["currencySymbol"] : (function () { throw new RuntimeError('Variable "currencySymbol" does not exist.'61$this->source); })()), "html"nulltrue);
  240.                 echo "</span>";
  241.                 // line 62
  242.                 $this->displayBlock("form_widget_simple"$context$blocks);
  243.                 // line 63
  244.                 echo "</div>
  245.         ";
  246.             }
  247.             // line 65
  248.             echo "    ";
  249.         }
  250.         
  251.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  252.         
  253.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  254.     }
  255.     // line 68
  256.     public function block_percent_widget($context, array $blocks = [])
  257.     {
  258.         $macros $this->macros;
  259.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  260.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""percent_widget"));
  261.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  262.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""percent_widget"));
  263.         // line 69
  264.         echo "    ";
  265.         ob_start();
  266.         // line 70
  267.         echo "        ";
  268.         $context["type"] = ((array_key_exists("type"$context)) ? (_twig_default_filter((isset($context["type"]) || array_key_exists("type"$context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.'70$this->source); })()), "text")) : ("text"));
  269.         // line 71
  270.         echo "        <div class=\"input-group\">
  271.             ";
  272.         // line 72
  273.         $this->displayBlock("form_widget_simple"$context$blocks);
  274.         echo "
  275.             <span class=\"input-group-addon\">%</span>
  276.         </div>
  277.     ";
  278.         $___internal_parse_1_ = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
  279.         // line 69
  280.         echo twig_spaceless($___internal_parse_1_);
  281.         
  282.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  283.         
  284.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  285.     }
  286.     // line 78
  287.     public function block_checkbox_widget($context, array $blocks = [])
  288.     {
  289.         $macros $this->macros;
  290.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  291.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""checkbox_widget"));
  292.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  293.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""checkbox_widget"));
  294.         // line 79
  295.         $context["parent_label_class"] = ((array_key_exists("parent_label_class"$context)) ? (_twig_default_filter((isset($context["parent_label_class"]) || array_key_exists("parent_label_class"$context) ? $context["parent_label_class"] : (function () { throw new RuntimeError('Variable "parent_label_class" does not exist.'79$this->source); })()), "")) : (""));
  296.         // line 80
  297.         if (twig_in_filter("checkbox-inline", (isset($context["parent_label_class"]) || array_key_exists("parent_label_class"$context) ? $context["parent_label_class"] : (function () { throw new RuntimeError('Variable "parent_label_class" does not exist.'80$this->source); })()))) {
  298.             // line 81
  299.             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.'81$this->source); })()), 'label', ["widget" => $this->renderParentBlock("checkbox_widget"$context$blocks)]);
  300.         } else {
  301.             // line 83
  302.             echo "<div class=\"checkbox\">";
  303.             // line 84
  304.             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.'84$this->source); })()), 'label', ["widget" => $this->renderParentBlock("checkbox_widget"$context$blocks)]);
  305.             // line 85
  306.             echo "</div>";
  307.         }
  308.         
  309.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  310.         
  311.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  312.     }
  313.     // line 89
  314.     public function block_radio_widget($context, array $blocks = [])
  315.     {
  316.         $macros $this->macros;
  317.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  318.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""radio_widget"));
  319.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  320.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""radio_widget"));
  321.         // line 90
  322.         $context["parent_label_class"] = ((array_key_exists("parent_label_class"$context)) ? (_twig_default_filter((isset($context["parent_label_class"]) || array_key_exists("parent_label_class"$context) ? $context["parent_label_class"] : (function () { throw new RuntimeError('Variable "parent_label_class" does not exist.'90$this->source); })()), "")) : (""));
  323.         // line 91
  324.         if (twig_in_filter("radio-inline", (isset($context["parent_label_class"]) || array_key_exists("parent_label_class"$context) ? $context["parent_label_class"] : (function () { throw new RuntimeError('Variable "parent_label_class" does not exist.'91$this->source); })()))) {
  325.             // line 92
  326.             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.'92$this->source); })()), 'label', ["widget" => $this->renderParentBlock("radio_widget"$context$blocks)]);
  327.         } else {
  328.             // line 94
  329.             echo "<div class=\"radio\">";
  330.             // line 95
  331.             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.'95$this->source); })()), 'label', ["widget" => $this->renderParentBlock("radio_widget"$context$blocks)]);
  332.             // line 96
  333.             echo "</div>";
  334.         }
  335.         
  336.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  337.         
  338.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  339.     }
  340.     // line 101
  341.     public function block_form_label($context, array $blocks = [])
  342.     {
  343.         $macros $this->macros;
  344.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  345.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""form_label"));
  346.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  347.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""form_label"));
  348.         // line 102
  349.         ob_start();
  350.         // line 103
  351.         echo "    ";
  352.         if (( !((isset($context["label"]) || array_key_exists("label"$context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.'103$this->source); })()) === false) && (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.'103$this->source); })()), "options", [], "any"falsefalsefalse103), "form_type", [], "array"falsefalsefalse103) == "horizontal"))) {
  353.             // line 104
  354.             echo "        ";
  355.             $context["label_class"] = "col-sm-3";
  356.             // line 105
  357.             echo "    ";
  358.         }
  359.         // line 106
  360.         echo "
  361.     ";
  362.         // line 107
  363.         $context["label_class"] = (((array_key_exists("label_class"$context)) ? (_twig_default_filter((isset($context["label_class"]) || array_key_exists("label_class"$context) ? $context["label_class"] : (function () { throw new RuntimeError('Variable "label_class" does not exist.'107$this->source); })()), "")) : ("")) . " control-label");
  364.         // line 108
  365.         echo "
  366.     ";
  367.         // line 109
  368.         if ( !((isset($context["label"]) || array_key_exists("label"$context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.'109$this->source); })()) === false)) {
  369.             // line 110
  370.             echo "        ";
  371.             $context["label_attr"] = twig_array_merge((isset($context["label_attr"]) || array_key_exists("label_attr"$context) ? $context["label_attr"] : (function () { throw new RuntimeError('Variable "label_attr" does not exist.'110$this->source); })()), ["class" => ((((twig_get_attribute($this->env$this->source, ($context["label_attr"] ?? null), "class", [], "any"truetruefalse110)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["label_attr"] ?? null), "class", [], "any"falsefalsefalse110), "")) : ("")) . " ") . (isset($context["label_class"]) || array_key_exists("label_class"$context) ? $context["label_class"] : (function () { throw new RuntimeError('Variable "label_class" does not exist.'110$this->source); })()))]);
  372.             // line 111
  373.             echo "
  374.         ";
  375.             // line 112
  376.             if ( !(isset($context["compound"]) || array_key_exists("compound"$context) ? $context["compound"] : (function () { throw new RuntimeError('Variable "compound" does not exist.'112$this->source); })())) {
  377.                 // line 113
  378.                 echo "            ";
  379.                 $context["label_attr"] = twig_array_merge((isset($context["label_attr"]) || array_key_exists("label_attr"$context) ? $context["label_attr"] : (function () { throw new RuntimeError('Variable "label_attr" does not exist.'113$this->source); })()), ["for" => (isset($context["id"]) || array_key_exists("id"$context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.'113$this->source); })())]);
  380.                 // line 114
  381.                 echo "        ";
  382.             }
  383.             // line 115
  384.             echo "        ";
  385.             if ((isset($context["required"]) || array_key_exists("required"$context) ? $context["required"] : (function () { throw new RuntimeError('Variable "required" does not exist.'115$this->source); })())) {
  386.                 // line 116
  387.                 echo "            ";
  388.                 $context["label_attr"] = twig_array_merge((isset($context["label_attr"]) || array_key_exists("label_attr"$context) ? $context["label_attr"] : (function () { throw new RuntimeError('Variable "label_attr" does not exist.'116$this->source); })()), ["class" => twig_trim_filter((((twig_get_attribute($this->env$this->source, ($context["label_attr"] ?? null), "class", [], "any"truetruefalse116)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["label_attr"] ?? null), "class", [], "any"falsefalsefalse116), "")) : ("")) . " required"))]);
  389.                 // line 117
  390.                 echo "        ";
  391.             }
  392.             // line 118
  393.             echo "
  394.         ";
  395.             // line 119
  396.             if (twig_test_empty((isset($context["label"]) || array_key_exists("label"$context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.'119$this->source); })()))) {
  397.                 // line 120
  398.                 if ((array_key_exists("label_format"$context) &&  !twig_test_empty((isset($context["label_format"]) || array_key_exists("label_format"$context) ? $context["label_format"] : (function () { throw new RuntimeError('Variable "label_format" does not exist.'120$this->source); })())))) {
  399.                     // line 121
  400.                     $context["label"] = twig_replace_filter((isset($context["label_format"]) || array_key_exists("label_format"$context) ? $context["label_format"] : (function () { throw new RuntimeError('Variable "label_format" does not exist.'121$this->source); })()), ["%name%" =>                     // line 122
  401. (isset($context["name"]) || array_key_exists("name"$context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.'122$this->source); })()), "%id%" =>                     // line 123
  402. (isset($context["id"]) || array_key_exists("id"$context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.'123$this->source); })())]);
  403.                 } else {
  404.                     // line 126
  405.                     $context["label"] = $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->humanize((isset($context["name"]) || array_key_exists("name"$context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.'126$this->source); })()));
  406.                 }
  407.             }
  408.             // line 129
  409.             echo "
  410.         <label";
  411.             // line 130
  412.             $context['_parent'] = $context;
  413.             $context['_seq'] = twig_ensure_traversable((isset($context["label_attr"]) || array_key_exists("label_attr"$context) ? $context["label_attr"] : (function () { throw new RuntimeError('Variable "label_attr" does not exist.'130$this->source); })()));
  414.             foreach ($context['_seq'] as $context["attrname"] => $context["attrvalue"]) {
  415.                 echo " ";
  416.                 echo twig_escape_filter($this->env$context["attrname"], "html"nulltrue);
  417.                 echo "=\"";
  418.                 echo twig_escape_filter($this->env$context["attrvalue"], "html"nulltrue);
  419.                 echo "\"";
  420.             }
  421.             $_parent $context['_parent'];
  422.             unset($context['_seq'], $context['_iterated'], $context['attrname'], $context['attrvalue'], $context['_parent'], $context['loop']);
  423.             $context array_intersect_key($context$_parent) + $_parent;
  424.             echo ">";
  425.             // line 131
  426.             if (((isset($context["translation_domain"]) || array_key_exists("translation_domain"$context) ? $context["translation_domain"] : (function () { throw new RuntimeError('Variable "translation_domain" does not exist.'131$this->source); })()) === false)) {
  427.                 // line 132
  428.                 echo twig_escape_filter($this->env, (isset($context["label"]) || array_key_exists("label"$context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.'132$this->source); })()), "html"nulltrue);
  429.             } elseif ( !twig_get_attribute($this->env$this->source,             // line 133
  430. (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'133$this->source); })()), "admin", [], "any"falsefalsefalse133)) {
  431.                 // line 134
  432.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["label"]) || array_key_exists("label"$context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.'134$this->source); })()), (isset($context["label_translation_parameters"]) || array_key_exists("label_translation_parameters"$context) ? $context["label_translation_parameters"] : (function () { throw new RuntimeError('Variable "label_translation_parameters" does not exist.'134$this->source); })()), (isset($context["translation_domain"]) || array_key_exists("translation_domain"$context) ? $context["translation_domain"] : (function () { throw new RuntimeError('Variable "translation_domain" does not exist.'134$this->source); })())), "html"nulltrue);
  433.             } else {
  434.                 // line 136
  435.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["label"]) || array_key_exists("label"$context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.'136$this->source); })()), (isset($context["label_translation_parameters"]) || array_key_exists("label_translation_parameters"$context) ? $context["label_translation_parameters"] : (function () { throw new RuntimeError('Variable "label_translation_parameters" does not exist.'136$this->source); })()), ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["sonata_admin"] ?? null), "field_description", [], "any"falsetruefalse136), "translationDomain", [], "any"truetruefalse136)) ? (_twig_default_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["sonata_admin"] ?? null), "field_description", [], "any"falsetruefalse136), "translationDomain", [], "any"falsefalsefalse136), 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.'136$this->source); })()), "admin", [], "any"falsefalsefalse136), "translationDomain", [], "any"falsefalsefalse136))) : (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.'136$this->source); })()), "admin", [], "any"falsefalsefalse136), "translationDomain", [], "any"falsefalsefalse136)))), "html"nulltrue);
  436.             }
  437.             // line 138
  438.             echo "</label>
  439.     ";
  440.         }
  441.         $___internal_parse_2_ = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
  442.         // line 102
  443.         echo twig_spaceless($___internal_parse_2_);
  444.         
  445.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  446.         
  447.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  448.     }
  449.     // line 143
  450.     public function block_checkbox_label($context, array $blocks = [])
  451.     {
  452.         $macros $this->macros;
  453.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  454.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""checkbox_label"));
  455.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  456.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""checkbox_label"));
  457.         // line 144
  458.         $this->displayBlock("checkbox_radio_label"$context$blocks);
  459.         
  460.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  461.         
  462.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  463.     }
  464.     // line 147
  465.     public function block_radio_label($context, array $blocks = [])
  466.     {
  467.         $macros $this->macros;
  468.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  469.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""radio_label"));
  470.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  471.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""radio_label"));
  472.         // line 148
  473.         $this->displayBlock("checkbox_radio_label"$context$blocks);
  474.         
  475.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  476.         
  477.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  478.     }
  479.     // line 151
  480.     public function block_checkbox_radio_label($context, array $blocks = [])
  481.     {
  482.         $macros $this->macros;
  483.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  484.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""checkbox_radio_label"));
  485.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  486.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""checkbox_radio_label"));
  487.         // line 152
  488.         echo "    ";
  489.         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.'152$this->source); })()), "admin", [], "any"falsefalsefalse152)) {
  490.             // line 153
  491.             echo "        ";
  492.             $context["translation_domain"] = 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.'153$this->source); })()), "field_description", [], "any"falsefalsefalse153), "translationDomain", [], "any"falsefalsefalse153);
  493.             // line 154
  494.             echo "    ";
  495.         }
  496.         // line 155
  497.         echo "    ";
  498.         // line 156
  499.         echo "    ";
  500.         if (array_key_exists("widget"$context)) {
  501.             // line 157
  502.             echo "        ";
  503.             if ((isset($context["required"]) || array_key_exists("required"$context) ? $context["required"] : (function () { throw new RuntimeError('Variable "required" does not exist.'157$this->source); })())) {
  504.                 // line 158
  505.                 echo "            ";
  506.                 $context["label_attr"] = twig_array_merge((isset($context["label_attr"]) || array_key_exists("label_attr"$context) ? $context["label_attr"] : (function () { throw new RuntimeError('Variable "label_attr" does not exist.'158$this->source); })()), ["class" => twig_trim_filter((((twig_get_attribute($this->env$this->source, ($context["label_attr"] ?? null), "class", [], "any"truetruefalse158)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["label_attr"] ?? null), "class", [], "any"falsefalsefalse158), "")) : ("")) . " required"))]);
  507.                 // line 159
  508.                 echo "        ";
  509.             }
  510.             // line 160
  511.             echo "        ";
  512.             if (array_key_exists("parent_label_class"$context)) {
  513.                 // line 161
  514.                 echo "            ";
  515.                 $context["label_attr"] = twig_array_merge((isset($context["label_attr"]) || array_key_exists("label_attr"$context) ? $context["label_attr"] : (function () { throw new RuntimeError('Variable "label_attr" does not exist.'161$this->source); })()), ["class" => twig_trim_filter(((((twig_get_attribute($this->env$this->source, ($context["label_attr"] ?? null), "class", [], "any"truetruefalse161)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["label_attr"] ?? null), "class", [], "any"falsefalsefalse161), "")) : ("")) . " ") . (isset($context["parent_label_class"]) || array_key_exists("parent_label_class"$context) ? $context["parent_label_class"] : (function () { throw new RuntimeError('Variable "parent_label_class" does not exist.'161$this->source); })())))]);
  516.                 // line 162
  517.                 echo "        ";
  518.             }
  519.             // line 163
  520.             echo "        ";
  521.             if (( !((isset($context["label"]) || array_key_exists("label"$context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.'163$this->source); })()) === false) && twig_test_empty((isset($context["label"]) || array_key_exists("label"$context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.'163$this->source); })())))) {
  522.                 // line 164
  523.                 echo "            ";
  524.                 $context["label"] = $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->humanize((isset($context["name"]) || array_key_exists("name"$context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.'164$this->source); })()));
  525.                 // line 165
  526.                 echo "        ";
  527.             }
  528.             // line 166
  529.             echo "        <label";
  530.             $context['_parent'] = $context;
  531.             $context['_seq'] = twig_ensure_traversable((isset($context["label_attr"]) || array_key_exists("label_attr"$context) ? $context["label_attr"] : (function () { throw new RuntimeError('Variable "label_attr" does not exist.'166$this->source); })()));
  532.             foreach ($context['_seq'] as $context["attrname"] => $context["attrvalue"]) {
  533.                 echo " ";
  534.                 echo twig_escape_filter($this->env$context["attrname"], "html"nulltrue);
  535.                 echo "=\"";
  536.                 echo twig_escape_filter($this->env$context["attrvalue"], "html"nulltrue);
  537.                 echo "\"";
  538.             }
  539.             $_parent $context['_parent'];
  540.             unset($context['_seq'], $context['_iterated'], $context['attrname'], $context['attrvalue'], $context['_parent'], $context['loop']);
  541.             $context array_intersect_key($context$_parent) + $_parent;
  542.             echo ">";
  543.             // line 167
  544.             echo (isset($context["widget"]) || array_key_exists("widget"$context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.'167$this->source); })());
  545.             // line 168
  546.             if ( !((isset($context["label"]) || array_key_exists("label"$context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.'168$this->source); })()) === false)) {
  547.                 // line 169
  548.                 echo "<span class=\"control-label__text\">
  549.                     ";
  550.                 // line 170
  551.                 if (((isset($context["translation_domain"]) || array_key_exists("translation_domain"$context) ? $context["translation_domain"] : (function () { throw new RuntimeError('Variable "translation_domain" does not exist.'170$this->source); })()) === false)) {
  552.                     // line 171
  553.                     echo twig_escape_filter($this->env, (isset($context["label"]) || array_key_exists("label"$context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.'171$this->source); })()), "html"nulltrue);
  554.                 } else {
  555.                     // line 173
  556.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["label"]) || array_key_exists("label"$context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.'173$this->source); })()), (isset($context["label_translation_parameters"]) || array_key_exists("label_translation_parameters"$context) ? $context["label_translation_parameters"] : (function () { throw new RuntimeError('Variable "label_translation_parameters" does not exist.'173$this->source); })()), (isset($context["translation_domain"]) || array_key_exists("translation_domain"$context) ? $context["translation_domain"] : (function () { throw new RuntimeError('Variable "translation_domain" does not exist.'173$this->source); })())), "html"nulltrue);
  557.                 }
  558.                 // line 175
  559.                 echo "</span>";
  560.             }
  561.             // line 177
  562.             echo "</label>
  563.     ";
  564.         }
  565.         
  566.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  567.         
  568.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  569.     }
  570.     // line 181
  571.     public function block_choice_widget_expanded($context, array $blocks = [])
  572.     {
  573.         $macros $this->macros;
  574.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  575.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""choice_widget_expanded"));
  576.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  577.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""choice_widget_expanded"));
  578.         // line 182
  579.         ob_start();
  580.         // line 183
  581.         echo "    ";
  582.         $context["attr"] = twig_array_merge((isset($context["attr"]) || array_key_exists("attr"$context) ? $context["attr"] : (function () { throw new RuntimeError('Variable "attr" does not exist.'183$this->source); })()), ["class" => (((twig_get_attribute($this->env$this->source, ($context["attr"] ?? null), "class", [], "any"truetruefalse183)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["attr"] ?? null), "class", [], "any"falsefalsefalse183), "")) : ("")) . " list-unstyled")]);
  583.         // line 184
  584.         echo "    <ul ";
  585.         $this->displayBlock("widget_container_attributes"$context$blocks);
  586.         echo ">
  587.     ";
  588.         // line 185
  589.         $context['_parent'] = $context;
  590.         $context['_seq'] = twig_ensure_traversable((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'185$this->source); })()));
  591.         foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
  592.             // line 186
  593.             echo "        <li>
  594.             ";
  595.             // line 187
  596.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["child"], 'widget', ["horizontal" => false"horizontal_input_wrapper_class" => """translation_domain" =>             // line 190
  597. (isset($context["choice_translation_domain"]) || array_key_exists("choice_translation_domain"$context) ? $context["choice_translation_domain"] : (function () { throw new RuntimeError('Variable "choice_translation_domain" does not exist.'190$this->source); })())]);
  598.             // line 191
  599.             echo " ";
  600.             // line 192
  601.             echo "        </li>
  602.     ";
  603.         }
  604.         $_parent $context['_parent'];
  605.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
  606.         $context array_intersect_key($context$_parent) + $_parent;
  607.         // line 194
  608.         echo "    </ul>
  609. ";
  610.         $___internal_parse_3_ = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
  611.         // line 182
  612.         echo twig_spaceless($___internal_parse_3_);
  613.         
  614.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  615.         
  616.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  617.     }
  618.     // line 198
  619.     public function block_choice_widget_collapsed($context, array $blocks = [])
  620.     {
  621.         $macros $this->macros;
  622.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  623.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""choice_widget_collapsed"));
  624.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  625.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""choice_widget_collapsed"));
  626.         // line 199
  627.         ob_start();
  628.         // line 200
  629.         echo "    ";
  630.         if ((((isset($context["required"]) || array_key_exists("required"$context) ? $context["required"] : (function () { throw new RuntimeError('Variable "required" does not exist.'200$this->source); })()) && array_key_exists("placeholder"$context)) && (null === (isset($context["placeholder"]) || array_key_exists("placeholder"$context) ? $context["placeholder"] : (function () { throw new RuntimeError('Variable "placeholder" does not exist.'200$this->source); })())))) {
  631.             // line 201
  632.             echo "        ";
  633.             $context["required"] = false;
  634.             // line 202
  635.             echo "    ";
  636.         } elseif (((((((isset($context["required"]) || array_key_exists("required"$context) ? $context["required"] : (function () { throw new RuntimeError('Variable "required" does not exist.'202$this->source); })()) && array_key_exists("empty_value"$context)) && array_key_exists("empty_value_in_choices"$context)) && (null === (isset($context["empty_value"]) || array_key_exists("empty_value"$context) ? $context["empty_value"] : (function () { throw new RuntimeError('Variable "empty_value" does not exist.'202$this->source); })()))) &&  !(isset($context["empty_value_in_choices"]) || array_key_exists("empty_value_in_choices"$context) ? $context["empty_value_in_choices"] : (function () { throw new RuntimeError('Variable "empty_value_in_choices" does not exist.'202$this->source); })())) &&  !(isset($context["multiple"]) || array_key_exists("multiple"$context) ? $context["multiple"] : (function () { throw new RuntimeError('Variable "multiple" does not exist.'202$this->source); })()))) {
  637.             // line 203
  638.             echo "        ";
  639.             $context["required"] = false;
  640.             // line 204
  641.             echo "    ";
  642.         }
  643.         // line 205
  644.         echo "
  645.     ";
  646.         // line 206
  647.         $context["attr"] = twig_array_merge((isset($context["attr"]) || array_key_exists("attr"$context) ? $context["attr"] : (function () { throw new RuntimeError('Variable "attr" does not exist.'206$this->source); })()), ["class" => (((twig_get_attribute($this->env$this->source, ($context["attr"] ?? null), "class", [], "any"truetruefalse206)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["attr"] ?? null), "class", [], "any"falsefalsefalse206), "")) : ("")) . " form-control")]);
  648.         // line 207
  649.         echo "    ";
  650.         if (((array_key_exists("sortable"$context) && (isset($context["sortable"]) || array_key_exists("sortable"$context) ? $context["sortable"] : (function () { throw new RuntimeError('Variable "sortable" does not exist.'207$this->source); })())) && (isset($context["multiple"]) || array_key_exists("multiple"$context) ? $context["multiple"] : (function () { throw new RuntimeError('Variable "multiple" does not exist.'207$this->source); })()))) {
  651.             // line 208
  652.             echo "        ";
  653.             $this->displayBlock("sonata_type_choice_multiple_sortable"$context$blocks);
  654.             echo "
  655.     ";
  656.         } else {
  657.             // line 210
  658.             echo "        ";
  659.             $context["data_placeholder"] = (isset($context["placeholder"]) || array_key_exists("placeholder"$context) ? $context["placeholder"] : (function () { throw new RuntimeError('Variable "placeholder" does not exist.'210$this->source); })());
  660.             // line 211
  661.             echo "        ";
  662.             if (((isset($context["placeholder"]) || array_key_exists("placeholder"$context) ? $context["placeholder"] : (function () { throw new RuntimeError('Variable "placeholder" does not exist.'211$this->source); })()) != "")) {
  663.                 // line 212
  664.                 echo "            ";
  665.                 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.'212$this->source); })()), "admin", [], "any"falsefalsefalse212)) {
  666.                     // line 213
  667.                     echo "                ";
  668.                     $context["data_placeholder"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["placeholder"]) || array_key_exists("placeholder"$context) ? $context["placeholder"] : (function () { throw new RuntimeError('Variable "placeholder" does not exist.'213$this->source); })()), [], (isset($context["translation_domain"]) || array_key_exists("translation_domain"$context) ? $context["translation_domain"] : (function () { throw new RuntimeError('Variable "translation_domain" does not exist.'213$this->source); })()));
  669.                     // line 214
  670.                     echo "            ";
  671.                 } else {
  672.                     // line 215
  673.                     echo "                ";
  674.                     $context["data_placeholder"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["placeholder"]) || array_key_exists("placeholder"$context) ? $context["placeholder"] : (function () { throw new RuntimeError('Variable "placeholder" does not exist.'215$this->source); })()), [], 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.'215$this->source); })()), "field_description", [], "any"falsefalsefalse215), "translationDomain", [], "any"falsefalsefalse215));
  675.                     // line 216
  676.                     echo "            ";
  677.                 }
  678.                 // line 217
  679.                 echo "        ";
  680.             }
  681.             // line 218
  682.             echo "
  683.         ";
  684.             // line 219
  685.             $context["use_select2"] = (array_key_exists("sonata_config"$context) && twig_get_attribute($this->env$this->source, (isset($context["sonata_config"]) || array_key_exists("sonata_config"$context) ? $context["sonata_config"] : (function () { throw new RuntimeError('Variable "sonata_config" does not exist.'219$this->source); })()), "getOption", ["use_select2"], "method"falsefalsefalse219));
  686.             // line 220
  687.             echo "
  688.         <select ";
  689.             // line 221
  690.             $this->displayBlock("widget_attributes"$context$blocks);
  691.             if ((isset($context["multiple"]) || array_key_exists("multiple"$context) ? $context["multiple"] : (function () { throw new RuntimeError('Variable "multiple" does not exist.'221$this->source); })())) {
  692.                 echo " multiple=\"multiple\"";
  693.             }
  694.             if (((array_key_exists("placeholder"$context) &&  !(null === (isset($context["placeholder"]) || array_key_exists("placeholder"$context) ? $context["placeholder"] : (function () { throw new RuntimeError('Variable "placeholder" does not exist.'221$this->source); })()))) && (isset($context["use_select2"]) || array_key_exists("use_select2"$context) ? $context["use_select2"] : (function () { throw new RuntimeError('Variable "use_select2" does not exist.'221$this->source); })()))) {
  695.                 echo " data-placeholder=\"";
  696.                 echo twig_escape_filter($this->env, (isset($context["data_placeholder"]) || array_key_exists("data_placeholder"$context) ? $context["data_placeholder"] : (function () { throw new RuntimeError('Variable "data_placeholder" does not exist.'221$this->source); })()), "html"nulltrue);
  697.                 echo "\"";
  698.             }
  699.             echo ">
  700.             ";
  701.             // line 222
  702.             if ((array_key_exists("empty_value"$context) &&  !(null === (isset($context["empty_value"]) || array_key_exists("empty_value"$context) ? $context["empty_value"] : (function () { throw new RuntimeError('Variable "empty_value" does not exist.'222$this->source); })())))) {
  703.                 // line 223
  704.                 echo "                <option value=\"\"";
  705.                 if (((isset($context["required"]) || array_key_exists("required"$context) ? $context["required"] : (function () { throw new RuntimeError('Variable "required" does not exist.'223$this->source); })()) && twig_test_empty((isset($context["value"]) || array_key_exists("value"$context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.'223$this->source); })())))) {
  706.                     echo " selected=\"selected\"";
  707.                 }
  708.                 echo ">
  709.                     ";
  710.                 // line 224
  711.                 if (((isset($context["empty_value"]) || array_key_exists("empty_value"$context) ? $context["empty_value"] : (function () { throw new RuntimeError('Variable "empty_value" does not exist.'224$this->source); })()) != "")) {
  712.                     // line 225
  713.                     echo "                        ";
  714.                     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.'225$this->source); })()), "admin", [], "any"falsefalsefalse225)) {
  715.                         // line 226
  716.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["empty_value"]) || array_key_exists("empty_value"$context) ? $context["empty_value"] : (function () { throw new RuntimeError('Variable "empty_value" does not exist.'226$this->source); })()), [], (isset($context["translation_domain"]) || array_key_exists("translation_domain"$context) ? $context["translation_domain"] : (function () { throw new RuntimeError('Variable "translation_domain" does not exist.'226$this->source); })())), "html"nulltrue);
  717.                     } else {
  718.                         // line 228
  719.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["empty_value"]) || array_key_exists("empty_value"$context) ? $context["empty_value"] : (function () { throw new RuntimeError('Variable "empty_value" does not exist.'228$this->source); })()), [], 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.'228$this->source); })()), "field_description", [], "any"falsefalsefalse228), "translationDomain", [], "any"falsefalsefalse228)), "html"nulltrue);
  720.                     }
  721.                     // line 230
  722.                     echo "                    ";
  723.                 }
  724.                 // line 231
  725.                 echo "                </option>
  726.             ";
  727.             } elseif ((            // line 232
  728. array_key_exists("placeholder"$context) &&  !(null === (isset($context["placeholder"]) || array_key_exists("placeholder"$context) ? $context["placeholder"] : (function () { throw new RuntimeError('Variable "placeholder" does not exist.'232$this->source); })())))) {
  729.                 // line 233
  730.                 echo "                <option value=\"\"";
  731.                 if (((isset($context["required"]) || array_key_exists("required"$context) ? $context["required"] : (function () { throw new RuntimeError('Variable "required" does not exist.'233$this->source); })()) && twig_test_empty((isset($context["value"]) || array_key_exists("value"$context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.'233$this->source); })())))) {
  732.                     echo " selected=\"selected\"";
  733.                 }
  734.                 echo ">";
  735.                 echo twig_escape_filter($this->env, (isset($context["data_placeholder"]) || array_key_exists("data_placeholder"$context) ? $context["data_placeholder"] : (function () { throw new RuntimeError('Variable "data_placeholder" does not exist.'233$this->source); })()), "html"nulltrue);
  736.                 echo "</option>
  737.             ";
  738.             }
  739.             // line 235
  740.             echo "            ";
  741.             if ((twig_length_filter($this->env, (isset($context["preferred_choices"]) || array_key_exists("preferred_choices"$context) ? $context["preferred_choices"] : (function () { throw new RuntimeError('Variable "preferred_choices" does not exist.'235$this->source); })())) > 0)) {
  742.                 // line 236
  743.                 echo "                ";
  744.                 $context["options"] = (isset($context["preferred_choices"]) || array_key_exists("preferred_choices"$context) ? $context["preferred_choices"] : (function () { throw new RuntimeError('Variable "preferred_choices" does not exist.'236$this->source); })());
  745.                 // line 237
  746.                 echo "                ";
  747.                 $this->displayBlock("choice_widget_options"$context$blocks);
  748.                 echo "
  749.                 ";
  750.                 // line 238
  751.                 if ((twig_length_filter($this->env, (isset($context["choices"]) || array_key_exists("choices"$context) ? $context["choices"] : (function () { throw new RuntimeError('Variable "choices" does not exist.'238$this->source); })())) > 0)) {
  752.                     // line 239
  753.                     echo "                    <option disabled=\"disabled\">";
  754.                     echo twig_escape_filter($this->env, (isset($context["separator"]) || array_key_exists("separator"$context) ? $context["separator"] : (function () { throw new RuntimeError('Variable "separator" does not exist.'239$this->source); })()), "html"nulltrue);
  755.                     echo "</option>
  756.                 ";
  757.                 }
  758.                 // line 241
  759.                 echo "            ";
  760.             }
  761.             // line 242
  762.             echo "            ";
  763.             $context["options"] = (isset($context["choices"]) || array_key_exists("choices"$context) ? $context["choices"] : (function () { throw new RuntimeError('Variable "choices" does not exist.'242$this->source); })());
  764.             // line 243
  765.             echo "            ";
  766.             $this->displayBlock("choice_widget_options"$context$blocks);
  767.             echo "
  768.         </select>
  769.     ";
  770.         }
  771.         $___internal_parse_4_ = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
  772.         // line 199
  773.         echo twig_spaceless($___internal_parse_4_);
  774.         
  775.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  776.         
  777.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  778.     }
  779.     // line 249
  780.     public function block_date_widget($context, array $blocks = [])
  781.     {
  782.         $macros $this->macros;
  783.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  784.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""date_widget"));
  785.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  786.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""date_widget"));
  787.         // line 250
  788.         ob_start();
  789.         // line 251
  790.         echo "    ";
  791.         if (((isset($context["widget"]) || array_key_exists("widget"$context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.'251$this->source); })()) == "single_text")) {
  792.             // line 252
  793.             echo "        ";
  794.             $this->displayBlock("form_widget_simple"$context$blocks);
  795.             echo "
  796.     ";
  797.         } else {
  798.             // line 254
  799.             echo "        ";
  800.             if (( !array_key_exists("row"$context) || ((isset($context["row"]) || array_key_exists("row"$context) ? $context["row"] : (function () { throw new RuntimeError('Variable "row" does not exist.'254$this->source); })()) == true))) {
  801.                 // line 255
  802.                 echo "            ";
  803.                 $context["attr"] = twig_array_merge((isset($context["attr"]) || array_key_exists("attr"$context) ? $context["attr"] : (function () { throw new RuntimeError('Variable "attr" does not exist.'255$this->source); })()), ["class" => (((twig_get_attribute($this->env$this->source, ($context["attr"] ?? null), "class", [], "any"truetruefalse255)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["attr"] ?? null), "class", [], "any"falsefalsefalse255), "")) : ("")) . " row")]);
  804.                 // line 256
  805.                 echo "        ";
  806.             }
  807.             // line 257
  808.             echo "        ";
  809.             $context["input_wrapper_class"] = ((array_key_exists("input_wrapper_class"$context)) ? (_twig_default_filter((isset($context["input_wrapper_class"]) || array_key_exists("input_wrapper_class"$context) ? $context["input_wrapper_class"] : (function () { throw new RuntimeError('Variable "input_wrapper_class" does not exist.'257$this->source); })()), "col-sm-4")) : ("col-sm-4"));
  810.             // line 258
  811.             echo "        <div ";
  812.             $this->displayBlock("widget_container_attributes"$context$blocks);
  813.             echo ">
  814.             ";
  815.             // line 259
  816.             echo twig_replace_filter((isset($context["date_pattern"]) || array_key_exists("date_pattern"$context) ? $context["date_pattern"] : (function () { throw new RuntimeError('Variable "date_pattern" does not exist.'259$this->source); })()), ["{{ year }}" => (((("<div class=\"" .             // line 260
  817. (isset($context["input_wrapper_class"]) || array_key_exists("input_wrapper_class"$context) ? $context["input_wrapper_class"] : (function () { throw new RuntimeError('Variable "input_wrapper_class" does not exist.'260$this->source); })())) . "\">") . $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_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.'260$this->source); })()), "year", [], "any"falsefalsefalse260), 'widget')) . "</div>"), "{{ month }}" => (((("<div class=\"" .             // line 261
  818. (isset($context["input_wrapper_class"]) || array_key_exists("input_wrapper_class"$context) ? $context["input_wrapper_class"] : (function () { throw new RuntimeError('Variable "input_wrapper_class" does not exist.'261$this->source); })())) . "\">") . $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_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.'261$this->source); })()), "month", [], "any"falsefalsefalse261), 'widget')) . "</div>"), "{{ day }}" => (((("<div class=\"" .             // line 262
  819. (isset($context["input_wrapper_class"]) || array_key_exists("input_wrapper_class"$context) ? $context["input_wrapper_class"] : (function () { throw new RuntimeError('Variable "input_wrapper_class" does not exist.'262$this->source); })())) . "\">") . $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_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.'262$this->source); })()), "day", [], "any"falsefalsefalse262), 'widget')) . "</div>")]);
  820.             // line 263
  821.             echo "
  822.         </div>
  823.     ";
  824.         }
  825.         $___internal_parse_5_ = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
  826.         // line 250
  827.         echo twig_spaceless($___internal_parse_5_);
  828.         
  829.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  830.         
  831.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  832.     }
  833.     // line 269
  834.     public function block_time_widget($context, array $blocks = [])
  835.     {
  836.         $macros $this->macros;
  837.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  838.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""time_widget"));
  839.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  840.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""time_widget"));
  841.         // line 270
  842.         ob_start();
  843.         // line 271
  844.         echo "    ";
  845.         if (((isset($context["widget"]) || array_key_exists("widget"$context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.'271$this->source); })()) == "single_text")) {
  846.             // line 272
  847.             echo "        ";
  848.             $this->displayBlock("form_widget_simple"$context$blocks);
  849.             echo "
  850.     ";
  851.         } else {
  852.             // line 274
  853.             echo "        ";
  854.             if (( !array_key_exists("row"$context) || ((isset($context["row"]) || array_key_exists("row"$context) ? $context["row"] : (function () { throw new RuntimeError('Variable "row" does not exist.'274$this->source); })()) == true))) {
  855.                 // line 275
  856.                 echo "            ";
  857.                 $context["attr"] = twig_array_merge((isset($context["attr"]) || array_key_exists("attr"$context) ? $context["attr"] : (function () { throw new RuntimeError('Variable "attr" does not exist.'275$this->source); })()), ["class" => (((twig_get_attribute($this->env$this->source, ($context["attr"] ?? null), "class", [], "any"truetruefalse275)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["attr"] ?? null), "class", [], "any"falsefalsefalse275), "")) : ("")) . " row")]);
  858.                 // line 276
  859.                 echo "        ";
  860.             }
  861.             // line 277
  862.             echo "        ";
  863.             $context["input_wrapper_class"] = ((array_key_exists("input_wrapper_class"$context)) ? (_twig_default_filter((isset($context["input_wrapper_class"]) || array_key_exists("input_wrapper_class"$context) ? $context["input_wrapper_class"] : (function () { throw new RuntimeError('Variable "input_wrapper_class" does not exist.'277$this->source); })()), "col-sm-6")) : ("col-sm-6"));
  864.             // line 278
  865.             echo "        <div ";
  866.             $this->displayBlock("widget_container_attributes"$context$blocks);
  867.             echo ">
  868.             <div class=\"";
  869.             // line 279
  870.             echo twig_escape_filter($this->env, (isset($context["input_wrapper_class"]) || array_key_exists("input_wrapper_class"$context) ? $context["input_wrapper_class"] : (function () { throw new RuntimeError('Variable "input_wrapper_class" does not exist.'279$this->source); })()), "html"nulltrue);
  871.             echo "\">
  872.                 ";
  873.             // line 280
  874.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_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.'280$this->source); })()), "hour", [], "any"falsefalsefalse280), 'widget');
  875.             echo "
  876.             </div>
  877.             ";
  878.             // line 282
  879.             if ((isset($context["with_minutes"]) || array_key_exists("with_minutes"$context) ? $context["with_minutes"] : (function () { throw new RuntimeError('Variable "with_minutes" does not exist.'282$this->source); })())) {
  880.                 // line 283
  881.                 echo "                <div class=\"";
  882.                 echo twig_escape_filter($this->env, (isset($context["input_wrapper_class"]) || array_key_exists("input_wrapper_class"$context) ? $context["input_wrapper_class"] : (function () { throw new RuntimeError('Variable "input_wrapper_class" does not exist.'283$this->source); })()), "html"nulltrue);
  883.                 echo "\">
  884.                     ";
  885.                 // line 284
  886.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_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.'284$this->source); })()), "minute", [], "any"falsefalsefalse284), 'widget');
  887.                 echo "
  888.                 </div>
  889.             ";
  890.             }
  891.             // line 287
  892.             echo "            ";
  893.             if ((isset($context["with_seconds"]) || array_key_exists("with_seconds"$context) ? $context["with_seconds"] : (function () { throw new RuntimeError('Variable "with_seconds" does not exist.'287$this->source); })())) {
  894.                 // line 288
  895.                 echo "                <div class=\"";
  896.                 echo twig_escape_filter($this->env, (isset($context["input_wrapper_class"]) || array_key_exists("input_wrapper_class"$context) ? $context["input_wrapper_class"] : (function () { throw new RuntimeError('Variable "input_wrapper_class" does not exist.'288$this->source); })()), "html"nulltrue);
  897.                 echo "\">
  898.                     ";
  899.                 // line 289
  900.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_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.'289$this->source); })()), "second", [], "any"falsefalsefalse289), 'widget');
  901.                 echo "
  902.                 </div>
  903.             ";
  904.             }
  905.             // line 292
  906.             echo "        </div>
  907.     ";
  908.         }
  909.         $___internal_parse_6_ = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
  910.         // line 270
  911.         echo twig_spaceless($___internal_parse_6_);
  912.         
  913.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  914.         
  915.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  916.     }
  917.     // line 297
  918.     public function block_datetime_widget($context, array $blocks = [])
  919.     {
  920.         $macros $this->macros;
  921.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  922.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""datetime_widget"));
  923.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  924.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""datetime_widget"));
  925.         // line 298
  926.         ob_start();
  927.         // line 299
  928.         echo "    ";
  929.         if (((isset($context["widget"]) || array_key_exists("widget"$context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.'299$this->source); })()) == "single_text")) {
  930.             // line 300
  931.             echo "        ";
  932.             $this->displayBlock("form_widget_simple"$context$blocks);
  933.             echo "
  934.     ";
  935.         } else {
  936.             // line 302
  937.             echo "        ";
  938.             $context["attr"] = twig_array_merge((isset($context["attr"]) || array_key_exists("attr"$context) ? $context["attr"] : (function () { throw new RuntimeError('Variable "attr" does not exist.'302$this->source); })()), ["class" => (((twig_get_attribute($this->env$this->source, ($context["attr"] ?? null), "class", [], "any"truetruefalse302)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["attr"] ?? null), "class", [], "any"falsefalsefalse302), "")) : ("")) . " row")]);
  939.             // line 303
  940.             echo "        <div ";
  941.             $this->displayBlock("widget_container_attributes"$context$blocks);
  942.             echo ">
  943.             ";
  944.             // line 304
  945.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_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.'304$this->source); })()), "date", [], "any"falsefalsefalse304), 'errors');
  946.             echo "
  947.             ";
  948.             // line 305
  949.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_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.'305$this->source); })()), "time", [], "any"falsefalsefalse305), 'errors');
  950.             echo "
  951.             ";
  952.             // line 307
  953.             if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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.'307$this->source); })()), "date", [], "any"falsefalsefalse307), "vars", [], "any"falsefalsefalse307), "widget", [], "any"falsefalsefalse307) == "single_text")) {
  954.                 // line 308
  955.                 echo "                <div class=\"col-sm-2\">
  956.                     ";
  957.                 // line 309
  958.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_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.'309$this->source); })()), "date", [], "any"falsefalsefalse309), 'widget');
  959.                 echo "
  960.                 </div>
  961.             ";
  962.             } else {
  963.                 // line 312
  964.                 echo "                ";
  965.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_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.'312$this->source); })()), "date", [], "any"falsefalsefalse312), 'widget', ["row" => false"input_wrapper_class" => "col-sm-2"]);
  966.                 echo "
  967.             ";
  968.             }
  969.             // line 314
  970.             echo "
  971.             ";
  972.             // line 315
  973.             if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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.'315$this->source); })()), "time", [], "any"falsefalsefalse315), "vars", [], "any"falsefalsefalse315), "widget", [], "any"falsefalsefalse315) == "single_text")) {
  974.                 // line 316
  975.                 echo "                <div class=\"col-sm-2\">
  976.                     ";
  977.                 // line 317
  978.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_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.'317$this->source); })()), "time", [], "any"falsefalsefalse317), 'widget');
  979.                 echo "
  980.                 </div>
  981.             ";
  982.             } else {
  983.                 // line 320
  984.                 echo "                ";
  985.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_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.'320$this->source); })()), "time", [], "any"falsefalsefalse320), 'widget', ["row" => false"input_wrapper_class" => "col-sm-2"]);
  986.                 echo "
  987.             ";
  988.             }
  989.             // line 322
  990.             echo "        </div>
  991.     ";
  992.         }
  993.         $___internal_parse_7_ = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
  994.         // line 298
  995.         echo twig_spaceless($___internal_parse_7_);
  996.         
  997.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  998.         
  999.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1000.     }
  1001.     // line 327
  1002.     public function block_form_row($context, array $blocks = [])
  1003.     {
  1004.         $macros $this->macros;
  1005.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1006.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""form_row"));
  1007.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1008.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""form_row"));
  1009.         // line 328
  1010.         echo "    ";
  1011.         $context["show_label"] = (($context["show_label"]) ?? (true));
  1012.         // line 329
  1013.         echo "    ";
  1014.         $context["row_id"] = ("sonata-ba-field-container-" . (isset($context["id"]) || array_key_exists("id"$context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.'329$this->source); })()));
  1015.         // line 330
  1016.         echo "    ";
  1017.         $context["row_class"] = twig_trim_filter(((((twig_get_attribute($this->env$this->source, ($context["row_attr"] ?? null), "class", [], "any"truetruefalse330)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["row_attr"] ?? null), "class", [], "any"falsefalsefalse330), "")) : ("")) . " form-group") . (((twig_length_filter($this->env, (isset($context["errors"]) || array_key_exists("errors"$context) ? $context["errors"] : (function () { throw new RuntimeError('Variable "errors" does not exist.'330$this->source); })())) > 0)) ? (" has-error") : (""))));
  1018.         // line 331
  1019.         echo "    <div";
  1020.         $__internal_compile_0 $context;
  1021.         $__internal_compile_1 = ["attr" => twig_array_merge((isset($context["row_attr"]) || array_key_exists("row_attr"$context) ? $context["row_attr"] : (function () { throw new RuntimeError('Variable "row_attr" does not exist.'331$this->source); })()), ["id" => (isset($context["row_id"]) || array_key_exists("row_id"$context) ? $context["row_id"] : (function () { throw new RuntimeError('Variable "row_id" does not exist.'331$this->source); })()), "class" => (isset($context["row_class"]) || array_key_exists("row_class"$context) ? $context["row_class"] : (function () { throw new RuntimeError('Variable "row_class" does not exist.'331$this->source); })())])];
  1022.         if (!is_iterable($__internal_compile_1)) {
  1023.             throw new RuntimeError('Variables passed to the "with" tag must be a hash.'331$this->getSourceContext());
  1024.         }
  1025.         $__internal_compile_1 twig_to_array($__internal_compile_1);
  1026.         $context $this->env->mergeGlobals(array_merge($context$__internal_compile_1));
  1027.         $this->displayBlock("attributes"$context$blocks);
  1028.         $context $__internal_compile_0;
  1029.         echo ">
  1030.         ";
  1031.         // line 332
  1032.         $context["div_class"] = "sonata-ba-field";
  1033.         // line 333
  1034.         echo "
  1035.         ";
  1036.         // line 334
  1037.         if (((isset($context["label"]) || array_key_exists("label"$context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.'334$this->source); })()) === false)) {
  1038.             // line 335
  1039.             echo "            ";
  1040.             $context["div_class"] = ((isset($context["div_class"]) || array_key_exists("div_class"$context) ? $context["div_class"] : (function () { throw new RuntimeError('Variable "div_class" does not exist.'335$this->source); })()) . " sonata-collection-row-without-label");
  1041.             // line 336
  1042.             echo "        ";
  1043.         }
  1044.         // line 337
  1045.         echo "
  1046.         ";
  1047.         // line 338
  1048.         if ((array_key_exists("sonata_admin"$context) && (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.'338$this->source); })()), "options", [], "any"falsefalsefalse338), "form_type", [], "array"falsefalsefalse338) == "horizontal"))) {
  1049.             // line 339
  1050.             echo "            ";
  1051.             // line 340
  1052.             echo "            ";
  1053.             if ((((isset($context["label"]) || array_key_exists("label"$context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.'340$this->source); })()) === false) || twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["form"] ?? null), "vars", [], "any"falsetruefalse340), "checked", [], "any"truetruefalse340))) {
  1054.                 // line 341
  1055.                 echo "                ";
  1056.                 if (twig_in_filter("collection"twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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.'341$this->source); })()), "parent", [], "any"falsefalsefalse341), "vars", [], "any"falsefalsefalse341), "block_prefixes", [], "any"falsefalsefalse341))) {
  1057.                     // line 342
  1058.                     echo "                    ";
  1059.                     $context["div_class"] = ((isset($context["div_class"]) || array_key_exists("div_class"$context) ? $context["div_class"] : (function () { throw new RuntimeError('Variable "div_class" does not exist.'342$this->source); })()) . " col-sm-12");
  1060.                     // line 343
  1061.                     echo "                ";
  1062.                 } else {
  1063.                     // line 344
  1064.                     echo "                    ";
  1065.                     $context["div_class"] = ((isset($context["div_class"]) || array_key_exists("div_class"$context) ? $context["div_class"] : (function () { throw new RuntimeError('Variable "div_class" does not exist.'344$this->source); })()) . " col-sm-9 col-sm-offset-3");
  1066.                     // line 345
  1067.                     echo "                ";
  1068.                 }
  1069.                 // line 346
  1070.                 echo "            ";
  1071.             } else {
  1072.                 // line 347
  1073.                 echo "                ";
  1074.                 $context["div_class"] = ((isset($context["div_class"]) || array_key_exists("div_class"$context) ? $context["div_class"] : (function () { throw new RuntimeError('Variable "div_class" does not exist.'347$this->source); })()) . " col-sm-9");
  1075.                 // line 348
  1076.                 echo "            ";
  1077.             }
  1078.             // line 349
  1079.             echo "        ";
  1080.         }
  1081.         // line 350
  1082.         echo "
  1083.         ";
  1084.         // line 351
  1085.         if ((isset($context["show_label"]) || array_key_exists("show_label"$context) ? $context["show_label"] : (function () { throw new RuntimeError('Variable "show_label" does not exist.'351$this->source); })())) {
  1086.             // line 352
  1087.             echo "            ";
  1088.             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.'352$this->source); })()), 'label', (twig_test_empty($_label_ = ((array_key_exists("label"$context)) ? (_twig_default_filter((isset($context["label"]) || array_key_exists("label"$context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.'352$this->source); })()), null)) : (null))) ? [] : ["label" => $_label_]));
  1089.             echo "
  1090.         ";
  1091.         }
  1092.         // line 354
  1093.         echo "
  1094.         ";
  1095.         // line 355
  1096.         if ((array_key_exists("sonata_admin"$context) && (isset($context["sonata_admin_enabled"]) || array_key_exists("sonata_admin_enabled"$context) ? $context["sonata_admin_enabled"] : (function () { throw new RuntimeError('Variable "sonata_admin_enabled" does not exist.'355$this->source); })()))) {
  1097.             // line 356
  1098.             echo "            ";
  1099.             $context["div_class"] = (((((isset($context["div_class"]) || array_key_exists("div_class"$context) ? $context["div_class"] : (function () { throw new RuntimeError('Variable "div_class" does not exist.'356$this->source); })()) . " sonata-ba-field-") . 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.'356$this->source); })()), "edit", [], "any"falsefalsefalse356)) . "-") . 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.'356$this->source); })()), "inline", [], "any"falsefalsefalse356));
  1100.             // line 357
  1101.             echo "        ";
  1102.         }
  1103.         // line 358
  1104.         echo "
  1105.         ";
  1106.         // line 359
  1107.         if ((twig_length_filter($this->env, (isset($context["errors"]) || array_key_exists("errors"$context) ? $context["errors"] : (function () { throw new RuntimeError('Variable "errors" does not exist.'359$this->source); })())) > 0)) {
  1108.             // line 360
  1109.             echo "            ";
  1110.             $context["div_class"] = ((isset($context["div_class"]) || array_key_exists("div_class"$context) ? $context["div_class"] : (function () { throw new RuntimeError('Variable "div_class" does not exist.'360$this->source); })()) . " sonata-ba-field-error");
  1111.             // line 361
  1112.             echo "        ";
  1113.         }
  1114.         // line 362
  1115.         echo "
  1116.         <div class=\"";
  1117.         // line 363
  1118.         echo twig_escape_filter($this->env, (isset($context["div_class"]) || array_key_exists("div_class"$context) ? $context["div_class"] : (function () { throw new RuntimeError('Variable "div_class" does not exist.'363$this->source); })()), "html"nulltrue);
  1119.         echo "\">
  1120.             ";
  1121.         // line 364
  1122.         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.'364$this->source); })()), 'widget', ["horizontal" => false"horizontal_input_wrapper_class" => ""]);
  1123.         echo " ";
  1124.         // line 365
  1125.         echo "
  1126.             ";
  1127.         // line 366
  1128.         if ((twig_length_filter($this->env, (isset($context["errors"]) || array_key_exists("errors"$context) ? $context["errors"] : (function () { throw new RuntimeError('Variable "errors" does not exist.'366$this->source); })())) > 0)) {
  1129.             // line 367
  1130.             echo "                <div class=\"help-block sonata-ba-field-error-messages\">
  1131.                     ";
  1132.             // line 368
  1133.             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.'368$this->source); })()), 'errors');
  1134.             echo "
  1135.                 </div>
  1136.             ";
  1137.         }
  1138.         // line 371
  1139.         echo "
  1140.             ";
  1141.         // line 372
  1142.         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.'372$this->source); })()), 'help');
  1143.         echo "
  1144.         </div>
  1145.     </div>
  1146. ";
  1147.         
  1148.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1149.         
  1150.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1151.     }
  1152.     // line 377
  1153.     public function block_checkbox_row($context, array $blocks = [])
  1154.     {
  1155.         $macros $this->macros;
  1156.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1157.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""checkbox_row"));
  1158.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1159.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""checkbox_row"));
  1160.         // line 378
  1161.         $context["show_label"] = false;
  1162.         // line 379
  1163.         echo "    ";
  1164.         $this->displayBlock("form_row"$context$blocks);
  1165.         
  1166.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1167.         
  1168.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1169.     }
  1170.     // line 382
  1171.     public function block_radio_row($context, array $blocks = [])
  1172.     {
  1173.         $macros $this->macros;
  1174.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1175.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""radio_row"));
  1176.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1177.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""radio_row"));
  1178.         // line 383
  1179.         $context["show_label"] = false;
  1180.         // line 384
  1181.         echo "    ";
  1182.         $this->displayBlock("form_row"$context$blocks);
  1183.         
  1184.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1185.         
  1186.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1187.     }
  1188.     // line 387
  1189.     public function block_sonata_type_native_collection_widget_row($context, array $blocks = [])
  1190.     {
  1191.         $macros $this->macros;
  1192.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1193.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_type_native_collection_widget_row"));
  1194.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1195.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_type_native_collection_widget_row"));
  1196.         // line 388
  1197.         ob_start();
  1198.         // line 389
  1199.         echo "    <div class=\"sonata-collection-row\">
  1200.         ";
  1201.         // line 390
  1202.         if ((isset($context["allow_delete"]) || array_key_exists("allow_delete"$context) ? $context["allow_delete"] : (function () { throw new RuntimeError('Variable "allow_delete" does not exist.'390$this->source); })())) {
  1203.             // line 391
  1204.             echo "            <div class=\"row\">
  1205.                 <div class=\"col-xs-1\">
  1206.                     <a href=\"#\" class=\"btn btn-link sonata-collection-delete\">
  1207.                         <i class=\"fas fa-minus-circle\" aria-hidden=\"true\"></i>
  1208.                     </a>
  1209.                 </div>
  1210.                 <div class=\"col-xs-11\">
  1211.         ";
  1212.         }
  1213.         // line 399
  1214.         echo "            ";
  1215.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["child"]) || array_key_exists("child"$context) ? $context["child"] : (function () { throw new RuntimeError('Variable "child" does not exist.'399$this->source); })()), 'row', ["label" => false]);
  1216.         echo "
  1217.         ";
  1218.         // line 400
  1219.         if ((isset($context["allow_delete"]) || array_key_exists("allow_delete"$context) ? $context["allow_delete"] : (function () { throw new RuntimeError('Variable "allow_delete" does not exist.'400$this->source); })())) {
  1220.             // line 401
  1221.             echo "                </div>
  1222.             </div>
  1223.         ";
  1224.         }
  1225.         // line 404
  1226.         echo "    </div>
  1227. ";
  1228.         $___internal_parse_8_ = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
  1229.         // line 388
  1230.         echo twig_spaceless($___internal_parse_8_);
  1231.         
  1232.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1233.         
  1234.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1235.     }
  1236.     // line 408
  1237.     public function block_sonata_type_native_collection_widget($context, array $blocks = [])
  1238.     {
  1239.         $macros $this->macros;
  1240.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1241.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_type_native_collection_widget"));
  1242.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1243.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_type_native_collection_widget"));
  1244.         // line 409
  1245.         ob_start();
  1246.         // line 410
  1247.         echo "    ";
  1248.         if (array_key_exists("prototype"$context)) {
  1249.             // line 411
  1250.             echo "        ";
  1251.             $context["child"] = (isset($context["prototype"]) || array_key_exists("prototype"$context) ? $context["prototype"] : (function () { throw new RuntimeError('Variable "prototype" does not exist.'411$this->source); })());
  1252.             // line 412
  1253.             echo "        ";
  1254.             $context["allow_delete_backup"] = (isset($context["allow_delete"]) || array_key_exists("allow_delete"$context) ? $context["allow_delete"] : (function () { throw new RuntimeError('Variable "allow_delete" does not exist.'412$this->source); })());
  1255.             // line 413
  1256.             echo "        ";
  1257.             $context["allow_delete"] = true;
  1258.             // line 414
  1259.             echo "        ";
  1260.             $context["attr"] = twig_array_merge((isset($context["attr"]) || array_key_exists("attr"$context) ? $context["attr"] : (function () { throw new RuntimeError('Variable "attr" does not exist.'414$this->source); })()), ["data-prototype" =>             $this->renderBlock("sonata_type_native_collection_widget_row"$context$blocks), "data-prototype-name" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["prototype"]) || array_key_exists("prototype"$context) ? $context["prototype"] : (function () { throw new RuntimeError('Variable "prototype" does not exist.'414$this->source); })()), "vars", [], "any"falsefalsefalse414), "name", [], "any"falsefalsefalse414), "class" => ((twig_get_attribute($this->env$this->source, ($context["attr"] ?? null), "class", [], "any"truetruefalse414)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["attr"] ?? null), "class", [], "any"falsefalsefalse414), "")) : (""))]);
  1261.             // line 415
  1262.             echo "        ";
  1263.             $context["allow_delete"] = (isset($context["allow_delete_backup"]) || array_key_exists("allow_delete_backup"$context) ? $context["allow_delete_backup"] : (function () { throw new RuntimeError('Variable "allow_delete_backup" does not exist.'415$this->source); })());
  1264.             // line 416
  1265.             echo "    ";
  1266.         }
  1267.         // line 417
  1268.         echo "    <div ";
  1269.         $this->displayBlock("widget_container_attributes"$context$blocks);
  1270.         echo ">
  1271.         ";
  1272.         // line 418
  1273.         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.'418$this->source); })()), 'errors');
  1274.         echo "
  1275.         ";
  1276.         // line 419
  1277.         $context['_parent'] = $context;
  1278.         $context['_seq'] = twig_ensure_traversable((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'419$this->source); })()));
  1279.         $context['loop'] = [
  1280.           'parent' => $context['_parent'],
  1281.           'index0' => 0,
  1282.           'index'  => 1,
  1283.           'first'  => true,
  1284.         ];
  1285.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  1286.             $length count($context['_seq']);
  1287.             $context['loop']['revindex0'] = $length 1;
  1288.             $context['loop']['revindex'] = $length;
  1289.             $context['loop']['length'] = $length;
  1290.             $context['loop']['last'] = === $length;
  1291.         }
  1292.         foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
  1293.             // line 420
  1294.             echo "            ";
  1295.             $this->displayBlock("sonata_type_native_collection_widget_row"$context$blocks);
  1296.             echo "
  1297.         ";
  1298.             ++$context['loop']['index0'];
  1299.             ++$context['loop']['index'];
  1300.             $context['loop']['first'] = false;
  1301.             if (isset($context['loop']['length'])) {
  1302.                 --$context['loop']['revindex0'];
  1303.                 --$context['loop']['revindex'];
  1304.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  1305.             }
  1306.         }
  1307.         $_parent $context['_parent'];
  1308.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
  1309.         $context array_intersect_key($context$_parent) + $_parent;
  1310.         // line 422
  1311.         echo "        ";
  1312.         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.'422$this->source); })()), 'rest');
  1313.         echo "
  1314.         ";
  1315.         // line 423
  1316.         if ((isset($context["allow_add"]) || array_key_exists("allow_add"$context) ? $context["allow_add"] : (function () { throw new RuntimeError('Variable "allow_add" does not exist.'423$this->source); })())) {
  1317.             // line 424
  1318.             echo "            <div><a href=\"#\" class=\"btn btn-link sonata-collection-add\"><i class=\"fas fa-plus-circle\" aria-hidden=\"true\"></i></a></div>
  1319.         ";
  1320.         }
  1321.         // line 426
  1322.         echo "    </div>
  1323. ";
  1324.         $___internal_parse_9_ = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
  1325.         // line 409
  1326.         echo twig_spaceless($___internal_parse_9_);
  1327.         
  1328.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1329.         
  1330.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1331.     }
  1332.     // line 430
  1333.     public function block_sonata_type_immutable_array_widget($context, array $blocks = [])
  1334.     {
  1335.         $macros $this->macros;
  1336.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1337.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_type_immutable_array_widget"));
  1338.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1339.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_type_immutable_array_widget"));
  1340.         // line 431
  1341.         echo "    ";
  1342.         ob_start();
  1343.         // line 432
  1344.         echo "        <div ";
  1345.         $this->displayBlock("widget_container_attributes"$context$blocks);
  1346.         echo ">
  1347.             ";
  1348.         // line 433
  1349.         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.'433$this->source); })()), 'errors');
  1350.         echo "
  1351.             ";
  1352.         // line 435
  1353.         $context['_parent'] = $context;
  1354.         $context['_seq'] = twig_ensure_traversable((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'435$this->source); })()));
  1355.         $context['loop'] = [
  1356.           'parent' => $context['_parent'],
  1357.           'index0' => 0,
  1358.           'index'  => 1,
  1359.           'first'  => true,
  1360.         ];
  1361.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  1362.             $length count($context['_seq']);
  1363.             $context['loop']['revindex0'] = $length 1;
  1364.             $context['loop']['revindex'] = $length;
  1365.             $context['loop']['length'] = $length;
  1366.             $context['loop']['last'] = === $length;
  1367.         }
  1368.         foreach ($context['_seq'] as $context["key"] => $context["child"]) {
  1369.             // line 436
  1370.             echo "                ";
  1371.             $this->displayBlock("sonata_type_immutable_array_widget_row"$context$blocks);
  1372.             echo "
  1373.             ";
  1374.             ++$context['loop']['index0'];
  1375.             ++$context['loop']['index'];
  1376.             $context['loop']['first'] = false;
  1377.             if (isset($context['loop']['length'])) {
  1378.                 --$context['loop']['revindex0'];
  1379.                 --$context['loop']['revindex'];
  1380.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  1381.             }
  1382.         }
  1383.         $_parent $context['_parent'];
  1384.         unset($context['_seq'], $context['_iterated'], $context['key'], $context['child'], $context['_parent'], $context['loop']);
  1385.         $context array_intersect_key($context$_parent) + $_parent;
  1386.         // line 438
  1387.         echo "
  1388.             ";
  1389.         // line 439
  1390.         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.'439$this->source); })()), 'rest');
  1391.         echo "
  1392.         </div>
  1393.     ";
  1394.         $___internal_parse_10_ = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
  1395.         // line 431
  1396.         echo twig_spaceless($___internal_parse_10_);
  1397.         
  1398.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1399.         
  1400.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1401.     }
  1402.     // line 444
  1403.     public function block_sonata_type_immutable_array_widget_row($context, array $blocks = [])
  1404.     {
  1405.         $macros $this->macros;
  1406.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1407.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_type_immutable_array_widget_row"));
  1408.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1409.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_type_immutable_array_widget_row"));
  1410.         // line 445
  1411.         echo "    ";
  1412.         ob_start();
  1413.         // line 446
  1414.         echo "        <div class=\"form-group";
  1415.         if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["child"]) || array_key_exists("child"$context) ? $context["child"] : (function () { throw new RuntimeError('Variable "child" does not exist.'446$this->source); })()), "vars", [], "any"falsefalsefalse446), "errors", [], "any"falsefalsefalse446)) > 0)) {
  1416.             echo " has-error";
  1417.         }
  1418.         echo "\" id=\"sonata-ba-field-container-";
  1419.         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.'446$this->source); })()), "html"nulltrue);
  1420.         echo "-";
  1421.         echo twig_escape_filter($this->env, (isset($context["key"]) || array_key_exists("key"$context) ? $context["key"] : (function () { throw new RuntimeError('Variable "key" does not exist.'446$this->source); })()), "html"nulltrue);
  1422.         echo "\">
  1423.             ";
  1424.         // line 448
  1425.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["child"]) || array_key_exists("child"$context) ? $context["child"] : (function () { throw new RuntimeError('Variable "child" does not exist.'448$this->source); })()), 'label');
  1426.         echo "
  1427.             ";
  1428.         // line 450
  1429.         $context["div_class"] = "";
  1430.         // line 451
  1431.         echo "            ";
  1432.         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.'451$this->source); })()), "options", [], "any"falsefalsefalse451), "form_type", [], "array"falsefalsefalse451) == "horizontal")) {
  1433.             // line 452
  1434.             echo "                ";
  1435.             $context["div_class"] = "col-sm-9";
  1436.             // line 453
  1437.             echo "            ";
  1438.         }
  1439.         // line 454
  1440.         echo "
  1441.             <div class=\"";
  1442.         // line 455
  1443.         echo twig_escape_filter($this->env, (isset($context["div_class"]) || array_key_exists("div_class"$context) ? $context["div_class"] : (function () { throw new RuntimeError('Variable "div_class" does not exist.'455$this->source); })()), "html"nulltrue);
  1444.         echo " sonata-ba-field sonata-ba-field-";
  1445.         echo twig_escape_filter($this->envtwig_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.'455$this->source); })()), "edit", [], "any"falsefalsefalse455), "html"nulltrue);
  1446.         echo "-";
  1447.         echo twig_escape_filter($this->envtwig_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.'455$this->source); })()), "inline", [], "any"falsefalsefalse455), "html"nulltrue);
  1448.         if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["child"]) || array_key_exists("child"$context) ? $context["child"] : (function () { throw new RuntimeError('Variable "child" does not exist.'455$this->source); })()), "vars", [], "any"falsefalsefalse455), "errors", [], "any"falsefalsefalse455)) > 0)) {
  1449.             echo " sonata-ba-field-error";
  1450.         }
  1451.         echo "\">
  1452.                 ";
  1453.         // line 456
  1454.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["child"]) || array_key_exists("child"$context) ? $context["child"] : (function () { throw new RuntimeError('Variable "child" does not exist.'456$this->source); })()), 'widget', ["horizontal" => false"horizontal_input_wrapper_class" => ""]);
  1455.         echo " ";
  1456.         // line 457
  1457.         echo "            </div>
  1458.             ";
  1459.         // line 459
  1460.         if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["child"]) || array_key_exists("child"$context) ? $context["child"] : (function () { throw new RuntimeError('Variable "child" does not exist.'459$this->source); })()), "vars", [], "any"falsefalsefalse459), "errors", [], "any"falsefalsefalse459)) > 0)) {
  1461.             // line 460
  1462.             echo "                <div class=\"help-block sonata-ba-field-error-messages\">
  1463.                     ";
  1464.             // line 461
  1465.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["child"]) || array_key_exists("child"$context) ? $context["child"] : (function () { throw new RuntimeError('Variable "child" does not exist.'461$this->source); })()), 'errors');
  1466.             echo "
  1467.                 </div>
  1468.             ";
  1469.         }
  1470.         // line 464
  1471.         echo "        </div>
  1472.     ";
  1473.         $___internal_parse_11_ = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
  1474.         // line 445
  1475.         echo twig_spaceless($___internal_parse_11_);
  1476.         
  1477.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1478.         
  1479.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1480.     }
  1481.     // line 468
  1482.     public function block_sonata_type_model_autocomplete_widget($context, array $blocks = [])
  1483.     {
  1484.         $macros $this->macros;
  1485.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1486.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_type_model_autocomplete_widget"));
  1487.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1488.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_type_model_autocomplete_widget"));
  1489.         // line 469
  1490.         echo "    ";
  1491.         $this->loadTemplate((isset($context["template"]) || array_key_exists("template"$context) ? $context["template"] : (function () { throw new RuntimeError('Variable "template" does not exist.'469$this->source); })()), "@!SonataAdmin/Form/form_admin_fields.html.twig"469)->display($context);
  1492.         
  1493.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1494.         
  1495.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1496.     }
  1497.     // line 472
  1498.     public function block_sonata_type_choice_field_mask_widget($context, array $blocks = [])
  1499.     {
  1500.         $macros $this->macros;
  1501.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1502.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_type_choice_field_mask_widget"));
  1503.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1504.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_type_choice_field_mask_widget"));
  1505.         // line 473
  1506.         echo "    ";
  1507.         $this->displayBlock("choice_widget"$context$blocks);
  1508.         echo "
  1509.     ";
  1510.         // line 475
  1511.         echo "    ";
  1512.         $context["main_form_name"] = twig_slice($this->env, (isset($context["id"]) || array_key_exists("id"$context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.'475$this->source); })()), 0, ((twig_length_filter($this->env, (isset($context["id"]) || array_key_exists("id"$context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.'475$this->source); })())) - twig_length_filter($this->env, (isset($context["name"]) || array_key_exists("name"$context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.'475$this->source); })()))) - 1));
  1513.         // line 476
  1514.         echo "    ";
  1515.         if ((isset($context["expanded"]) || array_key_exists("expanded"$context) ? $context["expanded"] : (function () { throw new RuntimeError('Variable "expanded" does not exist.'476$this->source); })())) {
  1516.             // line 477
  1517.             echo "        ";
  1518.             $context["js_selector"] = (((("#" . (isset($context["main_form_name"]) || array_key_exists("main_form_name"$context) ? $context["main_form_name"] : (function () { throw new RuntimeError('Variable "main_form_name" does not exist.'477$this->source); })())) . "_") . (isset($context["name"]) || array_key_exists("name"$context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.'477$this->source); })())) . " input");
  1519.             // line 478
  1520.             echo "        ";
  1521.             $context["js_events"] = ["change""ifChecked"];
  1522.             // line 479
  1523.             echo "    ";
  1524.         } else {
  1525.             // line 480
  1526.             echo "        ";
  1527.             $context["js_selector"] = ((("#" . (isset($context["main_form_name"]) || array_key_exists("main_form_name"$context) ? $context["main_form_name"] : (function () { throw new RuntimeError('Variable "main_form_name" does not exist.'480$this->source); })())) . "_") . (isset($context["name"]) || array_key_exists("name"$context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.'480$this->source); })()));
  1528.             // line 481
  1529.             echo "        ";
  1530.             $context["js_events"] = ["change"];
  1531.             // line 482
  1532.             echo "    ";
  1533.         }
  1534.         // line 483
  1535.         echo "    <script>
  1536.         jQuery(document).ready(function() {
  1537.             var allFields = ";
  1538.         // line 485
  1539.         echo json_encode((isset($context["all_fields"]) || array_key_exists("all_fields"$context) ? $context["all_fields"] : (function () { throw new RuntimeError('Variable "all_fields" does not exist.'485$this->source); })()));
  1540.         echo ",
  1541.                 map = ";
  1542.         // line 486
  1543.         echo json_encode((isset($context["map"]) || array_key_exists("map"$context) ? $context["map"] : (function () { throw new RuntimeError('Variable "map" does not exist.'486$this->source); })()));
  1544.         echo ",
  1545.                 showMaskChoiceEl = jQuery(\"";
  1546.         // line 487
  1547.         echo twig_escape_filter($this->env, (isset($context["js_selector"]) || array_key_exists("js_selector"$context) ? $context["js_selector"] : (function () { throw new RuntimeError('Variable "js_selector" does not exist.'487$this->source); })()), "html"nulltrue);
  1548.         echo "\");
  1549.                 ";
  1550.         // line 488
  1551.         $context['_parent'] = $context;
  1552.         $context['_seq'] = twig_ensure_traversable((isset($context["js_events"]) || array_key_exists("js_events"$context) ? $context["js_events"] : (function () { throw new RuntimeError('Variable "js_events" does not exist.'488$this->source); })()));
  1553.         foreach ($context['_seq'] as $context["_key"] => $context["js_event"]) {
  1554.             // line 489
  1555.             echo "                    showMaskChoiceEl.on(\"";
  1556.             echo twig_escape_filter($this->env$context["js_event"], "html"nulltrue);
  1557.             echo "\", function () {
  1558.                         choice_field_mask_show(jQuery(this).val());
  1559.                     });
  1560.                 ";
  1561.         }
  1562.         $_parent $context['_parent'];
  1563.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['js_event'], $context['_parent'], $context['loop']);
  1564.         $context array_intersect_key($context$_parent) + $_parent;
  1565.         // line 493
  1566.         echo "
  1567.             function choice_field_mask_show(val) {
  1568.                 var controlGroupIdFunc = function (field) {
  1569.                     // Most of fields are named with an underscore
  1570.                     var defaultFieldId = '#sonata-ba-field-container-";
  1571.         // line 497
  1572.         echo twig_escape_filter($this->env, (isset($context["main_form_name"]) || array_key_exists("main_form_name"$context) ? $context["main_form_name"] : (function () { throw new RuntimeError('Variable "main_form_name" does not exist.'497$this->source); })()), "html"nulltrue);
  1573.         echo "_' + field;
  1574.                     // Some fields may be named with a dash (like keys of immutable array form type)
  1575.                     if (jQuery(defaultFieldId).length === 0) {
  1576.                         defaultFieldId = '#sonata-ba-field-container-";
  1577.         // line 501
  1578.         echo twig_escape_filter($this->env, (isset($context["main_form_name"]) || array_key_exists("main_form_name"$context) ? $context["main_form_name"] : (function () { throw new RuntimeError('Variable "main_form_name" does not exist.'501$this->source); })()), "html"nulltrue);
  1579.         echo "-' + field;
  1580.                     }
  1581.                     // Some fields are rendered by form_widget (no container)
  1582.                     if (jQuery(defaultFieldId).length === 0) {
  1583.                         defaultFieldId = '#";
  1584.         // line 506
  1585.         echo twig_escape_filter($this->env, (isset($context["main_form_name"]) || array_key_exists("main_form_name"$context) ? $context["main_form_name"] : (function () { throw new RuntimeError('Variable "main_form_name" does not exist.'506$this->source); })()), "html"nulltrue);
  1586.         echo "_' + field;
  1587.                     }
  1588.                     // catch select2 fields with inline: table option
  1589.                     if (jQuery(defaultFieldId).length === 0) {
  1590.                         defaultFieldId = '#";
  1591.         // line 511
  1592.         echo twig_escape_filter($this->env, (isset($context["main_form_name"]) || array_key_exists("main_form_name"$context) ? $context["main_form_name"] : (function () { throw new RuntimeError('Variable "main_form_name" does not exist.'511$this->source); })()), "html"nulltrue);
  1593.         echo "_' + field + '_autocomplete_input';
  1594.                     }
  1595.                     return defaultFieldId;
  1596.                 };
  1597.                 jQuery.each(allFields, function (i, field) {
  1598.                     var fieldContainer = controlGroupIdFunc(field);
  1599.                     jQuery(fieldContainer).hide();
  1600.                     ";
  1601.         // line 520
  1602.         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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.'520$this->source); })()), "parent", [], "any"falsefalsefalse520), "vars", [], "any"falsefalsefalse520), "sonata_admin", [], "any"falsefalsefalse520), "inline", [], "any"falsefalsefalse520) == "table")) {
  1603.             // line 521
  1604.             echo "                        var td = jQuery(fieldContainer).parent();
  1605.                         var columnIndex = td.index();
  1606.                         var headerTh = \$(\"table thead tr th:eq(\" + columnIndex + \")\");
  1607.                         td.hide();
  1608.                         headerTh.hide();
  1609.                     ";
  1610.         }
  1611.         // line 527
  1612.         echo "                    jQuery(fieldContainer).find('[required=\"required\"]').attr('data-required', 'required').removeAttr(\"required\");
  1613.                 });
  1614.                 if (map[val]) {
  1615.                     jQuery.each(map[val], function (i, field) {
  1616.                         var fieldContainer = controlGroupIdFunc(field);
  1617.                         jQuery(fieldContainer).show();
  1618.                         ";
  1619.         // line 534
  1620.         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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.'534$this->source); })()), "parent", [], "any"falsefalsefalse534), "vars", [], "any"falsefalsefalse534), "sonata_admin", [], "any"falsefalsefalse534), "inline", [], "any"falsefalsefalse534) == "table")) {
  1621.             // line 535
  1622.             echo "                            var td = jQuery(fieldContainer).parent();
  1623.                             var columnIndex = td.index();
  1624.                             var headerTh = \$(\"table thead tr th:eq(\" + columnIndex + \")\");
  1625.                             td.show();
  1626.                             headerTh.show();
  1627.                         ";
  1628.         }
  1629.         // line 541
  1630.         echo "                        jQuery(fieldContainer).find('[data-required=\"required\"]').attr(\"required\", \"required\");
  1631.                     });
  1632.                 }
  1633.             }
  1634.             ";
  1635.         // line 546
  1636.         if (twig_test_empty((isset($context["value"]) || array_key_exists("value"$context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.'546$this->source); })()))) {
  1637.             // line 547
  1638.             echo "                choice_field_mask_show(showMaskChoiceEl.val());
  1639.             ";
  1640.         } else {
  1641.             // line 549
  1642.             echo "                choice_field_mask_show('";
  1643.             echo twig_escape_filter($this->envtwig_escape_filter($this->env, (isset($context["value"]) || array_key_exists("value"$context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.'549$this->source); })()), "js"), "html"nulltrue);
  1644.             echo "');
  1645.             ";
  1646.         }
  1647.         // line 551
  1648.         echo "        });
  1649.     </script>
  1650. ";
  1651.         
  1652.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1653.         
  1654.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1655.     }
  1656.     // line 556
  1657.     public function block_sonata_type_choice_multiple_sortable($context, array $blocks = [])
  1658.     {
  1659.         $macros $this->macros;
  1660.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1661.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_type_choice_multiple_sortable"));
  1662.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1663.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_type_choice_multiple_sortable"));
  1664.         // line 557
  1665.         echo "    <input type=\"hidden\" name=\"";
  1666.         echo twig_escape_filter($this->env, (isset($context["full_name"]) || array_key_exists("full_name"$context) ? $context["full_name"] : (function () { throw new RuntimeError('Variable "full_name" does not exist.'557$this->source); })()), "html"nulltrue);
  1667.         echo "\" id=\"";
  1668.         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.'557$this->source); })()), "html"nulltrue);
  1669.         echo "\" value=\"";
  1670.         echo twig_escape_filter($this->envtwig_join_filter((isset($context["value"]) || array_key_exists("value"$context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.'557$this->source); })()), ","), "html"nulltrue);
  1671.         echo "\" />
  1672.     <script>
  1673.         jQuery(document).ready(function() {
  1674.             var options = {};
  1675.             ";
  1676.         // line 563
  1677.         $this->displayBlock('sonata_type_model_autocomplete_select2_options_js'$context$blocks);
  1678.         // line 564
  1679.         echo "
  1680.             Admin.setup_sortable_select2(jQuery('#";
  1681.         // line 565
  1682.         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.'565$this->source); })()), "html"nulltrue);
  1683.         echo "'), ";
  1684.         echo json_encode(twig_get_attribute($this->env$this->sourcetwig_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.'565$this->source); })()), "vars", [], "any"falsefalsefalse565), "choices", [], "any"falsefalsefalse565));
  1685.         echo ", options);
  1686.         });
  1687.     </script>
  1688. ";
  1689.         
  1690.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1691.         
  1692.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1693.     }
  1694.     // line 563
  1695.     public function block_sonata_type_model_autocomplete_select2_options_js($context, array $blocks = [])
  1696.     {
  1697.         $macros $this->macros;
  1698.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1699.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_type_model_autocomplete_select2_options_js"));
  1700.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1701.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_type_model_autocomplete_select2_options_js"));
  1702.         
  1703.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1704.         
  1705.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1706.     }
  1707.     // line 570
  1708.     public function block_sonata_type_model_list_widget($context, array $blocks = [])
  1709.     {
  1710.         $macros $this->macros;
  1711.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1712.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_type_model_list_widget"));
  1713.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1714.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_type_model_list_widget"));
  1715.         // line 571
  1716.         echo "    <div id=\"field_container_";
  1717.         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.'571$this->source); })()), "html"nulltrue);
  1718.         echo "\" class=\"field-container\">
  1719.         <span id=\"field_widget_";
  1720.         // line 572
  1721.         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.'572$this->source); })()), "html"nulltrue);
  1722.         echo "\" class=\"field-short-description\">
  1723.             ";
  1724.         // line 573
  1725.         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.'573$this->source); })()), "value", [], "any"falsefalsefalse573) &&  !(null === 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.'573$this->source); })()), "field_description", [], "any"falsefalsefalse573), "associationadmin", [], "any"falsefalsefalse573), "urlSafeIdentifier", [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.'573$this->source); })()), "value", [], "any"falsefalsefalse573)], "method"falsefalsefalse573)))) {
  1726.             // line 574
  1727.             echo "                ";
  1728.             echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sonata_admin_short_object_information", ((["_sonata_admin" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,             // line 575
  1729. (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'575$this->source); })()), "field_description", [], "any"falsefalsefalse575), "associationadmin", [], "any"falsefalsefalse575), "baseCodeRoute", [], "any"falsefalsefalse575), "objectId" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,             // line 576
  1730. (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'576$this->source); })()), "field_description", [], "any"falsefalsefalse576), "associationadmin", [], "any"falsefalsefalse576), "urlSafeIdentifier", [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.'576$this->source); })()), "value", [], "any"falsefalsefalse576)], "method"falsefalsefalse576), "uniqid" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,             // line 577
  1731. (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'577$this->source); })()), "field_description", [], "any"falsefalsefalse577), "associationadmin", [], "any"falsefalsefalse577), "uniqid", [], "any"falsefalsefalse577), "linkParameters" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,             // line 578
  1732. (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'578$this->source); })()), "field_description", [], "any"falsefalsefalse578), "option", ["link_parameters", []], "method"falsefalsefalse578)] + ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,             // line 580
  1733. (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'580$this->source); })()), "field_description", [], "any"falsefalsefalse580), "associationadmin", [], "any"falsefalsefalse580), "hasRequest", [], "method"falsefalsefalse580)) ? (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,             // line 581
  1734. (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'581$this->source); })()), "field_description", [], "any"falsefalsefalse581), "associationadmin", [], "any"falsefalsefalse581), "request", [], "any"falsefalsefalse581), "attributes", [], "any"falsefalsefalse581), "get", ["_route_params", []], "method"falsefalsefalse581)) : ([]))) + ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,             // line 583
  1735. ($context["app"] ?? null), "request", [], "any"falsetruefalse583), "query", [], "any"falsetruefalse583), "all", [], "any"truetruefalse583)) ? (_twig_default_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsetruefalse583), "query", [], "any"falsetruefalse583), "all", [], "any"falsefalsefalse583), [])) : ([])))));
  1736.             // line 584
  1737.             echo "
  1738.             ";
  1739.         } elseif (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 585
  1740. (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'585$this->source); })()), "field_description", [], "any"falsefalsefalse585), "option", ["placeholder""short_object_description_placeholder"], "method"falsefalsefalse585)) {
  1741.             // line 586
  1742.             echo "                <span class=\"inner-field-short-description\">
  1743.                     ";
  1744.             // line 587
  1745.             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->source, (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'587$this->source); })()), "field_description", [], "any"falsefalsefalse587), "option", ["placeholder""short_object_description_placeholder"], "method"falsefalsefalse587), [], "SonataAdminBundle"), "html"nulltrue);
  1746.             echo "
  1747.                 </span>
  1748.             ";
  1749.         }
  1750.         // line 590
  1751.         echo "        </span>
  1752.         <span id=\"field_actions_";
  1753.         // line 591
  1754.         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.'591$this->source); })()), "html"nulltrue);
  1755.         echo "\" class=\"field-actions\">
  1756.             <span class=\"btn-group\">
  1757.                 ";
  1758.         // line 593
  1759.         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.'593$this->source); })()), "field_description", [], "any"falsefalsefalse593), "associationadmin", [], "any"falsefalsefalse593), "hasroute", ["list"], "method"falsefalsefalse593) && 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.'593$this->source); })()), "field_description", [], "any"falsefalsefalse593), "associationadmin", [], "any"falsefalsefalse593), "hasAccess", ["list"], "method"falsefalsefalse593)) && (isset($context["btn_list"]) || array_key_exists("btn_list"$context) ? $context["btn_list"] : (function () { throw new RuntimeError('Variable "btn_list" does not exist.'593$this->source); })()))) {
  1760.             // line 594
  1761.             echo "                    <a href=\"";
  1762.             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.'594$this->source); })()), "field_description", [], "any"falsefalsefalse594), "associationadmin", [], "any"falsefalsefalse594), "generateUrl", ["list", ["select" => true]], "method"falsefalsefalse594), "html"nulltrue);
  1763.             echo "\"
  1764.                        onclick=\"return start_field_dialog_form_list_";
  1765.             // line 595
  1766.             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.'595$this->source); })()), "html"nulltrue);
  1767.             echo "(this);\"
  1768.                        class=\"btn btn-info btn-sm sonata-ba-action\"
  1769.                        ";
  1770.             // line 598
  1771.             echo "                       title=\"";
  1772.             echo twig_escape_filter($this->env, (((((            // line 599
  1773. 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.'599$this->source); })()), null)) : (null)) === false)) ? (            // line 600
  1774. (isset($context["btn_list"]) || array_key_exists("btn_list"$context) ? $context["btn_list"] : (function () { throw new RuntimeError('Variable "btn_list" does not exist.'600$this->source); })())) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(            // line 601
  1775. (isset($context["btn_list"]) || array_key_exists("btn_list"$context) ? $context["btn_list"] : (function () { throw new RuntimeError('Variable "btn_list" does not exist.'601$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.'601$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.'601$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.'601$this->source); })())))))), "html"nulltrue);
  1776.             // line 602
  1777.             echo "\"
  1778.                     >
  1779.                         <i class=\"fas fa-list\"></i>
  1780.                         ";
  1781.             // line 606
  1782.             echo "                        ";
  1783.             echo twig_escape_filter($this->env, (((((            // line 607
  1784. 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.'607$this->source); })()), null)) : (null)) === false)) ? (            // line 608
  1785. (isset($context["btn_list"]) || array_key_exists("btn_list"$context) ? $context["btn_list"] : (function () { throw new RuntimeError('Variable "btn_list" does not exist.'608$this->source); })())) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(            // line 609
  1786. (isset($context["btn_list"]) || array_key_exists("btn_list"$context) ? $context["btn_list"] : (function () { throw new RuntimeError('Variable "btn_list" does not exist.'609$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.'609$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.'609$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.'609$this->source); })())))))), "html"nulltrue);
  1787.             // line 610
  1788.             echo "
  1789.                     </a>
  1790.                 ";
  1791.         }
  1792.         // line 613
  1793.         echo "
  1794.                 ";
  1795.         // line 614
  1796.         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.'614$this->source); })()), "field_description", [], "any"falsefalsefalse614), "associationadmin", [], "any"falsefalsefalse614), "hasroute", ["create"], "method"falsefalsefalse614) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 615
  1797. (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'615$this->source); })()), "field_description", [], "any"falsefalsefalse615), "associationadmin", [], "any"falsefalsefalse615), "hasAccess", ["create"], "method"falsefalsefalse615)) &&         // line 616
  1798. (isset($context["btn_add"]) || array_key_exists("btn_add"$context) ? $context["btn_add"] : (function () { throw new RuntimeError('Variable "btn_add" does not exist.'616$this->source); })()))) {
  1799.             // line 618
  1800.             echo "                    <a href=\"";
  1801.             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.'618$this->source); })()), "field_description", [], "any"falsefalsefalse618), "associationadmin", [], "any"falsefalsefalse618), "generateUrl", ["create"], "method"falsefalsefalse618), "html"nulltrue);
  1802.             echo "\"
  1803.                        onclick=\"return start_field_dialog_form_add_";
  1804.             // line 619
  1805.             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.'619$this->source); })()), "html"nulltrue);
  1806.             echo "(this);\"
  1807.                        class=\"btn btn-success btn-sm sonata-ba-action\"
  1808.                         ";
  1809.             // line 622
  1810.             echo "                       title=\"";
  1811.             echo twig_escape_filter($this->env, (((((            // line 623
  1812. 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.'623$this->source); })()), null)) : (null)) === false)) ? (            // line 624
  1813. (isset($context["btn_add"]) || array_key_exists("btn_add"$context) ? $context["btn_add"] : (function () { throw new RuntimeError('Variable "btn_add" does not exist.'624$this->source); })())) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(            // line 625
  1814. (isset($context["btn_add"]) || array_key_exists("btn_add"$context) ? $context["btn_add"] : (function () { throw new RuntimeError('Variable "btn_add" does not exist.'625$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.'625$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.'625$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.'625$this->source); })())))))), "html"nulltrue);
  1815.             // line 626
  1816.             echo "\"
  1817.                     >
  1818.                         <i class=\"fas fa-plus-circle\"></i>
  1819.                         ";
  1820.             // line 630
  1821.             echo "                        ";
  1822.             echo twig_escape_filter($this->env, (((((            // line 631
  1823. 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.'631$this->source); })()), null)) : (null)) === false)) ? (            // line 632
  1824. (isset($context["btn_add"]) || array_key_exists("btn_add"$context) ? $context["btn_add"] : (function () { throw new RuntimeError('Variable "btn_add" does not exist.'632$this->source); })())) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(            // line 633
  1825. (isset($context["btn_add"]) || array_key_exists("btn_add"$context) ? $context["btn_add"] : (function () { throw new RuntimeError('Variable "btn_add" does not exist.'633$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.'633$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.'633$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.'633$this->source); })())))))), "html"nulltrue);
  1826.             // line 634
  1827.             echo "
  1828.                     </a>
  1829.                 ";
  1830.         }
  1831.         // line 637
  1832.         echo "                ";
  1833.         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.'637$this->source); })()), "field_description", [], "any"falsefalsefalse637), "associationadmin", [], "any"falsefalsefalse637), "hasroute", ["edit"], "method"falsefalsefalse637) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 638
  1834. (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'638$this->source); })()), "field_description", [], "any"falsefalsefalse638), "associationadmin", [], "any"falsefalsefalse638), "hasAccess", ["edit"], "method"falsefalsefalse638)) &&         // line 639
  1835. (isset($context["btn_edit"]) || array_key_exists("btn_edit"$context) ? $context["btn_edit"] : (function () { throw new RuntimeError('Variable "btn_edit" does not exist.'639$this->source); })()))) {
  1836.             // line 641
  1837.             echo "                    <a href=\"";
  1838.             // line 642
  1839.             (((twig_get_attribute($this->env$this->source,             // line 641
  1840. (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'641$this->source); })()), "value", [], "any"falsefalsefalse641) == 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.'641$this->source); })()), "field_description", [], "any"falsefalsefalse641), "associationadmin", [], "any"falsefalsefalse641), "generateUrl", ["edit", [twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,             // line 642
  1841. (isset($context["sonata_admin"]) || array_key_exists("sonata_admin"$context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.'642$this->source); })()), "field_description", [], "any"falsefalsefalse642), "associationadmin", [], "any"falsefalsefalse642), "idParameter", [], "any"falsefalsefalse642) => 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.'642$this->source); })()), "field_description", [], "any"falsefalsefalse642), "associationadmin", [], "any"falsefalsefalse642), "urlSafeIdentifier", [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.'642$this->source); })()), "value", [], "any"falsefalsefalse642)], "method"falsefalsefalse642)]], "method"falsefalsefalse641), "html"nulltrue))));
  1842.             // line 643
  1843.             echo "\"
  1844.                        onclick=\"return start_field_dialog_form_edit_";
  1845.             // line 644
  1846.             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.'644$this->source); })()), "html"nulltrue);
  1847.             echo "(this);\"
  1848.                        class=\"btn btn-warning btn-sm sonata-ba-action ";
  1849.             // line 645
  1850.             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.'645$this->source); })()), "value", [], "any"falsefalsefalse645) == null)) {
  1851.                 echo "hidden";
  1852.             }
  1853.             echo "\"
  1854.                         ";
  1855.             // line 647
  1856.             echo "                       title=\"";
  1857.             echo twig_escape_filter($this->env, (((((            // line 648
  1858. 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.'648$this->source); })()), null)) : (null)) === false)) ? (            // line 649
  1859. (isset($context["btn_edit"]) || array_key_exists("btn_edit"$context) ? $context["btn_edit"] : (function () { throw new RuntimeError('Variable "btn_edit" does not exist.'649$this->source); })())) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(            // line 650
  1860. (isset($context["btn_edit"]) || array_key_exists("btn_edit"$context) ? $context["btn_edit"] : (function () { throw new RuntimeError('Variable "btn_edit" does not exist.'650$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.'650$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.'650$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.'650$this->source); })())))))), "html"nulltrue);
  1861.             // line 651
  1862.             echo "\"
  1863.                     >
  1864.                         <i class=\"fas fa-pencil-alt\"></i>
  1865.                         ";
  1866.             // line 655
  1867.             echo "                        ";
  1868.             echo twig_escape_filter($this->env, (((((            // line 656
  1869. 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.'656$this->source); })()), null)) : (null)) === false)) ? (            // line 657
  1870. (isset($context["btn_edit"]) || array_key_exists("btn_edit"$context) ? $context["btn_edit"] : (function () { throw new RuntimeError('Variable "btn_edit" does not exist.'657$this->source); })())) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(            // line 658
  1871. (isset($context["btn_edit"]) || array_key_exists("btn_edit"$context) ? $context["btn_edit"] : (function () { throw new RuntimeError('Variable "btn_edit" does not exist.'658$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.'658$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.'658$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.'658$this->source); })())))))), "html"nulltrue);
  1872.             // line 659
  1873.             echo "
  1874.                     </a>
  1875.                 ";
  1876.         }
  1877.         // line 662
  1878.         echo "            </span>
  1879.             <span class=\"btn-group\">
  1880.                 ";
  1881.         // line 665
  1882.         if ((isset($context["btn_delete"]) || array_key_exists("btn_delete"$context) ? $context["btn_delete"] : (function () { throw new RuntimeError('Variable "btn_delete" does not exist.'665$this->source); })())) {
  1883.             // line 666
  1884.             echo "                    <button
  1885.                         onclick=\"return remove_selected_element_";
  1886.             // line 667
  1887.             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.'667$this->source); })()), "html"nulltrue);
  1888.             echo "(this);\"
  1889.                         class=\"btn btn-danger btn-sm sonata-ba-action\"
  1890.                         type=\"button\"
  1891.                         ";
  1892.             // line 671
  1893.             echo "                        title=\"";
  1894.             echo twig_escape_filter($this->env, (((((            // line 672
  1895. 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.'672$this->source); })()), null)) : (null)) === false)) ? (            // line 673
  1896. (isset($context["btn_delete"]) || array_key_exists("btn_delete"$context) ? $context["btn_delete"] : (function () { throw new RuntimeError('Variable "btn_delete" does not exist.'673$this->source); })())) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(            // line 674
  1897. (isset($context["btn_delete"]) || array_key_exists("btn_delete"$context) ? $context["btn_delete"] : (function () { throw new RuntimeError('Variable "btn_delete" does not exist.'674$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.'674$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.'674$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.'674$this->source); })())))))), "html"nulltrue);
  1898.             // line 675
  1899.             echo "\"
  1900.                     >
  1901.                         <i class=\"fas fa-minus-circle\"></i>
  1902.                         ";
  1903.             // line 679
  1904.             echo "                        ";
  1905.             echo twig_escape_filter($this->env, (((((            // line 680
  1906. 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.'680$this->source); })()), null)) : (null)) === false)) ? (            // line 681
  1907. (isset($context["btn_delete"]) || array_key_exists("btn_delete"$context) ? $context["btn_delete"] : (function () { throw new RuntimeError('Variable "btn_delete" does not exist.'681$this->source); })())) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(            // line 682
  1908. (isset($context["btn_delete"]) || array_key_exists("btn_delete"$context) ? $context["btn_delete"] : (function () { throw new RuntimeError('Variable "btn_delete" does not exist.'682$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.'682$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.'682$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.'682$this->source); })())))))), "html"nulltrue);
  1909.             // line 683
  1910.             echo "
  1911.                     </button>
  1912.                 ";
  1913.         }
  1914.         // line 686
  1915.         echo "            </span>
  1916.         </span>
  1917.         <span style=\"display: none\" >
  1918.             ";
  1919.         // line 691
  1920.         echo "            ";
  1921.         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.'691$this->source); })()), 'widget', ["required" => false]);
  1922.         echo "
  1923.         </span>
  1924.         <div class=\"modal fade\" id=\"field_dialog_";
  1925.         // line 694
  1926.         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.'694$this->source); })()), "html"nulltrue);
  1927.         echo "\" role=\"dialog\" aria-labelledby=\"myModalLabel\" aria-hidden=\"true\">
  1928.             <div class=\"modal-dialog modal-lg\">
  1929.                 <div class=\"modal-content\">
  1930.                     <div class=\"modal-header\">
  1931.                         <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-hidden=\"true\">&times;</button>
  1932.                         <h4 class=\"modal-title\"></h4>
  1933.                     </div>
  1934.                     <div class=\"modal-body\">
  1935.                     </div>
  1936.                 </div>
  1937.             </div>
  1938.         </div>
  1939.     </div>
  1940.     ";
  1941.         // line 708
  1942.         $this->loadTemplate("@SonataAdmin/CRUD/Association/edit_many_script.html.twig""@!SonataAdmin/Form/form_admin_fields.html.twig"708)->display($context);
  1943.         
  1944.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1945.         
  1946.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1947.     }
  1948.     // line 711
  1949.     public function block_sonata_type_template_widget($context, array $blocks = [])
  1950.     {
  1951.         $macros $this->macros;
  1952.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1953.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_type_template_widget"));
  1954.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1955.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_type_template_widget"));
  1956.         // line 712
  1957.         echo "    ";
  1958.         $this->loadTemplate((isset($context["template"]) || array_key_exists("template"$context) ? $context["template"] : (function () { throw new RuntimeError('Variable "template" does not exist.'712$this->source); })()), "@!SonataAdmin/Form/form_admin_fields.html.twig"712)->display(twig_to_array((isset($context["parameters"]) || array_key_exists("parameters"$context) ? $context["parameters"] : (function () { throw new RuntimeError('Variable "parameters" does not exist.'712$this->source); })())));
  1959.         
  1960.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1961.         
  1962.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1963.     }
  1964.     /**
  1965.      * @codeCoverageIgnore
  1966.      */
  1967.     public function getTemplateName()
  1968.     {
  1969.         return "@!SonataAdmin/Form/form_admin_fields.html.twig";
  1970.     }
  1971.     /**
  1972.      * @codeCoverageIgnore
  1973.      */
  1974.     public function isTraitable()
  1975.     {
  1976.         return false;
  1977.     }
  1978.     /**
  1979.      * @codeCoverageIgnore
  1980.      */
  1981.     public function getDebugInfo()
  1982.     {
  1983.         return array (  2135 => 712,  2125 => 711,  2115 => 708,  2098 => 694,  2091 => 691,  2085 => 686,  2080 => 683,  2078 => 682,  2077 => 681,  2076 => 680,  2074 => 679,  2069 => 675,  2067 => 674,  2066 => 673,  2065 => 672,  2063 => 671,  2057 => 667,  2054 => 666,  2052 => 665,  2047 => 662,  2042 => 659,  2040 => 658,  2039 => 657,  2038 => 656,  2036 => 655,  2031 => 651,  2029 => 650,  2028 => 649,  2027 => 648,  2025 => 647,  2019 => 645,  2015 => 644,  2012 => 643,  2010 => 642,  2009 => 641,  2008 => 642,  2006 => 641,  2004 => 639,  2003 => 638,  2001 => 637,  1996 => 634,  1994 => 633,  1993 => 632,  1992 => 631,  1990 => 630,  1985 => 626,  1983 => 625,  1982 => 624,  1981 => 623,  1979 => 622,  1974 => 619,  1969 => 618,  1967 => 616,  1966 => 615,  1965 => 614,  1962 => 613,  1957 => 610,  1955 => 609,  1954 => 608,  1953 => 607,  1951 => 606,  1946 => 602,  1944 => 601,  1943 => 600,  1942 => 599,  1940 => 598,  1935 => 595,  1930 => 594,  1928 => 593,  1923 => 591,  1920 => 590,  1914 => 587,  1911 => 586,  1909 => 585,  1906 => 584,  1904 => 583,  1903 => 581,  1902 => 580,  1901 => 578,  1900 => 577,  1899 => 576,  1898 => 575,  1896 => 574,  1894 => 573,  1890 => 572,  1885 => 571,  1875 => 570,  1857 => 563,  1841 => 565,  1838 => 564,  1836 => 563,  1822 => 557,  1812 => 556,  1799 => 551,  1793 => 549,  1789 => 547,  1787 => 546,  1780 => 541,  1772 => 535,  1770 => 534,  1761 => 527,  1753 => 521,  1751 => 520,  1739 => 511,  1731 => 506,  1723 => 501,  1716 => 497,  1710 => 493,  1699 => 489,  1695 => 488,  1691 => 487,  1687 => 486,  1683 => 485,  1679 => 483,  1676 => 482,  1673 => 481,  1670 => 480,  1667 => 479,  1664 => 478,  1661 => 477,  1658 => 476,  1655 => 475,  1650 => 473,  1640 => 472,  1629 => 469,  1619 => 468,  1609 => 445,  1605 => 464,  1599 => 461,  1596 => 460,  1594 => 459,  1590 => 457,  1587 => 456,  1576 => 455,  1573 => 454,  1570 => 453,  1567 => 452,  1564 => 451,  1562 => 450,  1557 => 448,  1545 => 446,  1542 => 445,  1532 => 444,  1522 => 431,  1516 => 439,  1513 => 438,  1496 => 436,  1479 => 435,  1474 => 433,  1469 => 432,  1466 => 431,  1456 => 430,  1446 => 409,  1442 => 426,  1438 => 424,  1436 => 423,  1431 => 422,  1414 => 420,  1397 => 419,  1393 => 418,  1388 => 417,  1385 => 416,  1382 => 415,  1379 => 414,  1376 => 413,  1373 => 412,  1370 => 411,  1367 => 410,  1365 => 409,  1355 => 408,  1345 => 388,  1341 => 404,  1336 => 401,  1334 => 400,  1329 => 399,  1319 => 391,  1317 => 390,  1314 => 389,  1312 => 388,  1302 => 387,  1291 => 384,  1289 => 383,  1279 => 382,  1268 => 379,  1266 => 378,  1256 => 377,  1242 => 372,  1239 => 371,  1233 => 368,  1230 => 367,  1228 => 366,  1225 => 365,  1222 => 364,  1218 => 363,  1215 => 362,  1212 => 361,  1209 => 360,  1207 => 359,  1204 => 358,  1201 => 357,  1198 => 356,  1196 => 355,  1193 => 354,  1187 => 352,  1185 => 351,  1182 => 350,  1179 => 349,  1176 => 348,  1173 => 347,  1170 => 346,  1167 => 345,  1164 => 344,  1161 => 343,  1158 => 342,  1155 => 341,  1152 => 340,  1150 => 339,  1148 => 338,  1145 => 337,  1142 => 336,  1139 => 335,  1137 => 334,  1134 => 333,  1132 => 332,  1119 => 331,  1116 => 330,  1113 => 329,  1110 => 328,  1100 => 327,  1090 => 298,  1085 => 322,  1079 => 320,  1073 => 317,  1070 => 316,  1068 => 315,  1065 => 314,  1059 => 312,  1053 => 309,  1050 => 308,  1048 => 307,  1043 => 305,  1039 => 304,  1034 => 303,  1031 => 302,  1025 => 300,  1022 => 299,  1020 => 298,  1010 => 297,  1000 => 270,  995 => 292,  989 => 289,  984 => 288,  981 => 287,  975 => 284,  970 => 283,  968 => 282,  963 => 280,  959 => 279,  954 => 278,  951 => 277,  948 => 276,  945 => 275,  942 => 274,  936 => 272,  933 => 271,  931 => 270,  921 => 269,  911 => 250,  905 => 263,  903 => 262,  902 => 261,  901 => 260,  900 => 259,  895 => 258,  892 => 257,  889 => 256,  886 => 255,  883 => 254,  877 => 252,  874 => 251,  872 => 250,  862 => 249,  852 => 199,  844 => 243,  841 => 242,  838 => 241,  832 => 239,  830 => 238,  825 => 237,  822 => 236,  819 => 235,  809 => 233,  807 => 232,  804 => 231,  801 => 230,  798 => 228,  795 => 226,  792 => 225,  790 => 224,  783 => 223,  781 => 222,  769 => 221,  766 => 220,  764 => 219,  761 => 218,  758 => 217,  755 => 216,  752 => 215,  749 => 214,  746 => 213,  743 => 212,  740 => 211,  737 => 210,  731 => 208,  728 => 207,  726 => 206,  723 => 205,  720 => 204,  717 => 203,  714 => 202,  711 => 201,  708 => 200,  706 => 199,  696 => 198,  686 => 182,  682 => 194,  675 => 192,  673 => 191,  671 => 190,  670 => 187,  667 => 186,  663 => 185,  658 => 184,  655 => 183,  653 => 182,  643 => 181,  631 => 177,  628 => 175,  625 => 173,  622 => 171,  620 => 170,  617 => 169,  615 => 168,  613 => 167,  598 => 166,  595 => 165,  592 => 164,  589 => 163,  586 => 162,  583 => 161,  580 => 160,  577 => 159,  574 => 158,  571 => 157,  568 => 156,  566 => 155,  563 => 154,  560 => 153,  557 => 152,  547 => 151,  537 => 148,  527 => 147,  517 => 144,  507 => 143,  497 => 102,  492 => 138,  489 => 136,  486 => 134,  484 => 133,  482 => 132,  480 => 131,  466 => 130,  463 => 129,  459 => 126,  456 => 123,  455 => 122,  454 => 121,  452 => 120,  450 => 119,  447 => 118,  444 => 117,  441 => 116,  438 => 115,  435 => 114,  432 => 113,  430 => 112,  427 => 111,  424 => 110,  422 => 109,  419 => 108,  417 => 107,  414 => 106,  411 => 105,  408 => 104,  405 => 103,  403 => 102,  393 => 101,  382 => 96,  380 => 95,  378 => 94,  375 => 92,  373 => 91,  371 => 90,  361 => 89,  350 => 85,  348 => 84,  346 => 83,  343 => 81,  341 => 80,  339 => 79,  329 => 78,  319 => 69,  312 => 72,  309 => 71,  306 => 70,  303 => 69,  293 => 68,  282 => 65,  278 => 63,  276 => 62,  273 => 61,  270 => 60,  268 => 59,  262 => 57,  260 => 56,  258 => 55,  255 => 54,  252 => 53,  249 => 51,  247 => 50,  237 => 49,  224 => 46,  221 => 45,  211 => 44,  198 => 41,  195 => 40,  192 => 39,  189 => 38,  186 => 37,  176 => 36,  162 => 32,  159 => 31,  156 => 30,  153 => 29,  150 => 28,  148 => 27,  138 => 26,  127 => 23,  123 => 22,  120 => 21,  111 => 19,  107 => 18,  104 => 17,  99 => 16,  97 => 15,  87 => 14,  64 => 12,);
  1984.     }
  1985.     public function getSourceContext()
  1986.     {
  1987.         return new Source("{#
  1988. This file is part of the Sonata package.
  1989. (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  1990. For the full copyright and license information, please view the LICENSE
  1991. file that was distributed with this source code.
  1992. #}
  1993. {% extends 'form_div_layout.html.twig' %}
  1994. {% block form_errors -%}
  1995.     {% if errors|length > 0 %}
  1996.         {% if not form.parent %}<div class=\"alert alert-danger\">{% endif %}
  1997.             <ul class=\"list-unstyled\">
  1998.                 {% for error in errors %}
  1999.                     <li><i class=\"fas fa-exclamation-circle\" aria-hidden=\"true\"></i> {{ error.message }}</li>
  2000.                 {% endfor %}
  2001.             </ul>
  2002.         {% if not form.parent %}</div>{% endif %}
  2003.     {% endif %}
  2004. {%- endblock form_errors %}
  2005. {% block form_help -%}
  2006.     {% if sonata_admin_translation_domain is defined and translation_domain is null %}
  2007.         {% set translation_domain = sonata_admin_translation_domain %}
  2008.     {% endif %}
  2009.     {% if help is not empty %}
  2010.         {% set help_attr = help_attr|merge({class: (help_attr.class|default('') ~ ' help-block sonata-ba-field-help')}) %}
  2011.         {{ parent() }}
  2012.     {% endif %}
  2013. {%- endblock form_help %}
  2014. {% block form_widget_simple %}
  2015.     {% set type = type|default('text') %}
  2016.     {% if type != 'file' %}
  2017.         {% set attr = attr|merge({'class': attr.class|default('') ~ ' form-control'}) %}
  2018.     {% endif %}
  2019.     {{ parent() }}
  2020. {% endblock form_widget_simple %}
  2021. {% block textarea_widget %}
  2022.     {% set attr = attr|merge({'class': attr.class|default('') ~ ' form-control'}) %}
  2023.     {{ parent() }}
  2024. {% endblock textarea_widget %}
  2025. {% block money_widget -%}
  2026.     {% if money_pattern == '{{ widget }}' %}
  2027.         {{- block('form_widget_simple') -}}
  2028.     {% else %}
  2029.         {% set currencySymbol = money_pattern|replace({'{{ widget }}': ''})|trim %}
  2030.         {% if money_pattern matches '/^{{ widget }}/' %}
  2031.             <div class=\"input-group\">
  2032.                 {{- block('form_widget_simple') -}}
  2033.                 <span class=\"input-group-addon\">{{ currencySymbol }}</span>
  2034.             </div>
  2035.         {% elseif money_pattern matches '/{{ widget }}\$/' %}
  2036.             <div class=\"input-group\">
  2037.                 <span class=\"input-group-addon\">{{ currencySymbol }}</span>
  2038.                 {{- block('form_widget_simple') -}}
  2039.             </div>
  2040.         {% endif %}
  2041.     {% endif %}
  2042. {%- endblock money_widget %}
  2043. {% block percent_widget %}
  2044.     {% apply spaceless %}
  2045.         {% set type = type|default('text') %}
  2046.         <div class=\"input-group\">
  2047.             {{ block('form_widget_simple') }}
  2048.             <span class=\"input-group-addon\">%</span>
  2049.         </div>
  2050.     {% endapply %}
  2051. {% endblock percent_widget %}
  2052. {% block checkbox_widget -%}
  2053.     {% set parent_label_class = parent_label_class|default('') -%}
  2054.     {% if 'checkbox-inline' in parent_label_class %}
  2055.         {{- form_label(form, null, { widget: parent() }) -}}
  2056.     {% else -%}
  2057.         <div class=\"checkbox\">
  2058.             {{- form_label(form, null, { widget: parent() }) -}}
  2059.         </div>
  2060.     {%- endif %}
  2061. {%- endblock checkbox_widget %}
  2062. {% block radio_widget -%}
  2063.     {%- set parent_label_class = parent_label_class|default('') -%}
  2064.     {% if 'radio-inline' in parent_label_class %}
  2065.         {{- form_label(form, null, { widget: parent() }) -}}
  2066.     {% else -%}
  2067.         <div class=\"radio\">
  2068.             {{- form_label(form, null, { widget: parent() }) -}}
  2069.         </div>
  2070.     {%- endif %}
  2071. {%- endblock radio_widget %}
  2072. {# Labels #}
  2073. {% block form_label %}
  2074. {% apply spaceless %}
  2075.     {% if label is not same as(false) and sonata_admin.options['form_type'] == 'horizontal' %}
  2076.         {% set label_class = 'col-sm-3' %}
  2077.     {% endif %}
  2078.     {% set label_class = label_class|default('') ~ ' control-label' %}
  2079.     {% if label is not same as(false) %}
  2080.         {% set label_attr = label_attr|merge({'class': label_attr.class|default('') ~ ' ' ~ label_class }) %}
  2081.         {% if not compound %}
  2082.             {% set label_attr = label_attr|merge({'for': id}) %}
  2083.         {% endif %}
  2084.         {% if required %}
  2085.             {% set label_attr = label_attr|merge({'class': (label_attr.class|default('') ~ ' required')|trim}) %}
  2086.         {% endif %}
  2087.         {% if label is empty %}
  2088.             {%- if label_format is defined and label_format is not empty -%}
  2089.                 {% set label = label_format|replace({
  2090.                     '%name%': name,
  2091.                     '%id%': id,
  2092.                 }) %}
  2093.             {%- else -%}
  2094.                 {% set label = name|humanize %}
  2095.             {%- endif -%}
  2096.         {% endif %}
  2097.         <label{% for attrname, attrvalue in label_attr %} {{ attrname }}=\"{{ attrvalue }}\"{% endfor %}>
  2098.             {%- if translation_domain is same as(false) -%}
  2099.                 {{- label -}}
  2100.             {%- elseif not sonata_admin.admin -%}
  2101.                 {{- label|trans(label_translation_parameters, translation_domain) -}}
  2102.             {%- else -%}
  2103.                 {{- label|trans(label_translation_parameters, sonata_admin.field_description.translationDomain|default(sonata_admin.admin.translationDomain)) -}}
  2104.             {%- endif -%}
  2105.         </label>
  2106.     {% endif %}
  2107. {% endapply %}
  2108. {% endblock form_label %}
  2109. {% block checkbox_label -%}
  2110.     {{- block('checkbox_radio_label') -}}
  2111. {%- endblock checkbox_label %}
  2112. {% block radio_label -%}
  2113.     {{- block('checkbox_radio_label') -}}
  2114. {%- endblock radio_label %}
  2115. {% block checkbox_radio_label %}
  2116.     {% if sonata_admin.admin %}
  2117.         {% set translation_domain = sonata_admin.field_description.translationDomain %}
  2118.     {% endif %}
  2119.     {# Do not display the label if widget is not defined in order to prevent double label rendering #}
  2120.     {% if widget is defined %}
  2121.         {% if required %}
  2122.             {% set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' required')|trim}) %}
  2123.         {% endif %}
  2124.         {% if parent_label_class is defined %}
  2125.             {% set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' ' ~ parent_label_class)|trim}) %}
  2126.         {% endif %}
  2127.         {% if label is not same as(false) and label is empty %}
  2128.             {% set label = name|humanize %}
  2129.         {% endif %}
  2130.         <label{% for attrname, attrvalue in label_attr %} {{ attrname }}=\"{{ attrvalue }}\"{% endfor %}>
  2131.             {{- widget|raw -}}
  2132.             {%- if label is not same as(false) -%}
  2133.                 <span class=\"control-label__text\">
  2134.                     {% if translation_domain is same as(false) %}
  2135.                         {{- label -}}
  2136.                     {% else %}
  2137.                         {{- label|trans(label_translation_parameters, translation_domain) -}}
  2138.                     {%- endif -%}
  2139.                 </span>
  2140.             {%- endif -%}
  2141.         </label>
  2142.     {% endif %}
  2143. {% endblock checkbox_radio_label %}
  2144. {% block choice_widget_expanded %}
  2145. {% apply spaceless %}
  2146.     {% set attr = attr|merge({'class': attr.class|default('') ~ ' list-unstyled'}) %}
  2147.     <ul {{ block('widget_container_attributes') }}>
  2148.     {% for child in form %}
  2149.         <li>
  2150.             {{ form_widget(child, {
  2151.                 'horizontal': false,
  2152.                 'horizontal_input_wrapper_class': '',
  2153.                 'translation_domain': choice_translation_domain
  2154.             }) }} {# 'horizontal' values are needed to avoid MopaBootstrapBundle messing with the DOM #}
  2155.         </li>
  2156.     {% endfor %}
  2157.     </ul>
  2158. {% endapply %}
  2159. {% endblock choice_widget_expanded %}
  2160. {% block choice_widget_collapsed %}
  2161. {% apply spaceless %}
  2162.     {% if required and placeholder is defined and placeholder is none %}
  2163.         {% set required = false %}
  2164.     {% elseif required and empty_value is defined and empty_value_in_choices is defined and empty_value is none and not empty_value_in_choices and not multiple %}
  2165.         {% set required = false %}
  2166.     {% endif %}
  2167.     {% set attr = attr|merge({'class': attr.class|default('') ~ ' form-control'}) %}
  2168.     {% if (sortable is defined) and sortable and multiple %}
  2169.         {{ block('sonata_type_choice_multiple_sortable') }}
  2170.     {% else %}
  2171.         {% set data_placeholder = placeholder %}
  2172.         {% if placeholder != '' %}
  2173.             {% if not sonata_admin.admin %}
  2174.                 {% set data_placeholder = placeholder|trans({}, translation_domain) %}
  2175.             {% else %}
  2176.                 {% set data_placeholder = placeholder|trans({}, sonata_admin.field_description.translationDomain) %}
  2177.             {% endif %}
  2178.         {% endif %}
  2179.         {% set use_select2 = sonata_config is defined and sonata_config.getOption('use_select2') %}
  2180.         <select {{ block('widget_attributes') }}{% if multiple %} multiple=\"multiple\"{% endif %}{% if placeholder is defined and placeholder is not none and use_select2 %} data-placeholder=\"{{ data_placeholder }}\"{% endif %}>
  2181.             {% if empty_value is defined and empty_value is not none %}
  2182.                 <option value=\"\"{% if required and value is empty %} selected=\"selected\"{% endif %}>
  2183.                     {% if empty_value != '' %}
  2184.                         {% if not sonata_admin.admin %}
  2185.                             {{- empty_value|trans({}, translation_domain) -}}
  2186.                         {% else %}
  2187.                             {{- empty_value|trans({}, sonata_admin.field_description.translationDomain) -}}
  2188.                         {% endif %}
  2189.                     {% endif %}
  2190.                 </option>
  2191.             {% elseif placeholder is defined and placeholder is not none %}
  2192.                 <option value=\"\"{% if required and value is empty %} selected=\"selected\"{% endif %}>{{ data_placeholder }}</option>
  2193.             {% endif %}
  2194.             {% if preferred_choices|length > 0 %}
  2195.                 {% set options = preferred_choices %}
  2196.                 {{ block('choice_widget_options') }}
  2197.                 {% if choices|length > 0 %}
  2198.                     <option disabled=\"disabled\">{{ separator }}</option>
  2199.                 {% endif %}
  2200.             {% endif %}
  2201.             {% set options = choices %}
  2202.             {{ block('choice_widget_options') }}
  2203.         </select>
  2204.     {% endif %}
  2205. {% endapply %}
  2206. {% endblock choice_widget_collapsed %}
  2207. {% block date_widget %}
  2208. {% apply spaceless %}
  2209.     {% if widget == 'single_text' %}
  2210.         {{ block('form_widget_simple') }}
  2211.     {% else %}
  2212.         {% if row is not defined or row == true %}
  2213.             {% set attr = attr|merge({'class': attr.class|default('') ~ ' row' }) %}
  2214.         {% endif %}
  2215.         {% set input_wrapper_class = input_wrapper_class|default('col-sm-4') %}
  2216.         <div {{ block('widget_container_attributes') }}>
  2217.             {{ date_pattern|replace({
  2218.                 '{{ year }}':  '<div class=\"'~ input_wrapper_class ~ '\">' ~ form_widget(form.year) ~ '</div>',
  2219.                 '{{ month }}': '<div class=\"'~ input_wrapper_class ~ '\">' ~ form_widget(form.month) ~ '</div>',
  2220.                 '{{ day }}':   '<div class=\"'~ input_wrapper_class ~ '\">' ~ form_widget(form.day) ~ '</div>',
  2221.             })|raw }}
  2222.         </div>
  2223.     {% endif %}
  2224. {% endapply %}
  2225. {% endblock date_widget %}
  2226. {% block time_widget %}
  2227. {% apply spaceless %}
  2228.     {% if widget == 'single_text' %}
  2229.         {{ block('form_widget_simple') }}
  2230.     {% else %}
  2231.         {% if row is not defined or row == true %}
  2232.             {% set attr = attr|merge({'class': attr.class|default('') ~ ' row' }) %}
  2233.         {% endif %}
  2234.         {% set input_wrapper_class = input_wrapper_class|default('col-sm-6') %}
  2235.         <div {{ block('widget_container_attributes') }}>
  2236.             <div class=\"{{ input_wrapper_class }}\">
  2237.                 {{ form_widget(form.hour) }}
  2238.             </div>
  2239.             {% if with_minutes %}
  2240.                 <div class=\"{{ input_wrapper_class }}\">
  2241.                     {{ form_widget(form.minute) }}
  2242.                 </div>
  2243.             {% endif %}
  2244.             {% if with_seconds %}
  2245.                 <div class=\"{{ input_wrapper_class }}\">
  2246.                     {{ form_widget(form.second) }}
  2247.                 </div>
  2248.             {% endif %}
  2249.         </div>
  2250.     {% endif %}
  2251. {% endapply %}
  2252. {% endblock time_widget %}
  2253. {% block datetime_widget %}
  2254. {% apply spaceless %}
  2255.     {% if widget == 'single_text' %}
  2256.         {{ block('form_widget_simple') }}
  2257.     {% else %}
  2258.         {% set attr = attr|merge({'class': attr.class|default('') ~ ' row' }) %}
  2259.         <div {{ block('widget_container_attributes') }}>
  2260.             {{ form_errors(form.date) }}
  2261.             {{ form_errors(form.time) }}
  2262.             {% if form.date.vars.widget == 'single_text' %}
  2263.                 <div class=\"col-sm-2\">
  2264.                     {{ form_widget(form.date) }}
  2265.                 </div>
  2266.             {% else %}
  2267.                 {{ form_widget(form.date, {'row': false, 'input_wrapper_class': 'col-sm-2'}) }}
  2268.             {% endif %}
  2269.             {% if form.time.vars.widget == 'single_text' %}
  2270.                 <div class=\"col-sm-2\">
  2271.                     {{ form_widget(form.time) }}
  2272.                 </div>
  2273.             {% else %}
  2274.                 {{ form_widget(form.time, {'row': false, 'input_wrapper_class': 'col-sm-2'}) }}
  2275.             {% endif %}
  2276.         </div>
  2277.     {% endif %}
  2278. {% endapply %}
  2279. {% endblock datetime_widget %}
  2280. {% block form_row %}
  2281.     {% set show_label = show_label ?? true %}
  2282.     {% set row_id = 'sonata-ba-field-container-'~id %}
  2283.     {% set row_class = (row_attr.class|default('') ~ ' form-group' ~ (errors|length > 0 ? ' has-error'))|trim %}
  2284.     <div{% with {attr: row_attr|merge({id: row_id, class: row_class})} %}{{ block('attributes') }}{% endwith %}>
  2285.         {% set div_class = 'sonata-ba-field' %}
  2286.         {% if label is same as(false) %}
  2287.             {% set div_class = div_class ~ ' sonata-collection-row-without-label' %}
  2288.         {% endif %}
  2289.         {% if sonata_admin is defined and sonata_admin.options['form_type'] == 'horizontal' %}
  2290.             {# Add an offset if no label or is a checkbox/radio #}
  2291.             {% if label is same as(false) or form.vars.checked is defined %}
  2292.                 {% if 'collection' in form.parent.vars.block_prefixes %}
  2293.                     {% set div_class = div_class ~ ' col-sm-12' %}
  2294.                 {% else %}
  2295.                     {% set div_class = div_class ~ ' col-sm-9 col-sm-offset-3' %}
  2296.                 {% endif %}
  2297.             {% else %}
  2298.                 {% set div_class = div_class ~ ' col-sm-9' %}
  2299.             {% endif %}
  2300.         {% endif %}
  2301.         {% if show_label %}
  2302.             {{ form_label(form, label|default(null)) }}
  2303.         {% endif %}
  2304.         {% if sonata_admin is defined and sonata_admin_enabled %}
  2305.             {% set div_class = div_class ~ ' sonata-ba-field-' ~ sonata_admin.edit ~ '-' ~ sonata_admin.inline %}
  2306.         {% endif %}
  2307.         {% if errors|length > 0 %}
  2308.             {% set div_class = div_class ~ ' sonata-ba-field-error' %}
  2309.         {% endif %}
  2310.         <div class=\"{{ div_class }}\">
  2311.             {{ form_widget(form, {'horizontal': false, 'horizontal_input_wrapper_class': ''}) }} {# {'horizontal': false, 'horizontal_input_wrapper_class': ''} needed to avoid MopaBootstrapBundle messing with the DOM #}
  2312.             {% if errors|length > 0 %}
  2313.                 <div class=\"help-block sonata-ba-field-error-messages\">
  2314.                     {{ form_errors(form) }}
  2315.                 </div>
  2316.             {% endif %}
  2317.             {{ form_help(form) }}
  2318.         </div>
  2319.     </div>
  2320. {% endblock form_row %}
  2321. {% block checkbox_row -%}
  2322.     {% set show_label = false %}
  2323.     {{ block('form_row') }}
  2324. {%- endblock checkbox_row %}
  2325. {% block radio_row -%}
  2326.     {% set show_label = false %}
  2327.     {{ block('form_row') }}
  2328. {%- endblock radio_row %}
  2329. {% block sonata_type_native_collection_widget_row %}
  2330. {% apply spaceless %}
  2331.     <div class=\"sonata-collection-row\">
  2332.         {% if allow_delete %}
  2333.             <div class=\"row\">
  2334.                 <div class=\"col-xs-1\">
  2335.                     <a href=\"#\" class=\"btn btn-link sonata-collection-delete\">
  2336.                         <i class=\"fas fa-minus-circle\" aria-hidden=\"true\"></i>
  2337.                     </a>
  2338.                 </div>
  2339.                 <div class=\"col-xs-11\">
  2340.         {% endif %}
  2341.             {{ form_row(child, { label: false }) }}
  2342.         {% if allow_delete %}
  2343.                 </div>
  2344.             </div>
  2345.         {% endif %}
  2346.     </div>
  2347. {% endapply %}
  2348. {% endblock sonata_type_native_collection_widget_row %}
  2349. {% block sonata_type_native_collection_widget %}
  2350. {% apply spaceless %}
  2351.     {% if prototype is defined %}
  2352.         {% set child = prototype %}
  2353.         {% set allow_delete_backup = allow_delete %}
  2354.         {% set allow_delete = true %}
  2355.         {% set attr = attr|merge({'data-prototype': block('sonata_type_native_collection_widget_row'), 'data-prototype-name': prototype.vars.name, 'class': attr.class|default('') }) %}
  2356.         {% set allow_delete = allow_delete_backup %}
  2357.     {% endif %}
  2358.     <div {{ block('widget_container_attributes') }}>
  2359.         {{ form_errors(form) }}
  2360.         {% for child in form %}
  2361.             {{ block('sonata_type_native_collection_widget_row') }}
  2362.         {% endfor %}
  2363.         {{ form_rest(form) }}
  2364.         {% if allow_add %}
  2365.             <div><a href=\"#\" class=\"btn btn-link sonata-collection-add\"><i class=\"fas fa-plus-circle\" aria-hidden=\"true\"></i></a></div>
  2366.         {% endif %}
  2367.     </div>
  2368. {% endapply %}
  2369. {% endblock sonata_type_native_collection_widget %}
  2370. {% block sonata_type_immutable_array_widget %}
  2371.     {% apply spaceless %}
  2372.         <div {{ block('widget_container_attributes') }}>
  2373.             {{ form_errors(form) }}
  2374.             {% for key, child in form %}
  2375.                 {{ block('sonata_type_immutable_array_widget_row') }}
  2376.             {% endfor %}
  2377.             {{ form_rest(form) }}
  2378.         </div>
  2379.     {% endapply %}
  2380. {% endblock sonata_type_immutable_array_widget %}
  2381. {% block sonata_type_immutable_array_widget_row %}
  2382.     {% apply spaceless %}
  2383.         <div class=\"form-group{% if child.vars.errors|length > 0 %} has-error{% endif %}\" id=\"sonata-ba-field-container-{{ id }}-{{ key }}\">
  2384.             {{ form_label(child) }}
  2385.             {% set div_class = \"\" %}
  2386.             {% if sonata_admin.options['form_type'] == 'horizontal' %}
  2387.                 {% set div_class = 'col-sm-9' %}
  2388.             {% endif %}
  2389.             <div class=\"{{ div_class }} sonata-ba-field sonata-ba-field-{{ sonata_admin.edit }}-{{ sonata_admin.inline }}{% if child.vars.errors|length > 0 %} sonata-ba-field-error{% endif %}\">
  2390.                 {{ form_widget(child, {'horizontal': false, 'horizontal_input_wrapper_class': ''}) }} {# {'horizontal': false, 'horizontal_input_wrapper_class': ''} needed to avoid MopaBootstrapBundle messing with the DOM #}
  2391.             </div>
  2392.             {% if child.vars.errors|length > 0 %}
  2393.                 <div class=\"help-block sonata-ba-field-error-messages\">
  2394.                     {{ form_errors(child) }}
  2395.                 </div>
  2396.             {% endif %}
  2397.         </div>
  2398.     {% endapply %}
  2399. {% endblock %}
  2400. {% block sonata_type_model_autocomplete_widget %}
  2401.     {% include template %}
  2402. {% endblock sonata_type_model_autocomplete_widget %}
  2403. {% block sonata_type_choice_field_mask_widget %}
  2404.     {{ block('choice_widget') }}
  2405.     {# Taking the form name excluding ending field glue character #}
  2406.     {% set main_form_name = id|slice(0, (id|length - name|length)-1) %}
  2407.     {% if expanded %}
  2408.         {% set js_selector = '#' ~ main_form_name ~ '_' ~ name ~ ' input' %}
  2409.         {% set js_events = ['change', 'ifChecked'] %}
  2410.     {% else %}
  2411.         {% set js_selector = '#' ~ main_form_name ~ '_' ~ name %}
  2412.         {% set js_events = ['change'] %}
  2413.     {% endif %}
  2414.     <script>
  2415.         jQuery(document).ready(function() {
  2416.             var allFields = {{ all_fields|json_encode|raw }},
  2417.                 map = {{ map|json_encode|raw }},
  2418.                 showMaskChoiceEl = jQuery(\"{{ js_selector }}\");
  2419.                 {% for js_event in js_events %}
  2420.                     showMaskChoiceEl.on(\"{{ js_event }}\", function () {
  2421.                         choice_field_mask_show(jQuery(this).val());
  2422.                     });
  2423.                 {% endfor %}
  2424.             function choice_field_mask_show(val) {
  2425.                 var controlGroupIdFunc = function (field) {
  2426.                     // Most of fields are named with an underscore
  2427.                     var defaultFieldId = '#sonata-ba-field-container-{{ main_form_name }}_' + field;
  2428.                     // Some fields may be named with a dash (like keys of immutable array form type)
  2429.                     if (jQuery(defaultFieldId).length === 0) {
  2430.                         defaultFieldId = '#sonata-ba-field-container-{{ main_form_name }}-' + field;
  2431.                     }
  2432.                     // Some fields are rendered by form_widget (no container)
  2433.                     if (jQuery(defaultFieldId).length === 0) {
  2434.                         defaultFieldId = '#{{ main_form_name }}_' + field;
  2435.                     }
  2436.                     // catch select2 fields with inline: table option
  2437.                     if (jQuery(defaultFieldId).length === 0) {
  2438.                         defaultFieldId = '#{{ main_form_name }}_' + field + '_autocomplete_input';
  2439.                     }
  2440.                     return defaultFieldId;
  2441.                 };
  2442.                 jQuery.each(allFields, function (i, field) {
  2443.                     var fieldContainer = controlGroupIdFunc(field);
  2444.                     jQuery(fieldContainer).hide();
  2445.                     {% if form.parent.vars.sonata_admin.inline == 'table' %}
  2446.                         var td = jQuery(fieldContainer).parent();
  2447.                         var columnIndex = td.index();
  2448.                         var headerTh = \$(\"table thead tr th:eq(\" + columnIndex + \")\");
  2449.                         td.hide();
  2450.                         headerTh.hide();
  2451.                     {% endif %}
  2452.                     jQuery(fieldContainer).find('[required=\"required\"]').attr('data-required', 'required').removeAttr(\"required\");
  2453.                 });
  2454.                 if (map[val]) {
  2455.                     jQuery.each(map[val], function (i, field) {
  2456.                         var fieldContainer = controlGroupIdFunc(field);
  2457.                         jQuery(fieldContainer).show();
  2458.                         {% if form.parent.vars.sonata_admin.inline == 'table' %}
  2459.                             var td = jQuery(fieldContainer).parent();
  2460.                             var columnIndex = td.index();
  2461.                             var headerTh = \$(\"table thead tr th:eq(\" + columnIndex + \")\");
  2462.                             td.show();
  2463.                             headerTh.show();
  2464.                         {% endif %}
  2465.                         jQuery(fieldContainer).find('[data-required=\"required\"]').attr(\"required\", \"required\");
  2466.                     });
  2467.                 }
  2468.             }
  2469.             {% if value is empty %}
  2470.                 choice_field_mask_show(showMaskChoiceEl.val());
  2471.             {% else %}
  2472.                 choice_field_mask_show('{{ value|e('js') }}');
  2473.             {% endif %}
  2474.         });
  2475.     </script>
  2476. {% endblock %}
  2477. {% block sonata_type_choice_multiple_sortable %}
  2478.     <input type=\"hidden\" name=\"{{ full_name }}\" id=\"{{ id }}\" value=\"{{ value|join(',') }}\" />
  2479.     <script>
  2480.         jQuery(document).ready(function() {
  2481.             var options = {};
  2482.             {% block sonata_type_model_autocomplete_select2_options_js %}{% endblock %}
  2483.             Admin.setup_sortable_select2(jQuery('#{{ id }}'), {{ form.vars.choices|json_encode|raw }}, options);
  2484.         });
  2485.     </script>
  2486. {% endblock %}
  2487. {% block sonata_type_model_list_widget %}
  2488.     <div id=\"field_container_{{ id }}\" class=\"field-container\">
  2489.         <span id=\"field_widget_{{ id }}\" class=\"field-short-description\">
  2490.             {% if sonata_admin.value and sonata_admin.field_description.associationadmin.urlSafeIdentifier(sonata_admin.value) is not null %}
  2491.                 {{ render(path('sonata_admin_short_object_information', {
  2492.                     '_sonata_admin': sonata_admin.field_description.associationadmin.baseCodeRoute,
  2493.                     'objectId': sonata_admin.field_description.associationadmin.urlSafeIdentifier(sonata_admin.value),
  2494.                     'uniqid': sonata_admin.field_description.associationadmin.uniqid,
  2495.                     'linkParameters': sonata_admin.field_description.option('link_parameters', {})
  2496.                 } + (
  2497.                     sonata_admin.field_description.associationadmin.hasRequest()
  2498.                     ? sonata_admin.field_description.associationadmin.request.attributes.get('_route_params', {})
  2499.                     : {}
  2500.                 ) + app.request.query.all|default({})
  2501.                 )) }}
  2502.             {% elseif sonata_admin.field_description.option('placeholder', 'short_object_description_placeholder') %}
  2503.                 <span class=\"inner-field-short-description\">
  2504.                     {{ sonata_admin.field_description.option('placeholder', 'short_object_description_placeholder')|trans({}, 'SonataAdminBundle') }}
  2505.                 </span>
  2506.             {% endif %}
  2507.         </span>
  2508.         <span id=\"field_actions_{{ id }}\" class=\"field-actions\">
  2509.             <span class=\"btn-group\">
  2510.                 {% if sonata_admin.field_description.associationadmin.hasroute('list') and sonata_admin.field_description.associationadmin.hasAccess('list') and btn_list %}
  2511.                     <a href=\"{{ sonata_admin.field_description.associationadmin.generateUrl('list', {select: true}) }}\"
  2512.                        onclick=\"return start_field_dialog_form_list_{{ id }}(this);\"
  2513.                        class=\"btn btn-info btn-sm sonata-ba-action\"
  2514.                        {# NEXT_MAJOR: Remove the fallback on null and on btn_catalogue #}
  2515.                        title=\"{{
  2516.                            btn_translation_domain|default(null) is same as(false)
  2517.                            ? btn_list
  2518.                            : btn_list|trans({}, btn_translation_domain|default(btn_catalogue))
  2519.                        }}\"
  2520.                     >
  2521.                         <i class=\"fas fa-list\"></i>
  2522.                         {# NEXT_MAJOR: Remove the fallback on null and on btn_catalogue #}
  2523.                         {{
  2524.                             btn_translation_domain|default(null) is same as(false)
  2525.                             ? btn_list
  2526.                             : btn_list|trans({}, btn_translation_domain|default(btn_catalogue))
  2527.                         }}
  2528.                     </a>
  2529.                 {% endif %}
  2530.                 {% if sonata_admin.field_description.associationadmin.hasroute('create')
  2531.                     and sonata_admin.field_description.associationadmin.hasAccess('create')
  2532.                     and btn_add
  2533.                 %}
  2534.                     <a href=\"{{ sonata_admin.field_description.associationadmin.generateUrl('create') }}\"
  2535.                        onclick=\"return start_field_dialog_form_add_{{ id }}(this);\"
  2536.                        class=\"btn btn-success btn-sm sonata-ba-action\"
  2537.                         {# NEXT_MAJOR: Remove the fallback on null and on btn_catalogue #}
  2538.                        title=\"{{
  2539.                            btn_translation_domain|default(null) is same as(false)
  2540.                            ? btn_add
  2541.                            : btn_add|trans({}, btn_translation_domain|default(btn_catalogue))
  2542.                        }}\"
  2543.                     >
  2544.                         <i class=\"fas fa-plus-circle\"></i>
  2545.                         {# NEXT_MAJOR: Remove the fallback on null and on btn_catalogue #}
  2546.                         {{
  2547.                             btn_translation_domain|default(null) is same as(false)
  2548.                             ? btn_add
  2549.                             : btn_add|trans({}, btn_translation_domain|default(btn_catalogue))
  2550.                         }}
  2551.                     </a>
  2552.                 {% endif %}
  2553.                 {% if sonata_admin.field_description.associationadmin.hasroute('edit')
  2554.                     and sonata_admin.field_description.associationadmin.hasAccess('edit')
  2555.                     and btn_edit
  2556.                 %}
  2557.                     <a href=\"{{ sonata_admin.value == null ? '' : sonata_admin.field_description.associationadmin.generateUrl('edit', {
  2558.                         (sonata_admin.field_description.associationadmin.idParameter) : sonata_admin.field_description.associationadmin.urlSafeIdentifier(sonata_admin.value)})
  2559.                     }}\"
  2560.                        onclick=\"return start_field_dialog_form_edit_{{ id }}(this);\"
  2561.                        class=\"btn btn-warning btn-sm sonata-ba-action {% if sonata_admin.value == null %}hidden{% endif %}\"
  2562.                         {# NEXT_MAJOR: Remove the fallback on null and on btn_catalogue #}
  2563.                        title=\"{{
  2564.                            btn_translation_domain|default(null) is same as(false)
  2565.                            ? btn_edit
  2566.                            : btn_edit|trans({}, btn_translation_domain|default(btn_catalogue))
  2567.                        }}\"
  2568.                     >
  2569.                         <i class=\"fas fa-pencil-alt\"></i>
  2570.                         {# NEXT_MAJOR: Remove the fallback on null and on btn_catalogue #}
  2571.                         {{
  2572.                             btn_translation_domain|default(null) is same as(false)
  2573.                             ? btn_edit
  2574.                             : btn_edit|trans({}, btn_translation_domain|default(btn_catalogue))
  2575.                         }}
  2576.                     </a>
  2577.                 {% endif %}
  2578.             </span>
  2579.             <span class=\"btn-group\">
  2580.                 {% if btn_delete %}
  2581.                     <button
  2582.                         onclick=\"return remove_selected_element_{{ id }}(this);\"
  2583.                         class=\"btn btn-danger btn-sm sonata-ba-action\"
  2584.                         type=\"button\"
  2585.                         {# NEXT_MAJOR: Remove the fallback on null and on btn_catalogue #}
  2586.                         title=\"{{
  2587.                             btn_translation_domain|default(null) is same as(false)
  2588.                             ? btn_delete
  2589.                             : btn_delete|trans({}, btn_translation_domain|default(btn_catalogue))
  2590.                         }}\"
  2591.                     >
  2592.                         <i class=\"fas fa-minus-circle\"></i>
  2593.                         {# NEXT_MAJOR: Remove the fallback on null and on btn_catalogue #}
  2594.                         {{
  2595.                             btn_translation_domain|default(null) is same as(false)
  2596.                             ? btn_delete
  2597.                             : btn_delete|trans({}, btn_translation_domain|default(btn_catalogue))
  2598.                         }}
  2599.                     </button>
  2600.                 {% endif %}
  2601.             </span>
  2602.         </span>
  2603.         <span style=\"display: none\" >
  2604.             {# Hidden text input cannot be required, because browser will throw error \"An invalid form control with name='' is not focusable\"  #}
  2605.             {{ form_widget(form, {'required':false}) }}
  2606.         </span>
  2607.         <div class=\"modal fade\" id=\"field_dialog_{{ id }}\" role=\"dialog\" aria-labelledby=\"myModalLabel\" aria-hidden=\"true\">
  2608.             <div class=\"modal-dialog modal-lg\">
  2609.                 <div class=\"modal-content\">
  2610.                     <div class=\"modal-header\">
  2611.                         <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-hidden=\"true\">&times;</button>
  2612.                         <h4 class=\"modal-title\"></h4>
  2613.                     </div>
  2614.                     <div class=\"modal-body\">
  2615.                     </div>
  2616.                 </div>
  2617.             </div>
  2618.         </div>
  2619.     </div>
  2620.     {% include '@SonataAdmin/CRUD/Association/edit_many_script.html.twig' %}
  2621. {% endblock %}
  2622. {% block sonata_type_template_widget %}
  2623.     {% include template with parameters only %}
  2624. {% endblock sonata_type_template_widget %}
  2625. ""@!SonataAdmin/Form/form_admin_fields.html.twig""/var/www/vhosts/perseo.comerziawatches.com/httpdocs/perseo/httpdocs/vendor/sonata-project/admin-bundle/src/Resources/views/Form/form_admin_fields.html.twig");
  2626.     }
  2627. }