var/cache/dev/twig/8d/8dcb8eaaed1ca860cabb6a4110b6db47.php line 430

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @SonataAdmin/CRUD/base_edit_form.html.twig */
  14. class __TwigTemplate_95e1b7a27e5e7eeb5f109e7487b23872 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.             'form' => [$this'block_form'],
  25.             'sonata_form_action_url' => [$this'block_sonata_form_action_url'],
  26.             'sonata_form_attributes' => [$this'block_sonata_form_attributes'],
  27.             'sonata_pre_fieldsets' => [$this'block_sonata_pre_fieldsets'],
  28.             'sonata_tab_content' => [$this'block_sonata_tab_content'],
  29.             'sonata_post_fieldsets' => [$this'block_sonata_post_fieldsets'],
  30.             'formactions' => [$this'block_formactions'],
  31.             'sonata_form_actions' => [$this'block_sonata_form_actions'],
  32.             'btn_delete' => [$this'block_btn_delete'],
  33.             'btn_create' => [$this'block_btn_create'],
  34.             'btn_preview' => [$this'block_btn_preview'],
  35.             'btn_update_and_edit' => [$this'block_btn_update_and_edit'],
  36.             'btn_update_and_list' => [$this'block_btn_update_and_list'],
  37.             'btn_acl' => [$this'block_btn_acl'],
  38.             'btn_create_and_edit' => [$this'block_btn_create_and_edit'],
  39.             'btn_create_and_list' => [$this'block_btn_create_and_list'],
  40.             'btn_create_and_create' => [$this'block_btn_create_and_create'],
  41.         ];
  42.     }
  43.     protected function doDisplay(array $context, array $blocks = [])
  44.     {
  45.         $macros $this->macros;
  46.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  47.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SonataAdmin/CRUD/base_edit_form.html.twig"));
  48.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SonataAdmin/CRUD/base_edit_form.html.twig"));
  50.         // line 1
  51.         $this->displayBlock('form'$context$blocks);
  52.         
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  54.         
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  56.     }
  57.     public function block_form($context, array $blocks = [])
  58.     {
  59.         $macros $this->macros;
  60.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  61.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""form"));
  62.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  63.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""form"));
  64.         // line 2
  65.         echo "    ";
  66.         echo $this->env->getRuntime('Sonata\BlockBundle\Templating\Helper\BlockHelper')->renderEvent("sonata.admin.edit.form.top", ["admin" => (isset($context["admin"]) || array_key_exists("admin"$context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.'2$this->source); })()), "object" => (isset($context["object"]) || array_key_exists("object"$context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.'2$this->source); })())]);
  67.         echo "
  68.     ";
  69.         // line 4
  70.         $context["url"] = (( !(null === (isset($context["objectId"]) || array_key_exists("objectId"$context) ? $context["objectId"] : (function () { throw new RuntimeError('Variable "objectId" does not exist.'4$this->source); })()))) ? ("edit") : ("create"));
  71.         // line 5
  72.         echo "
  73.     ";
  74.         // line 6
  75.         if ( !twig_get_attribute($this->env$this->source, (isset($context["admin"]) || array_key_exists("admin"$context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.'6$this->source); })()), "hasRoute", [(isset($context["url"]) || array_key_exists("url"$context) ? $context["url"] : (function () { throw new RuntimeError('Variable "url" does not exist.'6$this->source); })())], "method"falsefalsefalse6)) {
  76.             // line 7
  77.             echo "        <div>
  78.             ";
  79.             // line 8
  80.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("form_not_available", [], "SonataAdminBundle"), "html"nulltrue);
  81.             echo "
  82.         </div>
  83.     ";
  84.         } else {
  85.             // line 11
  86.             echo "        <form
  87.               ";
  88.             // line 12
  89.             if ((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.'12$this->source); })()), "getOption", ["form_type"], "method"falsefalsefalse12) == "horizontal")) {
  90.                 echo "class=\"form-horizontal\"";
  91.             }
  92.             // line 13
  93.             echo "              role=\"form\"
  94.               action=\"";
  95.             // line 14
  96.             $this->displayBlock('sonata_form_action_url'$context$blocks);
  97.             echo "\"
  98.               ";
  99.             // line 15
  100.             if (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.'15$this->source); })()), "vars", [], "any"falsefalsefalse15), "multipart", [], "any"falsefalsefalse15)) {
  101.                 echo " enctype=\"multipart/form-data\"";
  102.             }
  103.             // line 16
  104.             echo "              method=\"POST\"
  105.               ";
  106.             // line 17
  107.             if ( !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.'17$this->source); })()), "getOption", ["html5_validate"], "method"falsefalsefalse17)) {
  108.                 echo "novalidate=\"novalidate\"";
  109.             }
  110.             // line 18
  111.             echo "              ";
  112.             $this->displayBlock('sonata_form_attributes'$context$blocks);
  113.             // line 19
  114.             echo "              >
  115.             ";
  116.             // line 21
  117.             echo twig_include($this->env$context"@SonataAdmin/Helper/render_form_dismissable_errors.html.twig");
  118.             echo "
  119.             ";
  120.             // line 23
  121.             $this->displayBlock('sonata_pre_fieldsets'$context$blocks);
  122.             // line 26
  123.             echo "
  124.             ";
  125.             // line 27
  126.             $this->displayBlock('sonata_tab_content'$context$blocks);
  127.             // line 82
  128.             echo "
  129.             ";
  130.             // line 83
  131.             $this->displayBlock('sonata_post_fieldsets'$context$blocks);
  132.             // line 86
  133.             echo "
  134.             ";
  135.             // line 87
  136.             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.'87$this->source); })()), 'rest');
  137.             echo "
  138.             ";
  139.             // line 89
  140.             $this->displayBlock('formactions'$context$blocks);
  141.             // line 156
  142.             echo "        </form>
  143.     ";
  144.         }
  145.         // line 158
  146.         echo "
  147.     ";
  148.         // line 159
  149.         echo $this->env->getRuntime('Sonata\BlockBundle\Templating\Helper\BlockHelper')->renderEvent("sonata.admin.edit.form.bottom", ["admin" => (isset($context["admin"]) || array_key_exists("admin"$context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.'159$this->source); })()), "object" => (isset($context["object"]) || array_key_exists("object"$context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.'159$this->source); })())]);
  150.         echo "
  151. ";
  152.         
  153.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  154.         
  155.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  156.     }
  157.     // line 14
  158.     public function block_sonata_form_action_url($context, array $blocks = [])
  159.     {
  160.         $macros $this->macros;
  161.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  162.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_form_action_url"));
  163.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  164.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_form_action_url"));
  165.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["admin"]) || array_key_exists("admin"$context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.'14$this->source); })()), "generateUrl", [(isset($context["url"]) || array_key_exists("url"$context) ? $context["url"] : (function () { throw new RuntimeError('Variable "url" does not exist.'14$this->source); })()), [twig_get_attribute($this->env$this->source, (isset($context["admin"]) || array_key_exists("admin"$context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.'14$this->source); })()), "idParameter", [], "any"falsefalsefalse14) => (isset($context["objectId"]) || array_key_exists("objectId"$context) ? $context["objectId"] : (function () { throw new RuntimeError('Variable "objectId" does not exist.'14$this->source); })()), "uniqid" => twig_get_attribute($this->env$this->source, (isset($context["admin"]) || array_key_exists("admin"$context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.'14$this->source); })()), "uniqid", [], "any"falsefalsefalse14), "subclass" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'14$this->source); })()), "request", [], "any"falsefalsefalse14), "get", ["subclass"], "method"falsefalsefalse14)]], "method"falsefalsefalse14), "html"nulltrue);
  166.         
  167.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  168.         
  169.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  170.     }
  171.     // line 18
  172.     public function block_sonata_form_attributes($context, array $blocks = [])
  173.     {
  174.         $macros $this->macros;
  175.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  176.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_form_attributes"));
  177.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  178.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_form_attributes"));
  179.         
  180.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  181.         
  182.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  183.     }
  184.     // line 23
  185.     public function block_sonata_pre_fieldsets($context, array $blocks = [])
  186.     {
  187.         $macros $this->macros;
  188.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  189.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_pre_fieldsets"));
  190.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  191.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_pre_fieldsets"));
  192.         // line 24
  193.         echo "                <div class=\"row\">
  194.             ";
  195.         
  196.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  197.         
  198.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  199.     }
  200.     // line 27
  201.     public function block_sonata_tab_content($context, array $blocks = [])
  202.     {
  203.         $macros $this->macros;
  204.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  205.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_tab_content"));
  206.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  207.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_tab_content"));
  208.         // line 28
  209.         echo "                ";
  210.         $macros["form_helper"] = $this->loadTemplate("@SonataAdmin/CRUD/base_edit_form_macro.html.twig""@SonataAdmin/CRUD/base_edit_form.html.twig"28)->unwrap();
  211.         // line 29
  212.         echo "                ";
  213.         $context["formtabs"] = twig_get_attribute($this->env$this->source, (isset($context["admin"]) || array_key_exists("admin"$context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.'29$this->source); })()), "getformtabs", [], "method"falsefalsefalse29);
  214.         // line 30
  215.         echo "                ";
  216.         $context["has_tab"] = (((twig_length_filter($this->env, (isset($context["formtabs"]) || array_key_exists("formtabs"$context) ? $context["formtabs"] : (function () { throw new RuntimeError('Variable "formtabs" does not exist.'30$this->source); })())) == 1) && (twig_get_attribute($this->env$this->sourcetwig_get_array_keys_filter((isset($context["formtabs"]) || array_key_exists("formtabs"$context) ? $context["formtabs"] : (function () { throw new RuntimeError('Variable "formtabs" does not exist.'30$this->source); })())), 0, [], "array"falsefalsefalse30) != "default")) || (twig_length_filter($this->env, (isset($context["formtabs"]) || array_key_exists("formtabs"$context) ? $context["formtabs"] : (function () { throw new RuntimeError('Variable "formtabs" does not exist.'30$this->source); })())) > 1));
  217.         // line 31
  218.         echo "
  219.                 <div class=\"col-md-12\">
  220.                     ";
  221.         // line 33
  222.         if ((isset($context["has_tab"]) || array_key_exists("has_tab"$context) ? $context["has_tab"] : (function () { throw new RuntimeError('Variable "has_tab" does not exist.'33$this->source); })())) {
  223.             // line 34
  224.             echo "                        ";
  225.             $context["tab_prefix"] = ((("tab_" twig_get_attribute($this->env$this->source, (isset($context["admin"]) || array_key_exists("admin"$context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.'34$this->source); })()), "uniqid", [], "any"falsefalsefalse34)) . "_") . twig_random($this->env));
  226.             // line 35
  227.             echo "                        ";
  228.             $context["tab_query_index"] = twig_last($this->envtwig_split_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'35$this->source); })()), "request", [], "any"falsefalsefalse35), "query", [], "any"falsefalsefalse35), "get", ["_tab"0], "method"falsefalsefalse35), "_"));
  229.             // line 36
  230.             echo "                        <div class=\"nav-tabs-custom\">
  231.                             <ul class=\"nav nav-tabs\" role=\"tablist\">
  232.                                 ";
  233.             // line 38
  234.             $context['_parent'] = $context;
  235.             $context['_seq'] = twig_ensure_traversable((isset($context["formtabs"]) || array_key_exists("formtabs"$context) ? $context["formtabs"] : (function () { throw new RuntimeError('Variable "formtabs" does not exist.'38$this->source); })()));
  236.             $context['loop'] = [
  237.               'parent' => $context['_parent'],
  238.               'index0' => 0,
  239.               'index'  => 1,
  240.               'first'  => true,
  241.             ];
  242.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  243.                 $length count($context['_seq']);
  244.                 $context['loop']['revindex0'] = $length 1;
  245.                 $context['loop']['revindex'] = $length;
  246.                 $context['loop']['length'] = $length;
  247.                 $context['loop']['last'] = === $length;
  248.             }
  249.             foreach ($context['_seq'] as $context["name"] => $context["form_tab"]) {
  250.                 // line 39
  251.                 echo "                                    ";
  252.                 $context["_tab_name"] = (((isset($context["tab_prefix"]) || array_key_exists("tab_prefix"$context) ? $context["tab_prefix"] : (function () { throw new RuntimeError('Variable "tab_prefix" does not exist.'39$this->source); })()) . "_") . twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse39));
  253.                 // line 40
  254.                 echo "                                    <li";
  255.                 if ((( !twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'40$this->source); })()), "request", [], "any"falsefalsefalse40), "query", [], "any"falsefalsefalse40), "has", ["_tab"], "method"falsefalsefalse40) && (twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse40) == 1)) || ((isset($context["tab_query_index"]) || array_key_exists("tab_query_index"$context) ? $context["tab_query_index"] : (function () { throw new RuntimeError('Variable "tab_query_index" does not exist.'40$this->source); })()) == twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse40)))) {
  256.                     echo " class=\"active\"";
  257.                 }
  258.                 echo ">
  259.                                         <a href=\"#";
  260.                 // line 41
  261.                 echo twig_escape_filter($this->env, (isset($context["_tab_name"]) || array_key_exists("_tab_name"$context) ? $context["_tab_name"] : (function () { throw new RuntimeError('Variable "_tab_name" does not exist.'41$this->source); })()), "html"nulltrue);
  262.                 echo "\" class=\"changer-tab\" aria-controls=\"";
  263.                 echo twig_escape_filter($this->env, (isset($context["_tab_name"]) || array_key_exists("_tab_name"$context) ? $context["_tab_name"] : (function () { throw new RuntimeError('Variable "_tab_name" does not exist.'41$this->source); })()), "html"nulltrue);
  264.                 echo "\" data-toggle=\"tab\">
  265.                                             <i class=\"fas fa-exclamation-circle has-errors hide\" aria-hidden=\"true\"></i>
  266.                                             ";
  267.                 // line 43
  268.                 if ((twig_get_attribute($this->env$this->source$context["form_tab"], "translation_domain", [], "any"truetruefalse43) && (twig_get_attribute($this->env$this->source$context["form_tab"], "translation_domain", [], "any"falsefalsefalse43) === false))) {
  269.                     // line 44
  270.                     echo "                                                ";
  271.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["form_tab"], "label", [], "any"falsefalsefalse44), "html"nulltrue);
  272.                     echo "
  273.                                             ";
  274.                 } else {
  275.                     // line 46
  276.                     echo "                                                ";
  277.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->source$context["form_tab"], "label", [], "any"falsefalsefalse46), [], (((twig_get_attribute($this->env$this->source$context["form_tab"], "translation_domain", [], "any"truetruefalse46) &&  !(null === twig_get_attribute($this->env$this->source$context["form_tab"], "translation_domain", [], "any"falsefalsefalse46)))) ? (twig_get_attribute($this->env$this->source$context["form_tab"], "translation_domain", [], "any"falsefalsefalse46)) : (twig_get_attribute($this->env$this->source, (isset($context["admin"]) || array_key_exists("admin"$context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.'46$this->source); })()), "translationDomain", [], "any"falsefalsefalse46)))), "html"nulltrue);
  278.                     echo "
  279.                                             ";
  280.                 }
  281.                 // line 48
  282.                 echo "                                        </a>
  283.                                     </li>
  284.                                 ";
  285.                 ++$context['loop']['index0'];
  286.                 ++$context['loop']['index'];
  287.                 $context['loop']['first'] = false;
  288.                 if (isset($context['loop']['length'])) {
  289.                     --$context['loop']['revindex0'];
  290.                     --$context['loop']['revindex'];
  291.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  292.                 }
  293.             }
  294.             $_parent $context['_parent'];
  295.             unset($context['_seq'], $context['_iterated'], $context['name'], $context['form_tab'], $context['_parent'], $context['loop']);
  296.             $context array_intersect_key($context$_parent) + $_parent;
  297.             // line 51
  298.             echo "                            </ul>
  299.                             <div class=\"tab-content\">
  300.                                 ";
  301.             // line 53
  302.             $context['_parent'] = $context;
  303.             $context['_seq'] = twig_ensure_traversable((isset($context["formtabs"]) || array_key_exists("formtabs"$context) ? $context["formtabs"] : (function () { throw new RuntimeError('Variable "formtabs" does not exist.'53$this->source); })()));
  304.             $context['loop'] = [
  305.               'parent' => $context['_parent'],
  306.               'index0' => 0,
  307.               'index'  => 1,
  308.               'first'  => true,
  309.             ];
  310.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  311.                 $length count($context['_seq']);
  312.                 $context['loop']['revindex0'] = $length 1;
  313.                 $context['loop']['revindex'] = $length;
  314.                 $context['loop']['length'] = $length;
  315.                 $context['loop']['last'] = === $length;
  316.             }
  317.             foreach ($context['_seq'] as $context["code"] => $context["form_tab"]) {
  318.                 // line 54
  319.                 echo "                                    ";
  320.                 $context["_tab_name"] = (((isset($context["tab_prefix"]) || array_key_exists("tab_prefix"$context) ? $context["tab_prefix"] : (function () { throw new RuntimeError('Variable "tab_prefix" does not exist.'54$this->source); })()) . "_") . twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse54));
  321.                 // line 55
  322.                 echo "                                    <div
  323.                                         class=\"tab-pane fade";
  324.                 // line 56
  325.                 if ((( !twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'56$this->source); })()), "request", [], "any"falsefalsefalse56), "query", [], "any"falsefalsefalse56), "has", ["_tab"], "method"falsefalsefalse56) && twig_get_attribute($this->env$this->source$context["loop"], "first", [], "any"falsefalsefalse56)) || ((isset($context["tab_query_index"]) || array_key_exists("tab_query_index"$context) ? $context["tab_query_index"] : (function () { throw new RuntimeError('Variable "tab_query_index" does not exist.'56$this->source); })()) == twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse56)))) {
  326.                     echo " in active";
  327.                 }
  328.                 echo "\"
  329.                                         id=\"";
  330.                 // line 57
  331.                 echo twig_escape_filter($this->env, (isset($context["_tab_name"]) || array_key_exists("_tab_name"$context) ? $context["_tab_name"] : (function () { throw new RuntimeError('Variable "_tab_name" does not exist.'57$this->source); })()), "html"nulltrue);
  332.                 echo "\"
  333.                                     >
  334.                                         <div class=\"box-body  container-fluid\">
  335.                                             <div class=\"sonata-ba-collapsed-fields\">
  336.                                                 ";
  337.                 // line 61
  338.                 if ((twig_get_attribute($this->env$this->source$context["form_tab"], "description", [], "any"falsefalsefalse61) != false)) {
  339.                     // line 62
  340.                     echo "                                                    ";
  341.                     if ((twig_get_attribute($this->env$this->source$context["form_tab"], "translation_domain", [], "any"truetruefalse62) && (twig_get_attribute($this->env$this->source$context["form_tab"], "translation_domain", [], "any"falsefalsefalse62) === false))) {
  342.                         // line 63
  343.                         echo "                                                        <p>";
  344.                         echo twig_get_attribute($this->env$this->source$context["form_tab"], "description", [], "any"falsefalsefalse63);
  345.                         echo "</p>
  346.                                                     ";
  347.                     } else {
  348.                         // line 65
  349.                         echo "                                                        <p>";
  350.                         echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->source$context["form_tab"], "description", [], "any"falsefalsefalse65), [], (((twig_get_attribute($this->env$this->source$context["form_tab"], "translation_domain", [], "any"truetruefalse65) &&  !(null === twig_get_attribute($this->env$this->source$context["form_tab"], "translation_domain", [], "any"falsefalsefalse65)))) ? (twig_get_attribute($this->env$this->source$context["form_tab"], "translation_domain", [], "any"falsefalsefalse65)) : (twig_get_attribute($this->env$this->source, (isset($context["admin"]) || array_key_exists("admin"$context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.'65$this->source); })()), "translationDomain", [], "any"falsefalsefalse65))));
  351.                         echo "</p>
  352.                                                     ";
  353.                     }
  354.                     // line 67
  355.                     echo "                                                ";
  356.                 }
  357.                 // line 68
  358.                 echo "
  359.                                                 ";
  360.                 // line 69
  361.                 echo twig_call_macro($macros["form_helper"], "macro_render_groups", [(isset($context["admin"]) || array_key_exists("admin"$context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.'69$this->source); })()), (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'69$this->source); })()), twig_get_attribute($this->env$this->source$context["form_tab"], "groups", [], "array"falsefalsefalse69), (isset($context["has_tab"]) || array_key_exists("has_tab"$context) ? $context["has_tab"] : (function () { throw new RuntimeError('Variable "has_tab" does not exist.'69$this->source); })())], 69$context$this->getSourceContext());
  362.                 echo "
  363.                                             </div>
  364.                                         </div>
  365.                                     </div>
  366.                                 ";
  367.                 ++$context['loop']['index0'];
  368.                 ++$context['loop']['index'];
  369.                 $context['loop']['first'] = false;
  370.                 if (isset($context['loop']['length'])) {
  371.                     --$context['loop']['revindex0'];
  372.                     --$context['loop']['revindex'];
  373.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  374.                 }
  375.             }
  376.             $_parent $context['_parent'];
  377.             unset($context['_seq'], $context['_iterated'], $context['code'], $context['form_tab'], $context['_parent'], $context['loop']);
  378.             $context array_intersect_key($context$_parent) + $_parent;
  379.             // line 74
  380.             echo "                            </div>
  381.                             <input type=\"hidden\" name=\"_tab\" value=\"";
  382.             // line 75
  383.             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["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'75$this->source); })()), "request", [], "any"falsefalsefalse75), "query", [], "any"falsefalsefalse75), "get", ["_tab"], "method"falsefalsefalse75), "html"nulltrue);
  384.             echo "\">
  385.                         </div>
  386.                     ";
  387.         } elseif (twig_get_attribute($this->env$this->source,         // line 77
  388. ($context["formtabs"] ?? null), "default", [], "array"truetruefalse77)) {
  389.             // line 78
  390.             echo "                        ";
  391.             echo twig_call_macro($macros["form_helper"], "macro_render_groups", [(isset($context["admin"]) || array_key_exists("admin"$context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.'78$this->source); })()), (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'78$this->source); })()), twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["formtabs"]) || array_key_exists("formtabs"$context) ? $context["formtabs"] : (function () { throw new RuntimeError('Variable "formtabs" does not exist.'78$this->source); })()), "default", [], "array"falsefalsefalse78), "groups", [], "any"falsefalsefalse78), (isset($context["has_tab"]) || array_key_exists("has_tab"$context) ? $context["has_tab"] : (function () { throw new RuntimeError('Variable "has_tab" does not exist.'78$this->source); })())], 78$context$this->getSourceContext());
  392.             echo "
  393.                     ";
  394.         }
  395.         // line 80
  396.         echo "                </div>
  397.             ";
  398.         
  399.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  400.         
  401.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  402.     }
  403.     // line 83
  404.     public function block_sonata_post_fieldsets($context, array $blocks = [])
  405.     {
  406.         $macros $this->macros;
  407.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  408.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_post_fieldsets"));
  409.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  410.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_post_fieldsets"));
  411.         // line 84
  412.         echo "                </div>
  413.             ";
  414.         
  415.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  416.         
  417.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  418.     }
  419.     // line 89
  420.     public function block_formactions($context, array $blocks = [])
  421.     {
  422.         $macros $this->macros;
  423.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  424.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""formactions"));
  425.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  426.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""formactions"));
  427.         // line 90
  428.         echo "                <div class=\"sonata-ba-form-actions well well-small form-actions\">
  429.                 ";
  430.         // line 91
  431.         $this->displayBlock('sonata_form_actions'$context$blocks);
  432.         // line 154
  433.         echo "                </div>
  434.             ";
  435.         
  436.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  437.         
  438.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  439.     }
  440.     // line 91
  441.     public function block_sonata_form_actions($context, array $blocks = [])
  442.     {
  443.         $macros $this->macros;
  444.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  445.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_form_actions"));
  446.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  447.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_form_actions"));
  448.         // line 92
  449.         echo "                    ";
  450.         if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'92$this->source); })()), "request", [], "any"falsefalsefalse92), "isxmlhttprequest", [], "any"falsefalsefalse92)) {
  451.             // line 93
  452.             echo "                        ";
  453.             if ( !(null === (isset($context["objectId"]) || array_key_exists("objectId"$context) ? $context["objectId"] : (function () { throw new RuntimeError('Variable "objectId" does not exist.'93$this->source); })()))) {
  454.                 // line 94
  455.                 echo "                            <button type=\"submit\" class=\"btn btn-success\" name=\"btn_update\"><i class=\"fas fa-save\" aria-hidden=\"true\"></i> ";
  456.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("btn_update", [], "SonataAdminBundle"), "html"nulltrue);
  457.                 echo "</button>
  458.                             ";
  459.                 // line 95
  460.                 if ((twig_get_attribute($this->env$this->source, (isset($context["admin"]) || array_key_exists("admin"$context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.'95$this->source); })()), "hasRoute", ["delete"], "method"falsefalsefalse95) && twig_get_attribute($this->env$this->source, (isset($context["admin"]) || array_key_exists("admin"$context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.'95$this->source); })()), "hasAccess", ["delete", (isset($context["object"]) || array_key_exists("object"$context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.'95$this->source); })())], "method"falsefalsefalse95))) {
  461.                     // line 96
  462.                     echo "                                ";
  463.                     $this->displayBlock('btn_delete'$context$blocks);
  464.                     // line 102
  465.                     echo "                            ";
  466.                 }
  467.                 // line 103
  468.                 echo "                        ";
  469.             } else {
  470.                 // line 104
  471.                 echo "                            ";
  472.                 $this->displayBlock('btn_create'$context$blocks);
  473.                 // line 107
  474.                 echo "                        ";
  475.             }
  476.             // line 108
  477.             echo "                    ";
  478.         } else {
  479.             // line 109
  480.             echo "                        ";
  481.             if (twig_get_attribute($this->env$this->source, (isset($context["admin"]) || array_key_exists("admin"$context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.'109$this->source); })()), "supportsPreviewMode", [], "any"falsefalsefalse109)) {
  482.                 // line 110
  483.                 echo "                            ";
  484.                 $this->displayBlock('btn_preview'$context$blocks);
  485.                 // line 116
  486.                 echo "                        ";
  487.             }
  488.             // line 117
  489.             echo "                        ";
  490.             if ( !(null === (isset($context["objectId"]) || array_key_exists("objectId"$context) ? $context["objectId"] : (function () { throw new RuntimeError('Variable "objectId" does not exist.'117$this->source); })()))) {
  491.                 // line 118
  492.                 echo "                            ";
  493.                 $this->displayBlock('btn_update_and_edit'$context$blocks);
  494.                 // line 121
  495.                 echo "
  496.                             ";
  497.                 // line 122
  498.                 if ((twig_get_attribute($this->env$this->source, (isset($context["admin"]) || array_key_exists("admin"$context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.'122$this->source); })()), "hasRoute", ["list"], "method"falsefalsefalse122) && twig_get_attribute($this->env$this->source, (isset($context["admin"]) || array_key_exists("admin"$context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.'122$this->source); })()), "hasAccess", ["list"], "method"falsefalsefalse122))) {
  499.                     // line 123
  500.                     echo "                                ";
  501.                     $this->displayBlock('btn_update_and_list'$context$blocks);
  502.                     // line 126
  503.                     echo "                            ";
  504.                 }
  505.                 // line 127
  506.                 echo "
  507.                             ";
  508.                 // line 128
  509.                 if ((twig_get_attribute($this->env$this->source, (isset($context["admin"]) || array_key_exists("admin"$context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.'128$this->source); })()), "hasRoute", ["delete"], "method"falsefalsefalse128) && twig_get_attribute($this->env$this->source, (isset($context["admin"]) || array_key_exists("admin"$context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.'128$this->source); })()), "hasAccess", ["delete", (isset($context["object"]) || array_key_exists("object"$context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.'128$this->source); })())], "method"falsefalsefalse128))) {
  510.                     // line 129
  511.                     echo "                                ";
  512.                     $this->displayBlock("btn_delete"$context$blocks);
  513.                     echo "
  514.                             ";
  515.                 }
  516.                 // line 131
  517.                 echo "
  518.                             ";
  519.                 // line 132
  520.                 if (((twig_get_attribute($this->env$this->source, (isset($context["admin"]) || array_key_exists("admin"$context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.'132$this->source); })()), "isAclEnabled", [], "method"falsefalsefalse132) && twig_get_attribute($this->env$this->source, (isset($context["admin"]) || array_key_exists("admin"$context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.'132$this->source); })()), "hasRoute", ["acl"], "method"falsefalsefalse132)) && twig_get_attribute($this->env$this->source, (isset($context["admin"]) || array_key_exists("admin"$context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.'132$this->source); })()), "hasAccess", ["acl", (isset($context["object"]) || array_key_exists("object"$context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.'132$this->source); })())], "method"falsefalsefalse132))) {
  521.                     // line 133
  522.                     echo "                                ";
  523.                     $this->displayBlock('btn_acl'$context$blocks);
  524.                     // line 136
  525.                     echo "                            ";
  526.                 }
  527.                 // line 137
  528.                 echo "                        ";
  529.             } else {
  530.                 // line 138
  531.                 echo "                            ";
  532.                 if ((twig_get_attribute($this->env$this->source, (isset($context["admin"]) || array_key_exists("admin"$context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.'138$this->source); })()), "hasroute", ["edit"], "method"falsefalsefalse138) && twig_get_attribute($this->env$this->source, (isset($context["admin"]) || array_key_exists("admin"$context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.'138$this->source); })()), "hasAccess", ["edit"], "method"falsefalsefalse138))) {
  533.                     // line 139
  534.                     echo "                                ";
  535.                     $this->displayBlock('btn_create_and_edit'$context$blocks);
  536.                     // line 142
  537.                     echo "                            ";
  538.                 }
  539.                 // line 143
  540.                 echo "                            ";
  541.                 if ((twig_get_attribute($this->env$this->source, (isset($context["admin"]) || array_key_exists("admin"$context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.'143$this->source); })()), "hasroute", ["list"], "method"falsefalsefalse143) && twig_get_attribute($this->env$this->source, (isset($context["admin"]) || array_key_exists("admin"$context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.'143$this->source); })()), "hasAccess", ["list"], "method"falsefalsefalse143))) {
  542.                     // line 144
  543.                     echo "                                ";
  544.                     $this->displayBlock('btn_create_and_list'$context$blocks);
  545.                     // line 147
  546.                     echo "                            ";
  547.                 }
  548.                 // line 148
  549.                 echo "                            ";
  550.                 $this->displayBlock('btn_create_and_create'$context$blocks);
  551.                 // line 151
  552.                 echo "                        ";
  553.             }
  554.             // line 152
  555.             echo "                    ";
  556.         }
  557.         // line 153
  558.         echo "                ";
  559.         
  560.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  561.         
  562.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  563.     }
  564.     // line 96
  565.     public function block_btn_delete($context, array $blocks = [])
  566.     {
  567.         $macros $this->macros;
  568.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  569.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""btn_delete"));
  570.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  571.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""btn_delete"));
  572.         // line 97
  573.         echo "                                    ";
  574.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("delete_or", [], "SonataAdminBundle"), "html"nulltrue);
  575.         echo "
  576.                                     <a class=\"btn btn-danger\" href=\"";
  577.         // line 98
  578.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["admin"]) || array_key_exists("admin"$context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.'98$this->source); })()), "generateObjectUrl", ["delete", (isset($context["object"]) || array_key_exists("object"$context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.'98$this->source); })())], "method"falsefalsefalse98), "html"nulltrue);
  579.         echo "\">
  580.                                         <i class=\"fas fa-minus-circle\" aria-hidden=\"true\"></i> ";
  581.         // line 99
  582.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("link_delete", [], "SonataAdminBundle"), "html"nulltrue);
  583.         echo "
  584.                                     </a>
  585.                                 ";
  586.         
  587.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  588.         
  589.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  590.     }
  591.     // line 104
  592.     public function block_btn_create($context, array $blocks = [])
  593.     {
  594.         $macros $this->macros;
  595.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  596.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""btn_create"));
  597.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  598.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""btn_create"));
  599.         // line 105
  600.         echo "                                <button type=\"submit\" class=\"btn btn-success\" name=\"btn_create\"><i class=\"fas fa-plus-circle\" aria-hidden=\"true\"></i> ";
  601.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("btn_create", [], "SonataAdminBundle"), "html"nulltrue);
  602.         echo "</button>
  603.                             ";
  604.         
  605.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  606.         
  607.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  608.     }
  609.     // line 110
  610.     public function block_btn_preview($context, array $blocks = [])
  611.     {
  612.         $macros $this->macros;
  613.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  614.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""btn_preview"));
  615.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  616.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""btn_preview"));
  617.         // line 111
  618.         echo "                                <button class=\"btn btn-info persist-preview\" name=\"btn_preview\" type=\"submit\">
  619.                                     <i class=\"fas fa-eye\" aria-hidden=\"true\"></i>
  620.                                     ";
  621.         // line 113
  622.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("btn_preview", [], "SonataAdminBundle"), "html"nulltrue);
  623.         echo "
  624.                                 </button>
  625.                             ";
  626.         
  627.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  628.         
  629.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  630.     }
  631.     // line 118
  632.     public function block_btn_update_and_edit($context, array $blocks = [])
  633.     {
  634.         $macros $this->macros;
  635.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  636.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""btn_update_and_edit"));
  637.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  638.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""btn_update_and_edit"));
  639.         // line 119
  640.         echo "                                <button type=\"submit\" class=\"btn btn-success\" name=\"btn_update_and_edit\"><i class=\"fas fa-save\" aria-hidden=\"true\"></i> ";
  641.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("btn_update_and_edit_again", [], "SonataAdminBundle"), "html"nulltrue);
  642.         echo "</button>
  643.                             ";
  644.         
  645.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  646.         
  647.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  648.     }
  649.     // line 123
  650.     public function block_btn_update_and_list($context, array $blocks = [])
  651.     {
  652.         $macros $this->macros;
  653.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  654.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""btn_update_and_list"));
  655.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  656.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""btn_update_and_list"));
  657.         // line 124
  658.         echo "                                    <button type=\"submit\" class=\"btn btn-success\" name=\"btn_update_and_list\"><i class=\"fas fa-save\"></i> <i class=\"fas fa-list\" aria-hidden=\"true\"></i> ";
  659.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("btn_update_and_return_to_list", [], "SonataAdminBundle"), "html"nulltrue);
  660.         echo "</button>
  661.                                 ";
  662.         
  663.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  664.         
  665.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  666.     }
  667.     // line 133
  668.     public function block_btn_acl($context, array $blocks = [])
  669.     {
  670.         $macros $this->macros;
  671.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  672.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""btn_acl"));
  673.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  674.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""btn_acl"));
  675.         // line 134
  676.         echo "                                    <a class=\"btn btn-info\" href=\"";
  677.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["admin"]) || array_key_exists("admin"$context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.'134$this->source); })()), "generateObjectUrl", ["acl", (isset($context["object"]) || array_key_exists("object"$context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.'134$this->source); })())], "method"falsefalsefalse134), "html"nulltrue);
  678.         echo "\"><i class=\"fas fa-users\" aria-hidden=\"true\"></i> ";
  679.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("link_edit_acl", [], "SonataAdminBundle"), "html"nulltrue);
  680.         echo "</a>
  681.                                 ";
  682.         
  683.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  684.         
  685.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  686.     }
  687.     // line 139
  688.     public function block_btn_create_and_edit($context, array $blocks = [])
  689.     {
  690.         $macros $this->macros;
  691.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  692.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""btn_create_and_edit"));
  693.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  694.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""btn_create_and_edit"));
  695.         // line 140
  696.         echo "                                    <button class=\"btn btn-success\" type=\"submit\" name=\"btn_create_and_edit\"><i class=\"fas fa-save\" aria-hidden=\"true\"></i> ";
  697.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("btn_create_and_edit_again", [], "SonataAdminBundle"), "html"nulltrue);
  698.         echo "</button>
  699.                                 ";
  700.         
  701.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  702.         
  703.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  704.     }
  705.     // line 144
  706.     public function block_btn_create_and_list($context, array $blocks = [])
  707.     {
  708.         $macros $this->macros;
  709.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  710.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""btn_create_and_list"));
  711.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  712.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""btn_create_and_list"));
  713.         // line 145
  714.         echo "                                    <button type=\"submit\" class=\"btn btn-success\" name=\"btn_create_and_list\"><i class=\"fas fa-save\"></i> <i class=\"fas fa-list\" aria-hidden=\"true\"></i> ";
  715.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("btn_create_and_return_to_list", [], "SonataAdminBundle"), "html"nulltrue);
  716.         echo "</button>
  717.                                 ";
  718.         
  719.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  720.         
  721.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  722.     }
  723.     // line 148
  724.     public function block_btn_create_and_create($context, array $blocks = [])
  725.     {
  726.         $macros $this->macros;
  727.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  728.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""btn_create_and_create"));
  729.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  730.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""btn_create_and_create"));
  731.         // line 149
  732.         echo "                                <button class=\"btn btn-success\" type=\"submit\" name=\"btn_create_and_create\"><i class=\"fas fa-plus-circle\" aria-hidden=\"true\"></i> ";
  733.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("btn_create_and_create_a_new_one", [], "SonataAdminBundle"), "html"nulltrue);
  734.         echo "</button>
  735.                             ";
  736.         
  737.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  738.         
  739.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  740.     }
  741.     /**
  742.      * @codeCoverageIgnore
  743.      */
  744.     public function getTemplateName()
  745.     {
  746.         return "@SonataAdmin/CRUD/base_edit_form.html.twig";
  747.     }
  748.     /**
  749.      * @codeCoverageIgnore
  750.      */
  751.     public function getDebugInfo()
  752.     {
  753.         return array (  831 => 149,  821 => 148,  808 => 145,  798 => 144,  785 => 140,  775 => 139,  760 => 134,  750 => 133,  737 => 124,  727 => 123,  714 => 119,  704 => 118,  691 => 113,  687 => 111,  677 => 110,  664 => 105,  654 => 104,  641 => 99,  637 => 98,  632 => 97,  622 => 96,  612 => 153,  609 => 152,  606 => 151,  603 => 148,  600 => 147,  597 => 144,  594 => 143,  591 => 142,  588 => 139,  585 => 138,  582 => 137,  579 => 136,  576 => 133,  574 => 132,  571 => 131,  565 => 129,  563 => 128,  560 => 127,  557 => 126,  554 => 123,  552 => 122,  549 => 121,  546 => 118,  543 => 117,  540 => 116,  537 => 110,  534 => 109,  531 => 108,  528 => 107,  525 => 104,  522 => 103,  519 => 102,  516 => 96,  514 => 95,  509 => 94,  506 => 93,  503 => 92,  493 => 91,  482 => 154,  480 => 91,  477 => 90,  467 => 89,  456 => 84,  446 => 83,  435 => 80,  429 => 78,  427 => 77,  422 => 75,  419 => 74,  400 => 69,  397 => 68,  394 => 67,  388 => 65,  382 => 63,  379 => 62,  377 => 61,  370 => 57,  364 => 56,  361 => 55,  358 => 54,  341 => 53,  337 => 51,  321 => 48,  315 => 46,  309 => 44,  307 => 43,  300 => 41,  293 => 40,  290 => 39,  273 => 38,  269 => 36,  266 => 35,  263 => 34,  261 => 33,  257 => 31,  254 => 30,  251 => 29,  248 => 28,  238 => 27,  227 => 24,  217 => 23,  199 => 18,  180 => 14,  167 => 159,  164 => 158,  160 => 156,  158 => 89,  153 => 87,  150 => 86,  148 => 83,  145 => 82,  143 => 27,  140 => 26,  138 => 23,  133 => 21,  129 => 19,  126 => 18,  122 => 17,  119 => 16,  115 => 15,  111 => 14,  108 => 13,  104 => 12,  101 => 11,  95 => 8,  92 => 7,  90 => 6,  87 => 5,  85 => 4,  79 => 2,  60 => 1,);
  754.     }
  755.     public function getSourceContext()
  756.     {
  757.         return new Source("{% block form %}
  758.     {{ sonata_block_render_event('sonata.admin.edit.form.top', { 'admin': admin, 'object': object }) }}
  759.     {% set url = objectId is not null ? 'edit' : 'create' %}
  760.     {% if not admin.hasRoute(url) %}
  761.         <div>
  762.             {{ \"form_not_available\"|trans({}, \"SonataAdminBundle\") }}
  763.         </div>
  764.     {% else %}
  765.         <form
  766.               {% if sonata_config.getOption('form_type') == 'horizontal' %}class=\"form-horizontal\"{% endif %}
  767.               role=\"form\"
  768.               action=\"{% block sonata_form_action_url %}{{ admin.generateUrl(url, {(admin.idParameter): objectId, 'uniqid': admin.uniqid, 'subclass': app.request.get('subclass')}) }}{% endblock %}\"
  769.               {% if form.vars.multipart %} enctype=\"multipart/form-data\"{% endif %}
  770.               method=\"POST\"
  771.               {% if not sonata_config.getOption('html5_validate') %}novalidate=\"novalidate\"{% endif %}
  772.               {% block sonata_form_attributes %}{% endblock %}
  773.               >
  774.             {{ include('@SonataAdmin/Helper/render_form_dismissable_errors.html.twig') }}
  775.             {% block sonata_pre_fieldsets %}
  776.                 <div class=\"row\">
  777.             {% endblock %}
  778.             {% block sonata_tab_content %}
  779.                 {% import \"@SonataAdmin/CRUD/base_edit_form_macro.html.twig\" as form_helper %}
  780.                 {% set formtabs = admin.getformtabs() %}
  781.                 {% set has_tab = ((formtabs|length == 1 and formtabs|keys[0] != 'default') or formtabs|length > 1 ) %}
  782.                 <div class=\"col-md-12\">
  783.                     {% if has_tab %}
  784.                         {% set tab_prefix = 'tab_' ~ admin.uniqid ~ '_' ~ random() %}
  785.                         {% set tab_query_index = app.request.query.get('_tab', 0)|split(\"_\")|last %}
  786.                         <div class=\"nav-tabs-custom\">
  787.                             <ul class=\"nav nav-tabs\" role=\"tablist\">
  788.                                 {% for name, form_tab in formtabs %}
  789.                                     {% set _tab_name = tab_prefix ~ '_' ~ loop.index %}
  790.                                     <li{% if (not app.request.query.has('_tab') and loop.index == 1) or (tab_query_index == loop.index) %} class=\"active\"{% endif %}>
  791.                                         <a href=\"#{{ _tab_name }}\" class=\"changer-tab\" aria-controls=\"{{ _tab_name }}\" data-toggle=\"tab\">
  792.                                             <i class=\"fas fa-exclamation-circle has-errors hide\" aria-hidden=\"true\"></i>
  793.                                             {% if form_tab.translation_domain is defined and form_tab.translation_domain is same as(false) %}
  794.                                                 {{ form_tab.label }}
  795.                                             {% else %}
  796.                                                 {{ form_tab.label|trans({}, form_tab.translation_domain ?? admin.translationDomain) }}
  797.                                             {% endif %}
  798.                                         </a>
  799.                                     </li>
  800.                                 {% endfor %}
  801.                             </ul>
  802.                             <div class=\"tab-content\">
  803.                                 {% for code, form_tab in formtabs %}
  804.                                     {% set _tab_name = tab_prefix ~ '_' ~ loop.index %}
  805.                                     <div
  806.                                         class=\"tab-pane fade{% if (not app.request.query.has('_tab') and loop.first) or (tab_query_index == loop.index) %} in active{% endif %}\"
  807.                                         id=\"{{ _tab_name }}\"
  808.                                     >
  809.                                         <div class=\"box-body  container-fluid\">
  810.                                             <div class=\"sonata-ba-collapsed-fields\">
  811.                                                 {% if form_tab.description != false %}
  812.                                                     {% if form_tab.translation_domain is defined and form_tab.translation_domain is same as(false) %}
  813.                                                         <p>{{ form_tab.description|raw }}</p>
  814.                                                     {% else %}
  815.                                                         <p>{{ form_tab.description|trans({}, form_tab.translation_domain ?? admin.translationDomain)|raw }}</p>
  816.                                                     {% endif %}
  817.                                                 {% endif %}
  818.                                                 {{ form_helper.render_groups(admin, form, form_tab['groups'], has_tab) }}
  819.                                             </div>
  820.                                         </div>
  821.                                     </div>
  822.                                 {% endfor %}
  823.                             </div>
  824.                             <input type=\"hidden\" name=\"_tab\" value=\"{{ app.request.query.get('_tab') }}\">
  825.                         </div>
  826.                     {% elseif formtabs['default'] is defined %}
  827.                         {{ form_helper.render_groups(admin, form, formtabs['default'].groups, has_tab) }}
  828.                     {% endif %}
  829.                 </div>
  830.             {% endblock %}
  831.             {% block sonata_post_fieldsets %}
  832.                 </div>
  833.             {% endblock %}
  834.             {{ form_rest(form) }}
  835.             {% block formactions %}
  836.                 <div class=\"sonata-ba-form-actions well well-small form-actions\">
  837.                 {% block sonata_form_actions %}
  838.                     {% if app.request.isxmlhttprequest %}
  839.                         {% if objectId is not null %}
  840.                             <button type=\"submit\" class=\"btn btn-success\" name=\"btn_update\"><i class=\"fas fa-save\" aria-hidden=\"true\"></i> {{ 'btn_update'|trans({}, 'SonataAdminBundle') }}</button>
  841.                             {% if admin.hasRoute('delete') and admin.hasAccess('delete', object) %}
  842.                                 {% block btn_delete %}
  843.                                     {{ 'delete_or'|trans({}, 'SonataAdminBundle') }}
  844.                                     <a class=\"btn btn-danger\" href=\"{{ admin.generateObjectUrl('delete', object) }}\">
  845.                                         <i class=\"fas fa-minus-circle\" aria-hidden=\"true\"></i> {{ 'link_delete'|trans({}, 'SonataAdminBundle') }}
  846.                                     </a>
  847.                                 {% endblock %}
  848.                             {% endif %}
  849.                         {% else %}
  850.                             {% block btn_create %}
  851.                                 <button type=\"submit\" class=\"btn btn-success\" name=\"btn_create\"><i class=\"fas fa-plus-circle\" aria-hidden=\"true\"></i> {{ 'btn_create'|trans({}, 'SonataAdminBundle') }}</button>
  852.                             {% endblock %}
  853.                         {% endif %}
  854.                     {% else %}
  855.                         {% if admin.supportsPreviewMode %}
  856.                             {% block btn_preview %}
  857.                                 <button class=\"btn btn-info persist-preview\" name=\"btn_preview\" type=\"submit\">
  858.                                     <i class=\"fas fa-eye\" aria-hidden=\"true\"></i>
  859.                                     {{ 'btn_preview'|trans({}, 'SonataAdminBundle') }}
  860.                                 </button>
  861.                             {% endblock %}
  862.                         {% endif %}
  863.                         {% if objectId is not null %}
  864.                             {% block btn_update_and_edit %}
  865.                                 <button type=\"submit\" class=\"btn btn-success\" name=\"btn_update_and_edit\"><i class=\"fas fa-save\" aria-hidden=\"true\"></i> {{ 'btn_update_and_edit_again'|trans({}, 'SonataAdminBundle') }}</button>
  866.                             {% endblock %}
  867.                             {% if admin.hasRoute('list') and admin.hasAccess('list') %}
  868.                                 {% block btn_update_and_list %}
  869.                                     <button type=\"submit\" class=\"btn btn-success\" name=\"btn_update_and_list\"><i class=\"fas fa-save\"></i> <i class=\"fas fa-list\" aria-hidden=\"true\"></i> {{ 'btn_update_and_return_to_list'|trans({}, 'SonataAdminBundle') }}</button>
  870.                                 {% endblock %}
  871.                             {% endif %}
  872.                             {% if admin.hasRoute('delete') and admin.hasAccess('delete', object) %}
  873.                                 {{ block('btn_delete') }}
  874.                             {% endif %}
  875.                             {% if admin.isAclEnabled() and admin.hasRoute('acl') and admin.hasAccess('acl', object) %}
  876.                                 {% block btn_acl %}
  877.                                     <a class=\"btn btn-info\" href=\"{{ admin.generateObjectUrl('acl', object) }}\"><i class=\"fas fa-users\" aria-hidden=\"true\"></i> {{ 'link_edit_acl'|trans({}, 'SonataAdminBundle') }}</a>
  878.                                 {% endblock %}
  879.                             {% endif %}
  880.                         {% else %}
  881.                             {% if admin.hasroute('edit') and admin.hasAccess('edit') %}
  882.                                 {% block btn_create_and_edit %}
  883.                                     <button class=\"btn btn-success\" type=\"submit\" name=\"btn_create_and_edit\"><i class=\"fas fa-save\" aria-hidden=\"true\"></i> {{ 'btn_create_and_edit_again'|trans({}, 'SonataAdminBundle') }}</button>
  884.                                 {% endblock %}
  885.                             {% endif %}
  886.                             {% if admin.hasroute('list') and admin.hasAccess('list') %}
  887.                                 {% block btn_create_and_list %}
  888.                                     <button type=\"submit\" class=\"btn btn-success\" name=\"btn_create_and_list\"><i class=\"fas fa-save\"></i> <i class=\"fas fa-list\" aria-hidden=\"true\"></i> {{ 'btn_create_and_return_to_list'|trans({}, 'SonataAdminBundle') }}</button>
  889.                                 {% endblock %}
  890.                             {% endif %}
  891.                             {% block btn_create_and_create %}
  892.                                 <button class=\"btn btn-success\" type=\"submit\" name=\"btn_create_and_create\"><i class=\"fas fa-plus-circle\" aria-hidden=\"true\"></i> {{ 'btn_create_and_create_a_new_one'|trans({}, 'SonataAdminBundle') }}</button>
  893.                             {% endblock %}
  894.                         {% endif %}
  895.                     {% endif %}
  896.                 {% endblock %}
  897.                 </div>
  898.             {% endblock formactions %}
  899.         </form>
  900.     {% endif %}
  901.     {{ sonata_block_render_event('sonata.admin.edit.form.bottom', { 'admin': admin, 'object': object }) }}
  902. {% endblock %}
  903. ""@SonataAdmin/CRUD/base_edit_form.html.twig""/var/www/vhosts/perseo.comerziawatches.com/httpdocs/perseo/httpdocs/vendor/sonata-project/admin-bundle/src/Resources/views/CRUD/base_edit_form.html.twig");
  904.     }
  905. }