<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* CRUD/list__environment__list_outer_rows_list.html.twig */
class __TwigTemplate_11df0e13365aa24b6fd56e7e4371e99de9d5fc7ebcea1cf7f06d4ed9394d8a98 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "CRUD/list__environment__list_outer_rows_list.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "CRUD/list__environment__list_outer_rows_list.html.twig"));
// line 1
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $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.', 1, $this->source); })()), "datagrid", [], "any", false, false, false, 1), "results", [], "any", false, false, false, 1));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["object"]) {
// line 2
echo "\t";
$context["style"] = "";
// line 3
echo "\t";
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["object"], "type", [], "any", false, false, false, 3), "name", [], "any", false, false, false, 3), "prod"))) {
// line 4
echo "\t\t";
$context["style"] = "background-color:#ffbcba;color:#000;";
// line 5
echo "\t";
}
// line 6
echo "\t";
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["object"], "debugmode", [], "any", false, false, false, 6), true))) {
// line 7
echo "\t\t";
$context["style"] = "background-color:orange;color:#000;";
echo "\t
\t";
}
// line 9
echo " <tr style=\"";
echo twig_escape_filter($this->env, (isset($context["style"]) || array_key_exists("style", $context) ? $context["style"] : (function () { throw new RuntimeError('Variable "style" does not exist.', 9, $this->source); })()), "html", null, true);
echo "\" >
";
// line 10
$this->loadTemplate($this->env->getRuntime('Sonata\AdminBundle\Twig\TemplateRegistryRuntime')->getAdminTemplate("inner_list_row", 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.', 10, $this->source); })()), "code", [], "any", false, false, false, 10)), "CRUD/list__environment__list_outer_rows_list.html.twig", 10)->display($context);
// line 11
echo " </tr>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['object'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "CRUD/list__environment__list_outer_rows_list.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 88 => 11, 86 => 10, 81 => 9, 75 => 7, 72 => 6, 69 => 5, 66 => 4, 63 => 3, 60 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("{% for object in admin.datagrid.results %}
\t{% set style = \"\" %}
\t{% if object.type.name == \"prod\" %}
\t\t{% set style = \"background-color:#ffbcba;color:#000;\" %}
\t{% endif %}
\t{% if object.debugmode == true %}
\t\t{% set style = \"background-color:orange;color:#000;\" %}\t
\t{% endif %}
<tr style=\"{{ style }}\" >
{% include get_admin_template('inner_list_row', admin.code) %}
</tr>
{% endfor %}
", "CRUD/list__environment__list_outer_rows_list.html.twig", "/var/www/test-dashboard.talkabot.net/public_html/dashboard/templates/CRUD/list__environment__list_outer_rows_list.html.twig");
}
}