var/cache/dev/twig/fb/fb68f0ac2f83052481ef50c33e57b4b7bd89572748e1ec33a70f62780b775ead.php line 165

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_field.html.twig */
  14. class __TwigTemplate_7bbfc50a66d017e7cce2318968f6404194fed7674c0f0fcba479109757652fad 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.             'field' => [$this'block_field'],
  25.             'field_span_attributes' => [$this'block_field_span_attributes'],
  26.         ];
  27.     }
  28.     protected function doDisplay(array $context, array $blocks = [])
  29.     {
  30.         $macros $this->macros;
  31.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SonataAdmin/CRUD/base_list_field.html.twig"));
  33.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SonataAdmin/CRUD/base_list_field.html.twig"));
  35.         // line 11
  36.         echo "
  37. <td class=\"sonata-ba-list-field sonata-ba-list-field-";
  38.         // line 12
  39.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["field_description"]) || array_key_exists("field_description"$context) ? $context["field_description"] : (function () { throw new RuntimeError('Variable "field_description" does not exist.'12$this->source); })()), "type", [], "any"falsefalsefalse12), "html"nulltrue);
  40.         echo "\" objectId=\"";
  41.         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.'12$this->source); })()), "id", [=> (isset($context["object"]) || array_key_exists("object"$context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.'12$this->source); })())], "method"falsefalsefalse12), "html"nulltrue);
  42.         echo "\"";
  43.         if (twig_get_attribute($this->env$this->source, (isset($context["field_description"]) || array_key_exists("field_description"$context) ? $context["field_description"] : (function () { throw new RuntimeError('Variable "field_description" does not exist.'12$this->source); })()), "option", [=> "row_align"], "method"falsefalsefalse12)) {
  44.             echo " style=\"text-align:";
  45.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["field_description"]) || array_key_exists("field_description"$context) ? $context["field_description"] : (function () { throw new RuntimeError('Variable "field_description" does not exist.'12$this->source); })()), "option", [=> "row_align"], "method"falsefalsefalse12), "html"nulltrue);
  46.             echo "\"";
  47.         }
  48.         echo ">
  49.     ";
  50.         // line 13
  51.         $context["route_name"] = ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["field_description"] ?? null), "option", [=> "route"], "method"falsetruefalse13), "name", [], "any"truetruefalse13)) ? (_twig_default_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["field_description"] ?? null), "option", [=> "route"], "method"falsetruefalse13), "name", [], "any"falsefalsefalse13), 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.'13$this->source); })()), "getOption", [=> "default_admin_route"], "method"falsefalsefalse13))) : (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.'13$this->source); })()), "getOption", [=> "default_admin_route"], "method"falsefalsefalse13)));
  52.         // line 14
  53.         echo "    ";
  54.         $context["route_parameters"] = ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["field_description"] ?? null), "option", [=> "route"], "method"falsetruefalse14), "parameters", [], "any"truetruefalse14)) ? (_twig_default_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["field_description"] ?? null), "option", [=> "route"], "method"falsetruefalse14), "parameters", [], "any"falsefalsefalse14), [])) : ([]));
  55.         // line 15
  56.         echo "
  57.     ";
  58.         // line 16
  59.         if (((twig_get_attribute($this->env$this->source,         // line 17
  60. (isset($context["field_description"]) || array_key_exists("field_description"$context) ? $context["field_description"] : (function () { throw new RuntimeError('Variable "field_description" does not exist.'17$this->source); })()), "option", [=> "identifier"=> false], "method"falsefalsefalse17) && twig_get_attribute($this->env$this->source,         // line 18
  61. (isset($context["admin"]) || array_key_exists("admin"$context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.'18$this->source); })()), "hasRoute", [=> (isset($context["route_name"]) || array_key_exists("route_name"$context) ? $context["route_name"] : (function () { throw new RuntimeError('Variable "route_name" does not exist.'18$this->source); })())], "method"falsefalsefalse18)) && twig_get_attribute($this->env$this->source,         // line 19
  62. (isset($context["admin"]) || array_key_exists("admin"$context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.'19$this->source); })()), "hasAccess", [=> (isset($context["route_name"]) || array_key_exists("route_name"$context) ? $context["route_name"] : (function () { throw new RuntimeError('Variable "route_name" does not exist.'19$this->source); })()), => ((twig_in_filter((isset($context["route_name"]) || array_key_exists("route_name"$context) ? $context["route_name"] : (function () { throw new RuntimeError('Variable "route_name" does not exist.'19$this->source); })()), [=> "show"=> "edit"])) ? ((isset($context["object"]) || array_key_exists("object"$context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.'19$this->source); })())) : (null))], "method"falsefalsefalse19))) {
  63.             // line 21
  64.             echo "        <a class=\"sonata-link-identifier\" href=\"";
  65.             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.'21$this->source); })()), "generateObjectUrl", [=> (isset($context["route_name"]) || array_key_exists("route_name"$context) ? $context["route_name"] : (function () { throw new RuntimeError('Variable "route_name" does not exist.'21$this->source); })()), => (isset($context["object"]) || array_key_exists("object"$context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.'21$this->source); })()), => (isset($context["route_parameters"]) || array_key_exists("route_parameters"$context) ? $context["route_parameters"] : (function () { throw new RuntimeError('Variable "route_parameters" does not exist.'21$this->source); })())], "method"falsefalsefalse21), "html"nulltrue);
  66.             echo "\">";
  67.             // line 22
  68.             $this->displayBlock('field'$context$blocks);
  69.             // line 35
  70.             echo "</a>
  71.     ";
  72.         } else {
  73.             // line 37
  74.             echo "        ";
  75.             $context["is_editable"] = (twig_get_attribute($this->env$this->source, (isset($context["field_description"]) || array_key_exists("field_description"$context) ? $context["field_description"] : (function () { throw new RuntimeError('Variable "field_description" does not exist.'37$this->source); })()), "option", [=> "editable"=> false], "method"falsefalsefalse37) && 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.'37$this->source); })()), "hasAccess", [=> "edit"=> (isset($context["object"]) || array_key_exists("object"$context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.'37$this->source); })())], "method"falsefalsefalse37));
  76.             // line 38
  77.             echo "        ";
  78.             if ((((isset($context["is_editable"]) || array_key_exists("is_editable"$context) ? $context["is_editable"] : (function () { throw new RuntimeError('Variable "is_editable" does not exist.'38$this->source); })()) && twig_get_attribute($this->env$this->source, (isset($context["field_description"]) || array_key_exists("field_description"$context) ? $context["field_description"] : (function () { throw new RuntimeError('Variable "field_description" does not exist.'38$this->source); })()), "option", [=> "multiple"=> false], "method"falsefalsefalse38)) && twig_test_iterable((isset($context["value"]) || array_key_exists("value"$context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.'38$this->source); })())))) {
  79.                 // line 39
  80.                 echo "            ";
  81.                 // line 40
  82.                 echo "            ";
  83.                 // line 41
  84.                 echo "            ";
  85.                 $context["x_editable_type"] = "checklist";
  86.                 // line 42
  87.                 echo "        ";
  88.             } else {
  89.                 // line 43
  90.                 echo "            ";
  91.                 $context["x_editable_type"] = $this->env->getRuntime('Sonata\AdminBundle\Twig\XEditableRuntime')->getXEditableType(twig_get_attribute($this->env$this->source, (isset($context["field_description"]) || array_key_exists("field_description"$context) ? $context["field_description"] : (function () { throw new RuntimeError('Variable "field_description" does not exist.'43$this->source); })()), "type", [], "any"falsefalsefalse43));
  92.                 // line 44
  93.                 echo "        ";
  94.             }
  95.             // line 45
  96.             echo "
  97.         ";
  98.             // line 46
  99.             if (((isset($context["is_editable"]) || array_key_exists("is_editable"$context) ? $context["is_editable"] : (function () { throw new RuntimeError('Variable "is_editable" does not exist.'46$this->source); })()) && (isset($context["x_editable_type"]) || array_key_exists("x_editable_type"$context) ? $context["x_editable_type"] : (function () { throw new RuntimeError('Variable "x_editable_type" does not exist.'46$this->source); })()))) {
  100.                 // line 47
  101.                 echo "            ";
  102.                 $context["url"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sonata_admin_set_object_field_value", (((["_sonata_admin" => twig_get_attribute($this->env$this->source,                 // line 50
  103. (isset($context["admin"]) || array_key_exists("admin"$context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.'50$this->source); })()), "baseCodeRoute", [], "any"falsefalsefalse50), "context" => "list""field" => twig_get_attribute($this->env$this->source,                 // line 52
  104. (isset($context["field_description"]) || array_key_exists("field_description"$context) ? $context["field_description"] : (function () { throw new RuntimeError('Variable "field_description" does not exist.'52$this->source); })()), "name", [], "any"falsefalsefalse52), "objectId" => twig_get_attribute($this->env$this->source,                 // line 53
  105. (isset($context["admin"]) || array_key_exists("admin"$context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.'53$this->source); })()), "urlSafeIdentifier", [=> (isset($context["object"]) || array_key_exists("object"$context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.'53$this->source); })())], "method"falsefalsefalse53)] + ((twig_get_attribute($this->env$this->source,                 // line 54
  106. (isset($context["admin"]) || array_key_exists("admin"$context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.'54$this->source); })()), "hasRequest", [], "method"falsefalsefalse54)) ? (twig_get_attribute($this->env$this->sourcetwig_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.'54$this->source); })()), "request", [], "any"falsefalsefalse54), "attributes", [], "any"falsefalsefalse54), "get", [=> "_route_params"=> []], "method"falsefalsefalse54)) : ([]))) + twig_get_attribute($this->env$this->source,                 // line 55
  107. (isset($context["admin"]) || array_key_exists("admin"$context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.'55$this->source); })()), "getPersistentParameters", [], "method"falsefalsefalse55)) + ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,                 // line 56
  108. ($context["app"] ?? null), "request", [], "any"falsetruefalse56), "query", [], "any"falsetruefalse56), "all", [], "any"truetruefalse56)) ? (_twig_default_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsetruefalse56), "query", [], "any"falsetruefalse56), "all", [], "any"falsefalsefalse56), [])) : ([]))));
  109.                 // line 58
  110.                 echo "
  111.             ";
  112.                 // line 59
  113.                 if (((=== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["field_description"]) || array_key_exists("field_description"$context) ? $context["field_description"] : (function () { throw new RuntimeError('Variable "field_description" does not exist.'59$this->source); })()), "type", [], "any"falsefalsefalse59), twig_constant("Sonata\\AdminBundle\\FieldDescription\\FieldDescriptionInterface::TYPE_DATE"))) &&  !twig_test_empty((isset($context["value"]) || array_key_exists("value"$context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.'59$this->source); })())))) {
  114.                     // line 60
  115.                     echo "                ";
  116.                     // line 61
  117.                     echo "                ";
  118.                     $context["data_value"] = twig_date_format_filter($this->env, (isset($context["value"]) || array_key_exists("value"$context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.'61$this->source); })()), "Y-m-d", ((twig_get_attribute($this->env$this->source, ($context["options"] ?? null), "timezone", [], "any"truetruefalse61)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["options"] ?? null), "timezone", [], "any"falsefalsefalse61), null)) : (null)));
  119.                     // line 62
  120.                     echo "            ";
  121.                 } elseif (((=== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["field_description"]) || array_key_exists("field_description"$context) ? $context["field_description"] : (function () { throw new RuntimeError('Variable "field_description" does not exist.'62$this->source); })()), "type", [], "any"falsefalsefalse62), twig_constant("Sonata\\AdminBundle\\FieldDescription\\FieldDescriptionInterface::TYPE_BOOLEAN"))) && twig_test_empty((isset($context["value"]) || array_key_exists("value"$context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.'62$this->source); })())))) {
  122.                     // line 63
  123.                     echo "                ";
  124.                     $context["data_value"] = 0;
  125.                     // line 64
  126.                     echo "            ";
  127.                 } elseif (twig_test_iterable((isset($context["value"]) || array_key_exists("value"$context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.'64$this->source); })()))) {
  128.                     // line 65
  129.                     echo "                ";
  130.                     $context["data_value"] = json_encode((isset($context["value"]) || array_key_exists("value"$context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.'65$this->source); })()));
  131.                     // line 66
  132.                     echo "            ";
  133.                 } else {
  134.                     // line 67
  135.                     echo "                ";
  136.                     $context["data_value"] = (isset($context["value"]) || array_key_exists("value"$context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.'67$this->source); })());
  137.                     // line 68
  138.                     echo "            ";
  139.                 }
  140.                 // line 69
  141.                 echo "
  142.             <span ";
  143.                 // line 70
  144.                 $this->displayBlock('field_span_attributes'$context$blocks);
  145.                 // line 84
  146.                 echo ">
  147.                 ";
  148.                 // line 85
  149.                 $this->displayBlock("field"$context$blocks);
  150.                 echo "
  151.             </span>
  152.         ";
  153.             } else {
  154.                 // line 88
  155.                 echo "            ";
  156.                 $this->displayBlock("field"$context$blocks);
  157.                 echo "
  158.         ";
  159.             }
  160.             // line 90
  161.             echo "    ";
  162.         }
  163.         // line 91
  164.         echo "</td>
  165. ";
  166.         
  167.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  168.         
  169.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  170.     }
  171.     // line 22
  172.     public function block_field($context, array $blocks = [])
  173.     {
  174.         $macros $this->macros;
  175.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  176.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""field"));
  177.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  178.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""field"));
  179.         // line 23
  180.         echo "                ";
  181.         ob_start();
  182.         // line 24
  183.         echo "                    ";
  184.         if ( !(null === twig_get_attribute($this->env$this->source, (isset($context["field_description"]) || array_key_exists("field_description"$context) ? $context["field_description"] : (function () { throw new RuntimeError('Variable "field_description" does not exist.'24$this->source); })()), "option", [=> "collapse"], "method"falsefalsefalse24))) {
  185.             // line 25
  186.             echo "                        ";
  187.             $context["collapse"] = twig_get_attribute($this->env$this->source, (isset($context["field_description"]) || array_key_exists("field_description"$context) ? $context["field_description"] : (function () { throw new RuntimeError('Variable "field_description" does not exist.'25$this->source); })()), "option", [=> "collapse"], "method"falsefalsefalse25);
  188.             // line 26
  189.             echo "                        <div class=\"sonata-readmore\"
  190.                               data-readmore-height=\"";
  191.             // line 27
  192.             echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source, ($context["collapse"] ?? null), "height", [], "any"truetruefalse27)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["collapse"] ?? null), "height", [], "any"falsefalsefalse27), 40)) : (40)), "html"nulltrue);
  193.             echo "\"
  194.                               data-readmore-more=\"";
  195.             // line 28
  196.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(((twig_get_attribute($this->env$this->source, ($context["collapse"] ?? null), "more", [], "any"truetruefalse28)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["collapse"] ?? null), "more", [], "any"falsefalsefalse28), "read_more")) : ("read_more")), [], "SonataAdminBundle"), "html"nulltrue);
  197.             echo "\"
  198.                               data-readmore-less=\"";
  199.             // line 29
  200.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(((twig_get_attribute($this->env$this->source, ($context["collapse"] ?? null), "less", [], "any"truetruefalse29)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["collapse"] ?? null), "less", [], "any"falsefalsefalse29), "read_less")) : ("read_less")), [], "SonataAdminBundle"), "html"nulltrue);
  201.             echo "\">";
  202.             echo twig_escape_filter($this->env, (isset($context["value"]) || array_key_exists("value"$context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.'29$this->source); })()), "html"nulltrue);
  203.             echo "</div>
  204.                     ";
  205.         } else {
  206.             // line 31
  207.             echo "                        ";
  208.             echo twig_escape_filter($this->env, (isset($context["value"]) || array_key_exists("value"$context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.'31$this->source); })()), "html"nulltrue);
  209.             echo "
  210.                     ";
  211.         }
  212.         // line 33
  213.         echo "                ";
  214.         $___internal_parse_0_ = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
  215.         // line 23
  216.         echo twig_spaceless($___internal_parse_0_);
  217.         // line 34
  218.         echo "            ";
  219.         
  220.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  221.         
  222.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  223.     }
  224.     // line 70
  225.     public function block_field_span_attributes($context, array $blocks = [])
  226.     {
  227.         $macros $this->macros;
  228.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  229.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""field_span_attributes"));
  230.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  231.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""field_span_attributes"));
  232.         echo "class=\"x-editable\"
  233.                   data-type=\"";
  234.         // line 71
  235.         echo twig_escape_filter($this->env, (isset($context["x_editable_type"]) || array_key_exists("x_editable_type"$context) ? $context["x_editable_type"] : (function () { throw new RuntimeError('Variable "x_editable_type" does not exist.'71$this->source); })()), "html"nulltrue);
  236.         echo "\"
  237.                   data-value=\"";
  238.         // line 72
  239.         echo twig_escape_filter($this->env, (isset($context["data_value"]) || array_key_exists("data_value"$context) ? $context["data_value"] : (function () { throw new RuntimeError('Variable "data_value" does not exist.'72$this->source); })()), "html"nulltrue);
  240.         echo "\"
  241.                   ";
  242.         // line 73
  243.         if ( !(twig_get_attribute($this->env$this->source, (isset($context["field_description"]) || array_key_exists("field_description"$context) ? $context["field_description"] : (function () { throw new RuntimeError('Variable "field_description" does not exist.'73$this->source); })()), "label", [], "any"falsefalsefalse73) === false)) {
  244.             // line 74
  245.             echo "                      ";
  246.             if ((twig_get_attribute($this->env$this->source, (isset($context["field_description"]) || array_key_exists("field_description"$context) ? $context["field_description"] : (function () { throw new RuntimeError('Variable "field_description" does not exist.'74$this->source); })()), "translationDomain", [], "any"falsefalsefalse74) === false)) {
  247.                 // line 75
  248.                 echo "                          data-title=\"";
  249.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["field_description"]) || array_key_exists("field_description"$context) ? $context["field_description"] : (function () { throw new RuntimeError('Variable "field_description" does not exist.'75$this->source); })()), "label", [], "any"falsefalsefalse75), "html"nulltrue);
  250.                 echo "\"
  251.                       ";
  252.             } else {
  253.                 // line 77
  254.                 echo "                          data-title=\"";
  255.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->source, (isset($context["field_description"]) || array_key_exists("field_description"$context) ? $context["field_description"] : (function () { throw new RuntimeError('Variable "field_description" does not exist.'77$this->source); })()), "label", [], "any"falsefalsefalse77), [], twig_get_attribute($this->env$this->source, (isset($context["field_description"]) || array_key_exists("field_description"$context) ? $context["field_description"] : (function () { throw new RuntimeError('Variable "field_description" does not exist.'77$this->source); })()), "translationDomain", [], "any"falsefalsefalse77)), "html"nulltrue);
  256.                 echo "\"
  257.                       ";
  258.             }
  259.             // line 79
  260.             echo "                  ";
  261.         }
  262.         // line 80
  263.         echo "                  ";
  264.         if ((=== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["field_description"]) || array_key_exists("field_description"$context) ? $context["field_description"] : (function () { throw new RuntimeError('Variable "field_description" does not exist.'80$this->source); })()), "type", [], "any"falsefalsefalse80), twig_constant("Sonata\\AdminBundle\\FieldDescription\\FieldDescriptionInterface::TYPE_DATE")))) {
  265.             // line 81
  266.             echo "                    data-format=\"yyyy-mm-dd\"
  267.                   ";
  268.         }
  269.         // line 83
  270.         echo "                  data-pk=\"";
  271.         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.'83$this->source); })()), "id", [=> (isset($context["object"]) || array_key_exists("object"$context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.'83$this->source); })())], "method"falsefalsefalse83), "html"nulltrue);
  272.         echo "\"
  273.                   data-url=\"";
  274.         // line 84
  275.         echo twig_escape_filter($this->env, (isset($context["url"]) || array_key_exists("url"$context) ? $context["url"] : (function () { throw new RuntimeError('Variable "url" does not exist.'84$this->source); })()), "html"nulltrue);
  276.         echo "\" ";
  277.         
  278.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  279.         
  280.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  281.     }
  282.     public function getTemplateName()
  283.     {
  284.         return "@SonataAdmin/CRUD/base_list_field.html.twig";
  285.     }
  286.     public function isTraitable()
  287.     {
  288.         return false;
  289.     }
  290.     public function getDebugInfo()
  291.     {
  292.         return array (  294 => 84,  289 => 83,  285 => 81,  282 => 80,  279 => 79,  273 => 77,  267 => 75,  264 => 74,  262 => 73,  258 => 72,  254 => 71,  242 => 70,  232 => 34,  230 => 23,  227 => 33,  221 => 31,  214 => 29,  210 => 28,  206 => 27,  203 => 26,  200 => 25,  197 => 24,  194 => 23,  184 => 22,  173 => 91,  170 => 90,  164 => 88,  158 => 85,  155 => 84,  153 => 70,  150 => 69,  147 => 68,  144 => 67,  141 => 66,  138 => 65,  135 => 64,  132 => 63,  129 => 62,  126 => 61,  124 => 60,  122 => 59,  119 => 58,  117 => 56,  116 => 55,  115 => 54,  114 => 53,  113 => 52,  112 => 50,  110 => 47,  108 => 46,  105 => 45,  102 => 44,  99 => 43,  96 => 42,  93 => 41,  91 => 40,  89 => 39,  86 => 38,  83 => 37,  79 => 35,  77 => 22,  73 => 21,  71 => 19,  70 => 18,  69 => 17,  68 => 16,  65 => 15,  62 => 14,  60 => 13,  48 => 12,  45 => 11,);
  293.     }
  294.     public function getSourceContext()
  295.     {
  296.         return new Source("{#
  297. This file is part of the Sonata package.
  298. (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  299. For the full copyright and license information, please view the LICENSE
  300. file that was distributed with this source code.
  301. #}
  302. <td class=\"sonata-ba-list-field sonata-ba-list-field-{{ field_description.type }}\" objectId=\"{{ admin.id(object) }}\"{% if field_description.option('row_align') %} style=\"text-align:{{ field_description.option('row_align') }}\"{% endif %}>
  303.     {% set route_name = field_description.option('route').name|default(sonata_config.getOption('default_admin_route')) %}
  304.     {% set route_parameters = field_description.option('route').parameters|default([]) %}
  305.     {% if
  306.         field_description.option('identifier', false)
  307.         and admin.hasRoute(route_name)
  308.         and admin.hasAccess(route_name, route_name in ['show', 'edit'] ? object : null)
  309.     %}
  310.         <a class=\"sonata-link-identifier\" href=\"{{ admin.generateObjectUrl(route_name, object, route_parameters) }}\">
  311.             {%- block field %}
  312.                 {% apply spaceless %}
  313.                     {% if field_description.option('collapse') is not null %}
  314.                         {% set collapse = field_description.option('collapse') %}
  315.                         <div class=\"sonata-readmore\"
  316.                               data-readmore-height=\"{{ collapse.height|default(40) }}\"
  317.                               data-readmore-more=\"{{ collapse.more|default('read_more')|trans({}, 'SonataAdminBundle') }}\"
  318.                               data-readmore-less=\"{{ collapse.less|default('read_less')|trans({}, 'SonataAdminBundle') }}\">{{ value }}</div>
  319.                     {% else %}
  320.                         {{ value }}
  321.                     {% endif %}
  322.                 {% endapply %}
  323.             {% endblock -%}
  324.         </a>
  325.     {% else %}
  326.         {% set is_editable = field_description.option('editable', false) and admin.hasAccess('edit', object) %}
  327.         {% if is_editable and field_description.option('multiple', false) and value is iterable %}
  328.             {# multiple editable field should be real multiple #}
  329.             {# https://vitalets.github.io/x-editable/docs.html#checklist #}
  330.             {% set x_editable_type = 'checklist' %}
  331.         {% else %}
  332.             {% set x_editable_type = field_description.type|sonata_xeditable_type %}
  333.         {% endif %}
  334.         {% if is_editable and x_editable_type %}
  335.             {% set url = path(
  336.                 'sonata_admin_set_object_field_value',
  337.                 {
  338.                     '_sonata_admin': admin.baseCodeRoute,
  339.                     'context': 'list',
  340.                     'field': field_description.name,
  341.                     'objectId': admin.urlSafeIdentifier(object)
  342.                 } + (admin.hasRequest() ? admin.request.attributes.get('_route_params', {}) : {})
  343.                 + admin.getPersistentParameters()
  344.                 + app.request.query.all|default({})
  345.             ) %}
  346.             {% if field_description.type == constant('Sonata\\\\AdminBundle\\\\FieldDescription\\\\FieldDescriptionInterface::TYPE_DATE') and value is not empty %}
  347.                 {# it is a x-editable format https://vitalets.github.io/x-editable/docs.html#date #}
  348.                 {% set data_value = value|date('Y-m-d', options.timezone|default(null)) %}
  349.             {% elseif field_description.type == constant('Sonata\\\\AdminBundle\\\\FieldDescription\\\\FieldDescriptionInterface::TYPE_BOOLEAN') and value is empty %}
  350.                 {% set data_value = 0 %}
  351.             {% elseif value is iterable %}
  352.                 {% set data_value = value|json_encode %}
  353.             {% else %}
  354.                 {% set data_value = value %}
  355.             {% endif %}
  356.             <span {% block field_span_attributes %}class=\"x-editable\"
  357.                   data-type=\"{{ x_editable_type }}\"
  358.                   data-value=\"{{ data_value }}\"
  359.                   {% if field_description.label is not same as(false) %}
  360.                       {% if field_description.translationDomain is same as(false) %}
  361.                           data-title=\"{{ field_description.label }}\"
  362.                       {% else %}
  363.                           data-title=\"{{ field_description.label|trans({}, field_description.translationDomain) }}\"
  364.                       {% endif %}
  365.                   {% endif %}
  366.                   {% if field_description.type == constant('Sonata\\\\AdminBundle\\\\FieldDescription\\\\FieldDescriptionInterface::TYPE_DATE') %}
  367.                     data-format=\"yyyy-mm-dd\"
  368.                   {% endif %}
  369.                   data-pk=\"{{ admin.id(object) }}\"
  370.                   data-url=\"{{ url }}\" {% endblock %}>
  371.                 {{ block('field') }}
  372.             </span>
  373.         {% else %}
  374.             {{ block('field') }}
  375.         {% endif %}
  376.     {% endif %}
  377. </td>
  378. ""@SonataAdmin/CRUD/base_list_field.html.twig""/var/www/test-dashboard.talkabot.net/public_html/dashboard/vendor/sonata-project/admin-bundle/src/Resources/views/CRUD/base_list_field.html.twig");
  379.     }
  380. }