Linux cesa-www-main 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
Apache/2.4.68 (Debian)
Server IP : 10.218.0.2 & Your IP : 216.73.216.28
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
v3.cesa.co.za /
var /
cache /
.!!QgY /
twig /
b2 /
Delete
Unzip
Name
Size
Permission
Date
Action
.htaccess
237
B
-r-xr-xr-x
2026-08-17 03:12
b23dcd5728160cabbc45d849e70fcfdb.php
86.12
KB
-rwxrwxr-x
2026-05-18 12:54
b28c70e8d3802177526c886420240f06.php
7.19
KB
-rwxrwxr-x
2026-05-18 12:54
Save
Rename
<?php use Twig\Environment; use Twig\Error\LoaderError; use Twig\Error\RuntimeError; use Twig\Extension\CoreExtension; 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; use Twig\TemplateWrapper; /* @SonataAdmin/CRUD/base_list.html.twig */ class __TwigTemplate_183395372114883049bd8fbc09a14e65 extends Template { private Source $source; /** * @var array<string, Template> */ private array $macros = []; public function __construct(Environment $env) { parent::__construct($env); $this->source = $this->getSourceContext(); $this->blocks = [ 'actions' => [$this, 'block_actions'], 'tab_menu' => [$this, 'block_tab_menu'], 'title' => [$this, 'block_title'], 'navbar_title' => [$this, 'block_navbar_title'], 'list_table' => [$this, 'block_list_table'], 'list_header' => [$this, 'block_list_header'], 'table' => [$this, 'block_table'], 'table_header' => [$this, 'block_table_header'], 'table_body' => [$this, 'block_table_body'], 'table_footer' => [$this, 'block_table_footer'], 'no_result_content' => [$this, 'block_no_result_content'], 'list_footer' => [$this, 'block_list_footer'], 'batch' => [$this, 'block_batch'], 'batch_javascript' => [$this, 'block_batch_javascript'], 'batch_actions' => [$this, 'block_batch_actions'], 'pager_results' => [$this, 'block_pager_results'], 'pager_links' => [$this, 'block_pager_links'], 'list_filters_actions' => [$this, 'block_list_filters_actions'], 'list_filters' => [$this, 'block_list_filters'], 'sonata_list_filter_group_class' => [$this, 'block_sonata_list_filter_group_class'], ]; } protected function doGetParent(array $context): bool|string|Template|TemplateWrapper { // line 12 return $this->load(($context["base_template"] ?? null), 12); } protected function doDisplay(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 34 $context["datagrid_has_results"] = (Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "datagrid", [], "any", false, false, false, 34), "results", [], "any", false, false, false, 34)) > 0); // line 12 yield from $this->getParent($context)->unwrap()->yield($context, array_merge($this->blocks, $blocks)); } // line 14 /** * @return iterable<null|scalar|\Stringable> */ public function block_actions(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 15 yield from $this->load("@SonataAdmin/CRUD/action_buttons.html.twig", 15)->unwrap()->yield($context); yield from []; } // line 18 /** * @return iterable<null|scalar|\Stringable> */ public function block_tab_menu(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 19 yield $this->env->getRuntime('Knp\Menu\Twig\MenuRuntimeExtension')->render(CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "sidemenu", [($context["action"] ?? null)], "method", false, false, false, 19), ["currentClass" => "active", "template" => $this->env->getRuntime('Sonata\AdminBundle\Twig\TemplateRegistryRuntime')->getGlobalTemplate("tab_menu_template")], "twig"); yield from []; } // line 25 /** * @return iterable<null|scalar|\Stringable> */ public function block_title(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 26 yield " "; yield (((CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "isChild", [], "any", false, false, false, 26) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "parent", [], "any", false, false, false, 26), "subject", [], "any", false, false, false, 26))) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("title_edit", ["%name%" => CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Twig\Extra\String\StringExtension']->createUnicodeString(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "parent", [], "any", false, false, false, 26), "toString", [CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "parent", [], "any", false, false, false, 26), "subject", [], "any", false, false, false, 26)], "method", false, false, false, 26)), "truncate", [15, "..."], "method", false, false, false, 26)], "SonataAdminBundle"), "html", null, true)) : ("")); yield " "; yield from []; } // line 29 /** * @return iterable<null|scalar|\Stringable> */ public function block_navbar_title(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 30 yield " "; yield (((CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "isChild", [], "any", false, false, false, 30) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "parent", [], "any", false, false, false, 30), "subject", [], "any", false, false, false, 30))) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("title_edit", ["%name%" => CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Twig\Extra\String\StringExtension']->createUnicodeString(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "parent", [], "any", false, false, false, 30), "toString", [CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "parent", [], "any", false, false, false, 30), "subject", [], "any", false, false, false, 30)], "method", false, false, false, 30)), "truncate", [100, "..."], "method", false, false, false, 30)], "SonataAdminBundle"), "html", null, true)) : ("")); yield " "; yield from []; } // line 36 /** * @return iterable<null|scalar|\Stringable> */ public function block_list_table(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 37 yield " <div class=\"col-xs-12 col-md-12\"> "; // line 38 $context["batchactions"] = CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "batchactions", [], "any", false, false, false, 38); // line 39 yield " "; if ((CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "hasRoute", ["batch"], "method", false, false, false, 39) && Twig\Extension\CoreExtension::length($this->env->getCharset(), ($context["batchactions"] ?? null)))) { // line 40 yield " <form action=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "generateUrl", ["batch", ["filter" => CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "filterParameters", [], "any", false, false, false, 40)]], "method", false, false, false, 40), "html", null, true); yield "\" method=\"POST\" > <input type=\"hidden\" name=\"_sonata_csrf_token\" value=\""; // line 41 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["csrf_token"] ?? null), "html", null, true); yield "\"> "; } // line 43 yield " "; // line 45 yield " <div class=\"box box-primary\""; if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "datagrid", [], "any", false, false, false, 45), "pager", [], "any", false, false, false, 45), "lastPage", [], "any", false, false, false, 45) == 1)) { yield " style=\"margin-bottom: 100px;\""; } yield "> <div class=\"box-body"; // line 46 if ((($tmp = ($context["datagrid_has_results"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { yield " table-responsive no-padding"; } yield "\"> "; // line 47 yield $this->env->getRuntime('Sonata\BlockBundle\Templating\Helper\BlockHelper')->renderEvent("sonata.admin.list.table.top", ["admin" => ($context["admin"] ?? null)]); yield " "; // line 49 yield from $this->unwrap()->yieldBlock('list_header', $context, $blocks); // line 50 yield " "; // line 51 if ((($tmp = ($context["datagrid_has_results"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 52 yield " "; yield from $this->unwrap()->yieldBlock('table', $context, $blocks); // line 115 yield " "; } else { // line 116 yield " "; yield from $this->unwrap()->yieldBlock('no_result_content', $context, $blocks); // line 140 yield " "; } // line 141 yield " "; // line 142 yield $this->env->getRuntime('Sonata\BlockBundle\Templating\Helper\BlockHelper')->renderEvent("sonata.admin.list.table.bottom", ["admin" => ($context["admin"] ?? null)]); yield " </div> "; // line 144 yield from $this->unwrap()->yieldBlock('list_footer', $context, $blocks); // line 249 yield " </div> "; // line 250 if ((CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "hasRoute", ["batch"], "method", false, false, false, 250) && Twig\Extension\CoreExtension::length($this->env->getCharset(), ($context["batchactions"] ?? null)))) { // line 251 yield " </form> "; } // line 253 yield " </div> "; yield from []; } // line 49 /** * @return iterable<null|scalar|\Stringable> */ public function block_list_header(array $context, array $blocks = []): iterable { $macros = $this->macros; yield from []; } // line 52 /** * @return iterable<null|scalar|\Stringable> */ public function block_table(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 53 yield " <table class=\"table table-bordered table-striped table-hover sonata-ba-list\"> "; // line 54 yield from $this->unwrap()->yieldBlock('table_header', $context, $blocks); // line 104 yield " "; // line 105 yield from $this->unwrap()->yieldBlock('table_body', $context, $blocks); // line 110 yield " "; // line 111 yield from $this->unwrap()->yieldBlock('table_footer', $context, $blocks); // line 113 yield " </table> "; yield from []; } // line 54 /** * @return iterable<null|scalar|\Stringable> */ public function block_table_header(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 55 yield " <thead> <tr class=\"sonata-ba-list-field-header\"> "; // line 57 $context['_parent'] = $context; $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "list", [], "any", false, false, false, 57), "getElements", [], "method", false, false, false, 57)); foreach ($context['_seq'] as $context["_key"] => $context["field_description"]) { // line 58 yield " "; if (((CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "hasRoute", ["batch"], "method", false, false, false, 58) && (CoreExtension::getAttribute($this->env, $this->source, $context["field_description"], "name", [], "any", false, false, false, 58) == Twig\Extension\CoreExtension::constant("Sonata\\AdminBundle\\Datagrid\\ListMapper::NAME_BATCH"))) && (Twig\Extension\CoreExtension::length($this->env->getCharset(), ($context["batchactions"] ?? null)) > 0))) { // line 59 yield " <th class=\"sonata-ba-list-field-header sonata-ba-list-field-header-batch\"> <input type=\"checkbox\" id=\"list_batch_checkbox\"> </th> "; } elseif ((CoreExtension::getAttribute($this->env, $this->source, // line 62 $context["field_description"], "name", [], "any", false, false, false, 62) == Twig\Extension\CoreExtension::constant("Sonata\\AdminBundle\\Datagrid\\ListMapper::NAME_SELECT"))) { // line 63 yield " <th class=\"sonata-ba-list-field-header sonata-ba-list-field-header-select\"></th> "; } elseif (((CoreExtension::getAttribute($this->env, $this->source, // line 64 $context["field_description"], "name", [], "any", false, false, false, 64) == Twig\Extension\CoreExtension::constant("Sonata\\AdminBundle\\Datagrid\\ListMapper::NAME_ACTIONS")) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 64), "isXmlHttpRequest", [], "any", false, false, false, 64))) { // line 65 yield " "; // line 66 yield " "; // line 67 yield " "; } elseif (((CoreExtension::getAttribute($this->env, $this->source, $context["field_description"], "getOption", ["ajax_hidden"], "method", false, false, false, 67) == true) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 67), "isXmlHttpRequest", [], "any", false, false, false, 67))) { // line 68 yield " "; // line 69 yield " "; } else { // line 70 yield " "; $context["sortable"] = false; // line 71 yield " "; if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["field_description"], "option", ["sortable", false], "method", false, false, false, 71)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 72 yield " "; $context["sortable"] = true; // line 73 yield " "; $context["sort_parameters"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "datagrid", [], "any", false, false, false, 73), "sortparameters", [$context["field_description"]], "method", false, false, false, 73); // line 74 yield " "; $context["current"] = (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "datagrid", [], "any", false, true, false, 74), "values", [], "any", false, true, false, 74), Twig\Extension\CoreExtension::constant("Sonata\\AdminBundle\\Datagrid\\DatagridInterface::SORT_BY"), [], "array", true, true, false, 74) && (((($_v0 = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 75 ($context["admin"] ?? null), "datagrid", [], "any", false, false, false, 75), "values", [], "any", false, false, false, 75)) && is_array($_v0) || $_v0 instanceof ArrayAccess ? ($_v0[Twig\Extension\CoreExtension::constant("Sonata\\AdminBundle\\Datagrid\\DatagridInterface::SORT_BY")] ?? null) : null) == $context["field_description"]) || (CoreExtension::getAttribute($this->env, $this->source, (($_v1 = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 76 ($context["admin"] ?? null), "datagrid", [], "any", false, false, false, 76), "values", [], "any", false, false, false, 76)) && is_array($_v1) || $_v1 instanceof ArrayAccess ? ($_v1[Twig\Extension\CoreExtension::constant("Sonata\\AdminBundle\\Datagrid\\DatagridInterface::SORT_BY")] ?? null) : null), "name", [], "any", false, false, false, 76) == (($_v2 = CoreExtension::getAttribute($this->env, $this->source, ($context["sort_parameters"] ?? null), "filter", [], "any", false, false, false, 76)) && is_array($_v2) || $_v2 instanceof ArrayAccess ? ($_v2[Twig\Extension\CoreExtension::constant("Sonata\\AdminBundle\\Datagrid\\DatagridInterface::SORT_BY")] ?? null) : null)))); // line 77 yield " "; $context["sort_active_class"] = (((($tmp = ($context["current"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("sonata-ba-list-field-order-active") : ("")); // line 78 yield " "; $context["sort_by"] = (((($tmp = ($context["current"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ((($_v3 = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "datagrid", [], "any", false, false, false, 78), "values", [], "any", false, false, false, 78)) && is_array($_v3) || $_v3 instanceof ArrayAccess ? ($_v3[Twig\Extension\CoreExtension::constant("Sonata\\AdminBundle\\Datagrid\\DatagridInterface::SORT_ORDER")] ?? null) : null)) : (CoreExtension::getAttribute($this->env, $this->source, $context["field_description"], "option", [Twig\Extension\CoreExtension::constant("Sonata\\AdminBundle\\Datagrid\\DatagridInterface::SORT_ORDER"), (($_v4 = CoreExtension::getAttribute($this->env, $this->source, ($context["sort_parameters"] ?? null), "filter", [], "any", false, false, false, 78)) && is_array($_v4) || $_v4 instanceof ArrayAccess ? ($_v4[Twig\Extension\CoreExtension::constant("Sonata\\AdminBundle\\Datagrid\\DatagridInterface::SORT_ORDER")] ?? null) : null)], "method", false, false, false, 78))); // line 79 yield " "; } // line 80 yield " <th class=\"sonata-ba-list-field-header-"; // line 81 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["field_description"], "type", [], "any", false, false, false, 81), "html", null, true); if ((($tmp = ($context["sortable"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { yield " sonata-ba-list-field-header-order-"; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::lower($this->env->getCharset(), ($context["sort_by"] ?? null)), "html", null, true); yield " "; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["sort_active_class"] ?? null), "html", null, true); } if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["field_description"], "option", ["header_class"], "method", false, false, false, 81)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { yield " "; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["field_description"], "option", ["header_class"], "method", false, false, false, 81), "html", null, true); } yield "\""; if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["field_description"], "option", ["header_style"], "method", false, false, false, 81)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { yield " style=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["field_description"], "option", ["header_style"], "method", false, false, false, 81), "html", null, true); yield "\""; } yield "> "; // line 82 if ((($tmp = ($context["sortable"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 83 yield " <a href=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "generateUrl", [((array_key_exists("action", $context)) ? (Twig\Extension\CoreExtension::default(($context["action"] ?? null), "list")) : ("list")), Twig\Extension\CoreExtension::merge(($context["sort_parameters"] ?? null), ["_list_mode" => CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "getListMode", [], "method", false, false, false, 83)])], "method", false, false, false, 83), "html", null, true); yield "\"> "; } // line 85 yield " "; if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["field_description"], "getOption", ["label_icon"], "method", false, false, false, 85)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 86 yield " <span class=\"sonata-ba-list-field-header-label-icon\"> "; // line 87 yield $this->env->getRuntime('Sonata\AdminBundle\Twig\IconRuntime')->parseIcon(CoreExtension::getAttribute($this->env, $this->source, $context["field_description"], "getOption", ["label_icon"], "method", false, false, false, 87)); yield " </span> "; } // line 90 yield " "; if ((($tmp = !(CoreExtension::getAttribute($this->env, $this->source, $context["field_description"], "label", [], "any", false, false, false, 90) === false)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 91 yield " "; if ((CoreExtension::getAttribute($this->env, $this->source, $context["field_description"], "translationDomain", [], "any", false, false, false, 91) === false)) { // line 92 yield " "; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["field_description"], "label", [], "any", false, false, false, 92), "html", null, true); yield " "; } else { // line 94 yield " "; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env, $this->source, $context["field_description"], "label", [], "any", false, false, false, 94), [], CoreExtension::getAttribute($this->env, $this->source, $context["field_description"], "translationDomain", [], "any", false, false, false, 94)), "html", null, true); yield " "; } // line 96 yield " "; } // line 97 yield " "; if ((($tmp = ($context["sortable"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { yield "</a>"; } // line 98 yield " </th> "; } // line 100 yield " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_key'], $context['field_description'], $context['_parent']); $context = array_intersect_key($context, $_parent) + $_parent; // line 101 yield " </tr> </thead> "; yield from []; } // line 105 /** * @return iterable<null|scalar|\Stringable> */ public function block_table_body(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 106 yield " <tbody> "; // line 107 yield from $this->load($this->env->getRuntime('Sonata\AdminBundle\Twig\TemplateRegistryRuntime')->getAdminTemplate(("outer_list_rows_" . CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "getListMode", [], "method", false, false, false, 107)), CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "code", [], "any", false, false, false, 107)), 107)->unwrap()->yield($context); // line 108 yield " </tbody> "; yield from []; } // line 111 /** * @return iterable<null|scalar|\Stringable> */ public function block_table_footer(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 112 yield " "; yield from []; } // line 116 /** * @return iterable<null|scalar|\Stringable> */ public function block_no_result_content(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 117 yield " <div class=\"info-box\"> <span class=\"info-box-icon bg-aqua\"><i class=\"fas fa-arrow-circle-right\" aria-hidden=\"true\"></i></span> <div class=\"info-box-content\"> <span class=\"info-box-text\">"; // line 120 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("no_result", [], "SonataAdminBundle"), "html", null, true); yield "</span> <div class=\"progress\"> <div class=\"progress-bar\" style=\"width: 0%\"></div> </div> <div class=\"progress-description\"> <ul class=\"list-unstyled\">"; // line 126 if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "datagrid", [], "any", false, false, false, 126), "pager", [], "any", false, false, false, 126), "countResults", [], "method", false, false, false, 126) > 0)) { // line 127 yield "<li> <a href=\""; // line 128 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "generateUrl", [((array_key_exists("action", $context)) ? (Twig\Extension\CoreExtension::default(($context["action"] ?? null), "list")) : ("list")), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "datagrid", [], "any", false, false, false, 128), "getPaginationParameters", [1], "method", false, false, false, 128)], "method", false, false, false, 128), "html", null, true); yield "\">"; // line 129 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("go_to_the_first_page", [], "SonataAdminBundle"), "html", null, true); // line 130 yield "</a> </li>"; } elseif ((($tmp = !CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 132 ($context["app"] ?? null), "request", [], "any", false, false, false, 132), "xmlHttpRequest", [], "any", false, false, false, 132)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 133 yield from $this->load($this->env->getRuntime('Sonata\AdminBundle\Twig\TemplateRegistryRuntime')->getAdminTemplate("button_create", CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "code", [], "any", false, false, false, 133)), 133)->unwrap()->yield($context); } // line 135 yield "</ul> </div> </div><!-- /.info-box-content --> </div> "; yield from []; } // line 144 /** * @return iterable<null|scalar|\Stringable> */ public function block_list_footer(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 145 yield " "; if ((($tmp = ($context["datagrid_has_results"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 146 yield " <div class=\"box-footer\"> <div class=\"form-inline clearfix\"> "; // line 148 if ((($tmp = !CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 148), "isXmlHttpRequest", [], "any", false, false, false, 148)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 149 yield " <div class=\"pull-left\"> "; // line 150 if ((CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "hasRoute", ["batch"], "method", false, false, false, 150) && (Twig\Extension\CoreExtension::length($this->env->getCharset(), ($context["batchactions"] ?? null)) > 0))) { // line 151 yield " "; yield from $this->unwrap()->yieldBlock('batch', $context, $blocks); // line 205 yield " "; } // line 206 yield " </div> <div class=\"pull-right\"> "; // line 209 if (((CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "hasRoute", ["export"], "method", false, false, false, 209) && CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "hasAccess", ["export"], "method", false, false, false, 209)) && Twig\Extension\CoreExtension::length($this->env->getCharset(), ($context["export_formats"] ?? null)))) { // line 210 yield " <div class=\"btn-group\"> <button type=\"button\" class=\"btn btn-default dropdown-toggle\" data-toggle=\"dropdown\"> <i class=\"fas fa-share-square\" aria-hidden=\"true\"></i> "; // line 213 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label_export_download", [], "SonataAdminBundle"), "html", null, true); yield " <span class=\"caret\"></span> </button> <ul class=\"dropdown-menu\"> "; // line 217 $context['_parent'] = $context; $context['_seq'] = CoreExtension::ensureTraversable(($context["export_formats"] ?? null)); foreach ($context['_seq'] as $context["_key"] => $context["format"]) { // line 218 yield " <li> <a href=\""; // line 219 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "generateUrl", ["export", (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "datagrid", [], "any", false, false, false, 219), "paginationparameters", [0], "method", false, false, false, 219) + ["format" => $context["format"]])], "method", false, false, false, 219), "html", null, true); yield "\"> <i class=\"fas fa-arrow-circle-o-down\" aria-hidden=\"true\"></i> "; // line 221 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(("export_format_" . $context["format"]), [], "SonataAdminBundle"), "html", null, true); yield " </a> </li> "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_key'], $context['format'], $context['_parent']); $context = array_intersect_key($context, $_parent) + $_parent; // line 225 yield " </ul> </div> "; // line 228 if ((($tmp = !Twig\Extension\CoreExtension::testEmpty( $this->unwrap()->renderBlock("pager_results", $context, $blocks))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 229 yield " - "; } // line 231 yield " "; } // line 232 yield " "; // line 233 yield from $this->unwrap()->yieldBlock('pager_results', $context, $blocks); // line 236 yield " </div> "; } // line 238 yield " </div> "; // line 240 yield from $this->unwrap()->yieldBlock('pager_links', $context, $blocks); // line 246 yield " </div> "; } // line 248 yield " "; yield from []; } // line 151 /** * @return iterable<null|scalar|\Stringable> */ public function block_batch(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 152 yield " <script> "; // line 153 yield from $this->unwrap()->yieldBlock('batch_javascript', $context, $blocks); // line 181 yield " </script> "; // line 183 yield from $this->unwrap()->yieldBlock('batch_actions', $context, $blocks); // line 202 yield " <input type=\"submit\" class=\"btn btn-small btn-primary\" value=\""; // line 203 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("btn_batch", [], "SonataAdminBundle"), "html", null, true); yield "\"> "; yield from []; } // line 153 /** * @return iterable<null|scalar|\Stringable> */ public function block_batch_javascript(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 154 yield " jQuery(document).ready(function (\$) { // Toggle individual checkboxes when the batch checkbox is changed \$('#list_batch_checkbox').on('ifChanged change', function () { var checkboxes = \$(this) .closest('table') .find('td.sonata-ba-list-field-batch input[type=\"checkbox\"], div.sonata-ba-list-field-batch input[type=\"checkbox\"]') ; if (Admin.get_config('USE_ICHECK')) { checkboxes.iCheck(\$(this).is(':checked') ? 'check' : 'uncheck'); } else { checkboxes.prop('checked', this.checked); } }); // Add a CSS class to rows when they are selected \$('td.sonata-ba-list-field-batch input[type=\"checkbox\"], div.sonata-ba-list-field-batch input[type=\"checkbox\"]') .on('ifChanged change', function () { \$(this) .closest('tr, div.sonata-ba-list-field-batch') .toggleClass('sonata-ba-list-row-selected', \$(this).is(':checked')) ; }) .trigger('ifChanged') ; }); "; yield from []; } // line 183 /** * @return iterable<null|scalar|\Stringable> */ public function block_batch_actions(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 184 yield " <label class=\"checkbox\" for=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "uniqid", [], "any", false, false, false, 184), "html", null, true); yield "_all_elements\"> <input type=\"checkbox\" name=\"all_elements\" id=\""; // line 185 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "uniqid", [], "any", false, false, false, 185), "html", null, true); yield "_all_elements\"> "; // line 186 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("all_elements", [], "SonataAdminBundle"), "html", null, true); yield " ("; // line 187 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "datagrid", [], "any", false, false, false, 187), "pager", [], "any", false, false, false, 187), "countResults", [], "method", false, false, false, 187), "html", null, true); yield ") </label> <select name=\"action\" style=\"width: auto; height: auto\" class=\"form-control\"> "; // line 191 $context['_parent'] = $context; $context['_seq'] = CoreExtension::ensureTraversable(($context["batchactions"] ?? null)); foreach ($context['_seq'] as $context["action"] => $context["options"]) { // line 192 yield " <option value=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["action"], "html", null, true); yield "\"> "; // line 193 if ((CoreExtension::getAttribute($this->env, $this->source, $context["options"], "translation_domain", [], "any", true, true, false, 193) && (CoreExtension::getAttribute($this->env, $this->source, $context["options"], "translation_domain", [], "any", false, false, false, 193) === false))) { // line 194 yield " "; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["options"], "label", [], "any", false, false, false, 194), "html", null, true); yield " "; } else { // line 196 yield " "; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env, $this->source, $context["options"], "label", [], "any", false, false, false, 196), [], (((CoreExtension::getAttribute($this->env, $this->source, $context["options"], "translation_domain", [], "any", true, true, false, 196) && !(null === CoreExtension::getAttribute($this->env, $this->source, $context["options"], "translation_domain", [], "any", false, false, false, 196)))) ? (CoreExtension::getAttribute($this->env, $this->source, $context["options"], "translation_domain", [], "any", false, false, false, 196)) : (CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "translationDomain", [], "any", false, false, false, 196)))), "html", null, true); yield " "; } // line 198 yield " </option> "; } $_parent = $context['_parent']; unset($context['_seq'], $context['action'], $context['options'], $context['_parent']); $context = array_intersect_key($context, $_parent) + $_parent; // line 200 yield " </select> "; yield from []; } // line 233 /** * @return iterable<null|scalar|\Stringable> */ public function block_pager_results(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 234 yield " "; yield from $this->load($this->env->getRuntime('Sonata\AdminBundle\Twig\TemplateRegistryRuntime')->getAdminTemplate("pager_results", CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "code", [], "any", false, false, false, 234)), 234)->unwrap()->yield($context); // line 235 yield " "; yield from []; } // line 240 /** * @return iterable<null|scalar|\Stringable> */ public function block_pager_links(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 241 yield " "; if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "datagrid", [], "any", false, false, false, 241), "pager", [], "any", false, false, false, 241), "haveToPaginate", [], "method", false, false, false, 241)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 242 yield " <hr/> "; // line 243 yield from $this->load($this->env->getRuntime('Sonata\AdminBundle\Twig\TemplateRegistryRuntime')->getAdminTemplate("pager_links", CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "code", [], "any", false, false, false, 243)), 243)->unwrap()->yield($context); // line 244 yield " "; } // line 245 yield " "; yield from []; } // line 256 /** * @return iterable<null|scalar|\Stringable> */ public function block_list_filters_actions(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 257 yield " "; // line 258 yield " "; $context["displayableFilters"] = Twig\Extension\CoreExtension::filter($this->env, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "datagrid", [], "any", false, false, false, 258), "filters", [], "any", false, false, false, 258), function ($__filter__) use ($context, $macros) { $context["filter"] = $__filter__; return !(((CoreExtension::getAttribute($this->env, $this->source, ($context["filter"] ?? null), "showFilter", [], "any", true, true, false, 258)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filter"] ?? null), "showFilter", [], "any", false, false, false, 258), CoreExtension::getAttribute($this->env, $this->source, ($context["filter"] ?? null), "option", ["show_filter"], "method", false, false, false, 258))) : (CoreExtension::getAttribute($this->env, $this->source, ($context["filter"] ?? null), "option", ["show_filter"], "method", false, false, false, 258))) === false); }); // line 259 if ((($tmp = Twig\Extension\CoreExtension::length($this->env->getCharset(), ($context["displayableFilters"] ?? null))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 260 yield " <ul class=\"nav navbar-nav navbar-right\" id=\"filter-list-"; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "uniqid", [], "method", false, false, false, 260), "html", null, true); yield "\" "; yield $this->extensions['Symfony\UX\StimulusBundle\Twig\StimulusTwigExtension']->renderStimulusController("sonata-filter-list", [], ["active" => "active"], ["sonata-filter" => ("#filter-container-" . CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "uniqid", [], "method", false, false, false, 260))]); yield "> <li class=\"dropdown sonata-actions\"> <a href=\"#\" class=\"dropdown-toggle sonata-ba-action\" data-toggle=\"dropdown\"> <i class=\"fas fa-filter\" aria-hidden=\"true\"></i> "; // line 265 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("link_filters", [], "SonataAdminBundle"), "html", null, true); yield " <span class=\"badge\" "; // line 266 yield $this->extensions['Symfony\UX\StimulusBundle\Twig\StimulusTwigExtension']->renderStimulusTarget("sonata-filter-list", "counter"); yield "></span> <b class=\"caret\"></b> </a> <ul class=\"dropdown-menu dropdown-menu-scrollable\" role=\"menu\"> "; // line 271 $context['_parent'] = $context; $context['_seq'] = CoreExtension::ensureTraversable(($context["displayableFilters"] ?? null)); foreach ($context['_seq'] as $context["_key"] => $context["filter"]) { // line 272 yield " "; // line 273 yield " "; $context["filterDisplayed"] = (CoreExtension::getAttribute($this->env, $this->source, $context["filter"], "isActive", [], "method", false, false, false, 273) || (((CoreExtension::getAttribute($this->env, $this->source, $context["filter"], "showFilter", [], "any", true, true, false, 273)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, $context["filter"], "showFilter", [], "any", false, false, false, 273), CoreExtension::getAttribute($this->env, $this->source, $context["filter"], "option", ["show_filter"], "method", false, false, false, 273))) : (CoreExtension::getAttribute($this->env, $this->source, $context["filter"], "option", ["show_filter"], "method", false, false, false, 273))) === true)); // line 274 yield " <li> <a href=\"#\" class=\"sonata-toggle-filter sonata-ba-action"; // line 275 if ((($tmp = ($context["filterDisplayed"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { yield " active"; } yield "\" data-filter=\"filter-"; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "uniqid", [], "any", false, false, false, 275), "html", null, true); yield "-"; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["filter"], "name", [], "any", false, false, false, 275), "html", null, true); yield "\" "; yield $this->extensions['Symfony\UX\StimulusBundle\Twig\StimulusTwigExtension']->renderStimulusTarget("sonata-filter-list", "field"); yield " "; yield $this->extensions['Symfony\UX\StimulusBundle\Twig\StimulusTwigExtension']->renderStimulusAction("sonata-filter-list", "toggle:prevent:stop", "click"); yield "> <i class=\"far\"></i> "; // line 277 if ((($tmp = !(CoreExtension::getAttribute($this->env, $this->source, $context["filter"], "label", [], "any", false, false, false, 277) === false)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 278 yield " "; if ((CoreExtension::getAttribute($this->env, $this->source, $context["filter"], "translationDomain", [], "any", false, false, false, 278) === false)) { // line 279 yield " "; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["filter"], "label", [], "any", false, false, false, 279), "html", null, true); yield " "; } elseif (CoreExtension::getAttribute($this->env, $this->source, // line 280 $context["filter"], "labelTranslationParameters", [], "any", true, true, false, 280)) { // line 281 yield " "; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env, $this->source, $context["filter"], "label", [], "any", false, false, false, 281), CoreExtension::getAttribute($this->env, $this->source, $context["filter"], "labelTranslationParameters", [], "any", false, false, false, 281), (((CoreExtension::getAttribute($this->env, $this->source, $context["filter"], "translationDomain", [], "any", true, true, false, 281) && !(null === CoreExtension::getAttribute($this->env, $this->source, $context["filter"], "translationDomain", [], "any", false, false, false, 281)))) ? (CoreExtension::getAttribute($this->env, $this->source, $context["filter"], "translationDomain", [], "any", false, false, false, 281)) : (CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "translationDomain", [], "any", false, false, false, 281)))), "html", null, true); yield " "; } else { // line 282 yield " "; // line 283 yield " "; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env, $this->source, $context["filter"], "label", [], "any", false, false, false, 283), CoreExtension::getAttribute($this->env, $this->source, $context["filter"], "option", ["label_translation_parameters", []], "method", false, false, false, 283), (((CoreExtension::getAttribute($this->env, $this->source, $context["filter"], "translationDomain", [], "any", true, true, false, 283) && !(null === CoreExtension::getAttribute($this->env, $this->source, $context["filter"], "translationDomain", [], "any", false, false, false, 283)))) ? (CoreExtension::getAttribute($this->env, $this->source, $context["filter"], "translationDomain", [], "any", false, false, false, 283)) : (CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "translationDomain", [], "any", false, false, false, 283)))), "html", null, true); yield " "; } // line 285 yield " "; } // line 286 yield " </a> </li> "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_key'], $context['filter'], $context['_parent']); $context = array_intersect_key($context, $_parent) + $_parent; // line 289 yield " </ul> </li> </ul> "; } yield from []; } // line 295 /** * @return iterable<null|scalar|\Stringable> */ public function block_list_filters(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 296 yield " "; if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "datagrid", [], "any", false, false, false, 296), "filters", [], "any", false, false, false, 296)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 297 yield " "; $this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme(($context["form"] ?? null), [$this->env->getRuntime('Sonata\AdminBundle\Twig\TemplateRegistryRuntime')->getAdminTemplate("filter", CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "code", [], "any", false, false, false, 297))], true); // line 298 yield " <div class=\"col-xs-12 col-md-12 sonata-filters-box\" id=\"filter-container-"; // line 300 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "uniqid", [], "method", false, false, false, 300), "html", null, true); yield "\" "; yield $this->extensions['Symfony\UX\StimulusBundle\Twig\StimulusTwigExtension']->renderStimulusController("sonata-filter", ["defaultValues" => json_encode(CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "defaultFilterParameters", [], "any", false, false, false, 300))], [], ["sonata-filter-list" => ("#filter-list-" . CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "uniqid", [], "method", false, false, false, 300))]); yield " "; if ((($tmp = !CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "datagrid", [], "any", false, false, false, 300), "hasDisplayableFilters", [], "any", false, false, false, 300)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { yield "hidden"; } yield "> <div class=\"box box-primary\" > <div class=\"box-body\"> <form class=\"sonata-filter-form form-horizontal "; // line 304 yield (((CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "isChild", [], "any", false, false, false, 304) && (1 == Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "datagrid", [], "any", false, false, false, 304), "filters", [], "any", false, false, false, 304))))) ? ("hide") : ("")); yield "\" action=\""; // line 305 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "generateUrl", [((array_key_exists("action", $context)) ? (Twig\Extension\CoreExtension::default(($context["action"] ?? null), "list")) : ("list"))], "method", false, false, false, 305), "html", null, true); yield "\" method=\"GET\" role=\"form\" "; // line 308 yield $this->extensions['Symfony\UX\StimulusBundle\Twig\StimulusTwigExtension']->renderStimulusTarget("sonata-filter", "form"); yield " "; // line 309 yield $this->extensions['Symfony\UX\StimulusBundle\Twig\StimulusTwigExtension']->renderStimulusAction("sonata-filter", "prepareSubmit", "submit"); yield "> "; // line 310 yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'errors'); yield " <div class=\"row\"> <div class=\"col-sm-9\"> "; // line 314 $context["withAdvancedFilter"] = false; // line 315 yield " "; $context['_parent'] = $context; $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "datagrid", [], "any", false, false, false, 315), "filters", [], "any", false, false, false, 315)); $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["filter"]) { // line 316 yield " "; // line 317 yield " "; $context["filterDisplayed"] = (CoreExtension::getAttribute($this->env, $this->source, $context["filter"], "isActive", [], "method", false, false, false, 317) || (((CoreExtension::getAttribute($this->env, $this->source, $context["filter"], "showFilter", [], "any", true, true, false, 317)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, $context["filter"], "showFilter", [], "any", false, false, false, 317), CoreExtension::getAttribute($this->env, $this->source, $context["filter"], "option", ["show_filter"], "method", false, false, false, 317))) : (CoreExtension::getAttribute($this->env, $this->source, $context["filter"], "option", ["show_filter"], "method", false, false, false, 317))) === true)); // line 318 yield " "; $context["filterCanBeDisplayed"] = !(CoreExtension::getAttribute($this->env, $this->source, $context["filter"], "option", ["show_filter"], "method", false, false, false, 318) === false); // line 319 yield " <div class=\"form-group "; yield from $this->unwrap()->yieldBlock('sonata_list_filter_group_class', $context, $blocks); yield "\" id=\"filter-"; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "uniqid", [], "any", false, false, false, 319), "html", null, true); yield "-"; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["filter"], "name", [], "any", false, false, false, 319), "html", null, true); yield "\" "; yield $this->extensions['Symfony\UX\StimulusBundle\Twig\StimulusTwigExtension']->renderStimulusTarget("sonata-filter", "group"); yield " "; if ((($tmp = !($context["filterDisplayed"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { yield "hidden"; } yield "> "; // line 320 if ((($tmp = !(CoreExtension::getAttribute($this->env, $this->source, $context["filter"], "label", [], "any", false, false, false, 320) === false)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 321 yield " <label for=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (($_v5 = CoreExtension::getAttribute($this->env, $this->source, (($_v6 = ($context["form"] ?? null)) && is_array($_v6) || $_v6 instanceof ArrayAccess ? ($_v6[CoreExtension::getAttribute($this->env, $this->source, $context["filter"], "formName", [], "any", false, false, false, 321)] ?? null) : null), "children", [], "any", false, false, false, 321)) && is_array($_v5) || $_v5 instanceof ArrayAccess ? ($_v5["value"] ?? null) : null), "vars", [], "any", false, false, false, 321), "id", [], "any", false, false, false, 321), "html", null, true); yield "\" class=\"col-sm-3 control-label\"> "; // line 322 if ((CoreExtension::getAttribute($this->env, $this->source, $context["filter"], "translationDomain", [], "any", false, false, false, 322) === false)) { // line 323 yield " "; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["filter"], "label", [], "any", false, false, false, 323), "html", null, true); yield " "; } else { // line 325 yield " "; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env, $this->source, $context["filter"], "label", [], "any", false, false, false, 325), CoreExtension::getAttribute($this->env, $this->source, $context["filter"], "option", ["label_translation_parameters", []], "method", false, false, false, 325), (((CoreExtension::getAttribute($this->env, $this->source, $context["filter"], "translationDomain", [], "any", true, true, false, 325) && !(null === CoreExtension::getAttribute($this->env, $this->source, $context["filter"], "translationDomain", [], "any", false, false, false, 325)))) ? (CoreExtension::getAttribute($this->env, $this->source, $context["filter"], "translationDomain", [], "any", false, false, false, 325)) : (CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "translationDomain", [], "any", false, false, false, 325)))), "html", null, true); yield " "; } // line 327 yield " </label> "; } // line 329 yield " "; $context["attr"] = ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), CoreExtension::getAttribute($this->env, $this->source, $context["filter"], "formName", [], "any", false, false, false, 329), [], "array", false, true, false, 329), "children", [], "any", false, true, false, 329), "type", [], "array", false, true, false, 329), "vars", [], "any", false, true, false, 329), "attr", [], "any", true, true, false, 329)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (($_v7 = CoreExtension::getAttribute($this->env, $this->source, (($_v8 = ($context["form"] ?? null)) && is_array($_v8) || $_v8 instanceof ArrayAccess ? ($_v8[CoreExtension::getAttribute($this->env, $this->source, $context["filter"], "formName", [], "any", false, false, false, 329)] ?? null) : null), "children", [], "any", false, false, false, 329)) && is_array($_v7) || $_v7 instanceof ArrayAccess ? ($_v7["type"] ?? null) : null), "vars", [], "any", false, false, false, 329), "attr", [], "any", false, false, false, 329), [])) : ([])); // line 330 yield " <div class=\"col-sm-4 advanced-filter\" "; yield $this->extensions['Symfony\UX\StimulusBundle\Twig\StimulusTwigExtension']->renderStimulusTarget("sonata-filter", "advanced"); yield " "; if ((($tmp = !$this->extensions['Symfony\Bridge\Twig\Extension\FormExtension']->getFieldValue((($_v9 = CoreExtension::getAttribute($this->env, $this->source, (($_v10 = ($context["form"] ?? null)) && is_array($_v10) || $_v10 instanceof ArrayAccess ? ($_v10[CoreExtension::getAttribute($this->env, $this->source, $context["filter"], "formName", [], "any", false, false, false, 330)] ?? null) : null), "children", [], "any", false, false, false, 330)) && is_array($_v9) || $_v9 instanceof ArrayAccess ? ($_v9["type"] ?? null) : null))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { yield "hidden"; } yield "> "; // line 331 yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((($_v11 = CoreExtension::getAttribute($this->env, $this->source, (($_v12 = ($context["form"] ?? null)) && is_array($_v12) || $_v12 instanceof ArrayAccess ? ($_v12[CoreExtension::getAttribute($this->env, $this->source, $context["filter"], "formName", [], "any", false, false, false, 331)] ?? null) : null), "children", [], "any", false, false, false, 331)) && is_array($_v11) || $_v11 instanceof ArrayAccess ? ($_v11["type"] ?? null) : null), 'widget', ["attr" => ($context["attr"] ?? null)]); yield " </div> <div class=\"col-sm-4\"> "; // line 335 yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((($_v13 = CoreExtension::getAttribute($this->env, $this->source, (($_v14 = ($context["form"] ?? null)) && is_array($_v14) || $_v14 instanceof ArrayAccess ? ($_v14[CoreExtension::getAttribute($this->env, $this->source, $context["filter"], "formName", [], "any", false, false, false, 335)] ?? null) : null), "children", [], "any", false, false, false, 335)) && is_array($_v13) || $_v13 instanceof ArrayAccess ? ($_v13["value"] ?? null) : null), 'widget'); yield " </div> "; // line 338 if ((($tmp = ($context["filterCanBeDisplayed"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 339 yield " <div class=\"col-sm-1\"> <label class=\"control-label\"> <a href=\"#\" class=\"sonata-ba-action\" "; // line 341 yield $this->extensions['Symfony\UX\StimulusBundle\Twig\StimulusTwigExtension']->renderStimulusAction("sonata-filter", "hideFilter", "click", ["id" => ((("filter-" . CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "uniqid", [], "any", false, false, false, 341)) . "-") . CoreExtension::getAttribute($this->env, $this->source, $context["filter"], "name", [], "any", false, false, false, 341))]); yield "> <i class=\"fas fa-minus-circle\" aria-hidden=\"true\"></i> </a> </label> </div> "; } // line 347 yield " </div> "; // line 350 yield " "; if ((($tmp = ((CoreExtension::getAttribute($this->env, $this->source, $context["filter"], "withAdvancedFilter", [], "any", true, true, false, 350)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, $context["filter"], "withAdvancedFilter", [], "any", false, false, false, 350), CoreExtension::getAttribute($this->env, $this->source, $context["filter"], "option", ["advanced_filter"], "method", false, false, false, 350))) : (CoreExtension::getAttribute($this->env, $this->source, $context["filter"], "option", ["advanced_filter"], "method", false, false, false, 350)))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 351 yield " "; $context["withAdvancedFilter"] = true; // line 352 yield " "; } // line 353 yield " "; ++$context['loop']['index0']; ++$context['loop']['index']; $context['loop']['first'] = false; if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) { --$context['loop']['revindex0']; --$context['loop']['revindex']; $context['loop']['last'] = 0 === $context['loop']['revindex0']; } } $_parent = $context['_parent']; unset($context['_seq'], $context['_key'], $context['filter'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 354 yield " </div> <div class=\"col-sm-3 text-center\"> <input type=\"hidden\" name=\"filter["; // line 356 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::constant("Sonata\\AdminBundle\\Datagrid\\DatagridInterface::PAGE"), "html", null, true); yield "]\" id=\"filter__page\" value=\"1\"> "; // line 358 $context["foo"] = CoreExtension::getAttribute($this->env, $this->source, (($_v15 = ($context["form"] ?? null)) && is_array($_v15) || $_v15 instanceof ArrayAccess ? ($_v15[Twig\Extension\CoreExtension::constant("Sonata\\AdminBundle\\Datagrid\\DatagridInterface::PAGE")] ?? null) : null), "setRendered", [], "method", false, false, false, 358); // line 359 yield " "; yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'rest'); yield " <div class=\"form-group\"> <button type=\"submit\" class=\"btn btn-primary\" "; // line 362 yield $this->extensions['Symfony\UX\StimulusBundle\Twig\StimulusTwigExtension']->renderStimulusTarget("sonata-filter", "submitter"); yield "> <i class=\"fas fa-filter\" aria-hidden=\"true\"></i> "; // line 363 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("btn_filter", [], "SonataAdminBundle"), "html", null, true); yield " </button> <a class=\"btn btn-default\" href=\""; // line 366 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "generateUrl", [((array_key_exists("action", $context)) ? (Twig\Extension\CoreExtension::default(($context["action"] ?? null), "list")) : ("list")), ["filters" => "reset"]], "method", false, false, false, 366), "html", null, true); yield "\"> "; // line 367 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("link_reset_filter", [], "SonataAdminBundle"), "html", null, true); yield " </a> </div> "; // line 371 if ((($tmp = ($context["withAdvancedFilter"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 372 yield " <div class=\"form-group\"> <a href=\"#\" "; // line 373 yield $this->extensions['Symfony\UX\StimulusBundle\Twig\StimulusTwigExtension']->renderStimulusAction("sonata-filter", "toggleAdvanced", "click"); yield "> <i class=\"fas fa-cogs\" aria-hidden=\"true\"></i> "; // line 375 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("btn_advanced_filters", [], "SonataAdminBundle"), "html", null, true); yield " </a> </div> "; } // line 379 yield " </div> </div> "; // line 382 $context['_parent'] = $context; $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "persistentParameters", [], "any", false, false, false, 382)); foreach ($context['_seq'] as $context["paramKey"] => $context["paramValue"]) { // line 383 yield " <input type=\"hidden\" name=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["paramKey"], "html", null, true); yield "\" value=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["paramValue"], "html", null, true); yield "\"> "; } $_parent = $context['_parent']; unset($context['_seq'], $context['paramKey'], $context['paramValue'], $context['_parent']); $context = array_intersect_key($context, $_parent) + $_parent; // line 385 yield " </form> </div> </div> </div> "; } yield from []; } // line 319 /** * @return iterable<null|scalar|\Stringable> */ public function block_sonata_list_filter_group_class(array $context, array $blocks = []): iterable { $macros = $this->macros; yield from []; } /** * @codeCoverageIgnore */ public function getTemplateName(): string { return "@SonataAdmin/CRUD/base_list.html.twig"; } /** * @codeCoverageIgnore */ public function isTraitable(): bool { return false; } /** * @codeCoverageIgnore */ public function getDebugInfo(): array { return array ( 1144 => 319, 1134 => 385, 1123 => 383, 1119 => 382, 1114 => 379, 1107 => 375, 1102 => 373, 1099 => 372, 1097 => 371, 1090 => 367, 1086 => 366, 1080 => 363, 1076 => 362, 1069 => 359, 1067 => 358, 1062 => 356, 1058 => 354, 1044 => 353, 1041 => 352, 1038 => 351, 1035 => 350, 1031 => 347, 1022 => 341, 1018 => 339, 1016 => 338, 1010 => 335, 1003 => 331, 994 => 330, 991 => 329, 987 => 327, 981 => 325, 975 => 323, 973 => 322, 968 => 321, 966 => 320, 951 => 319, 948 => 318, 945 => 317, 943 => 316, 925 => 315, 923 => 314, 916 => 310, 912 => 309, 908 => 308, 902 => 305, 898 => 304, 885 => 300, 881 => 298, 878 => 297, 875 => 296, 868 => 295, 859 => 289, 851 => 286, 848 => 285, 842 => 283, 840 => 282, 834 => 281, 832 => 280, 827 => 279, 824 => 278, 822 => 277, 807 => 275, 804 => 274, 801 => 273, 799 => 272, 795 => 271, 787 => 266, 783 => 265, 772 => 260, 770 => 259, 767 => 258, 765 => 257, 758 => 256, 753 => 245, 750 => 244, 748 => 243, 745 => 242, 742 => 241, 735 => 240, 730 => 235, 727 => 234, 720 => 233, 714 => 200, 707 => 198, 701 => 196, 695 => 194, 693 => 193, 688 => 192, 684 => 191, 677 => 187, 673 => 186, 669 => 185, 664 => 184, 657 => 183, 626 => 154, 619 => 153, 612 => 203, 609 => 202, 607 => 183, 603 => 181, 601 => 153, 598 => 152, 591 => 151, 586 => 248, 582 => 246, 580 => 240, 576 => 238, 572 => 236, 570 => 233, 567 => 232, 564 => 231, 560 => 229, 558 => 228, 553 => 225, 543 => 221, 538 => 219, 535 => 218, 531 => 217, 524 => 213, 519 => 210, 517 => 209, 512 => 206, 509 => 205, 506 => 151, 504 => 150, 501 => 149, 499 => 148, 495 => 146, 492 => 145, 485 => 144, 476 => 135, 473 => 133, 471 => 132, 468 => 130, 466 => 129, 463 => 128, 460 => 127, 458 => 126, 450 => 120, 445 => 117, 438 => 116, 433 => 112, 426 => 111, 420 => 108, 418 => 107, 415 => 106, 408 => 105, 401 => 101, 395 => 100, 391 => 98, 386 => 97, 383 => 96, 377 => 94, 371 => 92, 368 => 91, 365 => 90, 359 => 87, 356 => 86, 353 => 85, 347 => 83, 345 => 82, 325 => 81, 322 => 80, 319 => 79, 316 => 78, 313 => 77, 311 => 76, 310 => 75, 308 => 74, 305 => 73, 302 => 72, 299 => 71, 296 => 70, 293 => 69, 291 => 68, 288 => 67, 286 => 66, 284 => 65, 282 => 64, 279 => 63, 277 => 62, 272 => 59, 269 => 58, 265 => 57, 261 => 55, 254 => 54, 248 => 113, 246 => 111, 243 => 110, 241 => 105, 238 => 104, 236 => 54, 233 => 53, 226 => 52, 216 => 49, 210 => 253, 206 => 251, 204 => 250, 201 => 249, 199 => 144, 194 => 142, 191 => 141, 188 => 140, 185 => 116, 182 => 115, 179 => 52, 177 => 51, 174 => 50, 172 => 49, 167 => 47, 161 => 46, 154 => 45, 151 => 43, 146 => 41, 141 => 40, 138 => 39, 136 => 38, 133 => 37, 126 => 36, 118 => 30, 111 => 29, 103 => 26, 96 => 25, 91 => 19, 84 => 18, 79 => 15, 72 => 14, 68 => 12, 66 => 34, 59 => 12,); } public function getSourceContext(): Source { return new Source("", "@SonataAdmin/CRUD/base_list.html.twig", "/var/www/v3.cesa.co.za/vendor/sonata-project/admin-bundle/src/Resources/views/CRUD/base_list.html.twig"); } }