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 /
2f /
Delete
Unzip
Name
Size
Permission
Date
Action
.htaccess
237
B
-r-xr-xr-x
2026-08-17 03:12
2fb1e30e5b09675630afb8081d25eabf.php
109.17
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/form_admin_fields.html.twig */ class __TwigTemplate_8c6996a7e505f55c47391657fec2b61c extends Template { private Source $source; /** * @var array<string, Template> */ private array $macros = []; public function __construct(Environment $env) { parent::__construct($env); $this->source = $this->getSourceContext(); $this->blocks = [ 'form_errors' => [$this, 'block_form_errors'], 'form_help' => [$this, 'block_form_help'], 'form_widget_simple' => [$this, 'block_form_widget_simple'], 'textarea_widget' => [$this, 'block_textarea_widget'], 'money_widget' => [$this, 'block_money_widget'], 'percent_widget' => [$this, 'block_percent_widget'], 'checkbox_widget' => [$this, 'block_checkbox_widget'], 'radio_widget' => [$this, 'block_radio_widget'], 'form_label' => [$this, 'block_form_label'], 'checkbox_label' => [$this, 'block_checkbox_label'], 'radio_label' => [$this, 'block_radio_label'], 'checkbox_radio_label' => [$this, 'block_checkbox_radio_label'], 'choice_widget_expanded' => [$this, 'block_choice_widget_expanded'], 'choice_widget_collapsed' => [$this, 'block_choice_widget_collapsed'], 'date_widget' => [$this, 'block_date_widget'], 'time_widget' => [$this, 'block_time_widget'], 'datetime_widget' => [$this, 'block_datetime_widget'], 'form_row' => [$this, 'block_form_row'], 'checkbox_row' => [$this, 'block_checkbox_row'], 'radio_row' => [$this, 'block_radio_row'], 'sonata_type_native_collection_widget_row' => [$this, 'block_sonata_type_native_collection_widget_row'], 'sonata_type_native_collection_widget' => [$this, 'block_sonata_type_native_collection_widget'], 'sonata_type_immutable_array_widget' => [$this, 'block_sonata_type_immutable_array_widget'], 'sonata_type_immutable_array_widget_row' => [$this, 'block_sonata_type_immutable_array_widget_row'], 'sonata_type_model_autocomplete_widget' => [$this, 'block_sonata_type_model_autocomplete_widget'], 'sonata_type_choice_field_mask_widget' => [$this, 'block_sonata_type_choice_field_mask_widget'], 'sonata_type_choice_multiple_sortable' => [$this, 'block_sonata_type_choice_multiple_sortable'], 'sonata_type_model_autocomplete_select2_options_js' => [$this, 'block_sonata_type_model_autocomplete_select2_options_js'], 'sonata_type_model_list_widget' => [$this, 'block_sonata_type_model_list_widget'], 'sonata_type_template_widget' => [$this, 'block_sonata_type_template_widget'], ]; } protected function doGetParent(array $context): bool|string|Template|TemplateWrapper { // line 12 return "form_div_layout.html.twig"; } protected function doDisplay(array $context, array $blocks = []): iterable { $macros = $this->macros; $this->parent = $this->load("form_div_layout.html.twig", 12); yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks)); } // line 14 /** * @return iterable<null|scalar|\Stringable> */ public function block_form_errors(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 15 if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), ($context["errors"] ?? null)) > 0)) { // line 16 yield " "; if ((($tmp = !CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "parent", [], "any", false, false, false, 16)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { yield "<div class=\"alert alert-danger\">"; } // line 17 yield " <ul class=\"list-unstyled\"> "; // line 18 $context['_parent'] = $context; $context['_seq'] = CoreExtension::ensureTraversable(($context["errors"] ?? null)); foreach ($context['_seq'] as $context["_key"] => $context["error"]) { // line 19 yield " <li><i class=\"fas fa-exclamation-circle\" aria-hidden=\"true\"></i> "; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["error"], "message", [], "any", false, false, false, 19), "html", null, true); yield "</li> "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_key'], $context['error'], $context['_parent']); $context = array_intersect_key($context, $_parent) + $_parent; // line 21 yield " </ul> "; // line 22 if ((($tmp = !CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "parent", [], "any", false, false, false, 22)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { yield "</div>"; } // line 23 yield " "; } yield from []; } // line 26 /** * @return iterable<null|scalar|\Stringable> */ public function block_form_help(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 27 if ((array_key_exists("sonata_admin_translation_domain", $context) && (null === ($context["translation_domain"] ?? null)))) { // line 28 yield " "; $context["translation_domain"] = ($context["sonata_admin_translation_domain"] ?? null); // line 29 yield " "; } // line 30 yield " "; if ((($tmp = !Twig\Extension\CoreExtension::testEmpty(($context["help"] ?? null))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 31 yield " "; $context["help_attr"] = Twig\Extension\CoreExtension::merge(($context["help_attr"] ?? null), ["class" => (((CoreExtension::getAttribute($this->env, $this->source, ($context["help_attr"] ?? null), "class", [], "any", true, true, false, 31)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["help_attr"] ?? null), "class", [], "any", false, false, false, 31), "")) : ("")) . " help-block sonata-ba-field-help")]); // line 32 yield " "; yield from $this->yieldParentBlock("form_help", $context, $blocks); yield " "; } yield from []; } // line 36 /** * @return iterable<null|scalar|\Stringable> */ public function block_form_widget_simple(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 37 yield " "; $context["type"] = ((array_key_exists("type", $context)) ? (Twig\Extension\CoreExtension::default(($context["type"] ?? null), "text")) : ("text")); // line 38 yield " "; if ((($context["type"] ?? null) != "file")) { // line 39 yield " "; $context["attr"] = Twig\Extension\CoreExtension::merge(($context["attr"] ?? null), ["class" => (((CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", true, true, false, 39)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", false, false, false, 39), "")) : ("")) . " form-control")]); // line 40 yield " "; } // line 41 yield " "; yield from $this->yieldParentBlock("form_widget_simple", $context, $blocks); yield " "; yield from []; } // line 44 /** * @return iterable<null|scalar|\Stringable> */ public function block_textarea_widget(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 45 yield " "; $context["attr"] = Twig\Extension\CoreExtension::merge(($context["attr"] ?? null), ["class" => (((CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", true, true, false, 45)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", false, false, false, 45), "")) : ("")) . " form-control")]); // line 46 yield " "; yield from $this->yieldParentBlock("textarea_widget", $context, $blocks); yield " "; yield from []; } // line 49 /** * @return iterable<null|scalar|\Stringable> */ public function block_money_widget(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 50 if ((($context["money_pattern"] ?? null) == "{{ widget }}")) { // line 51 yield from $this->unwrap()->yieldBlock("form_widget_simple", $context, $blocks); } else { // line 53 yield " "; $context["currencySymbol"] = Twig\Extension\CoreExtension::trim(Twig\Extension\CoreExtension::replace(($context["money_pattern"] ?? null), ["{{ widget }}" => ""])); // line 54 yield " "; if (CoreExtension::matches("/^{{ widget }}/", ($context["money_pattern"] ?? null))) { // line 55 yield " <div class=\"input-group\">"; // line 56 yield from $this->unwrap()->yieldBlock("form_widget_simple", $context, $blocks); // line 57 yield "<span class=\"input-group-addon\">"; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["currencySymbol"] ?? null), "html", null, true); yield "</span> </div> "; } elseif (CoreExtension::matches("/{{ widget }}\$/", // line 59 ($context["money_pattern"] ?? null))) { // line 60 yield " <div class=\"input-group\"> <span class=\"input-group-addon\">"; // line 61 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["currencySymbol"] ?? null), "html", null, true); yield "</span>"; // line 62 yield from $this->unwrap()->yieldBlock("form_widget_simple", $context, $blocks); // line 63 yield "</div> "; } // line 65 yield " "; } yield from []; } // line 68 /** * @return iterable<null|scalar|\Stringable> */ public function block_percent_widget(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 69 yield " "; $context["type"] = ((array_key_exists("type", $context)) ? (Twig\Extension\CoreExtension::default(($context["type"] ?? null), "text")) : ("text")); // line 70 yield " <div class=\"input-group\"> "; // line 71 yield from $this->unwrap()->yieldBlock("form_widget_simple", $context, $blocks); yield " <span class=\"input-group-addon\">%</span> </div> "; yield from []; } // line 76 /** * @return iterable<null|scalar|\Stringable> */ public function block_checkbox_widget(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 77 $context["parent_label_class"] = ((array_key_exists("parent_label_class", $context)) ? (Twig\Extension\CoreExtension::default(($context["parent_label_class"] ?? null), "")) : ("")); // line 78 if (CoreExtension::inFilter("checkbox-inline", ($context["parent_label_class"] ?? null))) { // line 79 yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'label', ["widget" => $this->renderParentBlock("checkbox_widget", $context, $blocks)]); } else { // line 81 yield "<div class=\"checkbox\">"; // line 82 yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'label', ["widget" => $this->renderParentBlock("checkbox_widget", $context, $blocks)]); // line 83 yield "</div>"; } yield from []; } // line 87 /** * @return iterable<null|scalar|\Stringable> */ public function block_radio_widget(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 88 $context["parent_label_class"] = ((array_key_exists("parent_label_class", $context)) ? (Twig\Extension\CoreExtension::default(($context["parent_label_class"] ?? null), "")) : ("")); // line 89 if (CoreExtension::inFilter("radio-inline", ($context["parent_label_class"] ?? null))) { // line 90 yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'label', ["widget" => $this->renderParentBlock("radio_widget", $context, $blocks)]); } else { // line 92 yield "<div class=\"radio\">"; // line 93 yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'label', ["widget" => $this->renderParentBlock("radio_widget", $context, $blocks)]); // line 94 yield "</div>"; } yield from []; } // line 99 /** * @return iterable<null|scalar|\Stringable> */ public function block_form_label(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 100 yield " "; if (( !(($context["label"] ?? null) === false) && ((($_v0 = CoreExtension::getAttribute($this->env, $this->source, ($context["sonata_admin"] ?? null), "options", [], "any", false, false, false, 100)) && is_array($_v0) || $_v0 instanceof ArrayAccess ? ($_v0["form_type"] ?? null) : null) == "horizontal"))) { // line 101 yield " "; $context["label_class"] = "col-sm-3"; // line 102 yield " "; } // line 103 yield " "; // line 104 $context["label_class"] = (((array_key_exists("label_class", $context)) ? (Twig\Extension\CoreExtension::default(($context["label_class"] ?? null), "")) : ("")) . " control-label"); // line 105 yield " "; // line 106 if ((($tmp = !(($context["label"] ?? null) === false)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 107 yield " "; $context["label_attr"] = Twig\Extension\CoreExtension::merge(($context["label_attr"] ?? null), ["class" => ((((CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", true, true, false, 107)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", false, false, false, 107), "")) : ("")) . " ") . ($context["label_class"] ?? null))]); // line 108 yield " "; // line 109 if ((($tmp = !($context["compound"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 110 yield " "; $context["label_attr"] = Twig\Extension\CoreExtension::merge(($context["label_attr"] ?? null), ["for" => ($context["id"] ?? null)]); // line 111 yield " "; } // line 112 yield " "; if ((($tmp = ($context["required"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 113 yield " "; $context["label_attr"] = Twig\Extension\CoreExtension::merge(($context["label_attr"] ?? null), ["class" => Twig\Extension\CoreExtension::trim((((CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", true, true, false, 113)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", false, false, false, 113), "")) : ("")) . " required"))]); // line 114 yield " "; } // line 115 yield " "; // line 116 if (Twig\Extension\CoreExtension::testEmpty(($context["label"] ?? null))) { // line 117 if ((array_key_exists("label_format", $context) && !Twig\Extension\CoreExtension::testEmpty(($context["label_format"] ?? null)))) { // line 118 $context["label"] = Twig\Extension\CoreExtension::replace(($context["label_format"] ?? null), ["%name%" => // line 119 ($context["name"] ?? null), "%id%" => // line 120 ($context["id"] ?? null)]); } else { // line 123 $context["label"] = $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->humanize(($context["name"] ?? null)); } } // line 126 yield " <label"; // line 127 $context['_parent'] = $context; $context['_seq'] = CoreExtension::ensureTraversable(($context["label_attr"] ?? null)); foreach ($context['_seq'] as $context["attrname"] => $context["attrvalue"]) { yield " "; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["attrname"], "html", null, true); yield "=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["attrvalue"], "html", null, true); yield "\""; } $_parent = $context['_parent']; unset($context['_seq'], $context['attrname'], $context['attrvalue'], $context['_parent']); $context = array_intersect_key($context, $_parent) + $_parent; yield ">"; // line 128 if ((($context["translation_domain"] ?? null) === false)) { // line 129 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["label"] ?? null), "html", null, true); } elseif ((($tmp = !CoreExtension::getAttribute($this->env, $this->source, // line 130 ($context["sonata_admin"] ?? null), "admin", [], "any", false, false, false, 130)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 131 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(($context["label"] ?? null), ($context["label_translation_parameters"] ?? null), ($context["translation_domain"] ?? null)), "html", null, true); } else { // line 133 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(($context["label"] ?? null), ($context["label_translation_parameters"] ?? null), ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["sonata_admin"] ?? null), "field_description", [], "any", false, true, false, 133), "translationDomain", [], "any", true, true, false, 133)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["sonata_admin"] ?? null), "field_description", [], "any", false, false, false, 133), "translationDomain", [], "any", false, false, false, 133), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["sonata_admin"] ?? null), "admin", [], "any", false, false, false, 133), "translationDomain", [], "any", false, false, false, 133))) : (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["sonata_admin"] ?? null), "admin", [], "any", false, false, false, 133), "translationDomain", [], "any", false, false, false, 133)))), "html", null, true); } // line 135 yield "</label> "; } yield from []; } // line 139 /** * @return iterable<null|scalar|\Stringable> */ public function block_checkbox_label(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 140 yield from $this->unwrap()->yieldBlock("checkbox_radio_label", $context, $blocks); yield from []; } // line 143 /** * @return iterable<null|scalar|\Stringable> */ public function block_radio_label(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 144 yield from $this->unwrap()->yieldBlock("checkbox_radio_label", $context, $blocks); yield from []; } // line 147 /** * @return iterable<null|scalar|\Stringable> */ public function block_checkbox_radio_label(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 148 yield " "; if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, ($context["sonata_admin"] ?? null), "admin", [], "any", false, false, false, 148)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 149 yield " "; $context["translation_domain"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["sonata_admin"] ?? null), "field_description", [], "any", false, false, false, 149), "translationDomain", [], "any", false, false, false, 149); // line 150 yield " "; } // line 151 yield " "; // line 152 yield " "; if (array_key_exists("widget", $context)) { // line 153 yield " "; if ((($tmp = ($context["required"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 154 yield " "; $context["label_attr"] = Twig\Extension\CoreExtension::merge(($context["label_attr"] ?? null), ["class" => Twig\Extension\CoreExtension::trim((((CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", true, true, false, 154)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", false, false, false, 154), "")) : ("")) . " required"))]); // line 155 yield " "; } // line 156 yield " "; if (array_key_exists("parent_label_class", $context)) { // line 157 yield " "; $context["label_attr"] = Twig\Extension\CoreExtension::merge(($context["label_attr"] ?? null), ["class" => Twig\Extension\CoreExtension::trim(((((CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", true, true, false, 157)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", false, false, false, 157), "")) : ("")) . " ") . ($context["parent_label_class"] ?? null)))]); // line 158 yield " "; } // line 159 yield " "; if (( !(($context["label"] ?? null) === false) && Twig\Extension\CoreExtension::testEmpty(($context["label"] ?? null)))) { // line 160 yield " "; $context["label"] = $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->humanize(($context["name"] ?? null)); // line 161 yield " "; } // line 162 yield " <label"; $context['_parent'] = $context; $context['_seq'] = CoreExtension::ensureTraversable(($context["label_attr"] ?? null)); foreach ($context['_seq'] as $context["attrname"] => $context["attrvalue"]) { yield " "; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["attrname"], "html", null, true); yield "=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["attrvalue"], "html", null, true); yield "\""; } $_parent = $context['_parent']; unset($context['_seq'], $context['attrname'], $context['attrvalue'], $context['_parent']); $context = array_intersect_key($context, $_parent) + $_parent; yield ">"; // line 163 yield ($context["widget"] ?? null); // line 164 if ((($tmp = !(($context["label"] ?? null) === false)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 165 yield "<span class=\"control-label__text\"> "; // line 166 if ((($context["translation_domain"] ?? null) === false)) { // line 167 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["label"] ?? null), "html", null, true); } else { // line 169 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(($context["label"] ?? null), ($context["label_translation_parameters"] ?? null), ($context["translation_domain"] ?? null)), "html", null, true); } // line 171 yield "</span>"; } // line 173 yield "</label> "; } yield from []; } // line 177 /** * @return iterable<null|scalar|\Stringable> */ public function block_choice_widget_expanded(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 178 yield " "; $context["attr"] = Twig\Extension\CoreExtension::merge(($context["attr"] ?? null), ["class" => (((CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", true, true, false, 178)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", false, false, false, 178), "")) : ("")) . " list-unstyled")]); // line 179 yield " <ul "; yield from $this->unwrap()->yieldBlock("widget_container_attributes", $context, $blocks); yield "> "; // line 180 $context['_parent'] = $context; $context['_seq'] = CoreExtension::ensureTraversable(($context["form"] ?? null)); foreach ($context['_seq'] as $context["_key"] => $context["child"]) { // line 181 yield " <li> "; // line 182 yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["child"], 'widget', ["horizontal" => false, "horizontal_input_wrapper_class" => "", "translation_domain" => // line 185 ($context["choice_translation_domain"] ?? null)]); // line 186 yield " "; // line 187 yield " </li> "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_key'], $context['child'], $context['_parent']); $context = array_intersect_key($context, $_parent) + $_parent; // line 189 yield " </ul> "; yield from []; } // line 192 /** * @return iterable<null|scalar|\Stringable> */ public function block_choice_widget_collapsed(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 193 yield " "; if (((($context["required"] ?? null) && array_key_exists("placeholder", $context)) && (null === ($context["placeholder"] ?? null)))) { // line 194 yield " "; $context["required"] = false; // line 195 yield " "; } elseif ((((((($context["required"] ?? null) && array_key_exists("empty_value", $context)) && array_key_exists("empty_value_in_choices", $context)) && (null === ($context["empty_value"] ?? null))) && !($context["empty_value_in_choices"] ?? null)) && !($context["multiple"] ?? null))) { // line 196 yield " "; $context["required"] = false; // line 197 yield " "; } // line 198 yield " "; // line 199 $context["attr"] = Twig\Extension\CoreExtension::merge(($context["attr"] ?? null), ["class" => (((CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", true, true, false, 199)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", false, false, false, 199), "")) : ("")) . " form-control")]); // line 200 yield " "; if (((array_key_exists("sortable", $context) && ($context["sortable"] ?? null)) && ($context["multiple"] ?? null))) { // line 201 yield " "; yield from $this->unwrap()->yieldBlock("sonata_type_choice_multiple_sortable", $context, $blocks); yield " "; } else { // line 203 yield " "; $context["data_placeholder"] = ($context["placeholder"] ?? null); // line 204 yield " "; if ((($context["placeholder"] ?? null) != "")) { // line 205 yield " "; if ((($tmp = !CoreExtension::getAttribute($this->env, $this->source, ($context["sonata_admin"] ?? null), "admin", [], "any", false, false, false, 205)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 206 yield " "; $context["data_placeholder"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(($context["placeholder"] ?? null), [], ($context["translation_domain"] ?? null)); // line 207 yield " "; } else { // line 208 yield " "; $context["data_placeholder"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(($context["placeholder"] ?? null), [], CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["sonata_admin"] ?? null), "field_description", [], "any", false, false, false, 208), "translationDomain", [], "any", false, false, false, 208)); // line 209 yield " "; } // line 210 yield " "; } // line 211 yield " "; // line 212 $context["use_select2"] = (array_key_exists("sonata_config", $context) && CoreExtension::getAttribute($this->env, $this->source, ($context["sonata_config"] ?? null), "getOption", ["use_select2"], "method", false, false, false, 212)); // line 213 yield " <select "; // line 214 yield from $this->unwrap()->yieldBlock("widget_attributes", $context, $blocks); if ((($tmp = ($context["multiple"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { yield " multiple=\"multiple\""; } if (((array_key_exists("placeholder", $context) && !(null === ($context["placeholder"] ?? null))) && ($context["use_select2"] ?? null))) { yield " data-placeholder=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["data_placeholder"] ?? null), "html", null, true); yield "\""; } yield "> "; // line 215 if ((array_key_exists("empty_value", $context) && !(null === ($context["empty_value"] ?? null)))) { // line 216 yield " <option value=\"\""; if ((($context["required"] ?? null) && Twig\Extension\CoreExtension::testEmpty(($context["value"] ?? null)))) { yield " selected=\"selected\""; } yield "> "; // line 217 if ((($context["empty_value"] ?? null) != "")) { // line 218 yield " "; if ((($tmp = !CoreExtension::getAttribute($this->env, $this->source, ($context["sonata_admin"] ?? null), "admin", [], "any", false, false, false, 218)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 219 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(($context["empty_value"] ?? null), [], ($context["translation_domain"] ?? null)), "html", null, true); } else { // line 221 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(($context["empty_value"] ?? null), [], CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["sonata_admin"] ?? null), "field_description", [], "any", false, false, false, 221), "translationDomain", [], "any", false, false, false, 221)), "html", null, true); } // line 223 yield " "; } // line 224 yield " </option> "; } elseif (( // line 225 array_key_exists("placeholder", $context) && !(null === ($context["placeholder"] ?? null)))) { // line 226 yield " <option value=\"\""; if ((($context["required"] ?? null) && Twig\Extension\CoreExtension::testEmpty(($context["value"] ?? null)))) { yield " selected=\"selected\""; } yield ">"; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["data_placeholder"] ?? null), "html", null, true); yield "</option> "; } // line 228 yield " "; if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), ($context["preferred_choices"] ?? null)) > 0)) { // line 229 yield " "; $context["options"] = ($context["preferred_choices"] ?? null); // line 230 yield " "; yield from $this->unwrap()->yieldBlock("choice_widget_options", $context, $blocks); yield " "; // line 231 if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), ($context["choices"] ?? null)) > 0)) { // line 232 yield " <option disabled=\"disabled\">"; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["separator"] ?? null), "html", null, true); yield "</option> "; } // line 234 yield " "; } // line 235 yield " "; $context["options"] = ($context["choices"] ?? null); // line 236 yield " "; yield from $this->unwrap()->yieldBlock("choice_widget_options", $context, $blocks); yield " </select> "; } yield from []; } // line 241 /** * @return iterable<null|scalar|\Stringable> */ public function block_date_widget(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 242 yield " "; if ((($context["widget"] ?? null) == "single_text")) { // line 243 yield " "; yield from $this->unwrap()->yieldBlock("form_widget_simple", $context, $blocks); yield " "; } else { // line 245 yield " "; if (( !array_key_exists("row", $context) || (($context["row"] ?? null) == true))) { // line 246 yield " "; $context["attr"] = Twig\Extension\CoreExtension::merge(($context["attr"] ?? null), ["class" => (((CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", true, true, false, 246)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", false, false, false, 246), "")) : ("")) . " row")]); // line 247 yield " "; } // line 248 yield " "; $context["input_wrapper_class"] = ((array_key_exists("input_wrapper_class", $context)) ? (Twig\Extension\CoreExtension::default(($context["input_wrapper_class"] ?? null), "col-sm-4")) : ("col-sm-4")); // line 249 yield " <div "; yield from $this->unwrap()->yieldBlock("widget_container_attributes", $context, $blocks); yield "> "; // line 250 yield Twig\Extension\CoreExtension::replace(($context["date_pattern"] ?? null), ["{{ year }}" => (((("<div class=\"" . // line 251 ($context["input_wrapper_class"] ?? null)) . "\">") . $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "year", [], "any", false, false, false, 251), 'widget')) . "</div>"), "{{ month }}" => (((("<div class=\"" . // line 252 ($context["input_wrapper_class"] ?? null)) . "\">") . $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "month", [], "any", false, false, false, 252), 'widget')) . "</div>"), "{{ day }}" => (((("<div class=\"" . // line 253 ($context["input_wrapper_class"] ?? null)) . "\">") . $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "day", [], "any", false, false, false, 253), 'widget')) . "</div>")]); // line 254 yield " </div> "; } yield from []; } // line 259 /** * @return iterable<null|scalar|\Stringable> */ public function block_time_widget(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 260 yield " "; if ((($context["widget"] ?? null) == "single_text")) { // line 261 yield " "; yield from $this->unwrap()->yieldBlock("form_widget_simple", $context, $blocks); yield " "; } else { // line 263 yield " "; if (( !array_key_exists("row", $context) || (($context["row"] ?? null) == true))) { // line 264 yield " "; $context["attr"] = Twig\Extension\CoreExtension::merge(($context["attr"] ?? null), ["class" => (((CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", true, true, false, 264)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", false, false, false, 264), "")) : ("")) . " row")]); // line 265 yield " "; } // line 266 yield " "; $context["input_wrapper_class"] = ((array_key_exists("input_wrapper_class", $context)) ? (Twig\Extension\CoreExtension::default(($context["input_wrapper_class"] ?? null), "col-sm-6")) : ("col-sm-6")); // line 267 yield " <div "; yield from $this->unwrap()->yieldBlock("widget_container_attributes", $context, $blocks); yield "> <div class=\""; // line 268 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["input_wrapper_class"] ?? null), "html", null, true); yield "\"> "; // line 269 yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "hour", [], "any", false, false, false, 269), 'widget'); yield " </div> "; // line 271 if ((($tmp = ($context["with_minutes"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 272 yield " <div class=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["input_wrapper_class"] ?? null), "html", null, true); yield "\"> "; // line 273 yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "minute", [], "any", false, false, false, 273), 'widget'); yield " </div> "; } // line 276 yield " "; if ((($tmp = ($context["with_seconds"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 277 yield " <div class=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["input_wrapper_class"] ?? null), "html", null, true); yield "\"> "; // line 278 yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "second", [], "any", false, false, false, 278), 'widget'); yield " </div> "; } // line 281 yield " </div> "; } yield from []; } // line 285 /** * @return iterable<null|scalar|\Stringable> */ public function block_datetime_widget(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 286 yield " "; if ((($context["widget"] ?? null) == "single_text")) { // line 287 yield " "; yield from $this->unwrap()->yieldBlock("form_widget_simple", $context, $blocks); yield " "; } else { // line 289 yield " "; $context["attr"] = Twig\Extension\CoreExtension::merge(($context["attr"] ?? null), ["class" => (((CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", true, true, false, 289)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", false, false, false, 289), "")) : ("")) . " row")]); // line 290 yield " <div "; yield from $this->unwrap()->yieldBlock("widget_container_attributes", $context, $blocks); yield "> "; // line 291 yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "date", [], "any", false, false, false, 291), 'errors'); yield " "; // line 292 yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "time", [], "any", false, false, false, 292), 'errors'); yield " "; // line 294 if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "date", [], "any", false, false, false, 294), "vars", [], "any", false, false, false, 294), "widget", [], "any", false, false, false, 294) == "single_text")) { // line 295 yield " <div class=\"col-sm-2\"> "; // line 296 yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "date", [], "any", false, false, false, 296), 'widget'); yield " </div> "; } else { // line 299 yield " "; yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "date", [], "any", false, false, false, 299), 'widget', ["row" => false, "input_wrapper_class" => "col-sm-2"]); yield " "; } // line 301 yield " "; // line 302 if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "time", [], "any", false, false, false, 302), "vars", [], "any", false, false, false, 302), "widget", [], "any", false, false, false, 302) == "single_text")) { // line 303 yield " <div class=\"col-sm-2\"> "; // line 304 yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "time", [], "any", false, false, false, 304), 'widget'); yield " </div> "; } else { // line 307 yield " "; yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "time", [], "any", false, false, false, 307), 'widget', ["row" => false, "input_wrapper_class" => "col-sm-2"]); yield " "; } // line 309 yield " </div> "; } yield from []; } // line 313 /** * @return iterable<null|scalar|\Stringable> */ public function block_form_row(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 314 yield " "; $context["show_label"] = (((array_key_exists("show_label", $context) && !(null === $context["show_label"]))) ? ($context["show_label"]) : (true)); // line 315 yield " "; $context["row_id"] = ("sonata-ba-field-container-" . ($context["id"] ?? null)); // line 316 yield " "; $context["row_class"] = Twig\Extension\CoreExtension::trim(((((CoreExtension::getAttribute($this->env, $this->source, ($context["row_attr"] ?? null), "class", [], "any", true, true, false, 316)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["row_attr"] ?? null), "class", [], "any", false, false, false, 316), "")) : ("")) . " form-group") . (((Twig\Extension\CoreExtension::length($this->env->getCharset(), ($context["errors"] ?? null)) > 0)) ? (" has-error") : ("")))); // line 317 yield " <div"; $_v1 = $context; $_v2 = ["attr" => Twig\Extension\CoreExtension::merge(($context["row_attr"] ?? null), ["id" => ($context["row_id"] ?? null), "class" => ($context["row_class"] ?? null)])]; if (!is_iterable($_v2)) { throw new RuntimeError('Variables passed to the "with" tag must be a mapping.', 317, $this->getSourceContext()); } $_v2 = CoreExtension::toArray($_v2); $context = $_v2 + $context + $this->env->getGlobals(); yield from $this->unwrap()->yieldBlock("attributes", $context, $blocks); $context = $_v1; yield "> "; // line 318 $context["div_class"] = "sonata-ba-field"; // line 319 yield " "; // line 320 if ((($context["label"] ?? null) === false)) { // line 321 yield " "; $context["div_class"] = (($context["div_class"] ?? null) . " sonata-collection-row-without-label"); // line 322 yield " "; } // line 323 yield " "; // line 324 if ((array_key_exists("sonata_admin", $context) && ((($_v3 = CoreExtension::getAttribute($this->env, $this->source, ($context["sonata_admin"] ?? null), "options", [], "any", false, false, false, 324)) && is_array($_v3) || $_v3 instanceof ArrayAccess ? ($_v3["form_type"] ?? null) : null) == "horizontal"))) { // line 325 yield " "; // line 326 yield " "; if (((($context["label"] ?? null) === false) || CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "vars", [], "any", false, true, false, 326), "checked", [], "any", true, true, false, 326))) { // line 327 yield " "; if (CoreExtension::inFilter("collection", CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "parent", [], "any", false, false, false, 327), "vars", [], "any", false, false, false, 327), "block_prefixes", [], "any", false, false, false, 327))) { // line 328 yield " "; $context["div_class"] = (($context["div_class"] ?? null) . " col-sm-12"); // line 329 yield " "; } else { // line 330 yield " "; $context["div_class"] = (($context["div_class"] ?? null) . " col-sm-9 col-sm-offset-3"); // line 331 yield " "; } // line 332 yield " "; } else { // line 333 yield " "; $context["div_class"] = (($context["div_class"] ?? null) . " col-sm-9"); // line 334 yield " "; } // line 335 yield " "; } // line 336 yield " "; // line 337 if ((($tmp = ($context["show_label"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 338 yield " "; yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'label', (CoreExtension::testEmpty($_label_ = ((array_key_exists("label", $context)) ? (Twig\Extension\CoreExtension::default(($context["label"] ?? null), null)) : (null))) ? [] : ["label" => $_label_])); yield " "; } // line 340 yield " "; // line 341 if ((array_key_exists("sonata_admin", $context) && ($context["sonata_admin_enabled"] ?? null))) { // line 342 yield " "; $context["div_class"] = ((((($context["div_class"] ?? null) . " sonata-ba-field-") . CoreExtension::getAttribute($this->env, $this->source, ($context["sonata_admin"] ?? null), "edit", [], "any", false, false, false, 342)) . "-") . CoreExtension::getAttribute($this->env, $this->source, ($context["sonata_admin"] ?? null), "inline", [], "any", false, false, false, 342)); // line 343 yield " "; } // line 344 yield " "; // line 345 if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), ($context["errors"] ?? null)) > 0)) { // line 346 yield " "; $context["div_class"] = (($context["div_class"] ?? null) . " sonata-ba-field-error"); // line 347 yield " "; } // line 348 yield " <div class=\""; // line 349 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["div_class"] ?? null), "html", null, true); yield "\"> "; // line 350 yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'widget', ["horizontal" => false, "horizontal_input_wrapper_class" => ""]); yield " "; // line 351 yield " "; // line 352 if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), ($context["errors"] ?? null)) > 0)) { // line 353 yield " <div class=\"help-block sonata-ba-field-error-messages\"> "; // line 354 yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'errors'); yield " </div> "; } // line 357 yield " "; // line 358 yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'help'); yield " </div> </div> "; yield from []; } // line 363 /** * @return iterable<null|scalar|\Stringable> */ public function block_checkbox_row(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 364 $context["show_label"] = false; // line 365 yield " "; yield from $this->unwrap()->yieldBlock("form_row", $context, $blocks); yield from []; } // line 368 /** * @return iterable<null|scalar|\Stringable> */ public function block_radio_row(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 369 $context["show_label"] = false; // line 370 yield " "; yield from $this->unwrap()->yieldBlock("form_row", $context, $blocks); yield from []; } // line 373 /** * @return iterable<null|scalar|\Stringable> */ public function block_sonata_type_native_collection_widget_row(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 374 yield " <div class=\"sonata-collection-row\" "; yield $this->extensions['Symfony\UX\StimulusBundle\Twig\StimulusTwigExtension']->renderStimulusTarget("sonata-collection", "item"); yield "> "; // line 375 if ((($tmp = ($context["allow_delete"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 376 yield " <div class=\"row\"> <div class=\"col-xs-1\"> <button type=\"button\" class=\"btn btn-link sonata-collection-delete\" "; // line 378 yield $this->extensions['Symfony\UX\StimulusBundle\Twig\StimulusTwigExtension']->renderStimulusAction("sonata-collection", "delete", "click"); yield "> <i class=\"fas fa-minus-circle\" aria-hidden=\"true\"></i> </button> </div> <div class=\"col-xs-11\"> "; } // line 384 yield " "; yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["child"] ?? null), 'row', ["label" => false]); yield " "; // line 385 if ((($tmp = ($context["allow_delete"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 386 yield " </div> </div> "; } // line 389 yield " </div> "; yield from []; } // line 392 /** * @return iterable<null|scalar|\Stringable> */ public function block_sonata_type_native_collection_widget(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 393 yield " "; if (array_key_exists("prototype", $context)) { // line 394 yield " "; $context["child"] = ($context["prototype"] ?? null); // line 395 yield " "; $context["allow_delete_backup"] = ($context["allow_delete"] ?? null); // line 396 yield " "; $context["allow_delete"] = true; // line 397 yield " "; $context["attr"] = Twig\Extension\CoreExtension::merge(Twig\Extension\CoreExtension::merge(($context["attr"] ?? null), ["data-prototype" => $this->unwrap()->renderBlock("sonata_type_native_collection_widget_row", $context, $blocks), "data-prototype-name" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 399 ($context["prototype"] ?? null), "vars", [], "any", false, false, false, 399), "name", [], "any", false, false, false, 399), "class" => ((CoreExtension::getAttribute($this->env, $this->source, // line 400 ($context["attr"] ?? null), "class", [], "any", true, true, false, 400)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", false, false, false, 400), "")) : (""))]), CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Symfony\UX\StimulusBundle\Twig\StimulusTwigExtension']->renderStimulusController("sonata-collection"), "toArray", [], "method", false, false, false, 401)); // line 402 yield " "; $context["allow_delete"] = ($context["allow_delete_backup"] ?? null); // line 403 yield " "; } // line 404 yield " <div "; yield from $this->unwrap()->yieldBlock("widget_container_attributes", $context, $blocks); yield "> "; // line 405 $context['_parent'] = $context; $context['_seq'] = CoreExtension::ensureTraversable(($context["form"] ?? 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["child"]) { // line 406 yield " "; yield from $this->unwrap()->yieldBlock("sonata_type_native_collection_widget_row", $context, $blocks); 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['child'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 408 yield " "; yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'rest'); yield " "; // line 409 if ((($tmp = ($context["allow_add"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 410 yield " <button type=\"button\" class=\"btn btn-link sonata-collection-add\" "; yield $this->extensions['Symfony\UX\StimulusBundle\Twig\StimulusTwigExtension']->renderStimulusAction("sonata-collection", "add", "click"); yield "> <i class=\"fas fa-plus-circle\" aria-hidden=\"true\"></i> </button> "; } // line 414 yield " </div> "; yield from []; } // line 417 /** * @return iterable<null|scalar|\Stringable> */ public function block_sonata_type_immutable_array_widget(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 418 yield " <div "; yield from $this->unwrap()->yieldBlock("widget_container_attributes", $context, $blocks); yield "> "; // line 419 $context['_parent'] = $context; $context['_seq'] = CoreExtension::ensureTraversable(($context["form"] ?? 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["child"]) { // line 420 yield " "; yield from $this->unwrap()->yieldBlock("sonata_type_immutable_array_widget_row", $context, $blocks); 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['child'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 422 yield " "; // line 423 yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'rest'); yield " </div> "; yield from []; } // line 427 /** * @return iterable<null|scalar|\Stringable> */ public function block_sonata_type_immutable_array_widget_row(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 428 yield " <div class=\"form-group"; if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["child"] ?? null), "vars", [], "any", false, false, false, 428), "errors", [], "any", false, false, false, 428)) > 0)) { yield " has-error"; } yield "\" id=\"sonata-ba-field-container-"; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["id"] ?? null), "html", null, true); yield "-"; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["key"] ?? null), "html", null, true); yield "\"> "; // line 430 yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["child"] ?? null), 'label'); yield " "; // line 432 $context["div_class"] = ""; // line 433 yield " "; if (((($_v4 = CoreExtension::getAttribute($this->env, $this->source, ($context["sonata_admin"] ?? null), "options", [], "any", false, false, false, 433)) && is_array($_v4) || $_v4 instanceof ArrayAccess ? ($_v4["form_type"] ?? null) : null) == "horizontal")) { // line 434 yield " "; $context["div_class"] = "col-sm-9"; // line 435 yield " "; } // line 436 yield " <div class=\""; // line 437 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["div_class"] ?? null), "html", null, true); yield " sonata-ba-field sonata-ba-field-"; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["sonata_admin"] ?? null), "edit", [], "any", false, false, false, 437), "html", null, true); yield "-"; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["sonata_admin"] ?? null), "inline", [], "any", false, false, false, 437), "html", null, true); if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["child"] ?? null), "vars", [], "any", false, false, false, 437), "errors", [], "any", false, false, false, 437)) > 0)) { yield " sonata-ba-field-error"; } yield "\"> "; // line 438 yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["child"] ?? null), 'widget', ["horizontal" => false, "horizontal_input_wrapper_class" => ""]); yield " "; // line 439 yield " "; yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["child"] ?? null), 'help'); yield " </div> "; // line 442 if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["child"] ?? null), "vars", [], "any", false, false, false, 442), "errors", [], "any", false, false, false, 442)) > 0)) { // line 443 yield " <div class=\"help-block sonata-ba-field-error-messages\"> "; // line 444 yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["child"] ?? null), 'errors'); yield " </div> "; } // line 447 yield " </div> "; yield from []; } // line 450 /** * @return iterable<null|scalar|\Stringable> */ public function block_sonata_type_model_autocomplete_widget(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 451 yield " "; yield from $this->load(($context["template"] ?? null), 451)->unwrap()->yield($context); yield from []; } // line 454 /** * @return iterable<null|scalar|\Stringable> */ public function block_sonata_type_choice_field_mask_widget(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 455 yield " "; yield from $this->unwrap()->yieldBlock("choice_widget", $context, $blocks); yield " "; // line 457 yield " "; $context["main_form_name"] = Twig\Extension\CoreExtension::slice($this->env->getCharset(), ($context["id"] ?? null), 0, ((Twig\Extension\CoreExtension::length($this->env->getCharset(), ($context["id"] ?? null)) - Twig\Extension\CoreExtension::length($this->env->getCharset(), ($context["name"] ?? null))) - 1)); // line 458 yield " "; if ((($tmp = ($context["expanded"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 459 yield " "; $context["js_selector"] = (((("#" . ($context["main_form_name"] ?? null)) . "_") . ($context["name"] ?? null)) . " input"); // line 460 yield " "; $context["js_events"] = ["change", "ifChecked"]; // line 461 yield " "; } else { // line 462 yield " "; $context["js_selector"] = ((("#" . ($context["main_form_name"] ?? null)) . "_") . ($context["name"] ?? null)); // line 463 yield " "; $context["js_events"] = ["change"]; // line 464 yield " "; } // line 465 yield " <script> jQuery(document).ready(function() { var allFields = "; // line 467 yield json_encode(($context["all_fields"] ?? null)); yield ", map = "; // line 468 yield json_encode(($context["map"] ?? null)); yield ", showMaskChoiceEl = jQuery(\""; // line 469 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["js_selector"] ?? null), "html", null, true); yield "\"); "; // line 470 $context['_parent'] = $context; $context['_seq'] = CoreExtension::ensureTraversable(($context["js_events"] ?? null)); foreach ($context['_seq'] as $context["_key"] => $context["js_event"]) { // line 471 yield " showMaskChoiceEl.on(\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["js_event"], "html", null, true); yield "\", function () { choice_field_mask_show(jQuery(this).val()); }); "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_key'], $context['js_event'], $context['_parent']); $context = array_intersect_key($context, $_parent) + $_parent; // line 475 yield " function choice_field_mask_show(val) { var controlGroupIdFunc = function (field) { // Most of fields are named with an underscore var defaultFieldId = '#sonata-ba-field-container-"; // line 479 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["main_form_name"] ?? null), "html", null, true); yield "_' + field; // Some fields may be named with a dash (like keys of immutable array form type) if (jQuery(defaultFieldId).length === 0) { defaultFieldId = '#sonata-ba-field-container-"; // line 483 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["main_form_name"] ?? null), "html", null, true); yield "-' + field; } // Some fields are rendered by form_widget (no container) if (jQuery(defaultFieldId).length === 0) { defaultFieldId = '#"; // line 488 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["main_form_name"] ?? null), "html", null, true); yield "_' + field; } // catch select2 fields with inline: table option if (jQuery(defaultFieldId).length === 0) { defaultFieldId = '#"; // line 493 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["main_form_name"] ?? null), "html", null, true); yield "_' + field + '_autocomplete_input'; } return defaultFieldId; }; jQuery.each(allFields, function (i, field) { var fieldContainer = controlGroupIdFunc(field); jQuery(fieldContainer).hide(); "; // line 502 if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "parent", [], "any", false, false, false, 502), "vars", [], "any", false, false, false, 502), "sonata_admin", [], "any", false, false, false, 502), "inline", [], "any", false, false, false, 502) == "table")) { // line 503 yield " var td = jQuery(fieldContainer).parent(); var columnIndex = td.index(); var headerTh = \$(\"table thead tr th:eq(\" + columnIndex + \")\"); td.hide(); headerTh.hide(); "; } // line 509 yield " jQuery(fieldContainer).find('[required=\"required\"]').attr('data-required', 'required').removeAttr(\"required\"); }); if (map[val]) { jQuery.each(map[val], function (i, field) { var fieldContainer = controlGroupIdFunc(field); jQuery(fieldContainer).show(); "; // line 516 if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "parent", [], "any", false, false, false, 516), "vars", [], "any", false, false, false, 516), "sonata_admin", [], "any", false, false, false, 516), "inline", [], "any", false, false, false, 516) == "table")) { // line 517 yield " var td = jQuery(fieldContainer).parent(); var columnIndex = td.index(); var headerTh = \$(\"table thead tr th:eq(\" + columnIndex + \")\"); td.show(); headerTh.show(); "; } // line 523 yield " jQuery(fieldContainer).find('[data-required=\"required\"]').attr(\"required\", \"required\"); }); } } "; // line 528 if (Twig\Extension\CoreExtension::testEmpty(($context["value"] ?? null))) { // line 529 yield " choice_field_mask_show(showMaskChoiceEl.val()); "; } else { // line 531 yield " choice_field_mask_show('"; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["value"] ?? null), "js"), "html", null, true); yield "'); "; } // line 533 yield " }); </script> "; yield from []; } // line 538 /** * @return iterable<null|scalar|\Stringable> */ public function block_sonata_type_choice_multiple_sortable(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 539 yield " <input type=\"hidden\" name=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["full_name"] ?? null), "html", null, true); yield "\" id=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["id"] ?? null), "html", null, true); yield "\" value=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::join(($context["value"] ?? null), ","), "html", null, true); yield "\" /> <script> jQuery(document).ready(function() { var options = {}; "; // line 545 yield from $this->unwrap()->yieldBlock('sonata_type_model_autocomplete_select2_options_js', $context, $blocks); // line 546 yield " Admin.setup_sortable_select2(jQuery('#"; // line 547 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["id"] ?? null), "html", null, true); yield "'), "; yield json_encode(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "vars", [], "any", false, false, false, 547), "choices", [], "any", false, false, false, 547)); yield ", options); }); </script> "; yield from []; } // line 545 /** * @return iterable<null|scalar|\Stringable> */ public function block_sonata_type_model_autocomplete_select2_options_js(array $context, array $blocks = []): iterable { $macros = $this->macros; yield from []; } // line 552 /** * @return iterable<null|scalar|\Stringable> */ public function block_sonata_type_model_list_widget(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 553 yield " <div id=\"field_container_"; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["id"] ?? null), "html", null, true); yield "\" class=\"field-container\"> <span id=\"field_widget_"; // line 554 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["id"] ?? null), "html", null, true); yield "\" class=\"field-short-description\"> "; // line 555 if ((CoreExtension::getAttribute($this->env, $this->source, ($context["sonata_admin"] ?? null), "value", [], "any", false, false, false, 555) && !(null === 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, 555), "associationadmin", [], "any", false, false, false, 555), "urlSafeIdentifier", [CoreExtension::getAttribute($this->env, $this->source, ($context["sonata_admin"] ?? null), "value", [], "any", false, false, false, 555)], "method", false, false, false, 555)))) { // line 556 yield " "; yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sonata_admin_short_object_information", ((["_sonata_admin" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 557 ($context["sonata_admin"] ?? null), "field_description", [], "any", false, false, false, 557), "associationadmin", [], "any", false, false, false, 557), "baseCodeRoute", [], "any", false, false, false, 557), "objectId" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 558 ($context["sonata_admin"] ?? null), "field_description", [], "any", false, false, false, 558), "associationadmin", [], "any", false, false, false, 558), "urlSafeIdentifier", [CoreExtension::getAttribute($this->env, $this->source, ($context["sonata_admin"] ?? null), "value", [], "any", false, false, false, 558)], "method", false, false, false, 558), "uniqid" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 559 ($context["sonata_admin"] ?? null), "field_description", [], "any", false, false, false, 559), "associationadmin", [], "any", false, false, false, 559), "uniqid", [], "any", false, false, false, 559), "linkParameters" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 560 ($context["sonata_admin"] ?? null), "field_description", [], "any", false, false, false, 560), "option", ["link_parameters", []], "method", false, false, false, 560)] + (((($tmp = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 562 ($context["sonata_admin"] ?? null), "field_description", [], "any", false, false, false, 562), "associationadmin", [], "any", false, false, false, 562), "hasRequest", [], "method", false, false, false, 562)) && $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 563 ($context["sonata_admin"] ?? null), "field_description", [], "any", false, false, false, 563), "associationadmin", [], "any", false, false, false, 563), "request", [], "any", false, false, false, 563), "attributes", [], "any", false, false, false, 563), "get", ["_route_params", []], "method", false, false, false, 563)) : ([]))) + ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 565 ($context["app"] ?? null), "request", [], "any", false, true, false, 565), "query", [], "any", false, true, false, 565), "all", [], "any", true, true, false, 565)) ? (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, 565), "query", [], "any", false, false, false, 565), "all", [], "any", false, false, false, 565), [])) : ([]))))); // line 566 yield " "; } elseif ((($tmp = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 567 ($context["sonata_admin"] ?? null), "field_description", [], "any", false, false, false, 567), "option", ["placeholder", "short_object_description_placeholder"], "method", false, false, false, 567)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 568 yield " <span class=\"inner-field-short-description\"> "; // line 569 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["sonata_admin"] ?? null), "field_description", [], "any", false, false, false, 569), "option", ["placeholder", "short_object_description_placeholder"], "method", false, false, false, 569), [], "SonataAdminBundle"), "html", null, true); yield " </span> "; } // line 572 yield " </span> <span id=\"field_actions_"; // line 573 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["id"] ?? null), "html", null, true); yield "\" class=\"field-actions\"> <span class=\"btn-group\"> "; // line 575 if (((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, 575), "associationadmin", [], "any", false, false, false, 575), "hasroute", ["list"], "method", false, false, false, 575) && 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, 575), "associationadmin", [], "any", false, false, false, 575), "hasAccess", ["list"], "method", false, false, false, 575)) && ($context["btn_list"] ?? null))) { // line 576 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, 576), "associationadmin", [], "any", false, false, false, 576), "generateUrl", ["list", ["select" => true]], "method", false, false, false, 576), "html", null, true); yield "\" onclick=\"return start_field_dialog_form_list_"; // line 577 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["id"] ?? null), "html", null, true); yield "(this);\" class=\"btn btn-info btn-sm sonata-ba-action\" "; // line 580 yield " title=\""; yield ((((( // line 581 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 582 ($context["btn_list"] ?? null), "html", null, true)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans( // line 583 ($context["btn_list"] ?? 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 584 yield "\" > <i class=\"fas fa-list\"></i> "; // line 588 yield " "; yield ((((( // line 589 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 590 ($context["btn_list"] ?? null), "html", null, true)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans( // line 591 ($context["btn_list"] ?? 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 592 yield " </a> "; } // line 595 yield " "; // line 596 if (((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, 596), "associationadmin", [], "any", false, false, false, 596), "hasroute", ["create"], "method", false, false, false, 596) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 597 ($context["sonata_admin"] ?? null), "field_description", [], "any", false, false, false, 597), "associationadmin", [], "any", false, false, false, 597), "hasAccess", ["create"], "method", false, false, false, 597)) && // line 598 ($context["btn_add"] ?? null))) { // line 600 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, 600), "associationadmin", [], "any", false, false, false, 600), "generateUrl", ["create"], "method", false, false, false, 600), "html", null, true); yield "\" onclick=\"return start_field_dialog_form_add_"; // line 601 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 604 yield " title=\""; yield ((((( // line 605 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 606 ($context["btn_add"] ?? null), "html", null, true)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans( // line 607 ($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 608 yield "\" > <i class=\"fas fa-plus-circle\"></i> "; // line 612 yield " "; yield ((((( // line 613 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 614 ($context["btn_add"] ?? null), "html", null, true)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans( // line 615 ($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 616 yield " </a> "; } // line 619 yield " "; if (((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, 619), "associationadmin", [], "any", false, false, false, 619), "hasroute", ["edit"], "method", false, false, false, 619) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 620 ($context["sonata_admin"] ?? null), "field_description", [], "any", false, false, false, 620), "associationadmin", [], "any", false, false, false, 620), "hasAccess", ["edit"], "method", false, false, false, 620)) && // line 621 ($context["btn_edit"] ?? null))) { // line 623 yield " <a href=\""; yield (((CoreExtension::getAttribute($this->env, $this->source, ($context["sonata_admin"] ?? null), "value", [], "any", false, false, false, 623) == null)) ? ("") : ($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, 623), "associationadmin", [], "any", false, false, false, 623), "generateUrl", ["edit", [CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 624 ($context["sonata_admin"] ?? null), "field_description", [], "any", false, false, false, 624), "associationadmin", [], "any", false, false, false, 624), "idParameter", [], "any", false, false, false, 624) => 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, 624), "associationadmin", [], "any", false, false, false, 624), "urlSafeIdentifier", [CoreExtension::getAttribute($this->env, $this->source, ($context["sonata_admin"] ?? null), "value", [], "any", false, false, false, 624)], "method", false, false, false, 624)]], "method", false, false, false, 623), "html", null, true))); // line 625 yield "\" onclick=\"return start_field_dialog_form_edit_"; // line 626 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["id"] ?? null), "html", null, true); yield "(this);\" class=\"btn btn-warning btn-sm sonata-ba-action "; // line 627 if ((CoreExtension::getAttribute($this->env, $this->source, ($context["sonata_admin"] ?? null), "value", [], "any", false, false, false, 627) == null)) { yield "hidden"; } yield "\" "; // line 629 yield " title=\""; yield ((((( // line 630 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 631 ($context["btn_edit"] ?? null), "html", null, true)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans( // line 632 ($context["btn_edit"] ?? 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 633 yield "\" > <i class=\"fas fa-pencil-alt\"></i> "; // line 637 yield " "; yield ((((( // line 638 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 639 ($context["btn_edit"] ?? null), "html", null, true)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans( // line 640 ($context["btn_edit"] ?? 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 641 yield " </a> "; } // line 644 yield " </span> <span class=\"btn-group\"> "; // line 647 if ((($tmp = ($context["btn_delete"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 648 yield " <button onclick=\"return remove_selected_element_"; // line 649 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["id"] ?? null), "html", null, true); yield "(this);\" class=\"btn btn-danger btn-sm sonata-ba-action\" type=\"button\" "; // line 653 yield " title=\""; yield ((((( // line 654 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 655 ($context["btn_delete"] ?? null), "html", null, true)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans( // line 656 ($context["btn_delete"] ?? 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 657 yield "\" > <i class=\"fas fa-minus-circle\"></i> "; // line 661 yield " "; yield ((((( // line 662 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 663 ($context["btn_delete"] ?? null), "html", null, true)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans( // line 664 ($context["btn_delete"] ?? 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 665 yield " </button> "; } // line 668 yield " </span> </span> <span style=\"display: none\" > "; // line 673 yield " "; yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'widget', ["required" => false]); yield " </span> <div class=\"modal fade\" id=\"field_dialog_"; // line 676 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["id"] ?? null), "html", null, true); yield "\" role=\"dialog\" aria-labelledby=\"myModalLabel\" aria-hidden=\"true\"> <div class=\"modal-dialog modal-lg\"> <div class=\"modal-content\"> <div class=\"modal-header\"> <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-hidden=\"true\">×</button> <h4 class=\"modal-title\"></h4> </div> <div class=\"modal-body\"> </div> </div> </div> </div> </div> "; // line 690 yield from $this->load("@SonataAdmin/CRUD/Association/edit_many_script.html.twig", 690)->unwrap()->yield($context); yield from []; } // line 693 /** * @return iterable<null|scalar|\Stringable> */ public function block_sonata_type_template_widget(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 694 yield " "; yield from $this->load(($context["template"] ?? null), 694)->unwrap()->yield(CoreExtension::toArray(($context["parameters"] ?? null))); yield from []; } /** * @codeCoverageIgnore */ public function getTemplateName(): string { return "@SonataAdmin/Form/form_admin_fields.html.twig"; } /** * @codeCoverageIgnore */ public function isTraitable(): bool { return false; } /** * @codeCoverageIgnore */ public function getDebugInfo(): array { return array ( 1838 => 694, 1831 => 693, 1826 => 690, 1809 => 676, 1802 => 673, 1796 => 668, 1791 => 665, 1789 => 664, 1788 => 663, 1787 => 662, 1785 => 661, 1780 => 657, 1778 => 656, 1777 => 655, 1776 => 654, 1774 => 653, 1768 => 649, 1765 => 648, 1763 => 647, 1758 => 644, 1753 => 641, 1751 => 640, 1750 => 639, 1749 => 638, 1747 => 637, 1742 => 633, 1740 => 632, 1739 => 631, 1738 => 630, 1736 => 629, 1730 => 627, 1726 => 626, 1723 => 625, 1721 => 624, 1719 => 623, 1717 => 621, 1716 => 620, 1714 => 619, 1709 => 616, 1707 => 615, 1706 => 614, 1705 => 613, 1703 => 612, 1698 => 608, 1696 => 607, 1695 => 606, 1694 => 605, 1692 => 604, 1687 => 601, 1682 => 600, 1680 => 598, 1679 => 597, 1678 => 596, 1675 => 595, 1670 => 592, 1668 => 591, 1667 => 590, 1666 => 589, 1664 => 588, 1659 => 584, 1657 => 583, 1656 => 582, 1655 => 581, 1653 => 580, 1648 => 577, 1643 => 576, 1641 => 575, 1636 => 573, 1633 => 572, 1627 => 569, 1624 => 568, 1622 => 567, 1619 => 566, 1617 => 565, 1616 => 563, 1615 => 562, 1614 => 560, 1613 => 559, 1612 => 558, 1611 => 557, 1609 => 556, 1607 => 555, 1603 => 554, 1598 => 553, 1591 => 552, 1581 => 545, 1570 => 547, 1567 => 546, 1565 => 545, 1551 => 539, 1544 => 538, 1536 => 533, 1530 => 531, 1526 => 529, 1524 => 528, 1517 => 523, 1509 => 517, 1507 => 516, 1498 => 509, 1490 => 503, 1488 => 502, 1476 => 493, 1468 => 488, 1460 => 483, 1453 => 479, 1447 => 475, 1436 => 471, 1432 => 470, 1428 => 469, 1424 => 468, 1420 => 467, 1416 => 465, 1413 => 464, 1410 => 463, 1407 => 462, 1404 => 461, 1401 => 460, 1398 => 459, 1395 => 458, 1392 => 457, 1387 => 455, 1380 => 454, 1374 => 451, 1367 => 450, 1361 => 447, 1355 => 444, 1352 => 443, 1350 => 442, 1343 => 439, 1340 => 438, 1329 => 437, 1326 => 436, 1323 => 435, 1320 => 434, 1317 => 433, 1315 => 432, 1310 => 430, 1298 => 428, 1291 => 427, 1283 => 423, 1280 => 422, 1263 => 420, 1246 => 419, 1241 => 418, 1234 => 417, 1228 => 414, 1220 => 410, 1218 => 409, 1213 => 408, 1196 => 406, 1179 => 405, 1174 => 404, 1171 => 403, 1168 => 402, 1166 => 400, 1165 => 399, 1163 => 397, 1160 => 396, 1157 => 395, 1154 => 394, 1151 => 393, 1144 => 392, 1138 => 389, 1133 => 386, 1131 => 385, 1126 => 384, 1117 => 378, 1113 => 376, 1111 => 375, 1106 => 374, 1099 => 373, 1093 => 370, 1091 => 369, 1084 => 368, 1078 => 365, 1076 => 364, 1069 => 363, 1060 => 358, 1057 => 357, 1051 => 354, 1048 => 353, 1046 => 352, 1043 => 351, 1040 => 350, 1036 => 349, 1033 => 348, 1030 => 347, 1027 => 346, 1025 => 345, 1022 => 344, 1019 => 343, 1016 => 342, 1014 => 341, 1011 => 340, 1005 => 338, 1003 => 337, 1000 => 336, 997 => 335, 994 => 334, 991 => 333, 988 => 332, 985 => 331, 982 => 330, 979 => 329, 976 => 328, 973 => 327, 970 => 326, 968 => 325, 966 => 324, 963 => 323, 960 => 322, 957 => 321, 955 => 320, 952 => 319, 950 => 318, 937 => 317, 934 => 316, 931 => 315, 928 => 314, 921 => 313, 914 => 309, 908 => 307, 902 => 304, 899 => 303, 897 => 302, 894 => 301, 888 => 299, 882 => 296, 879 => 295, 877 => 294, 872 => 292, 868 => 291, 863 => 290, 860 => 289, 854 => 287, 851 => 286, 844 => 285, 837 => 281, 831 => 278, 826 => 277, 823 => 276, 817 => 273, 812 => 272, 810 => 271, 805 => 269, 801 => 268, 796 => 267, 793 => 266, 790 => 265, 787 => 264, 784 => 263, 778 => 261, 775 => 260, 768 => 259, 760 => 254, 758 => 253, 757 => 252, 756 => 251, 755 => 250, 750 => 249, 747 => 248, 744 => 247, 741 => 246, 738 => 245, 732 => 243, 729 => 242, 722 => 241, 712 => 236, 709 => 235, 706 => 234, 700 => 232, 698 => 231, 693 => 230, 690 => 229, 687 => 228, 677 => 226, 675 => 225, 672 => 224, 669 => 223, 666 => 221, 663 => 219, 660 => 218, 658 => 217, 651 => 216, 649 => 215, 637 => 214, 634 => 213, 632 => 212, 629 => 211, 626 => 210, 623 => 209, 620 => 208, 617 => 207, 614 => 206, 611 => 205, 608 => 204, 605 => 203, 599 => 201, 596 => 200, 594 => 199, 591 => 198, 588 => 197, 585 => 196, 582 => 195, 579 => 194, 576 => 193, 569 => 192, 563 => 189, 556 => 187, 554 => 186, 552 => 185, 551 => 182, 548 => 181, 544 => 180, 539 => 179, 536 => 178, 529 => 177, 522 => 173, 519 => 171, 516 => 169, 513 => 167, 511 => 166, 508 => 165, 506 => 164, 504 => 163, 489 => 162, 486 => 161, 483 => 160, 480 => 159, 477 => 158, 474 => 157, 471 => 156, 468 => 155, 465 => 154, 462 => 153, 459 => 152, 457 => 151, 454 => 150, 451 => 149, 448 => 148, 441 => 147, 436 => 144, 429 => 143, 424 => 140, 417 => 139, 410 => 135, 407 => 133, 404 => 131, 402 => 130, 400 => 129, 398 => 128, 384 => 127, 381 => 126, 377 => 123, 374 => 120, 373 => 119, 372 => 118, 370 => 117, 368 => 116, 365 => 115, 362 => 114, 359 => 113, 356 => 112, 353 => 111, 350 => 110, 348 => 109, 345 => 108, 342 => 107, 340 => 106, 337 => 105, 335 => 104, 332 => 103, 329 => 102, 326 => 101, 323 => 100, 316 => 99, 310 => 94, 308 => 93, 306 => 92, 303 => 90, 301 => 89, 299 => 88, 292 => 87, 286 => 83, 284 => 82, 282 => 81, 279 => 79, 277 => 78, 275 => 77, 268 => 76, 259 => 71, 256 => 70, 253 => 69, 246 => 68, 240 => 65, 236 => 63, 234 => 62, 231 => 61, 228 => 60, 226 => 59, 220 => 57, 218 => 56, 216 => 55, 213 => 54, 210 => 53, 207 => 51, 205 => 50, 198 => 49, 190 => 46, 187 => 45, 180 => 44, 172 => 41, 169 => 40, 166 => 39, 163 => 38, 160 => 37, 153 => 36, 144 => 32, 141 => 31, 138 => 30, 135 => 29, 132 => 28, 130 => 27, 123 => 26, 117 => 23, 113 => 22, 110 => 21, 101 => 19, 97 => 18, 94 => 17, 89 => 16, 87 => 15, 80 => 14, 69 => 12,); } public function getSourceContext(): Source { return new Source("", "@SonataAdmin/Form/form_admin_fields.html.twig", "/var/www/v3.cesa.co.za/vendor/sonata-project/admin-bundle/src/Resources/views/Form/form_admin_fields.html.twig"); } }