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 /
92 /
Delete
Unzip
Name
Size
Permission
Date
Action
.htaccess
237
B
-r-xr-xr-x
2026-08-17 03:12
922a74a71090a1f838207596e6a9a725.php
2.71
KB
-rwxrwxr-x
2026-05-18 12:54
92961add4ee0d207c1ec4be6cbe88e66.php
14.36
KB
-rwxrwxr-x
2026-05-18 12:54
92aacae5a625621f0119619ead2ad777.php
41.66
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/Association/edit_many_script.html.twig */ class __TwigTemplate_802268e983b055e1c2b3053c93d3b2c4 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 = [ ]; } protected function doDisplay(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 11 yield " "; // line 18 yield " "; // line 20 yield " "; // line 21 $context["associationadmin"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["sonata_admin"] ?? null), "field_description", [], "any", false, false, false, 21), "associationadmin", [], "any", false, false, false, 21); // line 22 yield " <!-- edit many association --> <script type=\"text/javascript\"> "; // line 32 yield " var field_dialog_form_list_link_"; // line 33 yield ($context["id"] ?? null); yield " = function(event) { initialize_popup_"; // line 34 yield ($context["id"] ?? null); yield "(); var target = jQuery(this); if (target.attr('href').length === 0 || target.attr('href') === '#') { return; } event.preventDefault(); event.stopPropagation(); Admin.log('["; // line 45 yield ($context["id"] ?? null); yield "|field_dialog_form_list_link] handle link click in a list'); var element = jQuery(this).parents('#field_dialog_"; // line 47 yield ($context["id"] ?? null); yield " .sonata-ba-list-field'); // the user does not click on a row column if (element.length == 0) { Admin.log('["; // line 51 yield ($context["id"] ?? null); yield "|field_dialog_form_list_link] the user does not click on a row column, make ajax call to retrieve inner html'); // make a recursive call (ie: reset the filter) jQuery.ajax({ type: 'GET', url: jQuery(this).attr('href'), dataType: 'html', success: function(html) { Admin.log('["; // line 58 yield ($context["id"] ?? null); yield "|field_dialog_form_list_link] callback success, attach valid js event'); field_dialog_content_"; // line 60 yield ($context["id"] ?? null); yield ".html(html); field_dialog_form_list_handle_action_"; // line 61 yield ($context["id"] ?? null); yield "(); Admin.shared_setup(field_dialog_"; // line 63 yield ($context["id"] ?? null); yield "); } }); return; } Admin.log('["; // line 70 yield ($context["id"] ?? null); yield "|field_dialog_form_list_link] the user select one element, update input and hide the modal'); jQuery('#"; // line 72 yield ($context["id"] ?? null); yield "').val(element.attr('objectId')); jQuery('#"; // line 73 yield ($context["id"] ?? null); yield "').trigger('change'); field_dialog_"; // line 75 yield ($context["id"] ?? null); yield ".modal('hide'); }; // this function handle action on the modal list when inside a selected list var field_dialog_form_list_handle_action_"; // line 79 yield ($context["id"] ?? null); yield " = function() { Admin.log('["; // line 80 yield ($context["id"] ?? null); yield "|field_dialog_form_list_handle_action] attaching valid js event'); // capture the submit event to make an ajax call, ie : POST data to the // related create admin jQuery('a', field_dialog_"; // line 84 yield ($context["id"] ?? null); yield ").on('click', field_dialog_form_list_link_"; yield ($context["id"] ?? null); yield "); jQuery('form', field_dialog_"; // line 85 yield ($context["id"] ?? null); yield ").on('submit', function(event) { event.preventDefault(); var form = jQuery(this); Admin.log('["; // line 90 yield ($context["id"] ?? null); yield "|field_dialog_form_list_handle_action] catching submit event, sending ajax request'); jQuery(form).ajaxSubmit({ type: form.attr('method'), url: form.attr('action'), dataType: 'html', data: {_xml_http_request: true}, success: function(html) { Admin.log('["; // line 99 yield ($context["id"] ?? null); yield "|field_dialog_form_list_handle_action] form submit success, restoring event'); field_dialog_content_"; // line 101 yield ($context["id"] ?? null); yield ".html(html); field_dialog_form_list_handle_action_"; // line 102 yield ($context["id"] ?? null); yield "(); Admin.shared_setup(field_dialog_"; // line 104 yield ($context["id"] ?? null); yield "); } }); }); }; // handle the list link var field_dialog_form_list_"; // line 111 yield ($context["id"] ?? null); yield " = function(event) { initialize_popup_"; // line 113 yield ($context["id"] ?? null); yield "(); event.preventDefault(); event.stopPropagation(); Admin.log('["; // line 118 yield ($context["id"] ?? null); yield "|field_dialog_form_list] open the list modal'); var a = jQuery(this); field_dialog_content_"; // line 122 yield ($context["id"] ?? null); yield ".html(''); // retrieve the form element from the related admin generator jQuery.ajax({ url: a.attr('href'), dataType: 'html', success: function(html) { Admin.log('["; // line 130 yield ($context["id"] ?? null); yield "|field_dialog_form_list] retrieving the list content'); // populate the popup container field_dialog_content_"; // line 133 yield ($context["id"] ?? null); yield ".html(html); "; // line 134 if ((($tmp = !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, ($context["associationadmin"] ?? null), "label", [], "any", false, false, false, 134))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 135 yield " field_dialog_title_"; yield ($context["id"] ?? null); yield ".html(\""; yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env, $this->source, ($context["associationadmin"] ?? null), "label", [], "any", false, false, false, 135), [], CoreExtension::getAttribute($this->env, $this->source, ($context["associationadmin"] ?? null), "translationdomain", [], "any", false, false, false, 135)); yield "\"); "; } // line 137 yield " Admin.shared_setup(field_dialog_"; // line 138 yield ($context["id"] ?? null); yield "); field_dialog_form_list_handle_action_"; // line 140 yield ($context["id"] ?? null); yield "(); // open the dialog in modal mode field_dialog_"; // line 143 yield ($context["id"] ?? null); yield ".modal(); Admin.setup_list_modal(field_dialog_"; // line 145 yield ($context["id"] ?? null); yield "); } }); }; // handle the add link var field_dialog_form_add_"; // line 151 yield ($context["id"] ?? null); yield " = function(event) { initialize_popup_"; // line 152 yield ($context["id"] ?? null); yield "(); event.preventDefault(); event.stopPropagation(); var a = jQuery(this); field_dialog_content_"; // line 159 yield ($context["id"] ?? null); yield ".html(''); Admin.log('["; // line 161 yield ($context["id"] ?? null); yield "|field_dialog_form_add] add link action'); // retrieve the form element from the related admin generator jQuery.ajax({ url: a.attr('href'), dataType: 'html', success: function(html) { Admin.log('["; // line 169 yield ($context["id"] ?? null); yield "|field_dialog_form_add] ajax success', field_dialog_"; yield ($context["id"] ?? null); yield "); // populate the popup container field_dialog_content_"; // line 172 yield ($context["id"] ?? null); yield ".html(html); "; // line 173 if ((($tmp = !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, ($context["associationadmin"] ?? null), "label", [], "any", false, false, false, 173))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 174 yield " field_dialog_title_"; yield ($context["id"] ?? null); yield ".html(\""; yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env, $this->source, ($context["associationadmin"] ?? null), "label", [], "any", false, false, false, 174), [], CoreExtension::getAttribute($this->env, $this->source, ($context["associationadmin"] ?? null), "translationdomain", [], "any", false, false, false, 174)); yield "\"); "; } // line 176 yield " Admin.shared_setup(field_dialog_"; // line 177 yield ($context["id"] ?? null); yield "); // capture the submit event to make an ajax call, ie : POST data to the // related create admin jQuery(document).on('click','#field_dialog_"; // line 181 yield ($context["id"] ?? null); yield " a', field_dialog_form_action_"; yield ($context["id"] ?? null); yield "); jQuery('form', field_dialog_"; // line 182 yield ($context["id"] ?? null); yield ").on('submit', field_dialog_form_action_"; yield ($context["id"] ?? null); yield "); // open the dialog in modal mode field_dialog_"; // line 185 yield ($context["id"] ?? null); yield ".modal(); Admin.setup_list_modal(field_dialog_"; // line 187 yield ($context["id"] ?? null); yield "); } }); }; // handle the edit link var field_dialog_form_edit_"; // line 193 yield ($context["id"] ?? null); yield " = function(event) { initialize_popup_"; // line 194 yield ($context["id"] ?? null); yield "(); event.preventDefault(); event.stopPropagation(); var a = jQuery(this); field_dialog_content_"; // line 201 yield ($context["id"] ?? null); yield ".html(''); Admin.log('["; // line 203 yield ($context["id"] ?? null); yield "|field_dialog_form_edit] edit link action'); // retrieve the form element from the related admin generator jQuery.ajax({ url: a.attr('href'), dataType: 'html', success: function(html) { Admin.log('["; // line 211 yield ($context["id"] ?? null); yield "|field_dialog_form_edit] ajax success', field_dialog_"; yield ($context["id"] ?? null); yield "); // populate the popup container field_dialog_content_"; // line 214 yield ($context["id"] ?? null); yield ".html(html); "; // line 215 if ((($tmp = !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, ($context["associationadmin"] ?? null), "label", [], "any", false, false, false, 215))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 216 yield " field_dialog_title_"; yield ($context["id"] ?? null); yield ".html(\""; yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env, $this->source, ($context["associationadmin"] ?? null), "label", [], "any", false, false, false, 216), [], CoreExtension::getAttribute($this->env, $this->source, ($context["associationadmin"] ?? null), "translationdomain", [], "any", false, false, false, 216)); yield "\"); "; } // line 218 yield " Admin.shared_setup(field_dialog_"; // line 219 yield ($context["id"] ?? null); yield "); // capture the submit event to make an ajax call, ie : POST data to the // related create admin jQuery(document).on('click','#field_dialog_"; // line 223 yield ($context["id"] ?? null); yield " a', field_dialog_form_action_"; yield ($context["id"] ?? null); yield "); jQuery('form', field_dialog_"; // line 224 yield ($context["id"] ?? null); yield ").on('submit', field_dialog_form_action_"; yield ($context["id"] ?? null); yield "); // open the dialog in modal mode field_dialog_"; // line 227 yield ($context["id"] ?? null); yield ".modal(); Admin.setup_list_modal(field_dialog_"; // line 229 yield ($context["id"] ?? null); yield "); } }); }; // handle the post data var field_dialog_form_action_"; // line 235 yield ($context["id"] ?? null); yield " = function(event) { var element = jQuery(this); // return if the link is an anchor inside the same page if ( this.nodeName === 'A' && ( element.attr('href').length === 0 || element.attr('href')[0] === '#' || element.attr('href').substr(0, 11) === 'javascript:' ) ) { Admin.log('["; // line 248 yield ($context["id"] ?? null); yield "|field_dialog_form_action] element is an anchor or a script, skipping action', this); return; } event.preventDefault(); event.stopPropagation(); Admin.log('["; // line 255 yield ($context["id"] ?? null); yield "|field_dialog_form_action] action catch', this); initialize_popup_"; // line 257 yield ($context["id"] ?? null); yield "(); if (this.nodeName == 'FORM') { var url = element.attr('action'); var type = element.attr('method'); } else if (this.nodeName == 'A') { var url = element.attr('href'); var type = 'GET'; } else { alert('unexpected element : @' + this.nodeName + '@'); return; } if (element.hasClass('sonata-ba-action')) { Admin.log('["; // line 271 yield ($context["id"] ?? null); yield "|field_dialog_form_action] reserved action stop catch all events'); return; } var data = { _xml_http_request: true } var form = jQuery(this); Admin.log('["; // line 281 yield ($context["id"] ?? null); yield "|field_dialog_form_action] execute ajax call'); var oldErrorMessages = jQuery(field_dialog_content_"; // line 283 yield ($context["id"] ?? null); yield ").find('div.alert-danger'); // Remove old error messages. if (oldErrorMessages.length > 0) { oldErrorMessages.remove(); } // the ajax post jQuery(form).ajaxSubmit({ url: url, type: type, headers: { Accept: 'application/json' }, data: data, success: function(data) { Admin.log('["; // line 298 yield ($context["id"] ?? null); yield "|field_dialog_form_action] ajax success'); // if the crud action return ok, then the element has been added // so the widget container must be refresh with the last option available if (typeof data != 'string' && data.result == 'ok') { field_dialog_"; // line 303 yield ($context["id"] ?? null); yield ".modal('hide'); "; // line 305 if ((CoreExtension::getAttribute($this->env, $this->source, ($context["sonata_admin"] ?? null), "edit", [], "any", false, false, false, 305) == "list")) { // line 306 yield " "; // line 310 yield " jQuery('#"; yield ($context["id"] ?? null); yield "').val(data.objectId); jQuery('#"; // line 311 yield ($context["id"] ?? null); yield "').change(); "; } else { // line 314 yield " // reload the form element jQuery('#field_widget_"; // line 316 yield ($context["id"] ?? null); yield "').closest('form').ajaxSubmit({ url: '"; // line 317 yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sonata_admin_retrieve_form_element", ((["_sonata_admin" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 318 ($context["sonata_admin"] ?? null), "admin", [], "any", false, false, false, 318), "root", [], "any", false, false, false, 318), "baseCodeRoute", [], "any", false, false, false, 318), "elementId" => // line 319 ($context["id"] ?? null), "subclass" => (((($tmp = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 320 ($context["sonata_admin"] ?? null), "admin", [], "any", false, false, false, 320), "hasActiveSubClass", [], "method", false, false, false, 320)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["sonata_admin"] ?? null), "admin", [], "any", false, false, false, 320), "getActiveSubclassCode", [], "method", false, false, false, 320)) : (null)), "objectId" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 321 ($context["sonata_admin"] ?? null), "admin", [], "any", false, false, false, 321), "root", [], "any", false, false, false, 321), "id", [CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["sonata_admin"] ?? null), "admin", [], "any", false, false, false, 321), "root", [], "any", false, false, false, 321), "subject", [], "any", false, false, false, 321)], "method", false, false, false, 321), "uniqid" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 322 ($context["sonata_admin"] ?? null), "admin", [], "any", false, false, false, 322), "root", [], "any", false, false, false, 322), "uniqid", [], "any", false, false, false, 322)] + (((($tmp = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 324 ($context["sonata_admin"] ?? null), "admin", [], "any", false, false, false, 324), "root", [], "any", false, false, false, 324), "hasRequest", [], "method", false, false, false, 324)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? (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, // line 325 ($context["sonata_admin"] ?? null), "admin", [], "any", false, false, false, 325), "root", [], "any", false, false, false, 325), "request", [], "any", false, false, false, 325), "attributes", [], "any", false, false, false, 325), "get", ["_route_params", []], "method", false, false, false, 325)) : ([]))) + ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 327 ($context["app"] ?? null), "request", [], "any", false, true, false, 327), "query", [], "any", false, true, false, 327), "all", [], "any", true, true, false, 327)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 327), "query", [], "any", false, false, false, 327), "all", [], "any", false, false, false, 327), [])) : ([])))); // line 328 yield "', data: {_xml_http_request: true }, dataType: 'html', type: 'POST', success: function(html) { jQuery('#field_container_"; // line 333 yield ($context["id"] ?? null); yield "').replaceWith(html); var newElement = jQuery('#"; // line 334 yield ($context["id"] ?? null); yield " [value=\"' + data.objectId + '\"]'); if (newElement.is(\"input\")) { newElement.attr('checked', 'checked'); } else { newElement.attr('selected', 'selected'); } jQuery('#field_container_"; // line 341 yield ($context["id"] ?? null); yield "').trigger('sonata-admin-append-form-element'); } }); "; } // line 346 yield " return; } // otherwise, display form error field_dialog_content_"; // line 351 yield ($context["id"] ?? null); yield ".html(data); Admin.shared_setup(field_dialog_"; // line 353 yield ($context["id"] ?? null); yield "); // reattach the event jQuery('form', field_dialog_"; // line 356 yield ($context["id"] ?? null); yield ").submit(field_dialog_form_action_"; yield ($context["id"] ?? null); yield "); }, error: function(xhr) { var content = ''; if ('application/json' === xhr.getResponseHeader('Content-Type')) { var jsonContent = JSON.parse(xhr.responseText); if (jsonContent.title) { content += '<div class=\"alert alert-danger alert-dismissable\">' + '<button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-hidden=\"true\">×</button>' + jsonContent.title + '</div>'; } if (!jsonContent.violations) { return; } event.currentTarget.querySelectorAll('.help-block.sonata-ba-field-error-messages').forEach((element) => { element.remove(); }); event.currentTarget.querySelectorAll('.has-error').forEach((element) => { element.classList.remove('has-error'); }); event.currentTarget.querySelectorAll('button').forEach((element) => { element.removeAttribute('disabled'); }); jsonContent.violations.forEach((violation) => { const field = event.currentTarget.querySelector(`[name=\"\${violation.propertyPath}\"]`); if (!field) { content += '<div class=\"alert alert-danger alert-dismissable\">' + '<button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-hidden=\"true\">×</button>' + violation.title + '</div>'; return; } const formGroup = field.closest('.form-group'); let errorList = formGroup.querySelector( '.help-block.sonata-ba-field-error-messages .list-unstyled' ); if (!errorList) { const errorWrapper = document.createElement('div'); errorWrapper.classList.add('help-block'); errorWrapper.classList.add('sonata-ba-field-error-messages'); errorList = document.createElement('ul'); errorList.classList.add('list-unstyled'); formGroup.classList.add('has-error'); errorWrapper.appendChild(errorList); formGroup.appendChild(errorWrapper); } const errorItem = document.createElement('li'); errorItem.innerHTML = `<i class=\"fas fa-exclamation-circle\" aria-hidden=\"true\"></i> \${violation.title}`; errorList.appendChild(errorItem); }); } else { content += xhr.responseText; } // Display the error. field_dialog_content_"; // line 429 yield ($context["id"] ?? null); yield ".prepend(content); // Reset the submit buttons. \$(form).find('button[type=\"submit\"]').removeAttr('disabled'); } }); return false; }; var field_dialog_"; // line 439 yield ($context["id"] ?? null); yield " = false; var field_dialog_content_"; // line 440 yield ($context["id"] ?? null); yield " = false; var field_dialog_title_"; // line 441 yield ($context["id"] ?? null); yield " = false; function initialize_popup_"; // line 443 yield ($context["id"] ?? null); yield "() { // initialize component if (!field_dialog_"; // line 445 yield ($context["id"] ?? null); yield ") { field_dialog_"; // line 446 yield ($context["id"] ?? null); yield " = jQuery(\"#field_dialog_"; yield ($context["id"] ?? null); yield "\"); field_dialog_content_"; // line 447 yield ($context["id"] ?? null); yield " = jQuery(\".modal-body\", \"#field_dialog_"; yield ($context["id"] ?? null); yield "\"); field_dialog_title_"; // line 448 yield ($context["id"] ?? null); yield " = jQuery(\".modal-title\", \"#field_dialog_"; yield ($context["id"] ?? null); yield "\"); // move the dialog as a child of the root element, nested form breaks html ... jQuery(document.body).append(field_dialog_"; // line 451 yield ($context["id"] ?? null); yield "); Admin.log('["; // line 453 yield ($context["id"] ?? null); yield "|field_dialog] move dialog container as a document child'); } } "; // line 460 yield " // this function initializes the popup // this can be only done this way as popup can be cascaded function start_field_dialog_form_add_"; // line 462 yield ($context["id"] ?? null); yield "(link) { // remove the html event link.onclick = null; initialize_popup_"; // line 467 yield ($context["id"] ?? null); yield "(); // add the jQuery event to the a element jQuery(link) .click(field_dialog_form_add_"; // line 471 yield ($context["id"] ?? null); yield ") .trigger('click') ; return false; } "; // line 481 yield " // this function initializes the popup // this can only be done this way as popup can be cascaded function start_field_dialog_form_edit_"; // line 483 yield ($context["id"] ?? null); yield "(link) { // remove the html event link.onclick = null; initialize_popup_"; // line 488 yield ($context["id"] ?? null); yield "(); // add the jQuery event to the a element jQuery(link) .click(field_dialog_form_edit_"; // line 492 yield ($context["id"] ?? null); yield ") .trigger('click') ; return false; } if (field_dialog_"; // line 499 yield ($context["id"] ?? null); yield ") { Admin.shared_setup(field_dialog_"; // line 500 yield ($context["id"] ?? null); yield "); } "; // line 503 if ((CoreExtension::getAttribute($this->env, $this->source, ($context["sonata_admin"] ?? null), "edit", [], "any", false, false, false, 503) == "list")) { // line 504 yield " "; // line 507 yield " // this function initializes the popup // this can be only done this way as popup can be cascaded function start_field_dialog_form_list_"; // line 509 yield ($context["id"] ?? null); yield "(link) { link.onclick = null; initialize_popup_"; // line 513 yield ($context["id"] ?? null); yield "(); // add the jQuery event to the a element jQuery(link) .click(field_dialog_form_list_"; // line 517 yield ($context["id"] ?? null); yield ") .trigger('click') ; return false; } function remove_selected_element_"; // line 524 yield ($context["id"] ?? null); yield "(link) { link.onclick = null; jQuery(link) .click(field_remove_element_"; // line 529 yield ($context["id"] ?? null); yield ") .trigger('click') ; return false; } function field_remove_element_"; // line 536 yield ($context["id"] ?? null); yield "(event) { event.preventDefault(); if (jQuery('#"; // line 539 yield ($context["id"] ?? null); yield " option').get(0)) { jQuery('#"; // line 540 yield ($context["id"] ?? null); yield "').attr('selectedIndex', '-1').children(\"option:selected\").attr(\"selected\", false); } jQuery('#"; // line 543 yield ($context["id"] ?? null); yield "').val(''); jQuery('#"; // line 544 yield ($context["id"] ?? null); yield "').trigger('change'); return false; } "; // line 551 yield " // update the label jQuery('#"; // line 553 yield ($context["id"] ?? null); yield "').on('change', function(event) { Admin.log('["; // line 555 yield ($context["id"] ?? null); yield "|on:change] update the label'); var objectId = jQuery(this).val(); // Skip short object information call if object is missing. if (undefined === objectId || null === objectId || '' === objectId) { jQuery('#field_widget_"; // line 561 yield ($context["id"] ?? null); yield "').html('"; yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("short_object_description_placeholder", [], "SonataAdminBundle"); yield "'); "; // line 563 if ((($tmp = ($context["btn_edit"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 564 yield " jQuery('#field_actions_"; yield ($context["id"] ?? null); yield " a.btn-warning').addClass('hidden'); "; } // line 566 yield " return; } jQuery('#field_widget_"; // line 570 yield ($context["id"] ?? null); yield "').html(\"<span><img src=\\\""; yield $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/sonataadmin/images/ajax-loader.gif"); yield "\\\" style=\\\"vertical-align: middle; margin-right: 10px\\\"/>"; yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("loading_information", [], "SonataAdminBundle"); yield "</span>\"); jQuery.ajax({ type: 'GET', url: '"; // line 573 yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sonata_admin_short_object_information", ((["_sonata_admin" => CoreExtension::getAttribute($this->env, $this->source, // line 574 ($context["associationadmin"] ?? null), "baseCodeRoute", [], "any", false, false, false, 574), "objectId" => "OBJECT_ID", "uniqid" => CoreExtension::getAttribute($this->env, $this->source, // line 576 ($context["associationadmin"] ?? null), "uniqid", [], "any", false, false, false, 576), "linkParameters" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 577 ($context["sonata_admin"] ?? null), "field_description", [], "any", false, false, false, 577), "option", ["link_parameters", []], "method", false, false, false, 577)] + (((($tmp = CoreExtension::getAttribute($this->env, $this->source, // line 579 ($context["associationadmin"] ?? null), "hasRequest", [], "method", false, false, false, 579)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 580 ($context["associationadmin"] ?? null), "request", [], "any", false, false, false, 580), "attributes", [], "any", false, false, false, 580), "get", ["_route_params", []], "method", false, false, false, 580)) : ([]))) + ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 582 ($context["app"] ?? null), "request", [], "any", false, true, false, 582), "query", [], "any", false, true, false, 582), "all", [], "any", true, true, false, 582)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 582), "query", [], "any", false, false, false, 582), "all", [], "any", false, false, false, 582), [])) : ([])))); // line 583 yield "'.replace('OBJECT_ID', objectId), dataType: 'html', success: function(html) { jQuery('#field_widget_"; // line 586 yield ($context["id"] ?? null); yield "').html(html); } }); "; // line 590 if ((($tmp = ($context["btn_edit"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 591 yield " var edit_button_url = '"; yield CoreExtension::getAttribute($this->env, $this->source, // line 592 ($context["associationadmin"] ?? null), "generateUrl", ["edit", [CoreExtension::getAttribute($this->env, $this->source, ($context["associationadmin"] ?? null), "idParameter", [], "any", false, false, false, 592) => "OBJECT_ID"]], "method", false, false, false, 592); // line 593 yield "'.replace('OBJECT_ID', objectId); jQuery('#field_actions_"; // line 595 yield ($context["id"] ?? null); yield " a.btn-warning').removeClass('hidden').attr('href', edit_button_url); "; } // line 597 yield " }); "; } // line 600 yield " </script> <!-- / edit many association --> "; yield from []; } /** * @codeCoverageIgnore */ public function getTemplateName(): string { return "@SonataAdmin/CRUD/Association/edit_many_script.html.twig"; } /** * @codeCoverageIgnore */ public function isTraitable(): bool { return false; } /** * @codeCoverageIgnore */ public function getDebugInfo(): array { return array ( 1025 => 600, 1020 => 597, 1015 => 595, 1011 => 593, 1009 => 592, 1007 => 591, 1005 => 590, 998 => 586, 993 => 583, 991 => 582, 990 => 580, 989 => 579, 988 => 577, 987 => 576, 986 => 574, 985 => 573, 975 => 570, 969 => 566, 963 => 564, 961 => 563, 954 => 561, 945 => 555, 940 => 553, 936 => 551, 929 => 544, 925 => 543, 919 => 540, 915 => 539, 909 => 536, 899 => 529, 891 => 524, 881 => 517, 874 => 513, 867 => 509, 863 => 507, 861 => 504, 859 => 503, 853 => 500, 849 => 499, 839 => 492, 832 => 488, 824 => 483, 820 => 481, 810 => 471, 803 => 467, 795 => 462, 791 => 460, 784 => 453, 779 => 451, 771 => 448, 765 => 447, 759 => 446, 755 => 445, 750 => 443, 745 => 441, 741 => 440, 737 => 439, 724 => 429, 646 => 356, 640 => 353, 635 => 351, 628 => 346, 620 => 341, 610 => 334, 606 => 333, 599 => 328, 597 => 327, 596 => 325, 595 => 324, 594 => 322, 593 => 321, 592 => 320, 591 => 319, 590 => 318, 589 => 317, 585 => 316, 581 => 314, 575 => 311, 570 => 310, 568 => 306, 566 => 305, 561 => 303, 553 => 298, 535 => 283, 530 => 281, 517 => 271, 500 => 257, 495 => 255, 485 => 248, 469 => 235, 460 => 229, 455 => 227, 447 => 224, 441 => 223, 434 => 219, 431 => 218, 423 => 216, 421 => 215, 417 => 214, 409 => 211, 398 => 203, 393 => 201, 383 => 194, 379 => 193, 370 => 187, 365 => 185, 357 => 182, 351 => 181, 344 => 177, 341 => 176, 333 => 174, 331 => 173, 327 => 172, 319 => 169, 308 => 161, 303 => 159, 293 => 152, 289 => 151, 280 => 145, 275 => 143, 269 => 140, 264 => 138, 261 => 137, 253 => 135, 251 => 134, 247 => 133, 241 => 130, 230 => 122, 223 => 118, 215 => 113, 210 => 111, 200 => 104, 195 => 102, 191 => 101, 186 => 99, 174 => 90, 166 => 85, 160 => 84, 153 => 80, 149 => 79, 142 => 75, 137 => 73, 133 => 72, 128 => 70, 118 => 63, 113 => 61, 109 => 60, 104 => 58, 94 => 51, 87 => 47, 82 => 45, 68 => 34, 64 => 33, 61 => 32, 54 => 22, 52 => 21, 49 => 20, 46 => 18, 42 => 11,); } public function getSourceContext(): Source { return new Source("", "@SonataAdmin/CRUD/Association/edit_many_script.html.twig", "/var/www/v3.cesa.co.za/vendor/sonata-project/admin-bundle/src/Resources/views/CRUD/Association/edit_many_script.html.twig"); } }