var/cache/dev/twig/68/688b64b03d92b8f74f2ec99bffb08d7f.php line 69

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.html.twig */
  14. class __TwigTemplate_4d6d5dfd195363ced723faea0efa8500 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.         // line 41
  23.         $_trait_0 $this->loadTemplate("@SonataAdmin/CRUD/base_edit_form.html.twig""@!SonataAdmin/CRUD/base_edit.html.twig"41);
  24.         if (!$_trait_0->isTraitable()) {
  25.             throw new RuntimeError('Template "'."@SonataAdmin/CRUD/base_edit_form.html.twig".'" cannot be used as a trait.'41$this->source);
  26.         }
  27.         $_trait_0_blocks $_trait_0->getBlocks();
  28.         if (!isset($_trait_0_blocks["form"])) {
  29.             throw new RuntimeError('Block "form" is not defined in trait "@SonataAdmin/CRUD/base_edit_form.html.twig".'41$this->source);
  30.         }
  31.         $_trait_0_blocks["parentForm"] = $_trait_0_blocks["form"]; unset($_trait_0_blocks["form"]);
  32.         $this->traits $_trait_0_blocks;
  33.         $this->blocks array_merge(
  34.             $this->traits,
  35.             [
  36.                 'title' => [$this'block_title'],
  37.                 'navbar_title' => [$this'block_navbar_title'],
  38.                 'actions' => [$this'block_actions'],
  39.                 'tab_menu' => [$this'block_tab_menu'],
  40.                 'form' => [$this'block_form'],
  41.             ]
  42.         );
  43.     }
  44.     protected function doGetParent(array $context)
  45.     {
  46.         // line 12
  47.         return $this->loadTemplate((isset($context["base_template"]) || array_key_exists("base_template"$context) ? $context["base_template"] : (function () { throw new RuntimeError('Variable "base_template" does not exist.'12$this->source); })()), "@!SonataAdmin/CRUD/base_edit.html.twig"12);
  48.     }
  49.     protected function doDisplay(array $context, array $blocks = [])
  50.     {
  51.         $macros $this->macros;
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@!SonataAdmin/CRUD/base_edit.html.twig"));
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@!SonataAdmin/CRUD/base_edit.html.twig"));
  56.         $this->getParent($context)->display($contextarray_merge($this->blocks$blocks));
  57.         
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  59.         
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  61.     }
  62.     // line 14
  63.     public function block_title($context, array $blocks = [])
  64.     {
  65.         $macros $this->macros;
  66.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  67.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  68.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  69.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  70.         // line 15
  71.         echo "    ";
  72.         if ( !(null === (isset($context["objectId"]) || array_key_exists("objectId"$context) ? $context["objectId"] : (function () { throw new RuntimeError('Variable "objectId" does not exist.'15$this->source); })()))) {
  73.             // line 16
  74.             echo "        ";
  75.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("title_edit", ["%name%" => twig_get_attribute($this->env$this->source$this->extensions['Twig\Extra\String\StringExtension']->createUnicodeString(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.'16$this->source); })()), "toString", [(isset($context["object"]) || array_key_exists("object"$context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.'16$this->source); })())], "method"falsefalsefalse16)), "truncate", [15"..."], "method"falsefalsefalse16)], "SonataAdminBundle"), "html"nulltrue);
  76.             echo "
  77.     ";
  78.         } else {
  79.             // line 18
  80.             echo "        ";
  81.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$this->extensions['Twig\Extra\String\StringExtension']->createUnicodeString($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("title_create", [], "SonataAdminBundle")), "truncate", [15"..."], "method"falsefalsefalse18), "html"nulltrue);
  82.             echo "
  83.     ";
  84.         }
  85.         
  86.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  87.         
  88.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  89.     }
  90.     // line 22
  91.     public function block_navbar_title($context, array $blocks = [])
  92.     {
  93.         $macros $this->macros;
  94.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  95.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""navbar_title"));
  96.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  97.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""navbar_title"));
  98.         // line 23
  99.         echo "    ";
  100.         if ( !(null === (isset($context["objectId"]) || array_key_exists("objectId"$context) ? $context["objectId"] : (function () { throw new RuntimeError('Variable "objectId" does not exist.'23$this->source); })()))) {
  101.             // line 24
  102.             echo "        ";
  103.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("title_edit", ["%name%" => twig_get_attribute($this->env$this->source$this->extensions['Twig\Extra\String\StringExtension']->createUnicodeString(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.'24$this->source); })()), "toString", [(isset($context["object"]) || array_key_exists("object"$context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.'24$this->source); })())], "method"falsefalsefalse24)), "truncate", [100"..."], "method"falsefalsefalse24)], "SonataAdminBundle"), "html"nulltrue);
  104.             echo "
  105.     ";
  106.         } else {
  107.             // line 26
  108.             echo "        ";
  109.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$this->extensions['Twig\Extra\String\StringExtension']->createUnicodeString($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("title_create", [], "SonataAdminBundle")), "truncate", [100"..."], "method"falsefalsefalse26), "html"nulltrue);
  110.             echo "
  111.     ";
  112.         }
  113.         
  114.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  115.         
  116.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  117.     }
  118.     // line 30
  119.     public function block_actions($context, array $blocks = [])
  120.     {
  121.         $macros $this->macros;
  122.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  123.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""actions"));
  124.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  125.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""actions"));
  126.         // line 31
  127.         $this->loadTemplate("@SonataAdmin/CRUD/action_buttons.html.twig""@!SonataAdmin/CRUD/base_edit.html.twig"31)->display($context);
  128.         
  129.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  130.         
  131.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  132.     }
  133.     // line 34
  134.     public function block_tab_menu($context, array $blocks = [])
  135.     {
  136.         $macros $this->macros;
  137.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  138.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""tab_menu"));
  139.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  140.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""tab_menu"));
  141.         // line 35
  142.         echo $this->extensions['Knp\Menu\Twig\MenuExtension']->render(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.'35$this->source); })()), "sidemenu", [(isset($context["action"]) || array_key_exists("action"$context) ? $context["action"] : (function () { throw new RuntimeError('Variable "action" does not exist.'35$this->source); })())], "method"falsefalsefalse35), ["currentClass" => "active""template" => $this->env->getRuntime('Sonata\AdminBundle\Twig\TemplateRegistryRuntime')->getGlobalTemplate("tab_menu_template")], "twig");
  143.         
  144.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  145.         
  146.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  147.     }
  148.     // line 43
  149.     public function block_form($context, array $blocks = [])
  150.     {
  151.         $macros $this->macros;
  152.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  153.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""form"));
  154.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  155.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""form"));
  156.         // line 44
  157.         echo "    ";
  158.         $this->displayBlock("parentForm"$context$blocks);
  159.         echo "
  160. ";
  161.         
  162.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  163.         
  164.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  165.     }
  166.     /**
  167.      * @codeCoverageIgnore
  168.      */
  169.     public function getTemplateName()
  170.     {
  171.         return "@!SonataAdmin/CRUD/base_edit.html.twig";
  172.     }
  173.     /**
  174.      * @codeCoverageIgnore
  175.      */
  176.     public function isTraitable()
  177.     {
  178.         return false;
  179.     }
  180.     /**
  181.      * @codeCoverageIgnore
  182.      */
  183.     public function getDebugInfo()
  184.     {
  185.         return array (  195 => 44,  185 => 43,  175 => 35,  165 => 34,  155 => 31,  145 => 30,  131 => 26,  125 => 24,  122 => 23,  112 => 22,  98 => 18,  92 => 16,  89 => 15,  79 => 14,  57 => 12,  28 => 41,);
  186.     }
  187.     public function getSourceContext()
  188.     {
  189.         return new Source("{#
  190. This file is part of the Sonata package.
  191. (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  192. For the full copyright and license information, please view the LICENSE
  193. file that was distributed with this source code.
  194. #}
  195. {% extends base_template %}
  196. {% block title %}
  197.     {% if objectId is not null %}
  198.         {{ 'title_edit'|trans({'%name%': admin.toString(object)|u.truncate(15, '...') }, 'SonataAdminBundle') }}
  199.     {% else %}
  200.         {{ 'title_create'|trans({}, 'SonataAdminBundle')|u.truncate(15, '...') }}
  201.     {% endif %}
  202. {% endblock %}
  203. {% block navbar_title %}
  204.     {% if objectId is not null %}
  205.         {{ 'title_edit'|trans({'%name%': admin.toString(object)|u.truncate(100, '...') }, 'SonataAdminBundle') }}
  206.     {% else %}
  207.         {{ 'title_create'|trans({}, 'SonataAdminBundle')|u.truncate(100, '...') }}
  208.     {% endif %}
  209. {% endblock %}
  210. {%- block actions -%}
  211.     {% include '@SonataAdmin/CRUD/action_buttons.html.twig' %}
  212. {%- endblock -%}
  213. {%- block tab_menu -%}
  214.     {{ knp_menu_render(admin.sidemenu(action), {
  215.         'currentClass': 'active',
  216.         'template': get_global_template('tab_menu_template')
  217.     }, 'twig') }}
  218. {%- endblock -%}
  219. {% use '@SonataAdmin/CRUD/base_edit_form.html.twig' with form as parentForm %}
  220. {% block form %}
  221.     {{ block('parentForm') }}
  222. {% endblock %}
  223. ""@!SonataAdmin/CRUD/base_edit.html.twig""/var/www/vhosts/perseo.comerziawatches.com/httpdocs/perseo/httpdocs/vendor/sonata-project/admin-bundle/src/Resources/views/CRUD/base_edit.html.twig");
  224.     }
  225. }