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 /
e8 /
Delete
Unzip
Name
Size
Permission
Date
Action
.htaccess
237
B
-r-xr-xr-x
2026-08-17 03:12
e8214fa787ca9a1198128a75e85f68cf.php
2.58
KB
-rwxrwxr-x
2026-05-18 12:54
e823efb4e077ef9f45e7603aa47a607e.php
3.15
KB
-rwxrwxr-x
2026-05-18 12:54
e8b7bc695374aada80eec4b6fcc619bd.php
43.72
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_edit_form.html.twig */ class __TwigTemplate_4b0c6977e5f744c62f223e2a9960e693 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 = [ 'form' => [$this, 'block_form'], 'sonata_form_action_url' => [$this, 'block_sonata_form_action_url'], 'sonata_form_attributes' => [$this, 'block_sonata_form_attributes'], 'sonata_pre_fieldsets' => [$this, 'block_sonata_pre_fieldsets'], 'sonata_tab_content' => [$this, 'block_sonata_tab_content'], 'sonata_post_fieldsets' => [$this, 'block_sonata_post_fieldsets'], 'formactions' => [$this, 'block_formactions'], 'sonata_form_actions' => [$this, 'block_sonata_form_actions'], 'btn_delete' => [$this, 'block_btn_delete'], 'btn_create' => [$this, 'block_btn_create'], 'btn_preview' => [$this, 'block_btn_preview'], 'btn_update_and_edit' => [$this, 'block_btn_update_and_edit'], 'btn_update_and_list' => [$this, 'block_btn_update_and_list'], 'btn_acl' => [$this, 'block_btn_acl'], 'btn_create_and_edit' => [$this, 'block_btn_create_and_edit'], 'btn_create_and_list' => [$this, 'block_btn_create_and_list'], 'btn_create_and_create' => [$this, 'block_btn_create_and_create'], ]; } protected function doDisplay(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 1 yield from $this->unwrap()->yieldBlock('form', $context, $blocks); yield from []; } /** * @return iterable<null|scalar|\Stringable> */ public function block_form(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 2 yield " "; yield $this->env->getRuntime('Sonata\BlockBundle\Templating\Helper\BlockHelper')->renderEvent("sonata.admin.edit.form.top", ["admin" => ($context["admin"] ?? null), "object" => ($context["object"] ?? null)]); yield " "; // line 4 $context["url"] = (((($tmp = !(null === ($context["objectId"] ?? null))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("edit") : ("create")); // line 5 yield " "; // line 6 if ((($tmp = !CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "hasRoute", [($context["url"] ?? null)], "method", false, false, false, 6)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 7 yield " <div> "; // line 8 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("form_not_available", [], "SonataAdminBundle"), "html", null, true); yield " </div> "; } else { // line 11 yield " <form "; // line 12 if ((CoreExtension::getAttribute($this->env, $this->source, ($context["sonata_config"] ?? null), "getOption", ["form_type"], "method", false, false, false, 12) == "horizontal")) { yield "class=\"form-horizontal\""; } // line 13 yield " role=\"form\" action=\""; // line 14 yield from $this->unwrap()->yieldBlock('sonata_form_action_url', $context, $blocks); yield "\" "; // line 15 if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "vars", [], "any", false, false, false, 15), "multipart", [], "any", false, false, false, 15)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { yield " enctype=\"multipart/form-data\""; } // line 16 yield " method=\"POST\" "; // line 17 if ((($tmp = !CoreExtension::getAttribute($this->env, $this->source, ($context["sonata_config"] ?? null), "getOption", ["html5_validate"], "method", false, false, false, 17)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { yield "novalidate=\"novalidate\""; } // line 18 yield " "; yield $this->extensions['Symfony\UX\StimulusBundle\Twig\StimulusTwigExtension']->appendStimulusController($this->extensions['Symfony\UX\StimulusBundle\Twig\StimulusTwigExtension']->renderStimulusController("sonata-confirm-exit"), "sonata-edit"); // line 21 yield " "; // line 22 yield $this->extensions['Symfony\UX\StimulusBundle\Twig\StimulusTwigExtension']->appendStimulusAction($this->extensions['Symfony\UX\StimulusBundle\Twig\StimulusTwigExtension']->appendStimulusAction($this->extensions['Symfony\UX\StimulusBundle\Twig\StimulusTwigExtension']->appendStimulusAction($this->extensions['Symfony\UX\StimulusBundle\Twig\StimulusTwigExtension']->renderStimulusAction("sonata-confirm-exit", "confirm", "beforeunload@window"), "sonata-confirm-exit", "skip", "submit"), "sonata-edit", "prepareSubmit", "submit"), "sonata-edit", "checkValidity:capture", "invalid"); // line 27 yield " "; // line 28 yield from $this->unwrap()->yieldBlock('sonata_form_attributes', $context, $blocks); // line 29 yield " > "; // line 31 yield Twig\Extension\CoreExtension::include($this->env, $context, "@SonataAdmin/Helper/render_form_dismissable_errors.html.twig"); yield " "; // line 33 yield from $this->unwrap()->yieldBlock('sonata_pre_fieldsets', $context, $blocks); // line 36 yield " "; // line 37 yield from $this->unwrap()->yieldBlock('sonata_tab_content', $context, $blocks); // line 92 yield " "; // line 93 yield from $this->unwrap()->yieldBlock('sonata_post_fieldsets', $context, $blocks); // line 96 yield " "; // line 97 yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'rest'); yield " "; // line 99 yield from $this->unwrap()->yieldBlock('formactions', $context, $blocks); // line 166 yield " </form> "; } // line 168 yield " "; // line 169 yield $this->env->getRuntime('Sonata\BlockBundle\Templating\Helper\BlockHelper')->renderEvent("sonata.admin.edit.form.bottom", ["admin" => ($context["admin"] ?? null), "object" => ($context["object"] ?? null)]); yield " "; yield from []; } // line 14 /** * @return iterable<null|scalar|\Stringable> */ public function block_sonata_form_action_url(array $context, array $blocks = []): iterable { $macros = $this->macros; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "generateUrl", [($context["url"] ?? null), [CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "idParameter", [], "any", false, false, false, 14) => ($context["objectId"] ?? null), "uniqid" => CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "uniqid", [], "any", false, false, false, 14), "subclass" => 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, 14), "attributes", [], "any", false, false, false, 14), "get", ["subclass", 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, 14), "query", [], "any", false, false, false, 14), "get", ["subclass", 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, 14), "request", [], "any", false, false, false, 14), "get", ["subclass"], "method", false, false, false, 14)], "method", false, false, false, 14)], "method", false, false, false, 14)]], "method", false, false, false, 14), "html", null, true); yield from []; } // line 28 /** * @return iterable<null|scalar|\Stringable> */ public function block_sonata_form_attributes(array $context, array $blocks = []): iterable { $macros = $this->macros; yield from []; } // line 33 /** * @return iterable<null|scalar|\Stringable> */ public function block_sonata_pre_fieldsets(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 34 yield " <div class=\"row\"> "; yield from []; } // line 37 /** * @return iterable<null|scalar|\Stringable> */ public function block_sonata_tab_content(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 38 yield " "; $macros["form_helper"] = $this->load("@SonataAdmin/CRUD/base_edit_form_macro.html.twig", 38)->unwrap(); // line 39 yield " "; $context["formtabs"] = CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "getformtabs", [], "method", false, false, false, 39); // line 40 yield " "; $context["has_tab"] = (((Twig\Extension\CoreExtension::length($this->env->getCharset(), ($context["formtabs"] ?? null)) == 1) && ((($_v0 = Twig\Extension\CoreExtension::keys(($context["formtabs"] ?? null))) && is_array($_v0) || $_v0 instanceof ArrayAccess ? ($_v0[0] ?? null) : null) != "default")) || (Twig\Extension\CoreExtension::length($this->env->getCharset(), ($context["formtabs"] ?? null)) > 1)); // line 41 yield " <div class=\"col-md-12\"> "; // line 43 if ((($tmp = ($context["has_tab"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 44 yield " "; $context["tab_prefix"] = ((("tab_" . CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "uniqid", [], "any", false, false, false, 44)) . "_") . Twig\Extension\CoreExtension::random($this->env->getCharset())); // line 45 yield " "; $context["tab_query_index"] = Twig\Extension\CoreExtension::last($this->env->getCharset(), Twig\Extension\CoreExtension::split($this->env->getCharset(), 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, 45), "query", [], "any", false, false, false, 45), "get", ["_tab", 0], "method", false, false, false, 45), "_")); // line 46 yield " <div class=\"nav-tabs-custom\"> <ul class=\"nav nav-tabs\" role=\"tablist\"> "; // line 48 $context['_parent'] = $context; $context['_seq'] = CoreExtension::ensureTraversable(($context["formtabs"] ?? 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["name"] => $context["form_tab"]) { // line 49 yield " "; $context["_tab_name"] = ((($context["tab_prefix"] ?? null) . "_") . CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 49)); // line 50 yield " <li"; if ((( !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, 50), "query", [], "any", false, false, false, 50), "has", ["_tab"], "method", false, false, false, 50) && (CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 50) == 1)) || (($context["tab_query_index"] ?? null) == CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 50)))) { yield " class=\"active\""; } yield "> <a href=\"#"; // line 51 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["_tab_name"] ?? null), "html", null, true); yield "\" class=\"changer-tab\" aria-controls=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["_tab_name"] ?? null), "html", null, true); yield "\" data-toggle=\"tab\" "; yield $this->extensions['Symfony\UX\StimulusBundle\Twig\StimulusTwigExtension']->renderStimulusTarget("sonata-edit", "tab"); yield " "; yield $this->extensions['Symfony\UX\StimulusBundle\Twig\StimulusTwigExtension']->renderStimulusAction("sonata-edit", "changeTab", "click"); yield "> <i class=\"fas fa-exclamation-circle has-errors\" aria-hidden=\"true\" hidden></i> "; // line 53 if ((CoreExtension::getAttribute($this->env, $this->source, $context["form_tab"], "translation_domain", [], "any", true, true, false, 53) && (CoreExtension::getAttribute($this->env, $this->source, $context["form_tab"], "translation_domain", [], "any", false, false, false, 53) === false))) { // line 54 yield " "; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["form_tab"], "label", [], "any", false, false, false, 54), "html", null, true); yield " "; } else { // line 56 yield " "; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env, $this->source, $context["form_tab"], "label", [], "any", false, false, false, 56), [], (((CoreExtension::getAttribute($this->env, $this->source, $context["form_tab"], "translation_domain", [], "any", true, true, false, 56) && !(null === CoreExtension::getAttribute($this->env, $this->source, $context["form_tab"], "translation_domain", [], "any", false, false, false, 56)))) ? (CoreExtension::getAttribute($this->env, $this->source, $context["form_tab"], "translation_domain", [], "any", false, false, false, 56)) : (CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "translationDomain", [], "any", false, false, false, 56)))), "html", null, true); yield " "; } // line 58 yield " </a> </li> "; ++$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['name'], $context['form_tab'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 61 yield " </ul> <div class=\"tab-content\"> "; // line 63 $context['_parent'] = $context; $context['_seq'] = CoreExtension::ensureTraversable(($context["formtabs"] ?? 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["code"] => $context["form_tab"]) { // line 64 yield " "; $context["_tab_name"] = ((($context["tab_prefix"] ?? null) . "_") . CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 64)); // line 65 yield " <div class=\"tab-pane fade"; // line 66 if ((( !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, 66), "query", [], "any", false, false, false, 66), "has", ["_tab"], "method", false, false, false, 66) && CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 66)) || (($context["tab_query_index"] ?? null) == CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 66)))) { yield " in active"; } yield "\" id=\""; // line 67 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["_tab_name"] ?? null), "html", null, true); yield "\" > <div class=\"box-body container-fluid\"> <div class=\"sonata-ba-collapsed-fields\"> "; // line 71 if ((CoreExtension::getAttribute($this->env, $this->source, $context["form_tab"], "description", [], "any", false, false, false, 71) != false)) { // line 72 yield " "; if ((CoreExtension::getAttribute($this->env, $this->source, $context["form_tab"], "translation_domain", [], "any", true, true, false, 72) && (CoreExtension::getAttribute($this->env, $this->source, $context["form_tab"], "translation_domain", [], "any", false, false, false, 72) === false))) { // line 73 yield " <p>"; yield CoreExtension::getAttribute($this->env, $this->source, $context["form_tab"], "description", [], "any", false, false, false, 73); yield "</p> "; } else { // line 75 yield " <p>"; yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env, $this->source, $context["form_tab"], "description", [], "any", false, false, false, 75), [], (((CoreExtension::getAttribute($this->env, $this->source, $context["form_tab"], "translation_domain", [], "any", true, true, false, 75) && !(null === CoreExtension::getAttribute($this->env, $this->source, $context["form_tab"], "translation_domain", [], "any", false, false, false, 75)))) ? (CoreExtension::getAttribute($this->env, $this->source, $context["form_tab"], "translation_domain", [], "any", false, false, false, 75)) : (CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "translationDomain", [], "any", false, false, false, 75)))); yield "</p> "; } // line 77 yield " "; } // line 78 yield " "; // line 79 yield $macros["form_helper"]->getTemplateForMacro("macro_render_groups", $context, 79, $this->getSourceContext())->macro_render_groups(...[($context["admin"] ?? null), ($context["form"] ?? null), (($_v1 = $context["form_tab"]) && is_array($_v1) || $_v1 instanceof ArrayAccess ? ($_v1["groups"] ?? null) : null), ($context["has_tab"] ?? null)]); yield " </div> </div> </div> "; ++$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['code'], $context['form_tab'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 84 yield " </div> <input type=\"hidden\" name=\"_tab\" value=\""; // line 85 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["app"] ?? null), "request", [], "any", false, false, false, 85), "query", [], "any", false, false, false, 85), "get", ["_tab"], "method", false, false, false, 85), "html", null, true); yield "\" "; yield $this->extensions['Symfony\UX\StimulusBundle\Twig\StimulusTwigExtension']->renderStimulusTarget("sonata-edit", "tabStore"); yield "> </div> "; } elseif (CoreExtension::getAttribute($this->env, $this->source, // line 87 ($context["formtabs"] ?? null), "default", [], "array", true, true, false, 87)) { // line 88 yield " "; yield $macros["form_helper"]->getTemplateForMacro("macro_render_groups", $context, 88, $this->getSourceContext())->macro_render_groups(...[($context["admin"] ?? null), ($context["form"] ?? null), CoreExtension::getAttribute($this->env, $this->source, (($_v2 = ($context["formtabs"] ?? null)) && is_array($_v2) || $_v2 instanceof ArrayAccess ? ($_v2["default"] ?? null) : null), "groups", [], "any", false, false, false, 88), ($context["has_tab"] ?? null)]); yield " "; } // line 90 yield " </div> "; yield from []; } // line 93 /** * @return iterable<null|scalar|\Stringable> */ public function block_sonata_post_fieldsets(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 94 yield " </div> "; yield from []; } // line 99 /** * @return iterable<null|scalar|\Stringable> */ public function block_formactions(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 100 yield " <div class=\"sonata-ba-form-actions well well-small form-actions\" "; yield $this->extensions['Symfony\UX\StimulusBundle\Twig\StimulusTwigExtension']->renderStimulusTarget("sonata-sticky", "action"); yield "> "; // line 101 yield from $this->unwrap()->yieldBlock('sonata_form_actions', $context, $blocks); // line 164 yield " </div> "; yield from []; } // line 101 /** * @return iterable<null|scalar|\Stringable> */ public function block_sonata_form_actions(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 102 yield " "; if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 102), "isxmlhttprequest", [], "any", false, false, false, 102)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 103 yield " "; if ((($tmp = !(null === ($context["objectId"] ?? null))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 104 yield " <button type=\"submit\" class=\"btn btn-success\" name=\"btn_update\"><i class=\"fas fa-save\" aria-hidden=\"true\"></i> "; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("btn_update", [], "SonataAdminBundle"), "html", null, true); yield "</button> "; // line 105 if ((CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "hasRoute", ["delete"], "method", false, false, false, 105) && CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "hasAccess", ["delete", ($context["object"] ?? null)], "method", false, false, false, 105))) { // line 106 yield " "; yield from $this->unwrap()->yieldBlock('btn_delete', $context, $blocks); // line 112 yield " "; } // line 113 yield " "; } else { // line 114 yield " "; yield from $this->unwrap()->yieldBlock('btn_create', $context, $blocks); // line 117 yield " "; } // line 118 yield " "; } else { // line 119 yield " "; if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "supportsPreviewMode", [], "any", false, false, false, 119)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 120 yield " "; yield from $this->unwrap()->yieldBlock('btn_preview', $context, $blocks); // line 126 yield " "; } // line 127 yield " "; if ((($tmp = !(null === ($context["objectId"] ?? null))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 128 yield " "; yield from $this->unwrap()->yieldBlock('btn_update_and_edit', $context, $blocks); // line 131 yield " "; // line 132 if ((CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "hasRoute", ["list"], "method", false, false, false, 132) && CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "hasAccess", ["list"], "method", false, false, false, 132))) { // line 133 yield " "; yield from $this->unwrap()->yieldBlock('btn_update_and_list', $context, $blocks); // line 136 yield " "; } // line 137 yield " "; // line 138 if ((CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "hasRoute", ["delete"], "method", false, false, false, 138) && CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "hasAccess", ["delete", ($context["object"] ?? null)], "method", false, false, false, 138))) { // line 139 yield " "; yield from $this->unwrap()->yieldBlock("btn_delete", $context, $blocks); yield " "; } // line 141 yield " "; // line 142 if (((CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "isAclEnabled", [], "method", false, false, false, 142) && CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "hasRoute", ["acl"], "method", false, false, false, 142)) && CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "hasAccess", ["acl", ($context["object"] ?? null)], "method", false, false, false, 142))) { // line 143 yield " "; yield from $this->unwrap()->yieldBlock('btn_acl', $context, $blocks); // line 146 yield " "; } // line 147 yield " "; } else { // line 148 yield " "; if ((CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "hasroute", ["edit"], "method", false, false, false, 148) && CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "hasAccess", ["edit"], "method", false, false, false, 148))) { // line 149 yield " "; yield from $this->unwrap()->yieldBlock('btn_create_and_edit', $context, $blocks); // line 152 yield " "; } // line 153 yield " "; if ((CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "hasroute", ["list"], "method", false, false, false, 153) && CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "hasAccess", ["list"], "method", false, false, false, 153))) { // line 154 yield " "; yield from $this->unwrap()->yieldBlock('btn_create_and_list', $context, $blocks); // line 157 yield " "; } // line 158 yield " "; yield from $this->unwrap()->yieldBlock('btn_create_and_create', $context, $blocks); // line 161 yield " "; } // line 162 yield " "; } // line 163 yield " "; yield from []; } // line 106 /** * @return iterable<null|scalar|\Stringable> */ public function block_btn_delete(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 107 yield " "; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("delete_or", [], "SonataAdminBundle"), "html", null, true); yield " <a class=\"btn btn-danger\" href=\""; // line 108 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "generateObjectUrl", ["delete", ($context["object"] ?? null)], "method", false, false, false, 108), "html", null, true); yield "\"> <i class=\"fas fa-minus-circle\" aria-hidden=\"true\"></i> "; // line 109 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("link_delete", [], "SonataAdminBundle"), "html", null, true); yield " </a> "; yield from []; } // line 114 /** * @return iterable<null|scalar|\Stringable> */ public function block_btn_create(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 115 yield " <button type=\"submit\" class=\"btn btn-success\" name=\"btn_create\"><i class=\"fas fa-plus-circle\" aria-hidden=\"true\"></i> "; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("btn_create", [], "SonataAdminBundle"), "html", null, true); yield "</button> "; yield from []; } // line 120 /** * @return iterable<null|scalar|\Stringable> */ public function block_btn_preview(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 121 yield " <button class=\"btn btn-info persist-preview\" name=\"btn_preview\" type=\"submit\"> <i class=\"fas fa-eye\" aria-hidden=\"true\"></i> "; // line 123 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("btn_preview", [], "SonataAdminBundle"), "html", null, true); yield " </button> "; yield from []; } // line 128 /** * @return iterable<null|scalar|\Stringable> */ public function block_btn_update_and_edit(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 129 yield " <button type=\"submit\" class=\"btn btn-success\" name=\"btn_update_and_edit\"><i class=\"fas fa-save\" aria-hidden=\"true\"></i> "; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("btn_update_and_edit_again", [], "SonataAdminBundle"), "html", null, true); yield "</button> "; yield from []; } // line 133 /** * @return iterable<null|scalar|\Stringable> */ public function block_btn_update_and_list(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 134 yield " <button type=\"submit\" class=\"btn btn-success\" name=\"btn_update_and_list\"><i class=\"fas fa-save\"></i> <i class=\"fas fa-list\" aria-hidden=\"true\"></i> "; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("btn_update_and_return_to_list", [], "SonataAdminBundle"), "html", null, true); yield "</button> "; yield from []; } // line 143 /** * @return iterable<null|scalar|\Stringable> */ public function block_btn_acl(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 144 yield " <a class=\"btn btn-info\" href=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["admin"] ?? null), "generateObjectUrl", ["acl", ($context["object"] ?? null)], "method", false, false, false, 144), "html", null, true); yield "\"><i class=\"fas fa-users\" aria-hidden=\"true\"></i> "; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("link_edit_acl", [], "SonataAdminBundle"), "html", null, true); yield "</a> "; yield from []; } // line 149 /** * @return iterable<null|scalar|\Stringable> */ public function block_btn_create_and_edit(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 150 yield " <button class=\"btn btn-success\" type=\"submit\" name=\"btn_create_and_edit\"><i class=\"fas fa-save\" aria-hidden=\"true\"></i> "; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("btn_create_and_edit_again", [], "SonataAdminBundle"), "html", null, true); yield "</button> "; yield from []; } // line 154 /** * @return iterable<null|scalar|\Stringable> */ public function block_btn_create_and_list(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 155 yield " <button type=\"submit\" class=\"btn btn-success\" name=\"btn_create_and_list\"><i class=\"fas fa-save\"></i> <i class=\"fas fa-list\" aria-hidden=\"true\"></i> "; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("btn_create_and_return_to_list", [], "SonataAdminBundle"), "html", null, true); yield "</button> "; yield from []; } // line 158 /** * @return iterable<null|scalar|\Stringable> */ public function block_btn_create_and_create(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 159 yield " <button class=\"btn btn-success\" type=\"submit\" name=\"btn_create_and_create\"><i class=\"fas fa-plus-circle\" aria-hidden=\"true\"></i> "; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("btn_create_and_create_a_new_one", [], "SonataAdminBundle"), "html", null, true); yield "</button> "; yield from []; } /** * @codeCoverageIgnore */ public function getTemplateName(): string { return "@SonataAdmin/CRUD/base_edit_form.html.twig"; } /** * @codeCoverageIgnore */ public function getDebugInfo(): array { return array ( 712 => 159, 705 => 158, 697 => 155, 690 => 154, 682 => 150, 675 => 149, 665 => 144, 658 => 143, 650 => 134, 643 => 133, 635 => 129, 628 => 128, 620 => 123, 616 => 121, 609 => 120, 601 => 115, 594 => 114, 586 => 109, 582 => 108, 577 => 107, 570 => 106, 565 => 163, 562 => 162, 559 => 161, 556 => 158, 553 => 157, 550 => 154, 547 => 153, 544 => 152, 541 => 149, 538 => 148, 535 => 147, 532 => 146, 529 => 143, 527 => 142, 524 => 141, 518 => 139, 516 => 138, 513 => 137, 510 => 136, 507 => 133, 505 => 132, 502 => 131, 499 => 128, 496 => 127, 493 => 126, 490 => 120, 487 => 119, 484 => 118, 481 => 117, 478 => 114, 475 => 113, 472 => 112, 469 => 106, 467 => 105, 462 => 104, 459 => 103, 456 => 102, 449 => 101, 443 => 164, 441 => 101, 436 => 100, 429 => 99, 423 => 94, 416 => 93, 410 => 90, 404 => 88, 402 => 87, 395 => 85, 392 => 84, 373 => 79, 370 => 78, 367 => 77, 361 => 75, 355 => 73, 352 => 72, 350 => 71, 343 => 67, 337 => 66, 334 => 65, 331 => 64, 314 => 63, 310 => 61, 294 => 58, 288 => 56, 282 => 54, 280 => 53, 269 => 51, 262 => 50, 259 => 49, 242 => 48, 238 => 46, 235 => 45, 232 => 44, 230 => 43, 226 => 41, 223 => 40, 220 => 39, 217 => 38, 210 => 37, 204 => 34, 197 => 33, 187 => 28, 176 => 14, 168 => 169, 165 => 168, 161 => 166, 159 => 99, 154 => 97, 151 => 96, 149 => 93, 146 => 92, 144 => 37, 141 => 36, 139 => 33, 134 => 31, 130 => 29, 128 => 28, 125 => 27, 123 => 22, 120 => 21, 117 => 18, 113 => 17, 110 => 16, 106 => 15, 102 => 14, 99 => 13, 95 => 12, 92 => 11, 86 => 8, 83 => 7, 81 => 6, 78 => 5, 76 => 4, 70 => 2, 59 => 1,); } public function getSourceContext(): Source { return new Source("", "@SonataAdmin/CRUD/base_edit_form.html.twig", "/var/www/v3.cesa.co.za/vendor/sonata-project/admin-bundle/src/Resources/views/CRUD/base_edit_form.html.twig"); } }