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 /
3c /
Delete
Unzip
Name
Size
Permission
Date
Action
.htaccess
237
B
-r-xr-xr-x
2026-08-17 03:12
3c0495020b83191d8eaa686cbfb56196.php
41.29
KB
-rwxrwxr-x
2026-05-18 12:54
3c204bfd5d5b693c85a2bf23364ae356.php
25.07
KB
-rwxrwxr-x
2026-05-18 12:54
3cbca14afe0c388102d552a66a042f8a.php
36.12
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/Form/Type/sonata_type_model_autocomplete.html.twig */ class __TwigTemplate_d2fd651cee25ad42f54cba0fcd76ad76 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->parent = false; $this->blocks = [ 'sonata_type_model_autocomplete_ajax_request_parameters' => [$this, 'block_sonata_type_model_autocomplete_ajax_request_parameters'], 'sonata_type_model_autocomplete_dropdown_item_format' => [$this, 'block_sonata_type_model_autocomplete_dropdown_item_format'], 'sonata_type_model_autocomplete_selection_format' => [$this, 'block_sonata_type_model_autocomplete_selection_format'], ]; } protected function doDisplay(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 11 yield "<select id=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["id"] ?? null), "html", null, true); yield "_autocomplete_input\" data-sonata-select2=\"false\""; // line 12 if ((($tmp = ($context["disabled"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { yield " disabled=\"disabled\""; } // line 13 if ((($tmp = ($context["multiple"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { yield " multiple=\"multiple\""; } // line 14 $context['_parent'] = $context; $context['_seq'] = CoreExtension::ensureTraversable(($context["attr"] ?? null)); foreach ($context['_seq'] as $context["attribute"] => $context["value"]) { yield " "; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["attribute"], "html", null, true); yield "=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["value"], "html", null, true); yield "\" "; } $_parent = $context['_parent']; unset($context['_seq'], $context['attribute'], $context['value'], $context['_parent']); $context = array_intersect_key($context, $_parent) + $_parent; // line 15 yield ">"; // line 16 $context['_parent'] = $context; $context['_seq'] = CoreExtension::ensureTraversable(Twig\Extension\CoreExtension::filter($this->env, ($context["value"] ?? null), function ($__val__, $__idx__) use ($context, $macros) { $context["val"] = $__val__; $context["idx"] = $__idx__; return (($context["idx"] . "") != "_labels"); })); foreach ($context['_seq'] as $context["idx"] => $context["val"]) { // line 17 yield "<option value=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["val"], "html", null, true); yield "\" selected>"; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((($_v0 = (($_v1 = ($context["value"] ?? null)) && is_array($_v1) || $_v1 instanceof ArrayAccess ? ($_v1["_labels"] ?? null) : null)) && is_array($_v0) || $_v0 instanceof ArrayAccess ? ($_v0[$context["idx"]] ?? null) : null), "html", null, true); yield "</option>"; } $_parent = $context['_parent']; unset($context['_seq'], $context['idx'], $context['val'], $context['_parent']); $context = array_intersect_key($context, $_parent) + $_parent; // line 19 yield "</select> <div id=\""; // line 21 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["id"] ?? null), "html", null, true); yield "_hidden_inputs_wrap\"> "; // line 22 if ((($tmp = ($context["multiple"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 23 $context['_parent'] = $context; $context['_seq'] = CoreExtension::ensureTraversable(Twig\Extension\CoreExtension::filter($this->env, ($context["value"] ?? null), function ($__val__, $__idx__) use ($context, $macros) { $context["val"] = $__val__; $context["idx"] = $__idx__; return (($context["idx"] . "") != "_labels"); })); foreach ($context['_seq'] as $context["idx"] => $context["val"]) { // line 24 yield "<input type=\"hidden\" name=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["full_name"] ?? null), "html", null, true); yield "[]\""; if ((($tmp = ($context["disabled"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { yield " disabled=\"disabled\""; } yield " value=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["val"], "html", null, true); yield "\">"; } $_parent = $context['_parent']; unset($context['_seq'], $context['idx'], $context['val'], $context['_parent']); $context = array_intersect_key($context, $_parent) + $_parent; } else { // line 27 yield "<input type=\"hidden\" name=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["full_name"] ?? null), "html", null, true); yield "\""; if ((($tmp = ($context["disabled"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { yield " disabled=\"disabled\""; } yield " value=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), 0, [], "array", true, true, false, 27)) ? (Twig\Extension\CoreExtension::default((($_v2 = ($context["value"] ?? null)) && is_array($_v2) || $_v2 instanceof ArrayAccess ? ($_v2[0] ?? null) : null), "")) : ("")), "html", null, true); yield "\"> "; } // line 29 yield "</div> "; // line 31 if ((CoreExtension::getAttribute($this->env, $this->source, ($context["sonata_admin"] ?? null), "field_description", [], "any", false, false, false, 31) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["sonata_admin"] ?? null), "field_description", [], "any", false, false, false, 31), "hasAssociationAdmin", [], "any", false, false, false, 31))) { // line 32 yield " <div id=\"field_actions_"; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["id"] ?? null), "html", null, true); yield "\" class=\"field-actions\"> "; // line 33 $context["display_btn_add"] = ((((CoreExtension::getAttribute($this->env, $this->source, ($context["sonata_admin"] ?? null), "edit", [], "any", false, false, false, 33) != "admin") && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["sonata_admin"] ?? null), "field_description", [], "any", false, false, false, 33), "associationadmin", [], "any", false, false, false, 33), "hasRoute", ["create"], "method", false, false, false, 33)) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 34 ($context["sonata_admin"] ?? null), "field_description", [], "any", false, false, false, 34), "associationadmin", [], "any", false, false, false, 34), "isGranted", ["CREATE"], "method", false, false, false, 34)) && ($context["btn_add"] ?? null)); // line 35 yield " "; if ((($tmp = ($context["display_btn_add"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 36 yield " <a href=\""; 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["sonata_admin"] ?? null), "field_description", [], "any", false, false, false, 36), "associationadmin", [], "any", false, false, false, 36), "generateUrl", ["create", CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 37 ($context["sonata_admin"] ?? null), "field_description", [], "any", false, false, false, 37), "getOption", ["link_parameters", []], "method", false, false, false, 37)], "method", false, false, false, 36), "html", null, true); // line 38 yield "\" onclick=\"return start_field_dialog_form_add_"; // line 39 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["id"] ?? null), "html", null, true); yield "(this);\" class=\"btn btn-success btn-sm sonata-ba-action\" "; // line 42 yield " title=\""; yield ((((( // line 43 array_key_exists("btn_translation_domain", $context)) ? (Twig\Extension\CoreExtension::default(($context["btn_translation_domain"] ?? null), null)) : (null)) === false)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape( // line 44 ($context["btn_add"] ?? null), "html", null, true)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans( // line 45 ($context["btn_add"] ?? null), [], ((array_key_exists("btn_translation_domain", $context)) ? (Twig\Extension\CoreExtension::default(($context["btn_translation_domain"] ?? null), ($context["btn_catalogue"] ?? null))) : (($context["btn_catalogue"] ?? null)))), "html", null, true))); // line 46 yield "\" > <i class=\"fas fa-plus-circle\"></i> "; // line 50 yield " "; yield ((((( // line 51 array_key_exists("btn_translation_domain", $context)) ? (Twig\Extension\CoreExtension::default(($context["btn_translation_domain"] ?? null), null)) : (null)) === false)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape( // line 52 ($context["btn_add"] ?? null), "html", null, true)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans( // line 53 ($context["btn_add"] ?? null), [], ((array_key_exists("btn_translation_domain", $context)) ? (Twig\Extension\CoreExtension::default(($context["btn_translation_domain"] ?? null), ($context["btn_catalogue"] ?? null))) : (($context["btn_catalogue"] ?? null)))), "html", null, true))); // line 54 yield " </a> "; // line 56 yield from $this->load("@SonataAdmin/CRUD/Association/edit_modal.html.twig", 56)->unwrap()->yield($context); // line 57 yield " "; yield from $this->load("@SonataAdmin/CRUD/Association/edit_many_script.html.twig", 57)->unwrap()->yield($context); // line 58 yield " "; } // line 59 yield " </div> "; } // line 61 yield " <script> "; // line 64 yield " jQuery(function (\$) { var autocompleteInput = \$('#"; // line 65 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["id"] ?? null), "js", null, true); yield "_autocomplete_input'); var select2Options = {"; // line 68 $context["allowClearPlaceholder"] = ((( !($context["multiple"] ?? null) && !($context["required"] ?? null))) ? (" ") : ("")); // line 69 yield "placeholder: '"; yield ((($context["placeholder"] ?? null)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["placeholder"], "js", null, true)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["allowClearPlaceholder"] ?? null), "js", null, true))); yield "', // allowClear needs placeholder to work properly allowClear: "; // line 70 yield (((($tmp = ($context["required"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("false") : ("true")); yield ", enable: "; // line 71 yield (((($tmp = ($context["disabled"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("false") : ("true")); yield ", minimumInputLength: "; // line 72 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["minimum_input_length"] ?? null), "js", null, true); yield ", theme: 'bootstrap', width: function() { return Admin.get_select2_width(jQuery(this)); }, language: \""; // line 77 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Sonata\AdminBundle\Twig\CanonicalizeRuntime')->getCanonicalizedLocaleForSelect2(), "js", null, true); yield "\", dropdownAutoWidth: "; // line 78 yield (((($tmp = ($context["dropdown_auto_width"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("true") : ("false")); yield ", containerCssClass: '"; // line 79 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((($context["container_css_class"] ?? null) . " form-control"), "js", null, true); yield "', dropdownCssClass: '"; // line 80 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["dropdown_css_class"] ?? null), "js", null, true); yield "', dropdownParent: autocompleteInput.parents('.modal').length > 0 ? autocompleteInput.parents('.modal') : \$(document.body), ajax: { url: '"; // line 83 yield ((($context["url"] ?? null)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["url"], "js", null, true)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(CoreExtension::getAttribute($this->env, $this->source, ($context["route"] ?? null), "name", [], "any", false, false, false, 83), ((CoreExtension::getAttribute($this->env, $this->source, ($context["route"] ?? null), "parameters", [], "any", true, true, false, 83)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["route"] ?? null), "parameters", [], "any", false, false, false, 83), [])) : ([]))), "js", null, true))); yield "', dataType: 'json', delay: "; // line 85 yield ((((($context["delay"] ?? null) == 100) && (($context["quiet_millis"] ?? null) != 100))) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["quiet_millis"] ?? null), "js", null, true)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["delay"] ?? null), "js", null, true))); yield ", // NEXT_MAJOR: Replace by `"; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["delay"] ?? null), "js", null, true); yield "` instead. cache: "; // line 86 yield (((($tmp = ($context["cache"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("true") : ("false")); yield ", processResults: function (data, params) { return { results: data.items, pagination: { more: data.more } }; }, data: function (params) { "; // line 96 yield from $this->unwrap()->yieldBlock('sonata_type_model_autocomplete_ajax_request_parameters', $context, $blocks); // line 131 yield " }, }, escapeMarkup: function (m) { return m; }, // we do not want to escape markup since we are displaying html in results templateResult: function (item) { // When selecting a new result, the label is undefined and the correct property is text if (typeof item.label === 'undefined') { item.label = item.text; } return "; // line 140 yield from $this->unwrap()->yieldBlock('sonata_type_model_autocomplete_dropdown_item_format', $context, $blocks); // line 146 yield "; // format of one dropdown item }, templateSelection: function (item) { // The searching... placeholder appears as text if (typeof item.label === 'undefined') { item.label = item.text; } return "; // line 154 yield from $this->unwrap()->yieldBlock('sonata_type_model_autocomplete_selection_format', $context, $blocks); // line 160 yield "; // format selected item '<b>'+item.label+'</b>'; }, }; autocompleteInput.select2(select2Options); autocompleteInput.on('select2:select select2:unselect', function(e) { if (e.type === 'select2:select') { e.added = e.params.data; } if (e.type === 'select2:unselect') { e.removed = e.params.data; } // console.log('change '+JSON.stringify({val:e.val, added:e.added, removed:e.removed})); // remove input if (undefined !== e.removed && null !== e.removed) { var removedItems = e.removed; "; // line 180 if ((($tmp = ($context["multiple"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 181 yield " if(!\$.isArray(removedItems)) { removedItems = [removedItems]; } var length = removedItems.length; for (var i = 0; i < length; i++) { el = removedItems[i]; \$('#"; // line 188 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["id"] ?? null), "js", null, true); yield "_hidden_inputs_wrap input:hidden[value=\"'+el.id+'\"]').remove(); }"; } else { // line 191 yield "\$('#"; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["id"] ?? null), "js", null, true); yield "_hidden_inputs_wrap input:hidden').val('');"; } // line 193 yield " } // add new input var el = null; if (undefined !== e.added) { var addedItems = e.added; "; // line 201 if ((($tmp = ($context["multiple"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 202 yield " if(!\$.isArray(addedItems)) { addedItems = [addedItems]; } var length = addedItems.length; for (var i = 0; i < length; i++) { el = addedItems[i]; \$('#"; // line 209 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["id"] ?? null), "js", null, true); yield "_hidden_inputs_wrap').append('<input type=\"hidden\" name=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["full_name"] ?? null), "js", null, true); yield "[]\" value=\"'+el.id+'\" />'); }"; } else { // line 212 yield "\$('#"; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["id"] ?? null), "js", null, true); yield "_hidden_inputs_wrap input:hidden').val(addedItems.id);"; } // line 214 yield " } }); // remove unneeded autocomplete text input before form submit autocompleteInput.closest('form').submit(function() { autocompleteInput.remove(); return true; }); // Automatically select the created record after closing the popup window "; // line 225 if (((((CoreExtension::getAttribute($this->env, $this->source, ($context["sonata_admin"] ?? null), "field_description", [], "any", false, false, false, 225) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 226 ($context["sonata_admin"] ?? null), "field_description", [], "any", false, false, false, 226), "hasAssociationAdmin", [], "any", false, false, false, 226)) && // line 227 ($context["btn_add"] ?? null)) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 228 ($context["sonata_admin"] ?? null), "field_description", [], "any", false, false, false, 228), "associationadmin", [], "any", false, false, false, 228), "hasRoute", ["create"], "method", false, false, false, 228)) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 229 ($context["sonata_admin"] ?? null), "field_description", [], "any", false, false, false, 229), "associationadmin", [], "any", false, false, false, 229), "hasAccess", ["create"], "method", false, false, false, 229))) { // line 230 yield " "; // line 231 $context["create_url"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["sonata_admin"] ?? null), "field_description", [], "any", false, false, false, 231), "associationadmin", [], "any", false, false, false, 231), "generateUrl", ["create", CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["sonata_admin"] ?? null), "field_description", [], "any", false, false, false, 231), "getOption", ["link_parameters", []], "method", false, false, false, 231)], "method", false, false, false, 231); // line 232 yield " \$(document).ajaxSuccess(function(event, xhr, settings) { if(typeof xhr.responseJSON != 'undefined') { if ('"; // line 235 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["create_url"] ?? null), "js", null, true); yield "'.indexOf(settings.url) !== -1 && typeof xhr.responseJSON != 'string' && xhr.responseJSON.result == 'ok') { var item = new Option( new DOMParser().parseFromString(xhr.responseJSON.objectName, \"text/html\").documentElement.textContent, xhr.responseJSON.objectId, true, true ); // append to Select2 autocompleteInput.append(item).trigger('change'); // manually trigger the `select2:select` event autocompleteInput.trigger({ type: 'select2:select', params: { data: autocompleteInput.select2('data') } }); "; // line 253 if ((($tmp = ($context["multiple"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 254 yield " \$('#"; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["id"] ?? null), "js", null, true); yield "_hidden_inputs_wrap').append('<input type=\"hidden\" name=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["full_name"] ?? null), "js", null, true); yield "[]\" value=\"'+xhr.responseJSON.objectId+'\" />'); "; } else { // line 256 yield " \$('#"; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["id"] ?? null), "js", null, true); yield "_hidden_inputs_wrap').html('<input type=\"hidden\" name=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["full_name"] ?? null), "js", null, true); yield "\" value=\"'+xhr.responseJSON.objectId+'\" />'); "; } // line 258 yield " } } }); "; } // line 262 yield " }); "; // line 264 yield "</script> "; yield from []; } // line 96 /** * @return iterable<null|scalar|\Stringable> */ public function block_sonata_type_model_autocomplete_ajax_request_parameters(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 97 yield " return { //search term '"; // line 99 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["req_param_name_search"] ?? null), "js", null, true); yield "': params.term, // page size '"; // line 102 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["req_param_name_items_per_page"] ?? null), "js", null, true); yield "': "; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["items_per_page"] ?? null), "js", null, true); yield ", // page number '"; // line 105 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["req_param_name_page_number"] ?? null), "js", null, true); yield "': (params.page !== 'undefined' ? params.page : 1), // admin "; // line 108 if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, ($context["sonata_admin"] ?? null), "admin", [], "any", false, false, false, 108)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 109 yield " 'uniqid': '"; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["sonata_admin"] ?? null), "admin", [], "any", false, false, false, 109), "uniqid", [], "any", false, false, false, 109), "js", null, true); yield "', '_sonata_admin': '"; // line 110 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["sonata_admin"] ?? null), "admin", [], "any", false, false, false, 110), "baseCodeRoute", [], "any", false, false, false, 110), "js"); yield "', "; } elseif ((($tmp = // line 111 ($context["admin_code"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 112 yield " '_sonata_admin': '"; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["admin_code"] ?? null), "js"); yield "', "; } // line 114 yield " "; // line 115 if ((($context["context"] ?? null) == "filter")) { // line 116 yield " 'field': '"; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::replace(($context["full_name"] ?? null), ["filter[" => "", "][value]" => "", "__" => "."]), "js", null, true); yield "', '_context': 'filter' "; } else { // line 119 yield " 'field': '"; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["name"] ?? null), "js", null, true); yield "' "; } // line 121 yield " // other parameters "; // line 123 if ((($tmp = !Twig\Extension\CoreExtension::testEmpty(($context["req_params"] ?? null))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { yield ","; // line 124 $context['_parent'] = $context; $context['_seq'] = CoreExtension::ensureTraversable(($context["req_params"] ?? null)); $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["value"]) { // line 125 yield "'"; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["key"], "js", null, true); yield "': '"; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["value"], "js", null, true); yield "'"; // line 126 if ((($tmp = !CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 126)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { 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['value'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; } // line 129 yield " }; "; yield from []; } // line 140 /** * @return iterable<null|scalar|\Stringable> */ public function block_sonata_type_model_autocomplete_dropdown_item_format(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 141 if ((($tmp = ((array_key_exists("safe_label", $context)) ? (Twig\Extension\CoreExtension::default(($context["safe_label"] ?? null), false)) : (false))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 142 yield " '<div class=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["dropdown_item_css_class"] ?? null), "js", null, true); yield "\">'+item.label+'<\\/div>' "; } else { // line 144 yield " jQuery('<div class=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["dropdown_item_css_class"] ?? null), "js", null, true); yield "\">').text(item.label).prop('outerHTML') "; } yield from []; } // line 154 /** * @return iterable<null|scalar|\Stringable> */ public function block_sonata_type_model_autocomplete_selection_format(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 155 if ((($tmp = ((array_key_exists("safe_label", $context)) ? (Twig\Extension\CoreExtension::default(($context["safe_label"] ?? null), false)) : (false))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 156 yield " item.label "; } else { // line 158 yield " jQuery('<div>').text(item.label).prop('innerHTML') "; } yield from []; } /** * @codeCoverageIgnore */ public function getTemplateName(): string { return "@SonataAdmin/Form/Type/sonata_type_model_autocomplete.html.twig"; } /** * @codeCoverageIgnore */ public function isTraitable(): bool { return false; } /** * @codeCoverageIgnore */ public function getDebugInfo(): array { return array ( 610 => 158, 606 => 156, 604 => 155, 597 => 154, 588 => 144, 582 => 142, 580 => 141, 573 => 140, 567 => 129, 550 => 126, 544 => 125, 527 => 124, 524 => 123, 520 => 121, 514 => 119, 507 => 116, 505 => 115, 502 => 114, 496 => 112, 494 => 111, 490 => 110, 485 => 109, 483 => 108, 477 => 105, 469 => 102, 463 => 99, 459 => 97, 452 => 96, 446 => 264, 443 => 262, 437 => 258, 429 => 256, 421 => 254, 419 => 253, 398 => 235, 393 => 232, 391 => 231, 388 => 230, 386 => 229, 385 => 228, 384 => 227, 383 => 226, 382 => 225, 369 => 214, 364 => 212, 357 => 209, 348 => 202, 346 => 201, 336 => 193, 331 => 191, 326 => 188, 317 => 181, 315 => 180, 293 => 160, 291 => 154, 281 => 146, 279 => 140, 268 => 131, 266 => 96, 253 => 86, 247 => 85, 242 => 83, 236 => 80, 232 => 79, 228 => 78, 224 => 77, 216 => 72, 212 => 71, 208 => 70, 203 => 69, 201 => 68, 196 => 65, 193 => 64, 189 => 61, 185 => 59, 182 => 58, 179 => 57, 177 => 56, 173 => 54, 171 => 53, 170 => 52, 169 => 51, 167 => 50, 162 => 46, 160 => 45, 159 => 44, 158 => 43, 156 => 42, 151 => 39, 148 => 38, 146 => 37, 144 => 36, 141 => 35, 139 => 34, 138 => 33, 133 => 32, 131 => 31, 127 => 29, 115 => 27, 100 => 24, 96 => 23, 94 => 22, 90 => 21, 86 => 19, 76 => 17, 72 => 16, 70 => 15, 57 => 14, 53 => 13, 49 => 12, 45 => 11,); } public function getSourceContext(): Source { return new Source("", "@SonataAdmin/Form/Type/sonata_type_model_autocomplete.html.twig", "/var/www/v3.cesa.co.za/vendor/sonata-project/admin-bundle/src/Resources/views/Form/Type/sonata_type_model_autocomplete.html.twig"); } }