var/cache/dev/twig/ec/ec54b4f78d165005ad2fe7a8b7636efde318e256ac3fa6ed5e1c61fb4d732191.php line 66

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_list_inner_row.html.twig */
  14. class __TwigTemplate_cfe13df6a9adc4203d5812c31af333020f743380f6d77377125835c6a25a4d7a extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SonataAdmin/CRUD/base_list_inner_row.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SonataAdmin/CRUD/base_list_inner_row.html.twig"));
  33.         // line 11
  34.         echo "
  35. ";
  36.         // line 12
  37.         $context['_parent'] = $context;
  38.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_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.'12$this->source); })()), "list", [], "any"falsefalsefalse12), "getElements", [], "method"falsefalsefalse12));
  39.         foreach ($context['_seq'] as $context["_key"] => $context["field_description"]) {
  40.             // line 13
  41.             echo "    ";
  42.             if (((=== twig_compare(twig_get_attribute($this->env$this->source$context["field_description"], "name", [], "any"falsefalsefalse13), twig_constant("Sonata\\AdminBundle\\Datagrid\\ListMapper::NAME_ACTIONS"))) && 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.'13$this->source); })()), "request", [], "any"falsefalsefalse13), "isXmlHttpRequest", [], "any"falsefalsefalse13))) {
  43.                 // line 14
  44.                 echo "        ";
  45.                 // line 15
  46.                 echo "        ";
  47.                 // line 16
  48.                 echo "    ";
  49.             } elseif (((=== twig_compare(twig_get_attribute($this->env$this->source$context["field_description"], "getOption", [=> "ajax_hidden"], "method"falsefalsefalse16), true)) && 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.'16$this->source); })()), "request", [], "any"falsefalsefalse16), "isXmlHttpRequest", [], "any"falsefalsefalse16))) {
  50.                 // line 17
  51.                 echo "        ";
  52.                 // line 18
  53.                 echo "    ";
  54.             } else {
  55.                 // line 19
  56.                 echo "        ";
  57.                 echo $this->env->getRuntime('Sonata\AdminBundle\Twig\RenderElementRuntime')->renderListElement($this->env, (isset($context["object"]) || array_key_exists("object"$context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.'19$this->source); })()), $context["field_description"]);
  58.                 echo "
  59.     ";
  60.             }
  61.         }
  62.         $_parent $context['_parent'];
  63.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['field_description'], $context['_parent'], $context['loop']);
  64.         $context array_intersect_key($context$_parent) + $_parent;
  65.         
  66.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  67.         
  68.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  69.     }
  70.     public function getTemplateName()
  71.     {
  72.         return "@SonataAdmin/CRUD/base_list_inner_row.html.twig";
  73.     }
  74.     public function isTraitable()
  75.     {
  76.         return false;
  77.     }
  78.     public function getDebugInfo()
  79.     {
  80.         return array (  65 => 19,  62 => 18,  60 => 17,  57 => 16,  55 => 15,  53 => 14,  50 => 13,  46 => 12,  43 => 11,);
  81.     }
  82.     public function getSourceContext()
  83.     {
  84.         return new Source("{#
  85. This file is part of the Sonata package.
  86. (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  87. For the full copyright and license information, please view the LICENSE
  88. file that was distributed with this source code.
  89. #}
  90. {% for field_description in admin.list.getElements() %}
  91.     {% if field_description.name == constant('Sonata\\\\AdminBundle\\\\Datagrid\\\\ListMapper::NAME_ACTIONS') and app.request.isXmlHttpRequest %}
  92.         {# NEXT_MAJOR: Remove this case in version 5 and recommend using the option `ajax_hidden` instead. #}
  93.         {# Action buttons disabled in ajax view! #}
  94.     {% elseif field_description.getOption('ajax_hidden') == true and app.request.isXmlHttpRequest %}
  95.         {# Disable fields with 'ajax_hidden' option set to true #}
  96.     {% else %}
  97.         {{ object|render_list_element(field_description) }}
  98.     {% endif %}
  99. {% endfor %}
  100. ""@SonataAdmin/CRUD/base_list_inner_row.html.twig""/var/www/test-dashboard.talkabot.net/public_html/dashboard/vendor/sonata-project/admin-bundle/src/Resources/views/CRUD/base_list_inner_row.html.twig");
  101.     }
  102. }