<?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;
/* @EasyAdmin/crud/form_theme.html.twig */
class __TwigTemplate_1ffabffc405e4d35348e77e52a7e3b89 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
// line 2
$_trait_0 = $this->loadTemplate("@EasyAdmin/symfony-form-themes/bootstrap_5_layout.html.twig", "@EasyAdmin/crud/form_theme.html.twig", 2);
if (!$_trait_0->unwrap()->isTraitable()) {
throw new RuntimeError('Template "'."@EasyAdmin/symfony-form-themes/bootstrap_5_layout.html.twig".'" cannot be used as a trait.', 2, $this->source);
}
$_trait_0_blocks = $_trait_0->unwrap()->getBlocks();
$this->traits = $_trait_0_blocks;
$this->blocks = array_merge(
$this->traits,
[
'form_start' => [$this, 'block_form_start'],
'form_end' => [$this, 'block_form_end'],
'form_errors' => [$this, 'block_form_errors'],
'form_widget_simple' => [$this, 'block_form_widget_simple'],
'datetime_widget' => [$this, 'block_datetime_widget'],
'date_widget' => [$this, 'block_date_widget'],
'time_widget' => [$this, 'block_time_widget'],
'file_widget' => [$this, 'block_file_widget'],
'form_row' => [$this, 'block_form_row'],
'choice_widget_collapsed' => [$this, 'block_choice_widget_collapsed'],
'collection_row' => [$this, 'block_collection_row'],
'collection_widget' => [$this, 'block_collection_widget'],
'collection_entry_row' => [$this, 'block_collection_entry_row'],
'form_widget_compound' => [$this, 'block_form_widget_compound'],
'button_row' => [$this, 'block_button_row'],
'form_label' => [$this, 'block_form_label'],
'empty_collection' => [$this, 'block_empty_collection'],
'vich_file_row' => [$this, 'block_vich_file_row'],
'vich_file_widget' => [$this, 'block_vich_file_widget'],
'vich_image_row' => [$this, 'block_vich_image_row'],
'vich_image_widget' => [$this, 'block_vich_image_widget'],
'ea_crud_rest' => [$this, 'block_ea_crud_rest'],
'ea_crud_widget' => [$this, 'block_ea_crud_widget'],
'ea_crud_widget_panels' => [$this, 'block_ea_crud_widget_panels'],
'ea_crud_widget_fieldsets' => [$this, 'block_ea_crud_widget_fieldsets'],
'ea_autocomplete_widget' => [$this, 'block_ea_autocomplete_widget'],
'ea_autocomplete_inner_label' => [$this, 'block_ea_autocomplete_inner_label'],
'ea_code_editor_widget' => [$this, 'block_ea_code_editor_widget'],
'ea_text_editor_widget' => [$this, 'block_ea_text_editor_widget'],
'ea_form_row_row' => [$this, 'block_ea_form_row_row'],
'ea_form_column_group_open_row' => [$this, 'block_ea_form_column_group_open_row'],
'ea_form_column_group_close_row' => [$this, 'block_ea_form_column_group_close_row'],
'ea_form_column_open_row' => [$this, 'block_ea_form_column_open_row'],
'ea_form_column_close_row' => [$this, 'block_ea_form_column_close_row'],
'ea_form_fieldset_open_row' => [$this, 'block_ea_form_fieldset_open_row'],
'ea_form_fieldset_close_row' => [$this, 'block_ea_form_fieldset_close_row'],
'ea_form_tablist_row' => [$this, 'block_ea_form_tablist_row'],
'ea_form_tabpane_group_open_row' => [$this, 'block_ea_form_tabpane_group_open_row'],
'ea_form_tabpane_group_close_row' => [$this, 'block_ea_form_tabpane_group_close_row'],
'ea_form_tabpane_open_row' => [$this, 'block_ea_form_tabpane_open_row'],
'ea_form_tabpane_close_row' => [$this, 'block_ea_form_tabpane_close_row'],
'ea_filters_widget' => [$this, 'block_ea_filters_widget'],
'comparison_widget' => [$this, 'block_comparison_widget'],
'ea_numeric_filter_widget' => [$this, 'block_ea_numeric_filter_widget'],
'ea_datetime_filter_widget' => [$this, 'block_ea_datetime_filter_widget'],
'ea_fileupload_widget' => [$this, 'block_ea_fileupload_widget'],
'TODO_ea_fileupload_widget' => [$this, 'block_TODO_ea_fileupload_widget'],
'ea_slug_widget' => [$this, 'block_ea_slug_widget'],
]
);
// line 0
$macros["_self"] = $this->macros["_self"] = $this;
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@EasyAdmin/crud/form_theme.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@EasyAdmin/crud/form_theme.html.twig"));
// line 3
yield "
";
// line 4
yield from $this->unwrap()->yieldBlock('form_start', $context, $blocks);
// line 14
yield "
";
// line 15
yield from $this->unwrap()->yieldBlock('form_end', $context, $blocks);
// line 21
yield "
";
// line 22
yield from $this->unwrap()->yieldBlock('form_errors', $context, $blocks);
// line 29
yield "
";
// line 31
yield "
";
// line 32
yield from $this->unwrap()->yieldBlock('form_widget_simple', $context, $blocks);
// line 42
yield "
";
// line 43
yield from $this->unwrap()->yieldBlock('datetime_widget', $context, $blocks);
// line 49
yield "
";
// line 50
yield from $this->unwrap()->yieldBlock('date_widget', $context, $blocks);
// line 55
yield "
";
// line 56
yield from $this->unwrap()->yieldBlock('time_widget', $context, $blocks);
// line 61
yield "
";
// line 62
yield from $this->unwrap()->yieldBlock('file_widget', $context, $blocks);
// line 70
yield "
";
// line 72
yield "
";
// line 73
yield from $this->unwrap()->yieldBlock('form_row', $context, $blocks);
// line 117
yield "
";
// line 118
yield from $this->unwrap()->yieldBlock('choice_widget_collapsed', $context, $blocks);
// line 129
yield "
";
// line 130
yield from $this->unwrap()->yieldBlock('collection_row', $context, $blocks);
// line 146
yield "
";
// line 147
yield from $this->unwrap()->yieldBlock('collection_widget', $context, $blocks);
// line 176
yield "
";
// line 177
yield from $this->unwrap()->yieldBlock('collection_entry_row', $context, $blocks);
// line 219
yield "
";
// line 220
yield from $this->unwrap()->yieldBlock('form_widget_compound', $context, $blocks);
// line 237
yield "
";
// line 238
yield from $this->unwrap()->yieldBlock('button_row', $context, $blocks);
// line 243
yield "
";
// line 245
yield "
";
// line 246
yield from $this->unwrap()->yieldBlock('form_label', $context, $blocks);
// line 290
yield "
";
// line 292
yield "
";
// line 293
yield from $this->unwrap()->yieldBlock('empty_collection', $context, $blocks);
// line 298
yield "
";
// line 299
yield from $this->unwrap()->yieldBlock('vich_file_row', $context, $blocks);
// line 303
yield "
";
// line 304
yield from $this->unwrap()->yieldBlock('vich_file_widget', $context, $blocks);
// line 346
yield "
";
// line 347
yield from $this->unwrap()->yieldBlock('vich_image_row', $context, $blocks);
// line 351
yield "
";
// line 352
yield from $this->unwrap()->yieldBlock('vich_image_widget', $context, $blocks);
// line 406
yield "
";
// line 407
yield from $this->unwrap()->yieldBlock('ea_crud_rest', $context, $blocks);
// line 410
yield "
";
// line 412
yield from $this->unwrap()->yieldBlock('ea_crud_widget', $context, $blocks);
// line 417
yield "
";
// line 419
yield from $this->unwrap()->yieldBlock('ea_crud_widget_panels', $context, $blocks);
// line 424
yield "
";
// line 425
yield from $this->unwrap()->yieldBlock('ea_crud_widget_fieldsets', $context, $blocks);
// line 490
yield "
";
// line 492
yield from $this->unwrap()->yieldBlock('ea_autocomplete_widget', $context, $blocks);
// line 495
yield "
";
// line 496
yield from $this->unwrap()->yieldBlock('ea_autocomplete_inner_label', $context, $blocks);
// line 500
yield "
";
// line 502
yield from $this->unwrap()->yieldBlock('ea_code_editor_widget', $context, $blocks);
// line 512
yield "
";
// line 514
yield from $this->unwrap()->yieldBlock('ea_text_editor_widget', $context, $blocks);
// line 525
yield "
";
// line 527
yield from $this->unwrap()->yieldBlock('ea_form_row_row', $context, $blocks);
// line 530
yield "
";
// line 531
yield from $this->unwrap()->yieldBlock('ea_form_column_group_open_row', $context, $blocks);
// line 537
yield "
";
// line 538
yield from $this->unwrap()->yieldBlock('ea_form_column_group_close_row', $context, $blocks);
// line 545
yield "
";
// line 546
yield from $this->unwrap()->yieldBlock('ea_form_column_open_row', $context, $blocks);
// line 565
yield "
";
// line 566
yield from $this->unwrap()->yieldBlock('ea_form_column_close_row', $context, $blocks);
// line 569
yield "
";
// line 570
yield from $this->unwrap()->yieldBlock('ea_form_fieldset_open_row', $context, $blocks);
// line 612
yield "
";
// line 613
yield from $this->unwrap()->yieldBlock('ea_form_fieldset_close_row', $context, $blocks);
// line 619
yield "
";
// line 620
yield from $this->unwrap()->yieldBlock('ea_form_tablist_row', $context, $blocks);
// line 648
yield "
";
// line 649
yield from $this->unwrap()->yieldBlock('ea_form_tabpane_group_open_row', $context, $blocks);
// line 653
yield "
";
// line 654
yield from $this->unwrap()->yieldBlock('ea_form_tabpane_group_close_row', $context, $blocks);
// line 658
yield "
";
// line 659
yield from $this->unwrap()->yieldBlock('ea_form_tabpane_open_row', $context, $blocks);
// line 672
yield "
";
// line 673
yield from $this->unwrap()->yieldBlock('ea_form_tabpane_close_row', $context, $blocks);
// line 677
yield "
";
// line 679
yield from $this->unwrap()->yieldBlock('ea_filters_widget', $context, $blocks);
// line 701
yield "
";
// line 702
yield from $this->unwrap()->yieldBlock('comparison_widget', $context, $blocks);
// line 705
yield "
";
// line 706
yield from $this->unwrap()->yieldBlock('ea_numeric_filter_widget', $context, $blocks);
// line 716
yield "
";
// line 717
yield from $this->unwrap()->yieldBlock('ea_datetime_filter_widget', $context, $blocks);
// line 720
yield "
";
// line 721
yield from $this->unwrap()->yieldBlock('ea_fileupload_widget', $context, $blocks);
// line 783
yield "
";
// line 784
yield from $this->unwrap()->yieldBlock('TODO_ea_fileupload_widget', $context, $blocks);
// line 851
yield "
";
// line 852
yield from $this->unwrap()->yieldBlock('ea_slug_widget', $context, $blocks);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
return; yield '';
}
// line 4
public function block_form_start($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form_start"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form_start"));
// line 5
yield " ";
if (((Twig\Extension\CoreExtension::lengthFilter($this->env, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 5, $this->source); })()), "vars", [], "any", false, false, false, 5), "errors", [], "any", false, false, false, 5)) > 0) && CoreExtension::inFilter("ea_crud", ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "vars", [], "any", false, true, false, 5), "block_prefixes", [], "any", true, true, false, 5)) ? (Twig\Extension\CoreExtension::defaultFilter(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "vars", [], "any", false, true, false, 5), "block_prefixes", [], "any", false, false, false, 5), [])) : ([]))))) {
// line 6
yield " ";
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 6, $this->source); })()), 'errors', ["attr" => ["class" => "global-invalid-feedback"]]);
yield "
";
}
// line 8
yield "
";
// line 9
yield from $this->yieldParentBlock("form_start", $context, $blocks);
yield "
";
// line 10
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["ea"]) || array_key_exists("ea", $context) ? $context["ea"] : (function () { throw new RuntimeError('Variable "ea" does not exist.', 10, $this->source); })()), "request", [], "any", false, false, false, 10), "query", [], "any", false, false, false, 10), "get", ["referrer"], "method", false, false, false, 10)) {
// line 11
yield " <input type=\"hidden\" name=\"referrer\" value=\"";
yield Twig\Extension\EscaperExtension::escape($this->env, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["ea"]) || array_key_exists("ea", $context) ? $context["ea"] : (function () { throw new RuntimeError('Variable "ea" does not exist.', 11, $this->source); })()), "request", [], "any", false, false, false, 11), "query", [], "any", false, false, false, 11), "get", ["referrer"], "method", false, false, false, 11), "html", null, true);
yield "\">
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 15
public function block_form_end($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form_end"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form_end"));
// line 16
yield " ";
if (( !array_key_exists("render_rest", $context) || (isset($context["render_rest"]) || array_key_exists("render_rest", $context) ? $context["render_rest"] : (function () { throw new RuntimeError('Variable "render_rest" does not exist.', 16, $this->source); })()))) {
// line 17
yield " ";
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 17, $this->source); })()), 'rest');
yield "
";
}
// line 19
yield " </form>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 22
public function block_form_errors($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form_errors"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form_errors"));
// line 23
yield " ";
if ((Twig\Extension\CoreExtension::lengthFilter($this->env, (isset($context["errors"]) || array_key_exists("errors", $context) ? $context["errors"] : (function () { throw new RuntimeError('Variable "errors" does not exist.', 23, $this->source); })())) > 0)) {
// line 24
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["errors"]) || array_key_exists("errors", $context) ? $context["errors"] : (function () { throw new RuntimeError('Variable "errors" does not exist.', 24, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
// line 25
yield " <div class=\"";
yield Twig\Extension\EscaperExtension::escape($this->env, ((CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", true, true, false, 25)) ? (Twig\Extension\CoreExtension::defaultFilter(CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", false, false, false, 25), "")) : ("")), "html", null, true);
yield " invalid-feedback d-block\">";
yield Twig\Extension\EscaperExtension::escape($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["error"], "message", [], "any", false, false, false, 25), "html", null, true);
yield "</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 27
yield " ";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 32
public function block_form_widget_simple($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form_widget_simple"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form_widget_simple"));
// line 33
if (( !array_key_exists("type", $context) || !CoreExtension::inFilter((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 33, $this->source); })()), ["file", "hidden"]))) {
// line 34
$context["attr"] = Twig\Extension\CoreExtension::arrayMerge((isset($context["attr"]) || array_key_exists("attr", $context) ? $context["attr"] : (function () { throw new RuntimeError('Variable "attr" does not exist.', 34, $this->source); })()), ["class" => Twig\Extension\CoreExtension::trimFilter(((CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", true, true, false, 34)) ? (Twig\Extension\CoreExtension::defaultFilter(CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", false, false, false, 34), "")) : ("")))]);
}
// line 36
if ((array_key_exists("type", $context) && (((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 36, $this->source); })()) == "range") || ((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 36, $this->source); })()) == "color")))) {
// line 37
yield " ";
// line 38
$context["required"] = false;
}
// line 40
yield from $this->yieldParentBlock("form_widget_simple", $context, $blocks);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 43
public function block_datetime_widget($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "datetime_widget"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "datetime_widget"));
// line 44
yield " ";
$context["attr"] = Twig\Extension\CoreExtension::arrayMerge((isset($context["attr"]) || array_key_exists("attr", $context) ? $context["attr"] : (function () { throw new RuntimeError('Variable "attr" does not exist.', 44, $this->source); })()), ["class" => Twig\Extension\CoreExtension::trimFilter((((CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", true, true, false, 44)) ? (Twig\Extension\CoreExtension::defaultFilter(CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", false, false, false, 44), "")) : ("")) . " form-inline"))]);
// line 45
yield " <div class=\"datetime-widget datetime-widget-datetime\">";
// line 46
yield from $this->yieldParentBlock("datetime_widget", $context, $blocks);
// line 47
yield "</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 50
public function block_date_widget($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "date_widget"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "date_widget"));
// line 51
yield "<div class=\"datetime-widget datetime-widget-date\">";
// line 52
yield from $this->yieldParentBlock("date_widget", $context, $blocks);
// line 53
yield "</div>";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 56
public function block_time_widget($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "time_widget"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "time_widget"));
// line 57
yield "<div class=\"datetime-widget datetime-widget-time\">";
// line 58
yield from $this->yieldParentBlock("time_widget", $context, $blocks);
// line 59
yield "</div>";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 62
public function block_file_widget($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "file_widget"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "file_widget"));
// line 63
if (((array_key_exists("vich", $context)) ? (Twig\Extension\CoreExtension::defaultFilter((isset($context["vich"]) || array_key_exists("vich", $context) ? $context["vich"] : (function () { throw new RuntimeError('Variable "vich" does not exist.', 63, $this->source); })()), false)) : (false))) {
// line 64
$context["type"] = ((array_key_exists("type", $context)) ? (Twig\Extension\CoreExtension::defaultFilter((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 64, $this->source); })()), "file")) : ("file"));
// line 65
yield from $this->unwrap()->yieldBlock("form_widget_simple", $context, $blocks);
} else {
// line 67
yield from $this->unwrap()->yieldBlock("form_widget_simple", $context, $blocks);
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 73
public function block_form_row($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form_row"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form_row"));
// line 74
yield " ";
$context["row_attr"] = Twig\Extension\CoreExtension::arrayMerge((isset($context["row_attr"]) || array_key_exists("row_attr", $context) ? $context["row_attr"] : (function () { throw new RuntimeError('Variable "row_attr" does not exist.', 74, $this->source); })()), ["class" => (((CoreExtension::getAttribute($this->env, $this->source, // line 75
($context["row_attr"] ?? null), "class", [], "any", true, true, false, 75)) ? (Twig\Extension\CoreExtension::defaultFilter(CoreExtension::getAttribute($this->env, $this->source, ($context["row_attr"] ?? null), "class", [], "any", false, false, false, 75), "")) : ("")) . " form-group")]);
// line 77
yield " ";
$context["field"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 77, $this->source); })()), "vars", [], "any", false, false, false, 77), "ea_vars", [], "any", false, false, false, 77), "field", [], "any", false, false, false, 77);
// line 78
yield "
<div class=\"";
// line 79
yield Twig\Extension\EscaperExtension::escape($this->env, (((CoreExtension::getAttribute($this->env, $this->source, ($context["field"] ?? null), "columns", [], "any", true, true, false, 79) && !(null === CoreExtension::getAttribute($this->env, $this->source, ($context["field"] ?? null), "columns", [], "any", false, false, false, 79)))) ? (CoreExtension::getAttribute($this->env, $this->source, ($context["field"] ?? null), "columns", [], "any", false, false, false, 79)) : ((((CoreExtension::getAttribute($this->env, $this->source, ($context["field"] ?? null), "defaultColumns", [], "any", true, true, false, 79) && !(null === CoreExtension::getAttribute($this->env, $this->source, ($context["field"] ?? null), "defaultColumns", [], "any", false, false, false, 79)))) ? (CoreExtension::getAttribute($this->env, $this->source, ($context["field"] ?? null), "defaultColumns", [], "any", false, false, false, 79)) : ("")))), "html", null, true);
yield "\">
<div ";
// line 80
$__internal_compile_0 = $context;
$__internal_compile_1 = ["attr" => (isset($context["row_attr"]) || array_key_exists("row_attr", $context) ? $context["row_attr"] : (function () { throw new RuntimeError('Variable "row_attr" does not exist.', 80, $this->source); })())];
if (!is_iterable($__internal_compile_1)) {
throw new RuntimeError('Variables passed to the "with" tag must be a hash.', 80, $this->getSourceContext());
}
$__internal_compile_1 = CoreExtension::toArray($__internal_compile_1);
$context = $this->env->mergeGlobals(array_merge($context, $__internal_compile_1));
yield from $this->unwrap()->yieldBlock("attributes", $context, $blocks);
$context = $__internal_compile_0;
yield ">";
// line 81
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 81, $this->source); })()), 'label');
// line 82
yield "<div class=\"form-widget\">
";
// line 83
$context["has_prepend_html"] = !(null === ((CoreExtension::getAttribute($this->env, $this->source, ($context["field"] ?? null), "prepend_html", [], "any", true, true, false, 83)) ? (Twig\Extension\CoreExtension::defaultFilter(CoreExtension::getAttribute($this->env, $this->source, ($context["field"] ?? null), "prepend_html", [], "any", false, false, false, 83), null)) : (null)));
// line 84
yield " ";
$context["has_append_html"] = !(null === ((CoreExtension::getAttribute($this->env, $this->source, ($context["field"] ?? null), "append_html", [], "any", true, true, false, 84)) ? (Twig\Extension\CoreExtension::defaultFilter(CoreExtension::getAttribute($this->env, $this->source, ($context["field"] ?? null), "append_html", [], "any", false, false, false, 84), null)) : (null)));
// line 85
yield " ";
$context["has_input_groups"] = ((isset($context["has_prepend_html"]) || array_key_exists("has_prepend_html", $context) ? $context["has_prepend_html"] : (function () { throw new RuntimeError('Variable "has_prepend_html" does not exist.', 85, $this->source); })()) || (isset($context["has_append_html"]) || array_key_exists("has_append_html", $context) ? $context["has_append_html"] : (function () { throw new RuntimeError('Variable "has_append_html" does not exist.', 85, $this->source); })()));
// line 86
yield "
";
// line 87
if ((isset($context["has_input_groups"]) || array_key_exists("has_input_groups", $context) ? $context["has_input_groups"] : (function () { throw new RuntimeError('Variable "has_input_groups" does not exist.', 87, $this->source); })())) {
yield "<div class=\"input-group\">";
}
// line 88
yield " ";
if ((isset($context["has_prepend_html"]) || array_key_exists("has_prepend_html", $context) ? $context["has_prepend_html"] : (function () { throw new RuntimeError('Variable "has_prepend_html" does not exist.', 88, $this->source); })())) {
// line 89
yield " <div class=\"input-group-prepend\">
<span class=\"input-group-text\">";
// line 90
yield CoreExtension::getAttribute($this->env, $this->source, (isset($context["field"]) || array_key_exists("field", $context) ? $context["field"] : (function () { throw new RuntimeError('Variable "field" does not exist.', 90, $this->source); })()), "prepend_html", [], "any", false, false, false, 90);
yield "</span>
</div>
";
}
// line 93
yield "
";
// line 94
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 94, $this->source); })()), 'widget');
yield "
";
// line 96
if ((isset($context["has_append_html"]) || array_key_exists("has_append_html", $context) ? $context["has_append_html"] : (function () { throw new RuntimeError('Variable "has_append_html" does not exist.', 96, $this->source); })())) {
// line 97
yield " <span class=\"input-group-text\">";
yield CoreExtension::getAttribute($this->env, $this->source, (isset($context["field"]) || array_key_exists("field", $context) ? $context["field"] : (function () { throw new RuntimeError('Variable "field" does not exist.', 97, $this->source); })()), "append_html", [], "any", false, false, false, 97);
yield "</span>
";
}
// line 99
yield " ";
if ((isset($context["has_input_groups"]) || array_key_exists("has_input_groups", $context) ? $context["has_input_groups"] : (function () { throw new RuntimeError('Variable "has_input_groups" does not exist.', 99, $this->source); })())) {
yield "</div>";
}
// line 100
yield "
";
// line 101
if ((((CoreExtension::getAttribute($this->env, $this->source, ($context["field"] ?? null), "help", [], "any", true, true, false, 101) && !(null === CoreExtension::getAttribute($this->env, $this->source, ($context["field"] ?? null), "help", [], "any", false, false, false, 101)))) ? (CoreExtension::getAttribute($this->env, $this->source, ($context["field"] ?? null), "help", [], "any", false, false, false, 101)) : (false))) {
// line 102
yield " <small class=\"form-text form-help\">";
yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env, $this->source, (isset($context["field"]) || array_key_exists("field", $context) ? $context["field"] : (function () { throw new RuntimeError('Variable "field" does not exist.', 102, $this->source); })()), "help", [], "any", false, false, false, 102), (isset($context["label_translation_parameters"]) || array_key_exists("label_translation_parameters", $context) ? $context["label_translation_parameters"] : (function () { throw new RuntimeError('Variable "label_translation_parameters" does not exist.', 102, $this->source); })()), (isset($context["translation_domain"]) || array_key_exists("translation_domain", $context) ? $context["translation_domain"] : (function () { throw new RuntimeError('Variable "translation_domain" does not exist.', 102, $this->source); })()));
yield "</small>
";
} elseif ((((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 103
($context["form"] ?? null), "vars", [], "any", false, true, false, 103), "help", [], "any", true, true, false, 103) && !(null === CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "vars", [], "any", false, true, false, 103), "help", [], "any", false, false, false, 103)))) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "vars", [], "any", false, true, false, 103), "help", [], "any", false, false, false, 103)) : (false))) {
// line 104
yield " <small class=\"form-text form-help\">";
yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 104, $this->source); })()), "vars", [], "any", false, false, false, 104), "help", [], "any", false, false, false, 104), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 104, $this->source); })()), "vars", [], "any", false, false, false, 104), "help_translation_parameters", [], "any", false, false, false, 104), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 104, $this->source); })()), "vars", [], "any", false, false, false, 104), "translation_domain", [], "any", false, false, false, 104));
yield "</small>
";
}
// line 107
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 107, $this->source); })()), 'errors');
// line 108
yield "</div>
</div>
</div>
";
// line 113
yield " ";
if ((null === ((CoreExtension::getAttribute($this->env, $this->source, ($context["field"] ?? null), "columns", [], "any", true, true, false, 113)) ? (Twig\Extension\CoreExtension::defaultFilter(CoreExtension::getAttribute($this->env, $this->source, ($context["field"] ?? null), "columns", [], "any", false, false, false, 113), null)) : (null)))) {
// line 114
yield " <div class=\"flex-fill\"></div>
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 118
public function block_choice_widget_collapsed($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "choice_widget_collapsed"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "choice_widget_collapsed"));
// line 119
yield " ";
if (("ea-autocomplete" == ((CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "data-ea-widget", [], "array", true, true, false, 119)) ? (Twig\Extension\CoreExtension::defaultFilter(CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "data-ea-widget", [], "array", false, false, false, 119), false)) : (false)))) {
// line 120
yield " ";
$context["attr"] = Twig\Extension\CoreExtension::arrayMerge((isset($context["attr"]) || array_key_exists("attr", $context) ? $context["attr"] : (function () { throw new RuntimeError('Variable "attr" does not exist.', 120, $this->source); })()), ["data-ea-i18n-no-results-found" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("autocomplete.no-results-found", [], "EasyAdminBundle"), "data-ea-i18n-no-more-results" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("autocomplete.no-more-results", [], "EasyAdminBundle"), "data-ea-i18n-loading-more-results" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("autocomplete.loading-more-results", [], "EasyAdminBundle")]);
// line 125
yield " ";
}
// line 126
yield "
";
// line 127
yield from $this->yieldParentBlock("choice_widget_collapsed", $context, $blocks);
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 130
public function block_collection_row($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "collection_row"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "collection_row"));
// line 131
yield " ";
if ((array_key_exists("prototype", $context) && !CoreExtension::getAttribute($this->env, $this->source, (isset($context["prototype"]) || array_key_exists("prototype", $context) ? $context["prototype"] : (function () { throw new RuntimeError('Variable "prototype" does not exist.', 131, $this->source); })()), "rendered", [], "any", false, false, false, 131))) {
// line 132
yield " ";
$context["row_attr"] = Twig\Extension\CoreExtension::arrayMerge((isset($context["row_attr"]) || array_key_exists("row_attr", $context) ? $context["row_attr"] : (function () { throw new RuntimeError('Variable "row_attr" does not exist.', 132, $this->source); })()), ["data-prototype" => $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["prototype"]) || array_key_exists("prototype", $context) ? $context["prototype"] : (function () { throw new RuntimeError('Variable "prototype" does not exist.', 132, $this->source); })()), 'row')]);
// line 133
yield " ";
}
// line 134
yield "
";
// line 135
$context["row_attr"] = Twig\Extension\CoreExtension::arrayMerge((isset($context["row_attr"]) || array_key_exists("row_attr", $context) ? $context["row_attr"] : (function () { throw new RuntimeError('Variable "row_attr" does not exist.', 135, $this->source); })()), ["data-ea-collection-field" => "true", "data-entry-is-complex" => (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 137
(isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 137, $this->source); })()), "vars", [], "any", false, false, false, 137), "ea_vars", [], "any", false, false, false, 137), "field", [], "any", false, false, false, 137) && 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, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 137, $this->source); })()), "vars", [], "any", false, false, false, 137), "ea_vars", [], "any", false, false, false, 137), "field", [], "any", false, false, false, 137), "customOptions", [], "any", false, false, false, 137), "get", ["entryIsComplex"], "method", false, false, false, 137))) ? ("true") : ("false")), "data-allow-add" => (( // line 138
(isset($context["allow_add"]) || array_key_exists("allow_add", $context) ? $context["allow_add"] : (function () { throw new RuntimeError('Variable "allow_add" does not exist.', 138, $this->source); })())) ? ("true") : ("false")), "data-allow-delete" => (( // line 139
(isset($context["allow_delete"]) || array_key_exists("allow_delete", $context) ? $context["allow_delete"] : (function () { throw new RuntimeError('Variable "allow_delete" does not exist.', 139, $this->source); })())) ? ("true") : ("false")), "data-num-items" => ((Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, // line 140
(isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 140, $this->source); })()), "children", [], "any", false, false, false, 140))) ? (0) : ((max(Twig\Extension\CoreExtension::getArrayKeysFilter(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 140, $this->source); })()), "children", [], "any", false, false, false, 140))) + 1))), "data-form-type-name-placeholder" => (( // line 141
array_key_exists("prototype", $context)) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["prototype"]) || array_key_exists("prototype", $context) ? $context["prototype"] : (function () { throw new RuntimeError('Variable "prototype" does not exist.', 141, $this->source); })()), "vars", [], "any", false, false, false, 141), "name", [], "any", false, false, false, 141)) : (""))]);
// line 143
yield "
";
// line 144
yield from $this->unwrap()->yieldBlock("form_row", $context, $blocks);
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 147
public function block_collection_widget($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "collection_widget"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "collection_widget"));
// line 148
yield " ";
// line 150
yield " ";
$context["isEmptyCollection"] = ((null === (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 150, $this->source); })())) || (is_iterable((isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 150, $this->source); })())) && Twig\Extension\CoreExtension::testEmpty((isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 150, $this->source); })()))));
// line 151
yield " ";
$context["is_array_field"] = ("EasyCorp\\Bundle\\EasyAdminBundle\\Field\\ArrayField" == (((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), "vars", [], "any", false, true, false, 151), "ea_vars", [], "any", false, true, false, 151), "field", [], "any", false, true, false, 151), "fieldFqcn", [], "any", true, true, false, 151) && !(null === 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), "vars", [], "any", false, true, false, 151), "ea_vars", [], "any", false, true, false, 151), "field", [], "any", false, true, false, 151), "fieldFqcn", [], "any", false, false, false, 151)))) ? (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), "vars", [], "any", false, true, false, 151), "ea_vars", [], "any", false, true, false, 151), "field", [], "any", false, true, false, 151), "fieldFqcn", [], "any", false, false, false, 151)) : (false)));
// line 152
yield "
<div class=\"ea-form-collection-items\">
";
// line 154
if ((isset($context["isEmptyCollection"]) || array_key_exists("isEmptyCollection", $context) ? $context["isEmptyCollection"] : (function () { throw new RuntimeError('Variable "isEmptyCollection" does not exist.', 154, $this->source); })())) {
// line 155
yield " ";
yield from $this->unwrap()->yieldBlock("empty_collection", $context, $blocks);
yield "
";
} elseif ( // line 156
(isset($context["is_array_field"]) || array_key_exists("is_array_field", $context) ? $context["is_array_field"] : (function () { throw new RuntimeError('Variable "is_array_field" does not exist.', 156, $this->source); })())) {
// line 157
yield " ";
yield from $this->unwrap()->yieldBlock("form_widget", $context, $blocks);
yield "
";
} else {
// line 159
yield " <div class=\"accordion\">
";
// line 160
yield from $this->unwrap()->yieldBlock("form_widget", $context, $blocks);
yield "
</div>
";
}
// line 163
yield " </div>
";
// line 165
if (((isset($context["isEmptyCollection"]) || array_key_exists("isEmptyCollection", $context) ? $context["isEmptyCollection"] : (function () { throw new RuntimeError('Variable "isEmptyCollection" does not exist.', 165, $this->source); })()) || CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "vars", [], "any", false, true, false, 165), "prototype", [], "any", true, true, false, 165))) {
// line 166
yield " ";
$context["attr"] = Twig\Extension\CoreExtension::arrayMerge((isset($context["attr"]) || array_key_exists("attr", $context) ? $context["attr"] : (function () { throw new RuntimeError('Variable "attr" does not exist.', 166, $this->source); })()), ["data-empty-collection" => $this->unwrap()->renderBlock("empty_collection", $context, $blocks)]);
// line 167
yield " ";
}
// line 168
yield "
";
// line 169
if ((((array_key_exists("allow_add", $context)) ? (Twig\Extension\CoreExtension::defaultFilter((isset($context["allow_add"]) || array_key_exists("allow_add", $context) ? $context["allow_add"] : (function () { throw new RuntimeError('Variable "allow_add" does not exist.', 169, $this->source); })()), false)) : (false)) && !(isset($context["disabled"]) || array_key_exists("disabled", $context) ? $context["disabled"] : (function () { throw new RuntimeError('Variable "disabled" does not exist.', 169, $this->source); })()))) {
// line 170
yield " <button type=\"button\" class=\"btn btn-link field-collection-add-button\">
<i class=\"fa fa-plus pr-1\"></i>
";
// line 172
yield Twig\Extension\EscaperExtension::escape($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("action.add_new_item", [], "EasyAdminBundle"), "html", null, true);
yield "
</button>
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 177
public function block_collection_entry_row($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "collection_entry_row"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "collection_entry_row"));
// line 178
yield " ";
$context["is_array_field"] = ("EasyCorp\\Bundle\\EasyAdminBundle\\Field\\ArrayField" == (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, Symfony\Bridge\Twig\Extension\twig_get_form_parent((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 178, $this->source); })())), "vars", [], "any", false, true, false, 178), "ea_vars", [], "any", false, true, false, 178), "field", [], "any", false, true, false, 178), "fieldFqcn", [], "any", true, true, false, 178) && !(null === CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, Symfony\Bridge\Twig\Extension\twig_get_form_parent((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 178, $this->source); })())), "vars", [], "any", false, true, false, 178), "ea_vars", [], "any", false, true, false, 178), "field", [], "any", false, true, false, 178), "fieldFqcn", [], "any", false, false, false, 178)))) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, Symfony\Bridge\Twig\Extension\twig_get_form_parent((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 178, $this->source); })())), "vars", [], "any", false, true, false, 178), "ea_vars", [], "any", false, true, false, 178), "field", [], "any", false, true, false, 178), "fieldFqcn", [], "any", false, false, false, 178)) : (false)));
// line 179
yield " ";
$context["is_complex"] = (((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, Symfony\Bridge\Twig\Extension\twig_get_form_parent((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 179, $this->source); })())), "vars", [], "any", false, true, false, 179), "ea_vars", [], "any", false, true, false, 179), "field", [], "any", false, true, false, 179), "customOptions", [], "any", false, true, false, 179), "get", ["entryIsComplex"], "method", true, true, false, 179) && !(null === 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, Symfony\Bridge\Twig\Extension\twig_get_form_parent((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 179, $this->source); })())), "vars", [], "any", false, true, false, 179), "ea_vars", [], "any", false, true, false, 179), "field", [], "any", false, true, false, 179), "customOptions", [], "any", false, true, false, 179), "get", ["entryIsComplex"], "method", false, false, false, 179)))) ? (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, Symfony\Bridge\Twig\Extension\twig_get_form_parent((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 179, $this->source); })())), "vars", [], "any", false, true, false, 179), "ea_vars", [], "any", false, true, false, 179), "field", [], "any", false, true, false, 179), "customOptions", [], "any", false, true, false, 179), "get", ["entryIsComplex"], "method", false, false, false, 179)) : (false));
// line 180
yield " ";
$context["allows_deleting_items"] = ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, Symfony\Bridge\Twig\Extension\twig_get_form_parent((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 180, $this->source); })())), "vars", [], "any", false, true, false, 180), "allow_delete", [], "any", true, true, false, 180)) ? (Twig\Extension\CoreExtension::defaultFilter(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, Symfony\Bridge\Twig\Extension\twig_get_form_parent((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 180, $this->source); })())), "vars", [], "any", false, true, false, 180), "allow_delete", [], "any", false, false, false, 180), false)) : (false));
// line 181
yield " ";
$context["render_expanded"] = (((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, Symfony\Bridge\Twig\Extension\twig_get_form_parent((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 181, $this->source); })())), "vars", [], "any", false, true, false, 181), "ea_vars", [], "any", false, true, false, 181), "field", [], "any", false, true, false, 181), "customOptions", [], "any", false, true, false, 181), "get", ["renderExpanded"], "method", true, true, false, 181) && !(null === 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, Symfony\Bridge\Twig\Extension\twig_get_form_parent((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 181, $this->source); })())), "vars", [], "any", false, true, false, 181), "ea_vars", [], "any", false, true, false, 181), "field", [], "any", false, true, false, 181), "customOptions", [], "any", false, true, false, 181), "get", ["renderExpanded"], "method", false, false, false, 181)))) ? (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, Symfony\Bridge\Twig\Extension\twig_get_form_parent((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 181, $this->source); })())), "vars", [], "any", false, true, false, 181), "ea_vars", [], "any", false, true, false, 181), "field", [], "any", false, true, false, 181), "customOptions", [], "any", false, true, false, 181), "get", ["renderExpanded"], "method", false, false, false, 181)) : (false));
// line 182
yield " ";
$context["delete_item_button"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
// line 183
yield " <button type=\"button\" class=\"btn btn-link btn-link-danger field-collection-delete-button\"
title=\"";
// line 184
yield Twig\Extension\EscaperExtension::escape($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("action.remove_item", [], "EasyAdminBundle"), "html", null, true);
yield "\">
<i class=\"far fa-trash-alt\"></i>
</button>
";
})() ?? new \EmptyIterator())) ? '' : new Markup($tmp, $this->env->getCharset());
// line 188
yield "
<div class=\"field-collection-item ";
// line 189
yield (((isset($context["is_complex"]) || array_key_exists("is_complex", $context) ? $context["is_complex"] : (function () { throw new RuntimeError('Variable "is_complex" does not exist.', 189, $this->source); })())) ? ("field-collection-item-complex") : (""));
yield " ";
yield (( !CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 189, $this->source); })()), "vars", [], "any", false, false, false, 189), "valid", [], "any", false, false, false, 189)) ? ("is-invalid") : (""));
yield "\">
";
// line 190
if (((array_key_exists("is_array_field", $context)) ? (Twig\Extension\CoreExtension::defaultFilter((isset($context["is_array_field"]) || array_key_exists("is_array_field", $context) ? $context["is_array_field"] : (function () { throw new RuntimeError('Variable "is_array_field" does not exist.', 190, $this->source); })()), false)) : (false))) {
// line 191
yield " ";
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 191, $this->source); })()), 'label');
yield "
";
// line 192
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 192, $this->source); })()), 'widget');
yield "
";
// line 193
if (((isset($context["allows_deleting_items"]) || array_key_exists("allows_deleting_items", $context) ? $context["allows_deleting_items"] : (function () { throw new RuntimeError('Variable "allows_deleting_items" does not exist.', 193, $this->source); })()) && !(isset($context["disabled"]) || array_key_exists("disabled", $context) ? $context["disabled"] : (function () { throw new RuntimeError('Variable "disabled" does not exist.', 193, $this->source); })()))) {
// line 194
yield " ";
yield Twig\Extension\EscaperExtension::escape($this->env, (isset($context["delete_item_button"]) || array_key_exists("delete_item_button", $context) ? $context["delete_item_button"] : (function () { throw new RuntimeError('Variable "delete_item_button" does not exist.', 194, $this->source); })()), "html", null, true);
yield "
";
}
// line 196
yield " ";
} else {
// line 197
yield " <div class=\"accordion-item\">
<h2 class=\"accordion-header\">
<button class=\"accordion-button ";
// line 199
yield (((isset($context["render_expanded"]) || array_key_exists("render_expanded", $context) ? $context["render_expanded"] : (function () { throw new RuntimeError('Variable "render_expanded" does not exist.', 199, $this->source); })())) ? ("") : ("collapsed"));
yield "\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#";
yield Twig\Extension\EscaperExtension::escape($this->env, (isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 199, $this->source); })()), "html", null, true);
yield "-contents\">
<i class=\"fas fw fa-chevron-right form-collection-item-collapse-marker\"></i>
";
// line 201
yield Twig\Extension\EscaperExtension::escape($this->env, $this->extensions['EasyCorp\Bundle\EasyAdminBundle\Twig\EasyAdminTwigExtension']->representAsString((isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 201, $this->source); })())), "html", null, true);
yield "
</button>
";
// line 204
if (((isset($context["allows_deleting_items"]) || array_key_exists("allows_deleting_items", $context) ? $context["allows_deleting_items"] : (function () { throw new RuntimeError('Variable "allows_deleting_items" does not exist.', 204, $this->source); })()) && !(isset($context["disabled"]) || array_key_exists("disabled", $context) ? $context["disabled"] : (function () { throw new RuntimeError('Variable "disabled" does not exist.', 204, $this->source); })()))) {
// line 205
yield " ";
yield Twig\Extension\EscaperExtension::escape($this->env, (isset($context["delete_item_button"]) || array_key_exists("delete_item_button", $context) ? $context["delete_item_button"] : (function () { throw new RuntimeError('Variable "delete_item_button" does not exist.', 205, $this->source); })()), "html", null, true);
yield "
";
}
// line 207
yield " </h2>
<div id=\"";
// line 208
yield Twig\Extension\EscaperExtension::escape($this->env, (isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 208, $this->source); })()), "html", null, true);
yield "-contents\" class=\"accordion-collapse collapse ";
yield (((isset($context["render_expanded"]) || array_key_exists("render_expanded", $context) ? $context["render_expanded"] : (function () { throw new RuntimeError('Variable "render_expanded" does not exist.', 208, $this->source); })())) ? ("show") : (""));
yield "\">
<div class=\"accordion-body\">
<div class=\"row\">
";
// line 211
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 211, $this->source); })()), 'widget');
yield "
</div>
</div>
</div>
</div>
";
}
// line 217
yield " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 220
public function block_form_widget_compound($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form_widget_compound"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form_widget_compound"));
// line 221
yield " <div class=\"form-widget-compound\">
";
// line 222
if (CoreExtension::inFilter("collection", (isset($context["block_prefixes"]) || array_key_exists("block_prefixes", $context) ? $context["block_prefixes"] : (function () { throw new RuntimeError('Variable "block_prefixes" does not exist.', 222, $this->source); })()))) {
// line 223
yield " ";
// line 225
yield " ";
$context["isEmptyCollection"] = ((null === (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 225, $this->source); })())) || (is_iterable((isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 225, $this->source); })())) && Twig\Extension\CoreExtension::testEmpty((isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 225, $this->source); })()))));
// line 226
yield " ";
if ((isset($context["isEmptyCollection"]) || array_key_exists("isEmptyCollection", $context) ? $context["isEmptyCollection"] : (function () { throw new RuntimeError('Variable "isEmptyCollection" does not exist.', 226, $this->source); })())) {
// line 227
yield " ";
yield from $this->unwrap()->yieldBlock("empty_collection", $context, $blocks);
yield "
";
}
// line 229
yield " ";
if (((isset($context["isEmptyCollection"]) || array_key_exists("isEmptyCollection", $context) ? $context["isEmptyCollection"] : (function () { throw new RuntimeError('Variable "isEmptyCollection" does not exist.', 229, $this->source); })()) || CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "vars", [], "any", false, true, false, 229), "prototype", [], "any", true, true, false, 229))) {
// line 230
yield " ";
$context["attr"] = Twig\Extension\CoreExtension::arrayMerge((isset($context["attr"]) || array_key_exists("attr", $context) ? $context["attr"] : (function () { throw new RuntimeError('Variable "attr" does not exist.', 230, $this->source); })()), ["data-empty-collection" => $this->unwrap()->renderBlock("empty_collection", $context, $blocks)]);
// line 231
yield " ";
}
// line 232
yield " ";
}
// line 233
yield "
";
// line 234
yield from $this->yieldParentBlock("form_widget_compound", $context, $blocks);
yield "
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 238
public function block_button_row($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "button_row"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "button_row"));
// line 239
yield "<div class=\"form-group field-";
yield Twig\Extension\EscaperExtension::escape($this->env, Twig\Extension\CoreExtension::first($this->env, Twig\Extension\CoreExtension::slice($this->env, (isset($context["block_prefixes"]) || array_key_exists("block_prefixes", $context) ? $context["block_prefixes"] : (function () { throw new RuntimeError('Variable "block_prefixes" does not exist.', 239, $this->source); })()), -2)), "html", null, true);
yield " ";
yield Twig\Extension\EscaperExtension::escape($this->env, ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["ea"] ?? null), "field", [], "any", false, true, false, 239), "css_class", [], "any", true, true, false, 239)) ? (Twig\Extension\CoreExtension::defaultFilter(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["ea"] ?? null), "field", [], "any", false, true, false, 239), "css_class", [], "any", false, false, false, 239), "")) : ("")), "html", null, true);
yield "\">";
// line 240
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 240, $this->source); })()), 'widget');
// line 241
yield "</div>";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 246
public function block_form_label($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form_label"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form_label"));
// line 247
if (((isset($context["label"]) || array_key_exists("label", $context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.', 247, $this->source); })()) === false)) {
} else {
// line 251
if ((array_key_exists("compound", $context) && (isset($context["compound"]) || array_key_exists("compound", $context) ? $context["compound"] : (function () { throw new RuntimeError('Variable "compound" does not exist.', 251, $this->source); })()))) {
// line 252
$context["element"] = "legend";
// line 253
$context["label_attr"] = Twig\Extension\CoreExtension::arrayMerge((isset($context["label_attr"]) || array_key_exists("label_attr", $context) ? $context["label_attr"] : (function () { throw new RuntimeError('Variable "label_attr" does not exist.', 253, $this->source); })()), ["class" => Twig\Extension\CoreExtension::trimFilter((((CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", true, true, false, 253)) ? (Twig\Extension\CoreExtension::defaultFilter(CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", false, false, false, 253), "")) : ("")) . " col-form-label"))]);
} else {
// line 255
$context["label_attr"] = Twig\Extension\CoreExtension::arrayMerge((isset($context["label_attr"]) || array_key_exists("label_attr", $context) ? $context["label_attr"] : (function () { throw new RuntimeError('Variable "label_attr" does not exist.', 255, $this->source); })()), ["for" => (isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 255, $this->source); })()), "class" => Twig\Extension\CoreExtension::trimFilter((((CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", true, true, false, 255)) ? (Twig\Extension\CoreExtension::defaultFilter(CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", false, false, false, 255), "")) : ("")) . " form-control-label"))]);
}
// line 257
if ((isset($context["required"]) || array_key_exists("required", $context) ? $context["required"] : (function () { throw new RuntimeError('Variable "required" does not exist.', 257, $this->source); })())) {
// line 258
$context["label_attr"] = Twig\Extension\CoreExtension::arrayMerge((isset($context["label_attr"]) || array_key_exists("label_attr", $context) ? $context["label_attr"] : (function () { throw new RuntimeError('Variable "label_attr" does not exist.', 258, $this->source); })()), ["class" => Twig\Extension\CoreExtension::trimFilter((((CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", true, true, false, 258)) ? (Twig\Extension\CoreExtension::defaultFilter(CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", false, false, false, 258), "")) : ("")) . " required"))]);
}
// line 260
if (((isset($context["label"]) || array_key_exists("label", $context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.', 260, $this->source); })()) === "")) {
} elseif ((null === // line 263
(isset($context["label"]) || array_key_exists("label", $context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.', 263, $this->source); })()))) {
// line 264
if ( !Twig\Extension\CoreExtension::testEmpty((isset($context["label_format"]) || array_key_exists("label_format", $context) ? $context["label_format"] : (function () { throw new RuntimeError('Variable "label_format" does not exist.', 264, $this->source); })()))) {
// line 265
$context["label"] = Twig\Extension\CoreExtension::replaceFilter((isset($context["label_format"]) || array_key_exists("label_format", $context) ? $context["label_format"] : (function () { throw new RuntimeError('Variable "label_format" does not exist.', 265, $this->source); })()), ["%name%" => // line 266
(isset($context["name"]) || array_key_exists("name", $context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.', 266, $this->source); })()), "%id%" => // line 267
(isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 267, $this->source); })())]);
} else {
// line 270
$context["label"] = $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->humanize((isset($context["name"]) || array_key_exists("name", $context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.', 270, $this->source); })()));
}
}
// line 273
yield "<";
yield Twig\Extension\EscaperExtension::escape($this->env, ((array_key_exists("element", $context)) ? (Twig\Extension\CoreExtension::defaultFilter((isset($context["element"]) || array_key_exists("element", $context) ? $context["element"] : (function () { throw new RuntimeError('Variable "element" does not exist.', 273, $this->source); })()), "label")) : ("label")), "html", null, true);
if ((isset($context["label_attr"]) || array_key_exists("label_attr", $context) ? $context["label_attr"] : (function () { throw new RuntimeError('Variable "label_attr" does not exist.', 273, $this->source); })())) {
$__internal_compile_2 = $context;
$__internal_compile_3 = ["attr" => (isset($context["label_attr"]) || array_key_exists("label_attr", $context) ? $context["label_attr"] : (function () { throw new RuntimeError('Variable "label_attr" does not exist.', 273, $this->source); })())];
if (!is_iterable($__internal_compile_3)) {
throw new RuntimeError('Variables passed to the "with" tag must be a hash.', 273, $this->getSourceContext());
}
$__internal_compile_3 = CoreExtension::toArray($__internal_compile_3);
$context = $this->env->mergeGlobals(array_merge($context, $__internal_compile_3));
yield from $this->unwrap()->yieldBlock("attributes", $context, $blocks);
$context = $__internal_compile_2;
}
yield ">";
// line 274
if (((isset($context["translation_domain"]) || array_key_exists("translation_domain", $context) ? $context["translation_domain"] : (function () { throw new RuntimeError('Variable "translation_domain" does not exist.', 274, $this->source); })()) === false)) {
// line 275
if ((((array_key_exists("label_html", $context)) ? (Twig\Extension\CoreExtension::defaultFilter((isset($context["label_html"]) || array_key_exists("label_html", $context) ? $context["label_html"] : (function () { throw new RuntimeError('Variable "label_html" does not exist.', 275, $this->source); })()), false)) : (false)) === false)) {
// line 276
yield Twig\Extension\EscaperExtension::escape($this->env, (isset($context["label"]) || array_key_exists("label", $context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.', 276, $this->source); })()), "html", null, true);
} else {
// line 278
yield (isset($context["label"]) || array_key_exists("label", $context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.', 278, $this->source); })());
}
} else {
// line 281
if ((((array_key_exists("label_html", $context)) ? (Twig\Extension\CoreExtension::defaultFilter((isset($context["label_html"]) || array_key_exists("label_html", $context) ? $context["label_html"] : (function () { throw new RuntimeError('Variable "label_html" does not exist.', 281, $this->source); })()), false)) : (false)) === false)) {
// line 282
yield Twig\Extension\EscaperExtension::escape($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["label"]) || array_key_exists("label", $context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.', 282, $this->source); })()), (isset($context["label_translation_parameters"]) || array_key_exists("label_translation_parameters", $context) ? $context["label_translation_parameters"] : (function () { throw new RuntimeError('Variable "label_translation_parameters" does not exist.', 282, $this->source); })()), (isset($context["translation_domain"]) || array_key_exists("translation_domain", $context) ? $context["translation_domain"] : (function () { throw new RuntimeError('Variable "translation_domain" does not exist.', 282, $this->source); })())), "html", null, true);
} else {
// line 284
yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["label"]) || array_key_exists("label", $context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.', 284, $this->source); })()), (isset($context["label_translation_parameters"]) || array_key_exists("label_translation_parameters", $context) ? $context["label_translation_parameters"] : (function () { throw new RuntimeError('Variable "label_translation_parameters" does not exist.', 284, $this->source); })()), (isset($context["translation_domain"]) || array_key_exists("translation_domain", $context) ? $context["translation_domain"] : (function () { throw new RuntimeError('Variable "translation_domain" does not exist.', 284, $this->source); })()));
}
}
// line 287
yield "</";
yield Twig\Extension\EscaperExtension::escape($this->env, ((array_key_exists("element", $context)) ? (Twig\Extension\CoreExtension::defaultFilter((isset($context["element"]) || array_key_exists("element", $context) ? $context["element"] : (function () { throw new RuntimeError('Variable "element" does not exist.', 287, $this->source); })()), "label")) : ("label")), "html", null, true);
yield ">";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 293
public function block_empty_collection($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "empty_collection"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "empty_collection"));
// line 294
yield " <div class=\"empty collection-empty\">
";
// line 295
yield Twig\Extension\CoreExtension::include($this->env, $context, CoreExtension::getAttribute($this->env, $this->source, (isset($context["ea"]) || array_key_exists("ea", $context) ? $context["ea"] : (function () { throw new RuntimeError('Variable "ea" does not exist.', 295, $this->source); })()), "templatePath", ["label/empty"], "method", false, false, false, 295));
yield "
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 299
public function block_vich_file_row($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "vich_file_row"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "vich_file_row"));
// line 300
yield " ";
$context["force_error"] = true;
// line 301
yield " ";
yield from $this->unwrap()->yieldBlock("form_row", $context, $blocks);
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 304
public function block_vich_file_widget($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "vich_file_widget"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "vich_file_widget"));
// line 305
yield " <div class=\"ea-vich-file\">
";
// line 306
if ( !Twig\Extension\CoreExtension::testEmpty(((array_key_exists("download_uri", $context)) ? (Twig\Extension\CoreExtension::defaultFilter((isset($context["download_uri"]) || array_key_exists("download_uri", $context) ? $context["download_uri"] : (function () { throw new RuntimeError('Variable "download_uri" does not exist.', 306, $this->source); })()), "")) : ("")))) {
// line 307
yield " ";
$context["file_extension"] = Twig\Extension\CoreExtension::last($this->env, Twig\Extension\CoreExtension::splitFilter($this->env, (isset($context["download_uri"]) || array_key_exists("download_uri", $context) ? $context["download_uri"] : (function () { throw new RuntimeError('Variable "download_uri" does not exist.', 307, $this->source); })()), "."));
// line 308
yield " ";
$context["extension_icons"] = ["gif" => "fa-file-image-o", "jpg" => "fa-file-image-o", "pdf" => "fa-file-pdf-o", "png" => "fa-file-image-o", "zip" => "fa-file-archive-o"];
// line 315
yield " <a class=\"ea-vich-file-name\" href=\"";
yield Twig\Extension\EscaperExtension::escape($this->env, ((((isset($context["asset_helper"]) || array_key_exists("asset_helper", $context) ? $context["asset_helper"] : (function () { throw new RuntimeError('Variable "asset_helper" does not exist.', 315, $this->source); })()) === true)) ? ($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["download_uri"]) || array_key_exists("download_uri", $context) ? $context["download_uri"] : (function () { throw new RuntimeError('Variable "download_uri" does not exist.', 315, $this->source); })()))) : ((isset($context["download_uri"]) || array_key_exists("download_uri", $context) ? $context["download_uri"] : (function () { throw new RuntimeError('Variable "download_uri" does not exist.', 315, $this->source); })()))), "html", null, true);
yield "\">
<i class=\"fa fa-fw ";
// line 316
(((CoreExtension::getAttribute($this->env, $this->source, ($context["extension_icons"] ?? null), (isset($context["file_extension"]) || array_key_exists("file_extension", $context) ? $context["file_extension"] : (function () { throw new RuntimeError('Variable "file_extension" does not exist.', 316, $this->source); })()), [], "array", true, true, false, 316) && !(null === CoreExtension::getAttribute($this->env, $this->source, ($context["extension_icons"] ?? null), (isset($context["file_extension"]) || array_key_exists("file_extension", $context) ? $context["file_extension"] : (function () { throw new RuntimeError('Variable "file_extension" does not exist.', 316, $this->source); })()), [], "array", false, false, false, 316)))) ? (yield Twig\Extension\EscaperExtension::escape($this->env, CoreExtension::getAttribute($this->env, $this->source, ($context["extension_icons"] ?? null), (isset($context["file_extension"]) || array_key_exists("file_extension", $context) ? $context["file_extension"] : (function () { throw new RuntimeError('Variable "file_extension" does not exist.', 316, $this->source); })()), [], "array", false, false, false, 316), "html", null, true)) : (yield "fa-file-o"));
yield "\"></i>";
// line 317
if (((array_key_exists("download_label", $context)) ? (Twig\Extension\CoreExtension::defaultFilter((isset($context["download_label"]) || array_key_exists("download_label", $context) ? $context["download_label"] : (function () { throw new RuntimeError('Variable "download_label" does not exist.', 317, $this->source); })()), false)) : (false))) {
// line 318
yield Twig\Extension\EscaperExtension::escape($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["download_label"]) || array_key_exists("download_label", $context) ? $context["download_label"] : (function () { throw new RuntimeError('Variable "download_label" does not exist.', 318, $this->source); })()), [], "VichUploaderBundle"), "html", null, true);
} else {
// line 320
yield Twig\Extension\EscaperExtension::escape($this->env, ((Twig\Extension\CoreExtension::last($this->env, Twig\Extension\CoreExtension::splitFilter($this->env, (isset($context["download_uri"]) || array_key_exists("download_uri", $context) ? $context["download_uri"] : (function () { throw new RuntimeError('Variable "download_uri" does not exist.', 320, $this->source); })()), "/"))) ?: ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("download", [], "VichUploaderBundle"))), "html", null, true);
}
// line 322
yield "</a>
";
}
// line 324
yield "
";
// line 325
$context["file_upload_js"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
// line 326
yield " var newFile = document.getElementById('";
yield Twig\Extension\EscaperExtension::escape($this->env, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 326, $this->source); })()), "file", [], "any", false, false, false, 326), "vars", [], "any", false, false, false, 326), "id", [], "any", false, false, false, 326), "html", null, true);
yield "').files[0];
var fileSizeInMegabytes = newFile.size > 1024 * 1024;
var fileSize = fileSizeInMegabytes ? newFile.size / (1024 * 1024) : newFile.size / 1024;
document.getElementById('";
// line 329
yield Twig\Extension\EscaperExtension::escape($this->env, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 329, $this->source); })()), "file", [], "any", false, false, false, 329), "vars", [], "any", false, false, false, 329), "id", [], "any", false, false, false, 329), "html", null, true);
yield "_new_file_name').innerText = newFile.name + ' (' + fileSize.toFixed(2) + ' ' + (fileSizeInMegabytes ? 'MB' : 'KB') + ')';
";
})() ?? new \EmptyIterator())) ? '' : new Markup($tmp, $this->env->getCharset());
// line 331
yield "
<div class=\"ea-vich-file-actions\">
";
// line 334
yield " <div class=\"btn btn-secondary input-file-container\">
<i class=\"fa fa-fw fa-upload\"></i> ";
// line 335
yield Twig\Extension\EscaperExtension::escape($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("action.choose_file", [], "EasyAdminBundle"), "html", null, true);
yield "
";
// line 336
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 336, $this->source); })()), "file", [], "any", false, false, false, 336), 'widget', ["attr" => ["onchange" => (isset($context["file_upload_js"]) || array_key_exists("file_upload_js", $context) ? $context["file_upload_js"] : (function () { throw new RuntimeError('Variable "file_upload_js" does not exist.', 336, $this->source); })())], "vich" => true]);
yield "
</div>
";
// line 339
if (CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "delete", [], "any", true, true, false, 339)) {
// line 340
yield " ";
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 340, $this->source); })()), "delete", [], "any", false, false, false, 340), 'row');
yield "
";
}
// line 342
yield " </div>
<div class=\"small\" id=\"";
// line 343
yield Twig\Extension\EscaperExtension::escape($this->env, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 343, $this->source); })()), "file", [], "any", false, false, false, 343), "vars", [], "any", false, false, false, 343), "id", [], "any", false, false, false, 343), "html", null, true);
yield "_new_file_name\"></div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 347
public function block_vich_image_row($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "vich_image_row"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "vich_image_row"));
// line 348
yield " ";
$context["force_error"] = true;
// line 349
yield " ";
yield from $this->unwrap()->yieldBlock("form_row", $context, $blocks);
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 352
public function block_vich_image_widget($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "vich_image_widget"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "vich_image_widget"));
// line 353
yield " ";
$context["formTypeOptions"] = ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["ea_vars"] ?? null), "field", [], "any", false, true, false, 353), "formTypeOptions", [], "any", true, true, false, 353)) ? (Twig\Extension\CoreExtension::defaultFilter(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["ea_vars"] ?? null), "field", [], "any", false, true, false, 353), "formTypeOptions", [], "any", false, false, false, 353), "")) : (""));
// line 354
yield " <div class=\"ea-vich-image\">
";
// line 355
if ( !Twig\Extension\CoreExtension::testEmpty(((array_key_exists("image_uri", $context)) ? (Twig\Extension\CoreExtension::defaultFilter((isset($context["image_uri"]) || array_key_exists("image_uri", $context) ? $context["image_uri"] : (function () { throw new RuntimeError('Variable "image_uri" does not exist.', 355, $this->source); })()), "")) : ("")))) {
// line 356
yield " ";
if (Twig\Extension\CoreExtension::testEmpty(((array_key_exists("download_uri", $context)) ? (Twig\Extension\CoreExtension::defaultFilter((isset($context["download_uri"]) || array_key_exists("download_uri", $context) ? $context["download_uri"] : (function () { throw new RuntimeError('Variable "download_uri" does not exist.', 356, $this->source); })()), "")) : ("")))) {
// line 357
yield " <div class=\"ea-lightbox-thumbnail\">
";
// line 358
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["formTypeOptions"] ?? null), "imagine_pattern", [], "any", true, true, false, 358) && !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formTypeOptions"]) || array_key_exists("formTypeOptions", $context) ? $context["formTypeOptions"] : (function () { throw new RuntimeError('Variable "formTypeOptions" does not exist.', 358, $this->source); })()), "imagine_pattern", [], "any", false, false, false, 358)))) {
// line 359
yield " <img style=\"cursor: initial\" src=\"";
yield Twig\Extension\EscaperExtension::escape($this->env, $this->extensions['EasyCorp\Bundle\EasyAdminBundle\Twig\EasyAdminTwigExtension']->applyFilterIfExists($this->env, ((((isset($context["asset_helper"]) || array_key_exists("asset_helper", $context) ? $context["asset_helper"] : (function () { throw new RuntimeError('Variable "asset_helper" does not exist.', 359, $this->source); })()) === true)) ? ($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["image_uri"]) || array_key_exists("image_uri", $context) ? $context["image_uri"] : (function () { throw new RuntimeError('Variable "image_uri" does not exist.', 359, $this->source); })()))) : ((isset($context["image_uri"]) || array_key_exists("image_uri", $context) ? $context["image_uri"] : (function () { throw new RuntimeError('Variable "image_uri" does not exist.', 359, $this->source); })()))), "imagine_filter", CoreExtension::getAttribute($this->env, $this->source, (isset($context["formTypeOptions"]) || array_key_exists("formTypeOptions", $context) ? $context["formTypeOptions"] : (function () { throw new RuntimeError('Variable "formTypeOptions" does not exist.', 359, $this->source); })()), "imagine_pattern", [], "any", false, false, false, 359)), "html", null, true);
yield "\">
";
} else {
// line 361
yield " <img style=\"cursor: initial\" src=\"";
yield Twig\Extension\EscaperExtension::escape($this->env, ((((isset($context["asset_helper"]) || array_key_exists("asset_helper", $context) ? $context["asset_helper"] : (function () { throw new RuntimeError('Variable "asset_helper" does not exist.', 361, $this->source); })()) === true)) ? ($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["image_uri"]) || array_key_exists("image_uri", $context) ? $context["image_uri"] : (function () { throw new RuntimeError('Variable "image_uri" does not exist.', 361, $this->source); })()))) : ((isset($context["image_uri"]) || array_key_exists("image_uri", $context) ? $context["image_uri"] : (function () { throw new RuntimeError('Variable "image_uri" does not exist.', 361, $this->source); })()))), "html", null, true);
yield "\">
";
}
// line 363
yield " </div>
";
} else {
// line 365
yield " ";
$context["_lightbox_id"] = ("ea-lightbox-" . (isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 365, $this->source); })()));
// line 366
yield "
<a href=\"#\" class=\"ea-lightbox-thumbnail\" data-ea-lightbox-content-selector=\"#";
// line 367
yield Twig\Extension\EscaperExtension::escape($this->env, (isset($context["_lightbox_id"]) || array_key_exists("_lightbox_id", $context) ? $context["_lightbox_id"] : (function () { throw new RuntimeError('Variable "_lightbox_id" does not exist.', 367, $this->source); })()), "html", null, true);
yield "\">
";
// line 368
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["formTypeOptions"] ?? null), "imagine_pattern", [], "any", true, true, false, 368) && !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formTypeOptions"]) || array_key_exists("formTypeOptions", $context) ? $context["formTypeOptions"] : (function () { throw new RuntimeError('Variable "formTypeOptions" does not exist.', 368, $this->source); })()), "imagine_pattern", [], "any", false, false, false, 368)))) {
// line 369
yield " <img src=\"";
yield Twig\Extension\EscaperExtension::escape($this->env, $this->extensions['EasyCorp\Bundle\EasyAdminBundle\Twig\EasyAdminTwigExtension']->applyFilterIfExists($this->env, ((((isset($context["asset_helper"]) || array_key_exists("asset_helper", $context) ? $context["asset_helper"] : (function () { throw new RuntimeError('Variable "asset_helper" does not exist.', 369, $this->source); })()) === true)) ? ($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["download_uri"]) || array_key_exists("download_uri", $context) ? $context["download_uri"] : (function () { throw new RuntimeError('Variable "download_uri" does not exist.', 369, $this->source); })()))) : ((isset($context["download_uri"]) || array_key_exists("download_uri", $context) ? $context["download_uri"] : (function () { throw new RuntimeError('Variable "download_uri" does not exist.', 369, $this->source); })()))), "imagine_filter", CoreExtension::getAttribute($this->env, $this->source, (isset($context["formTypeOptions"]) || array_key_exists("formTypeOptions", $context) ? $context["formTypeOptions"] : (function () { throw new RuntimeError('Variable "formTypeOptions" does not exist.', 369, $this->source); })()), "imagine_pattern", [], "any", false, false, false, 369)), "html", null, true);
yield "\">
";
} else {
// line 371
yield " <img src=\"";
yield Twig\Extension\EscaperExtension::escape($this->env, ((((isset($context["asset_helper"]) || array_key_exists("asset_helper", $context) ? $context["asset_helper"] : (function () { throw new RuntimeError('Variable "asset_helper" does not exist.', 371, $this->source); })()) === true)) ? ($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["download_uri"]) || array_key_exists("download_uri", $context) ? $context["download_uri"] : (function () { throw new RuntimeError('Variable "download_uri" does not exist.', 371, $this->source); })()))) : ((isset($context["download_uri"]) || array_key_exists("download_uri", $context) ? $context["download_uri"] : (function () { throw new RuntimeError('Variable "download_uri" does not exist.', 371, $this->source); })()))), "html", null, true);
yield "\">
";
}
// line 373
yield " </a>
<div id=\"";
// line 375
yield Twig\Extension\EscaperExtension::escape($this->env, (isset($context["_lightbox_id"]) || array_key_exists("_lightbox_id", $context) ? $context["_lightbox_id"] : (function () { throw new RuntimeError('Variable "_lightbox_id" does not exist.', 375, $this->source); })()), "html", null, true);
yield "\" class=\"ea-lightbox\">
";
// line 376
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["formTypeOptions"] ?? null), "imagine_pattern", [], "any", true, true, false, 376) && !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formTypeOptions"]) || array_key_exists("formTypeOptions", $context) ? $context["formTypeOptions"] : (function () { throw new RuntimeError('Variable "formTypeOptions" does not exist.', 376, $this->source); })()), "imagine_pattern", [], "any", false, false, false, 376)))) {
// line 377
yield " <img src=\"";
yield Twig\Extension\EscaperExtension::escape($this->env, $this->extensions['EasyCorp\Bundle\EasyAdminBundle\Twig\EasyAdminTwigExtension']->applyFilterIfExists($this->env, ((((isset($context["asset_helper"]) || array_key_exists("asset_helper", $context) ? $context["asset_helper"] : (function () { throw new RuntimeError('Variable "asset_helper" does not exist.', 377, $this->source); })()) === true)) ? ($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["download_uri"]) || array_key_exists("download_uri", $context) ? $context["download_uri"] : (function () { throw new RuntimeError('Variable "download_uri" does not exist.', 377, $this->source); })()))) : ((isset($context["download_uri"]) || array_key_exists("download_uri", $context) ? $context["download_uri"] : (function () { throw new RuntimeError('Variable "download_uri" does not exist.', 377, $this->source); })()))), "imagine_filter", CoreExtension::getAttribute($this->env, $this->source, (isset($context["formTypeOptions"]) || array_key_exists("formTypeOptions", $context) ? $context["formTypeOptions"] : (function () { throw new RuntimeError('Variable "formTypeOptions" does not exist.', 377, $this->source); })()), "imagine_pattern", [], "any", false, false, false, 377)), "html", null, true);
yield "\">
";
} else {
// line 379
yield " <img src=\"";
yield Twig\Extension\EscaperExtension::escape($this->env, ((((isset($context["asset_helper"]) || array_key_exists("asset_helper", $context) ? $context["asset_helper"] : (function () { throw new RuntimeError('Variable "asset_helper" does not exist.', 379, $this->source); })()) === true)) ? ($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["download_uri"]) || array_key_exists("download_uri", $context) ? $context["download_uri"] : (function () { throw new RuntimeError('Variable "download_uri" does not exist.', 379, $this->source); })()))) : ((isset($context["download_uri"]) || array_key_exists("download_uri", $context) ? $context["download_uri"] : (function () { throw new RuntimeError('Variable "download_uri" does not exist.', 379, $this->source); })()))), "html", null, true);
yield "\">
";
}
// line 381
yield " </div>
";
}
// line 383
yield " ";
}
// line 384
yield "
";
// line 385
$context["file_upload_js"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
// line 386
yield " var newFile = document.getElementById('";
yield Twig\Extension\EscaperExtension::escape($this->env, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 386, $this->source); })()), "file", [], "any", false, false, false, 386), "vars", [], "any", false, false, false, 386), "id", [], "any", false, false, false, 386), "html", null, true);
yield "').files[0];
var fileSizeInMegabytes = newFile.size > 1024 * 1024;
var fileSize = fileSizeInMegabytes ? newFile.size / (1024 * 1024) : newFile.size / 1024;
document.getElementById('";
// line 389
yield Twig\Extension\EscaperExtension::escape($this->env, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 389, $this->source); })()), "file", [], "any", false, false, false, 389), "vars", [], "any", false, false, false, 389), "id", [], "any", false, false, false, 389), "html", null, true);
yield "_new_file_name').innerText = newFile.name + ' (' + fileSize.toFixed(2) + ' ' + (fileSizeInMegabytes ? 'MB' : 'KB') + ')';
";
})() ?? new \EmptyIterator())) ? '' : new Markup($tmp, $this->env->getCharset());
// line 391
yield "
<div class=\"ea-vich-image-actions\">
";
// line 394
yield " <div class=\"btn btn-secondary input-file-container\">
<i class=\"fa fa-fw fa-upload\"></i> ";
// line 395
yield Twig\Extension\EscaperExtension::escape($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("action.choose_file", [], "EasyAdminBundle"), "html", null, true);
yield "
";
// line 396
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 396, $this->source); })()), "file", [], "any", false, false, false, 396), 'widget', ["attr" => ["onchange" => (isset($context["file_upload_js"]) || array_key_exists("file_upload_js", $context) ? $context["file_upload_js"] : (function () { throw new RuntimeError('Variable "file_upload_js" does not exist.', 396, $this->source); })())], "vich" => true]);
yield "
</div>
";
// line 399
if (CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "delete", [], "any", true, true, false, 399)) {
// line 400
yield " ";
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 400, $this->source); })()), "delete", [], "any", false, false, false, 400), 'row');
yield "
";
}
// line 402
yield " </div>
<div class=\"small\" id=\"";
// line 403
yield Twig\Extension\EscaperExtension::escape($this->env, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 403, $this->source); })()), "file", [], "any", false, false, false, 403), "vars", [], "any", false, false, false, 403), "id", [], "any", false, false, false, 403), "html", null, true);
yield "_new_file_name\"></div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 407
public function block_ea_crud_rest($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ea_crud_rest"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ea_crud_rest"));
// line 408
yield " ";
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 408, $this->source); })()), 'rest');
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 412
public function block_ea_crud_widget($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ea_crud_widget"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ea_crud_widget"));
// line 413
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 413, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["field"]) {
// line 414
yield " ";
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["field"], 'row');
yield "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['field'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 419
public function block_ea_crud_widget_panels($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ea_crud_widget_panels"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ea_crud_widget_panels"));
// line 420
yield " ";
@trigger_error("The \"ea_crud_widget_panels\" block is deprecated because the form layout building logic has been revamped. Check \"ea_crud_widget\" block in `form_theme.html.page` for more details."." (\"@EasyAdmin/crud/form_theme.html.twig\" at line 420).", E_USER_DEPRECATED);
// line 421
yield "
";
// line 422
yield from $this->unwrap()->yieldBlock("ea_crud_widget_fieldsets", $context, $blocks);
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 425
public function block_ea_crud_widget_fieldsets($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ea_crud_widget_fieldsets"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ea_crud_widget_fieldsets"));
// line 426
yield " ";
@trigger_error("The \"ea_crud_widget_fieldsets\" block is deprecated because the form layout building logic has been revamped. Check \"ea_crud_widget\" block in `form_theme.html.page` for more details."." (\"@EasyAdmin/crud/form_theme.html.twig\" at line 426).", E_USER_DEPRECATED);
// line 427
yield "
";
// line 428
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(Twig\Extension\CoreExtension::arrayFilter($this->env, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["field"]) || array_key_exists("field", $context) ? $context["field"] : (function () { throw new RuntimeError('Variable "field" does not exist.', 428, $this->source); })()), "vars", [], "any", false, false, false, 428), "ea_crud_form", [], "any", false, false, false, 428), "form_fieldsets", [], "any", false, false, false, 428), function ($__fieldset_config__) use ($context, $macros) { $context["fieldset_config"] = $__fieldset_config__; return ( !CoreExtension::getAttribute($this->env, $this->source, $context["fieldset_config"], "form_tab", [], "any", false, false, false, 428) || (CoreExtension::getAttribute($this->env, $this->source, $context["fieldset_config"], "form_tab", [], "any", false, false, false, 428) == (isset($context["tab_name"]) || array_key_exists("tab_name", $context) ? $context["tab_name"] : (function () { throw new RuntimeError('Variable "tab_name" does not exist.', 428, $this->source); })()))); }));
$context['_iterated'] = false;
foreach ($context['_seq'] as $context["fieldset_name"] => $context["fieldset_config"]) {
// line 429
yield " ";
$context["fieldset_has_header"] = ((((CoreExtension::getAttribute($this->env, $this->source, $context["fieldset_config"], "label", [], "any", true, true, false, 429)) ? (Twig\Extension\CoreExtension::defaultFilter(CoreExtension::getAttribute($this->env, $this->source, $context["fieldset_config"], "label", [], "any", false, false, false, 429), false)) : (false)) || ((CoreExtension::getAttribute($this->env, $this->source, $context["fieldset_config"], "icon", [], "any", true, true, false, 429)) ? (Twig\Extension\CoreExtension::defaultFilter(CoreExtension::getAttribute($this->env, $this->source, $context["fieldset_config"], "icon", [], "any", false, false, false, 429), false)) : (false))) || ((CoreExtension::getAttribute($this->env, $this->source, $context["fieldset_config"], "help", [], "any", true, true, false, 429)) ? (Twig\Extension\CoreExtension::defaultFilter(CoreExtension::getAttribute($this->env, $this->source, $context["fieldset_config"], "help", [], "any", false, false, false, 429), false)) : (false)));
// line 430
yield "
";
// line 431
$context["collapsible"] = CoreExtension::getAttribute($this->env, $this->source, $context["fieldset_config"], "collapsible", [], "any", false, false, false, 431);
// line 432
yield " ";
$context["collapsed"] = CoreExtension::getAttribute($this->env, $this->source, $context["fieldset_config"], "collapsed", [], "any", false, false, false, 432);
// line 433
yield "
<div class=\"";
// line 434
(((CoreExtension::getAttribute($this->env, $this->source, $context["fieldset_config"], "css_class", [], "any", true, true, false, 434) && !(null === CoreExtension::getAttribute($this->env, $this->source, $context["fieldset_config"], "css_class", [], "any", false, false, false, 434)))) ? (yield Twig\Extension\EscaperExtension::escape($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["fieldset_config"], "css_class", [], "any", false, false, false, 434), "html", null, true)) : (yield ""));
yield "\">
<fieldset class=\"form-fieldset\">
";
// line 436
if ((isset($context["fieldset_has_header"]) || array_key_exists("fieldset_has_header", $context) ? $context["fieldset_has_header"] : (function () { throw new RuntimeError('Variable "fieldset_has_header" does not exist.', 436, $this->source); })())) {
// line 437
yield " <div class=\"form-fieldset-header ";
yield (((isset($context["collapsible"]) || array_key_exists("collapsible", $context) ? $context["collapsible"] : (function () { throw new RuntimeError('Variable "collapsible" does not exist.', 437, $this->source); })())) ? ("collapsible") : (""));
yield " ";
yield (( !Twig\Extension\CoreExtension::testEmpty(((CoreExtension::getAttribute($this->env, $this->source, $context["fieldset_config"], "help", [], "any", true, true, false, 437)) ? (Twig\Extension\CoreExtension::defaultFilter(CoreExtension::getAttribute($this->env, $this->source, $context["fieldset_config"], "help", [], "any", false, false, false, 437), false)) : (false)))) ? ("with-help") : (""));
yield "\">
<div class=\"form-fieldset-title\">
<a ";
// line 439
if ( !(isset($context["collapsible"]) || array_key_exists("collapsible", $context) ? $context["collapsible"] : (function () { throw new RuntimeError('Variable "collapsible" does not exist.', 439, $this->source); })())) {
// line 440
yield " href=\"#\" class=\"not-collapsible\"
";
} else {
// line 442
yield " href=\"#content-";
yield Twig\Extension\EscaperExtension::escape($this->env, $context["fieldset_name"], "html", null, true);
yield "\" data-bs-toggle=\"collapse\"
class=\"form-fieldset-collapse ";
// line 443
yield (((isset($context["collapsed"]) || array_key_exists("collapsed", $context) ? $context["collapsed"] : (function () { throw new RuntimeError('Variable "collapsed" does not exist.', 443, $this->source); })())) ? ("collapsed") : (""));
yield "\"
aria-expanded=\"";
// line 444
yield (((isset($context["collapsed"]) || array_key_exists("collapsed", $context) ? $context["collapsed"] : (function () { throw new RuntimeError('Variable "collapsed" does not exist.', 444, $this->source); })())) ? ("false") : ("true"));
yield "\" aria-controls=\"content-";
yield Twig\Extension\EscaperExtension::escape($this->env, $context["fieldset_name"], "html", null, true);
yield "\"
";
}
// line 446
yield " >
";
// line 447
if ((isset($context["collapsible"]) || array_key_exists("collapsible", $context) ? $context["collapsible"] : (function () { throw new RuntimeError('Variable "collapsible" does not exist.', 447, $this->source); })())) {
// line 448
yield " <i class=\"fas fw fa-chevron-right form-fieldset-collapse-marker\"></i>
";
}
// line 450
yield "
";
// line 451
if (((CoreExtension::getAttribute($this->env, $this->source, $context["fieldset_config"], "icon", [], "any", true, true, false, 451)) ? (Twig\Extension\CoreExtension::defaultFilter(CoreExtension::getAttribute($this->env, $this->source, $context["fieldset_config"], "icon", [], "any", false, false, false, 451), false)) : (false))) {
// line 452
yield " <i class=\"form-fieldset-icon ";
yield Twig\Extension\EscaperExtension::escape($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["fieldset_config"], "icon", [], "any", false, false, false, 452), "html", null, true);
yield "\"></i>
";
}
// line 454
yield " ";
yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env, $this->source, $context["fieldset_config"], "label", [], "any", false, false, false, 454));
yield "
</a>
";
// line 457
if (((CoreExtension::getAttribute($this->env, $this->source, $context["fieldset_config"], "help", [], "any", true, true, false, 457)) ? (Twig\Extension\CoreExtension::defaultFilter(CoreExtension::getAttribute($this->env, $this->source, $context["fieldset_config"], "help", [], "any", false, false, false, 457), false)) : (false))) {
// line 458
yield " <div class=\"form-fieldset-help\">";
yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env, $this->source, $context["fieldset_config"], "help", [], "any", false, false, false, 458));
yield "</div>
";
}
// line 460
yield " </div>
</div>
";
}
// line 463
yield "
<div id=\"content-";
// line 464
yield Twig\Extension\EscaperExtension::escape($this->env, $context["fieldset_name"], "html", null, true);
yield "\" class=\"form-fieldset-body ";
yield (( !(isset($context["fieldset_has_header"]) || array_key_exists("fieldset_has_header", $context) ? $context["fieldset_has_header"] : (function () { throw new RuntimeError('Variable "fieldset_has_header" does not exist.', 464, $this->source); })())) ? ("without-header") : (""));
yield " ";
yield (((isset($context["collapsible"]) || array_key_exists("collapsible", $context) ? $context["collapsible"] : (function () { throw new RuntimeError('Variable "collapsible" does not exist.', 464, $this->source); })())) ? ("collapse") : (""));
yield " ";
yield (( !(isset($context["collapsed"]) || array_key_exists("collapsed", $context) ? $context["collapsed"] : (function () { throw new RuntimeError('Variable "collapsed" does not exist.', 464, $this->source); })())) ? ("show") : (""));
yield "\">
<div class=\"row\">
";
// line 466
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(Twig\Extension\CoreExtension::arrayFilter($this->env, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 466, $this->source); })()), function ($__field__) use ($context, $macros) { $context["field"] = $__field__; return (!CoreExtension::inFilter("hidden", CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["field"], "vars", [], "any", false, false, false, 466), "block_prefixes", [], "any", false, false, false, 466)) && (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["field"], "vars", [], "any", false, false, false, 466), "ea_crud_form", [], "any", false, false, false, 466), "form_fieldset", [], "any", false, false, false, 466) == $context["fieldset_name"])); }));
foreach ($context['_seq'] as $context["_key"] => $context["field"]) {
// line 467
yield " ";
if (( !CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["field"], "vars", [], "any", false, false, false, 467), "ea_crud_form", [], "any", false, false, false, 467), "form_tab", [], "any", false, false, false, 467) || (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["field"], "vars", [], "any", false, false, false, 467), "ea_crud_form", [], "any", false, false, false, 467), "form_tab", [], "any", false, false, false, 467) == (isset($context["tab_name"]) || array_key_exists("tab_name", $context) ? $context["tab_name"] : (function () { throw new RuntimeError('Variable "tab_name" does not exist.', 467, $this->source); })())))) {
// line 468
yield " ";
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["field"], 'row');
yield "
";
}
// line 470
yield " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['field'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 471
yield " </div>
</div>
</fieldset>
</div>
";
$context['_iterated'] = true;
}
if (!$context['_iterated']) {
// line 476
yield " ";
// line 487
yield " ";
yield CoreExtension::callMacro($macros["_self"], "macro_recursiveFieldsetForm", [(isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 487, $this->source); })())], 487, $context, $this->getSourceContext());
yield "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['fieldset_name'], $context['fieldset_config'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 492
public function block_ea_autocomplete_widget($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ea_autocomplete_widget"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ea_autocomplete_widget"));
// line 493
yield " ";
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 493, $this->source); })()), "autocomplete", [], "any", false, false, false, 493), 'widget', ["attr" => Twig\Extension\CoreExtension::arrayMerge((isset($context["attr"]) || array_key_exists("attr", $context) ? $context["attr"] : (function () { throw new RuntimeError('Variable "attr" does not exist.', 493, $this->source); })()), ["required" => (isset($context["required"]) || array_key_exists("required", $context) ? $context["required"] : (function () { throw new RuntimeError('Variable "required" does not exist.', 493, $this->source); })())])]);
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 496
public function block_ea_autocomplete_inner_label($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ea_autocomplete_inner_label"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ea_autocomplete_inner_label"));
// line 497
yield " ";
$context["name"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, Symfony\Bridge\Twig\Extension\twig_get_form_parent((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 497, $this->source); })())), "vars", [], "any", false, false, false, 497), "name", [], "any", false, false, false, 497);
// line 498
yield " ";
yield from $this->unwrap()->yieldBlock("form_label", $context, $blocks);
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 502
public function block_ea_code_editor_widget($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ea_code_editor_widget"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ea_code_editor_widget"));
// line 503
yield " ";
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 503, $this->source); })()), 'widget', ["attr" => Twig\Extension\CoreExtension::arrayMerge((isset($context["attr"]) || array_key_exists("attr", $context) ? $context["attr"] : (function () { throw new RuntimeError('Variable "attr" does not exist.', 503, $this->source); })()), ["data-ea-code-editor-field" => "true", "data-language" => 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 505
(isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 505, $this->source); })()), "vars", [], "any", false, false, false, 505), "ea_vars", [], "any", false, false, false, 505), "field", [], "any", false, false, false, 505), "customOptions", [], "any", false, false, false, 505), "get", ["language"], "method", false, false, false, 505), "data-tab-size" => 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 506
(isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 506, $this->source); })()), "vars", [], "any", false, false, false, 506), "ea_vars", [], "any", false, false, false, 506), "field", [], "any", false, false, false, 506), "customOptions", [], "any", false, false, false, 506), "get", ["tabSize"], "method", false, false, false, 506), "data-indent-with-tabs" => ((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 507
(isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 507, $this->source); })()), "vars", [], "any", false, false, false, 507), "ea_vars", [], "any", false, false, false, 507), "field", [], "any", false, false, false, 507), "customOptions", [], "any", false, false, false, 507), "get", ["indentWithTabs"], "method", false, false, false, 507)) ? ("true") : ("false")), "data-show-line-numbers" => ((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 508
(isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 508, $this->source); })()), "vars", [], "any", false, false, false, 508), "ea_vars", [], "any", false, false, false, 508), "field", [], "any", false, false, false, 508), "customOptions", [], "any", false, false, false, 508), "get", ["showLineNumbers"], "method", false, false, false, 508)) ? ("true") : ("false")), "data-number-of-rows" => 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 509
(isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 509, $this->source); })()), "vars", [], "any", false, false, false, 509), "ea_vars", [], "any", false, false, false, 509), "field", [], "any", false, false, false, 509), "customOptions", [], "any", false, false, false, 509), "get", ["numOfRows"], "method", false, false, false, 509)])]);
// line 510
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 514
public function block_ea_text_editor_widget($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ea_text_editor_widget"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ea_text_editor_widget"));
// line 515
yield " ";
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 515, $this->source); })()), 'widget', ["attr" => Twig\Extension\CoreExtension::arrayMerge((isset($context["attr"]) || array_key_exists("attr", $context) ? $context["attr"] : (function () { throw new RuntimeError('Variable "attr" does not exist.', 515, $this->source); })()), ["class" => "ea-text-editor-content d-none", "data-number-of-rows" => ((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 517
($context["form"] ?? null), "vars", [], "any", false, true, false, 517), "ea_vars", [], "any", false, true, false, 517), "field", [], "any", false, true, false, 517), "customOptions", [], "any", false, true, false, 517), "get", ["numOfRows"], "method", true, true, false, 517)) ? (Twig\Extension\CoreExtension::defaultFilter(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "vars", [], "any", false, true, false, 517), "ea_vars", [], "any", false, true, false, 517), "field", [], "any", false, true, false, 517), "customOptions", [], "any", false, true, false, 517), "get", ["numOfRows"], "method", false, false, false, 517), 5)) : (5)), "data-trix-editor-config" => json_encode(((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 518
($context["form"] ?? null), "vars", [], "any", false, true, false, 518), "ea_vars", [], "any", false, true, false, 518), "field", [], "any", false, true, false, 518), "customOptions", [], "any", false, true, false, 518), "get", ["trixEditorConfig"], "method", true, true, false, 518)) ? (Twig\Extension\CoreExtension::defaultFilter(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "vars", [], "any", false, true, false, 518), "ea_vars", [], "any", false, true, false, 518), "field", [], "any", false, true, false, 518), "customOptions", [], "any", false, true, false, 518), "get", ["trixEditorConfig"], "method", false, false, false, 518), null)) : (null)))])]);
// line 519
yield "
<div class=\"ea-text-editor-wrapper\">
<trix-editor input=\"";
// line 522
yield Twig\Extension\EscaperExtension::escape($this->env, (isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 522, $this->source); })()), "html", null, true);
yield "\" class=\"trix-content\"></trix-editor>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 527
public function block_ea_form_row_row($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ea_form_row_row"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ea_form_row_row"));
// line 528
yield " <div class=\"";
yield Twig\Extension\EscaperExtension::escape($this->env, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 528, $this->source); })()), "vars", [], "any", false, false, false, 528), "row_attr", [], "any", false, false, false, 528), "class", [], "any", false, false, false, 528), "html", null, true);
yield "\"></div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 531
public function block_ea_form_column_group_open_row($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ea_form_column_group_open_row"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ea_form_column_group_open_row"));
// line 532
yield " ";
// line 533
yield " ";
if ( !((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "vars", [], "any", false, true, false, 533), "ea_is_inside_tab", [], "any", true, true, false, 533)) ? (Twig\Extension\CoreExtension::defaultFilter(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "vars", [], "any", false, true, false, 533), "ea_is_inside_tab", [], "any", false, false, false, 533), false)) : (false))) {
// line 534
yield " <div class=\"row\">
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 538
public function block_ea_form_column_group_close_row($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ea_form_column_group_close_row"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ea_form_column_group_close_row"));
// line 539
yield " ";
// line 541
yield " ";
if ( !((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "vars", [], "any", false, true, false, 541), "ea_is_inside_tab", [], "any", true, true, false, 541)) ? (Twig\Extension\CoreExtension::defaultFilter(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "vars", [], "any", false, true, false, 541), "ea_is_inside_tab", [], "any", false, false, false, 541), false)) : (false))) {
// line 542
yield " </div>
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 546
public function block_ea_form_column_open_row($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ea_form_column_open_row"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ea_form_column_open_row"));
// line 547
yield " ";
$context["field"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 547, $this->source); })()), "vars", [], "any", false, false, false, 547), "ea_vars", [], "any", false, false, false, 547), "field", [], "any", false, false, false, 547);
// line 548
yield " ";
$context["field_icon"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["field"]) || array_key_exists("field", $context) ? $context["field"] : (function () { throw new RuntimeError('Variable "field" does not exist.', 548, $this->source); })()), "getCustomOption", ["icon"], "method", false, false, false, 548);
// line 549
yield " ";
$context["column_has_title"] = ((((((isset($context["field_icon"]) || array_key_exists("field_icon", $context) ? $context["field_icon"] : (function () { throw new RuntimeError('Variable "field_icon" does not exist.', 549, $this->source); })()) != null) || (CoreExtension::getAttribute($this->env, $this->source, (isset($context["field"]) || array_key_exists("field", $context) ? $context["field"] : (function () { throw new RuntimeError('Variable "field" does not exist.', 549, $this->source); })()), "label", [], "any", false, false, false, 549) != false)) || (CoreExtension::getAttribute($this->env, $this->source, (isset($context["field"]) || array_key_exists("field", $context) ? $context["field"] : (function () { throw new RuntimeError('Variable "field" does not exist.', 549, $this->source); })()), "label", [], "any", false, false, false, 549) != null)) || (CoreExtension::getAttribute($this->env, $this->source, (isset($context["field"]) || array_key_exists("field", $context) ? $context["field"] : (function () { throw new RuntimeError('Variable "field" does not exist.', 549, $this->source); })()), "label", [], "any", false, false, false, 549) != "")) || (CoreExtension::getAttribute($this->env, $this->source, (isset($context["field"]) || array_key_exists("field", $context) ? $context["field"] : (function () { throw new RuntimeError('Variable "field" does not exist.', 549, $this->source); })()), "help", [], "any", false, false, false, 549) != null));
// line 550
yield "
<div class=\"form-column ";
// line 551
yield (( !(isset($context["column_has_title"]) || array_key_exists("column_has_title", $context) ? $context["column_has_title"] : (function () { throw new RuntimeError('Variable "column_has_title" does not exist.', 551, $this->source); })())) ? ("form-column-no-header") : (""));
yield " ";
yield Twig\Extension\EscaperExtension::escape($this->env, CoreExtension::getAttribute($this->env, $this->source, (isset($context["field"]) || array_key_exists("field", $context) ? $context["field"] : (function () { throw new RuntimeError('Variable "field" does not exist.', 551, $this->source); })()), "cssClass", [], "any", false, false, false, 551), "html", null, true);
yield "\">
";
// line 552
if ((isset($context["column_has_title"]) || array_key_exists("column_has_title", $context) ? $context["column_has_title"] : (function () { throw new RuntimeError('Variable "column_has_title" does not exist.', 552, $this->source); })())) {
// line 553
yield " <div class=\"form-column-title\">
<div class=\"form-column-title-content\">
";
// line 555
if ((isset($context["field_icon"]) || array_key_exists("field_icon", $context) ? $context["field_icon"] : (function () { throw new RuntimeError('Variable "field_icon" does not exist.', 555, $this->source); })())) {
yield "<i class=\"form-column-icon fa fa-fw fa-";
yield Twig\Extension\EscaperExtension::escape($this->env, (isset($context["field_icon"]) || array_key_exists("field_icon", $context) ? $context["field_icon"] : (function () { throw new RuntimeError('Variable "field_icon" does not exist.', 555, $this->source); })()), "html", null, true);
yield "\"></i>";
}
// line 556
yield " ";
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["field"]) || array_key_exists("field", $context) ? $context["field"] : (function () { throw new RuntimeError('Variable "field" does not exist.', 556, $this->source); })()), "label", [], "any", false, false, false, 556)) {
yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(((CoreExtension::getAttribute($this->env, $this->source, ($context["field"] ?? null), "label", [], "any", true, true, false, 556)) ? (Twig\Extension\CoreExtension::defaultFilter(CoreExtension::getAttribute($this->env, $this->source, ($context["field"] ?? null), "label", [], "any", false, false, false, 556), "")) : ("")), array(), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["ea"]) || array_key_exists("ea", $context) ? $context["ea"] : (function () { throw new RuntimeError('Variable "ea" does not exist.', 556, $this->source); })()), "i18n", [], "any", false, false, false, 556), "translationDomain", [], "any", false, false, false, 556));
}
// line 557
yield " </div>
";
// line 559
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["field"]) || array_key_exists("field", $context) ? $context["field"] : (function () { throw new RuntimeError('Variable "field" does not exist.', 559, $this->source); })()), "help", [], "any", false, false, false, 559)) {
// line 560
yield " <div class=\"form-column-help\">";
yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env, $this->source, (isset($context["field"]) || array_key_exists("field", $context) ? $context["field"] : (function () { throw new RuntimeError('Variable "field" does not exist.', 560, $this->source); })()), "help", [], "any", false, false, false, 560), array(), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["ea"]) || array_key_exists("ea", $context) ? $context["ea"] : (function () { throw new RuntimeError('Variable "ea" does not exist.', 560, $this->source); })()), "i18n", [], "any", false, false, false, 560), "translationDomain", [], "any", false, false, false, 560));
yield "</div>
";
}
// line 562
yield " </div>
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 566
public function block_ea_form_column_close_row($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ea_form_column_close_row"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ea_form_column_close_row"));
// line 567
yield " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 570
public function block_ea_form_fieldset_open_row($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ea_form_fieldset_open_row"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ea_form_fieldset_open_row"));
// line 571
yield " ";
$context["fieldset_has_header"] = ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 571, $this->source); })()), "vars", [], "any", false, false, false, 571), "label", [], "any", false, false, false, 571) || (isset($context["ea_icon"]) || array_key_exists("ea_icon", $context) ? $context["ea_icon"] : (function () { throw new RuntimeError('Variable "ea_icon" does not exist.', 571, $this->source); })())) || (isset($context["ea_help"]) || array_key_exists("ea_help", $context) ? $context["ea_help"] : (function () { throw new RuntimeError('Variable "ea_help" does not exist.', 571, $this->source); })()));
// line 572
yield "
<div class=\"form-fieldset ";
// line 573
yield (( !(isset($context["fieldset_has_header"]) || array_key_exists("fieldset_has_header", $context) ? $context["fieldset_has_header"] : (function () { throw new RuntimeError('Variable "fieldset_has_header" does not exist.', 573, $this->source); })())) ? ("form-fieldset-no-header") : (""));
yield " ";
yield Twig\Extension\EscaperExtension::escape($this->env, (isset($context["ea_css_class"]) || array_key_exists("ea_css_class", $context) ? $context["ea_css_class"] : (function () { throw new RuntimeError('Variable "ea_css_class" does not exist.', 573, $this->source); })()), "html", null, true);
yield "\">
<fieldset>
";
// line 575
if ((isset($context["fieldset_has_header"]) || array_key_exists("fieldset_has_header", $context) ? $context["fieldset_has_header"] : (function () { throw new RuntimeError('Variable "fieldset_has_header" does not exist.', 575, $this->source); })())) {
// line 576
yield " <div class=\"form-fieldset-header ";
yield (((isset($context["ea_is_collapsible"]) || array_key_exists("ea_is_collapsible", $context) ? $context["ea_is_collapsible"] : (function () { throw new RuntimeError('Variable "ea_is_collapsible" does not exist.', 576, $this->source); })())) ? ("collapsible") : (""));
yield " ";
yield (( !Twig\Extension\CoreExtension::testEmpty((isset($context["ea_help"]) || array_key_exists("ea_help", $context) ? $context["ea_help"] : (function () { throw new RuntimeError('Variable "ea_help" does not exist.', 576, $this->source); })()))) ? ("with-help") : (""));
yield "\">
<div class=\"form-fieldset-title\">
";
// line 578
$context["fieldset_title_contents"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
// line 579
yield " ";
if ((isset($context["ea_is_collapsible"]) || array_key_exists("ea_is_collapsible", $context) ? $context["ea_is_collapsible"] : (function () { throw new RuntimeError('Variable "ea_is_collapsible" does not exist.', 579, $this->source); })())) {
// line 580
yield " <i class=\"fas fw fa-chevron-right form-fieldset-collapse-marker\"></i>
";
}
// line 582
yield "
";
// line 583
if ((isset($context["ea_icon"]) || array_key_exists("ea_icon", $context) ? $context["ea_icon"] : (function () { throw new RuntimeError('Variable "ea_icon" does not exist.', 583, $this->source); })())) {
// line 584
yield " <i class=\"form-fieldset-icon ";
yield Twig\Extension\EscaperExtension::escape($this->env, (isset($context["ea_icon"]) || array_key_exists("ea_icon", $context) ? $context["ea_icon"] : (function () { throw new RuntimeError('Variable "ea_icon" does not exist.', 584, $this->source); })()), "html", null, true);
yield "\"></i>
";
}
// line 586
yield "
";
// line 587
yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 587, $this->source); })()), "vars", [], "any", false, false, false, 587), "label", [], "any", false, false, false, 587));
yield "
";
})() ?? new \EmptyIterator())) ? '' : new Markup($tmp, $this->env->getCharset());
// line 589
yield "
";
// line 590
if ((isset($context["ea_is_collapsible"]) || array_key_exists("ea_is_collapsible", $context) ? $context["ea_is_collapsible"] : (function () { throw new RuntimeError('Variable "ea_is_collapsible" does not exist.', 590, $this->source); })())) {
// line 591
yield " <a href=\"#content-";
yield Twig\Extension\EscaperExtension::escape($this->env, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 591, $this->source); })()), "vars", [], "any", false, false, false, 591), "name", [], "any", false, false, false, 591), "html", null, true);
yield "\" data-bs-toggle=\"collapse\"
class=\"form-fieldset-title-content form-fieldset-collapse ";
// line 592
yield (((isset($context["ea_is_collapsed"]) || array_key_exists("ea_is_collapsed", $context) ? $context["ea_is_collapsed"] : (function () { throw new RuntimeError('Variable "ea_is_collapsed" does not exist.', 592, $this->source); })())) ? ("collapsed") : (""));
yield "\"
aria-expanded=\"";
// line 593
yield (((isset($context["ea_is_collapsed"]) || array_key_exists("ea_is_collapsed", $context) ? $context["ea_is_collapsed"] : (function () { throw new RuntimeError('Variable "ea_is_collapsed" does not exist.', 593, $this->source); })())) ? ("false") : ("true"));
yield "\" aria-controls=\"content-";
yield Twig\Extension\EscaperExtension::escape($this->env, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 593, $this->source); })()), "vars", [], "any", false, false, false, 593), "name", [], "any", false, false, false, 593), "html", null, true);
yield "\">
";
// line 594
yield (isset($context["fieldset_title_contents"]) || array_key_exists("fieldset_title_contents", $context) ? $context["fieldset_title_contents"] : (function () { throw new RuntimeError('Variable "fieldset_title_contents" does not exist.', 594, $this->source); })());
yield "
</a>
";
} else {
// line 597
yield " <span class=\"not-collapsible form-fieldset-title-content\">
";
// line 598
yield (isset($context["fieldset_title_contents"]) || array_key_exists("fieldset_title_contents", $context) ? $context["fieldset_title_contents"] : (function () { throw new RuntimeError('Variable "fieldset_title_contents" does not exist.', 598, $this->source); })());
yield "
</span>
";
}
// line 601
yield "
";
// line 602
if ((isset($context["ea_help"]) || array_key_exists("ea_help", $context) ? $context["ea_help"] : (function () { throw new RuntimeError('Variable "ea_help" does not exist.', 602, $this->source); })())) {
// line 603
yield " <div class=\"form-fieldset-help\">";
yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["ea_help"]) || array_key_exists("ea_help", $context) ? $context["ea_help"] : (function () { throw new RuntimeError('Variable "ea_help" does not exist.', 603, $this->source); })()));
yield "</div>
";
}
// line 605
yield " </div>
</div>
";
}
// line 608
yield "
<div id=\"content-";
// line 609
yield Twig\Extension\EscaperExtension::escape($this->env, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 609, $this->source); })()), "vars", [], "any", false, false, false, 609), "name", [], "any", false, false, false, 609), "html", null, true);
yield "\" class=\"form-fieldset-body ";
yield (( !(isset($context["fieldset_has_header"]) || array_key_exists("fieldset_has_header", $context) ? $context["fieldset_has_header"] : (function () { throw new RuntimeError('Variable "fieldset_has_header" does not exist.', 609, $this->source); })())) ? ("without-header") : (""));
yield " ";
yield (((isset($context["ea_is_collapsible"]) || array_key_exists("ea_is_collapsible", $context) ? $context["ea_is_collapsible"] : (function () { throw new RuntimeError('Variable "ea_is_collapsible" does not exist.', 609, $this->source); })())) ? ("collapse") : (""));
yield " ";
yield (( !(isset($context["ea_is_collapsed"]) || array_key_exists("ea_is_collapsed", $context) ? $context["ea_is_collapsed"] : (function () { throw new RuntimeError('Variable "ea_is_collapsed" does not exist.', 609, $this->source); })())) ? ("show") : (""));
yield "\">
<div class=\"row\">
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 613
public function block_ea_form_fieldset_close_row($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ea_form_fieldset_close_row"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ea_form_fieldset_close_row"));
// line 614
yield " </div>
</div>
</fieldset>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 620
public function block_ea_form_tablist_row($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ea_form_tablist_row"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ea_form_tablist_row"));
// line 621
yield " ";
$context["tab_id_option_name"] = Twig\Extension\CoreExtension::constant("EasyCorp\\Bundle\\EasyAdminBundle\\Field\\FormField::OPTION_TAB_ID");
// line 622
yield " ";
$context["tab_is_active_option_name"] = Twig\Extension\CoreExtension::constant("EasyCorp\\Bundle\\EasyAdminBundle\\Field\\FormField::OPTION_TAB_IS_ACTIVE");
// line 623
yield " ";
$context["tab_error_count_option_name"] = Twig\Extension\CoreExtension::constant("EasyCorp\\Bundle\\EasyAdminBundle\\Field\\FormField::OPTION_TAB_ERROR_COUNT");
// line 624
yield " ";
$context["field"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 624, $this->source); })()), "vars", [], "any", false, false, false, 624), "ea_vars", [], "any", false, false, false, 624), "field", [], "any", false, false, false, 624);
// line 625
yield "
<div class=\"nav-tabs-custom form-tabs-tablist\">
<ul class=\"nav nav-tabs\">
";
// line 628
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["field"]) || array_key_exists("field", $context) ? $context["field"] : (function () { throw new RuntimeError('Variable "field" does not exist.', 628, $this->source); })()), "getCustomOption", ["tabs"], "method", false, false, false, 628));
foreach ($context['_seq'] as $context["_key"] => $context["tab"]) {
// line 629
yield " <li class=\"nav-item\">
<a class=\"nav-link ";
// line 630
if (CoreExtension::getAttribute($this->env, $this->source, $context["tab"], "getCustomOption", [(isset($context["tab_is_active_option_name"]) || array_key_exists("tab_is_active_option_name", $context) ? $context["tab_is_active_option_name"] : (function () { throw new RuntimeError('Variable "tab_is_active_option_name" does not exist.', 630, $this->source); })())], "method", false, false, false, 630)) {
yield "active";
}
yield "\" href=\"#";
yield Twig\Extension\EscaperExtension::escape($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["tab"], "getCustomOption", [(isset($context["tab_id_option_name"]) || array_key_exists("tab_id_option_name", $context) ? $context["tab_id_option_name"] : (function () { throw new RuntimeError('Variable "tab_id_option_name" does not exist.', 630, $this->source); })())], "method", false, false, false, 630), "html", null, true);
yield "\" id=\"tablist-";
yield Twig\Extension\EscaperExtension::escape($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["tab"], "getCustomOption", [(isset($context["tab_id_option_name"]) || array_key_exists("tab_id_option_name", $context) ? $context["tab_id_option_name"] : (function () { throw new RuntimeError('Variable "tab_id_option_name" does not exist.', 630, $this->source); })())], "method", false, false, false, 630), "html", null, true);
yield "\" data-bs-toggle=\"tab\">";
// line 631
if (((CoreExtension::getAttribute($this->env, $this->source, $context["tab"], "getCustomOption", ["icon"], "method", true, true, false, 631)) ? (Twig\Extension\CoreExtension::defaultFilter(CoreExtension::getAttribute($this->env, $this->source, $context["tab"], "getCustomOption", ["icon"], "method", false, false, false, 631), false)) : (false))) {
// line 632
yield "<i class=\"tab-nav-item-icon fa-fw ";
yield Twig\Extension\EscaperExtension::escape($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["tab"], "getCustomOption", ["icon"], "method", false, false, false, 632), "html", null, true);
yield "\"></i>";
}
// line 634
yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env, $this->source, $context["tab"], "label", [], "any", false, false, false, 634), array(), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["ea"]) || array_key_exists("ea", $context) ? $context["ea"] : (function () { throw new RuntimeError('Variable "ea" does not exist.', 634, $this->source); })()), "i18n", [], "any", false, false, false, 634), "translationDomain", [], "any", false, false, false, 634));
yield "
";
// line 636
$context["tab_error_count"] = CoreExtension::getAttribute($this->env, $this->source, $context["tab"], "getCustomOption", [(isset($context["tab_error_count_option_name"]) || array_key_exists("tab_error_count_option_name", $context) ? $context["tab_error_count_option_name"] : (function () { throw new RuntimeError('Variable "tab_error_count_option_name" does not exist.', 636, $this->source); })())], "method", false, false, false, 636);
// line 637
if (((isset($context["tab_error_count"]) || array_key_exists("tab_error_count", $context) ? $context["tab_error_count"] : (function () { throw new RuntimeError('Variable "tab_error_count" does not exist.', 637, $this->source); })()) > 0)) {
// line 638
yield "<span class=\"badge badge-danger\" title=\"";
yield Twig\Extension\EscaperExtension::escape($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("form.tab.error_badge_title", ["%count%" => (isset($context["tab_error_count"]) || array_key_exists("tab_error_count", $context) ? $context["tab_error_count"] : (function () { throw new RuntimeError('Variable "tab_error_count" does not exist.', 638, $this->source); })())], "EasyAdminBundle"), "html", null, true);
yield "\">";
// line 639
yield Twig\Extension\EscaperExtension::escape($this->env, (isset($context["tab_error_count"]) || array_key_exists("tab_error_count", $context) ? $context["tab_error_count"] : (function () { throw new RuntimeError('Variable "tab_error_count" does not exist.', 639, $this->source); })()), "html", null, true);
// line 640
yield "</span>";
}
// line 642
yield "</a>
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tab'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 645
yield " </ul>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 649
public function block_ea_form_tabpane_group_open_row($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ea_form_tabpane_group_open_row"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ea_form_tabpane_group_open_row"));
// line 650
yield " <div class=\"nav-tabs-custom form-tabs-content\">
<div class=\"tab-content\">
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 654
public function block_ea_form_tabpane_group_close_row($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ea_form_tabpane_group_close_row"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ea_form_tabpane_group_close_row"));
// line 655
yield " </div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 659
public function block_ea_form_tabpane_open_row($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ea_form_tabpane_open_row"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ea_form_tabpane_open_row"));
// line 660
yield " ";
$context["tab_is_active_option_name"] = Twig\Extension\CoreExtension::constant("EasyCorp\\Bundle\\EasyAdminBundle\\Field\\FormField::OPTION_TAB_IS_ACTIVE");
// line 661
yield " ";
$context["field"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 661, $this->source); })()), "vars", [], "any", false, false, false, 661), "ea_vars", [], "any", false, false, false, 661), "field", [], "any", false, false, false, 661);
// line 662
yield "
<div id=\"";
// line 663
yield Twig\Extension\EscaperExtension::escape($this->env, (isset($context["ea_tab_id"]) || array_key_exists("ea_tab_id", $context) ? $context["ea_tab_id"] : (function () { throw new RuntimeError('Variable "ea_tab_id" does not exist.', 663, $this->source); })()), "html", null, true);
yield "\" class=\"tab-pane ";
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["field"]) || array_key_exists("field", $context) ? $context["field"] : (function () { throw new RuntimeError('Variable "field" does not exist.', 663, $this->source); })()), "getCustomOption", [(isset($context["tab_is_active_option_name"]) || array_key_exists("tab_is_active_option_name", $context) ? $context["tab_is_active_option_name"] : (function () { throw new RuntimeError('Variable "tab_is_active_option_name" does not exist.', 663, $this->source); })())], "method", false, false, false, 663)) {
yield "active";
}
yield " ";
yield Twig\Extension\EscaperExtension::escape($this->env, (isset($context["ea_css_class"]) || array_key_exists("ea_css_class", $context) ? $context["ea_css_class"] : (function () { throw new RuntimeError('Variable "ea_css_class" does not exist.', 663, $this->source); })()), "html", null, true);
yield "\" ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 663, $this->source); })()), "vars", [], "any", false, false, false, 663), "attr", [], "any", false, false, false, 663));
foreach ($context['_seq'] as $context["key"] => $context["value"]) {
yield Twig\Extension\EscaperExtension::escape($this->env, $context["key"], "html", null, true);
yield "=";
yield Twig\Extension\EscaperExtension::escape($this->env, $context["value"], "html_attr");
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['value'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
yield ">
";
// line 664
if ((isset($context["ea_help"]) || array_key_exists("ea_help", $context) ? $context["ea_help"] : (function () { throw new RuntimeError('Variable "ea_help" does not exist.', 664, $this->source); })())) {
// line 665
yield " <div class=\"content-header-help tab-help\">
";
// line 666
yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["ea_help"]) || array_key_exists("ea_help", $context) ? $context["ea_help"] : (function () { throw new RuntimeError('Variable "ea_help" does not exist.', 666, $this->source); })()), array(), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["ea"]) || array_key_exists("ea", $context) ? $context["ea"] : (function () { throw new RuntimeError('Variable "ea" does not exist.', 666, $this->source); })()), "i18n", [], "any", false, false, false, 666), "translationDomain", [], "any", false, false, false, 666));
yield "
</div>
";
}
// line 669
yield "
<div class=\"row\">
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 673
public function block_ea_form_tabpane_close_row($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ea_form_tabpane_close_row"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ea_form_tabpane_close_row"));
// line 674
yield " </div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 679
public function block_ea_filters_widget($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ea_filters_widget"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ea_filters_widget"));
// line 680
yield " ";
$context["applied_filters"] = Twig\Extension\CoreExtension::getArrayKeysFilter(((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["ea"] ?? null), "request", [], "any", false, true, false, 680), "query", [], "any", false, true, false, 680), "all", [], "method", false, true, false, 680), "filters", [], "array", true, true, false, 680)) ? (Twig\Extension\CoreExtension::defaultFilter(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["ea"] ?? null), "request", [], "any", false, true, false, 680), "query", [], "any", false, true, false, 680), "all", [], "method", false, true, false, 680), "filters", [], "array", false, false, false, 680), [])) : ([])));
// line 681
yield "
";
// line 682
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 682, $this->source); })()));
$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["field"]) {
// line 683
yield " <div class=\"col-12\">
<div class=\"filter-field px-3\" data-filter-property=\"";
// line 684
yield Twig\Extension\EscaperExtension::escape($this->env, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["field"], "vars", [], "any", false, false, false, 684), "name", [], "any", false, false, false, 684), "html", null, true);
yield "\">
<div class=\"filter-heading\" id=\"filter-heading-";
// line 685
yield Twig\Extension\EscaperExtension::escape($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 685), "html", null, true);
yield "\">
<input type=\"checkbox\" class=\"filter-checkbox\" ";
// line 686
if (CoreExtension::inFilter(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["field"], "vars", [], "any", false, false, false, 686), "name", [], "any", false, false, false, 686), (isset($context["applied_filters"]) || array_key_exists("applied_filters", $context) ? $context["applied_filters"] : (function () { throw new RuntimeError('Variable "applied_filters" does not exist.', 686, $this->source); })()))) {
yield "checked";
}
yield ">
<a data-bs-toggle=\"collapse\" href=\"#filter-content-";
// line 687
yield Twig\Extension\EscaperExtension::escape($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 687), "html", null, true);
yield "\" aria-expanded=\"";
yield ((CoreExtension::inFilter(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["field"], "vars", [], "any", false, false, false, 687), "name", [], "any", false, false, false, 687), (isset($context["applied_filters"]) || array_key_exists("applied_filters", $context) ? $context["applied_filters"] : (function () { throw new RuntimeError('Variable "applied_filters" does not exist.', 687, $this->source); })()))) ? ("true") : ("false"));
yield "\" aria-controls=\"filter-content-";
yield Twig\Extension\EscaperExtension::escape($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 687), "html", null, true);
yield "\"
";
// line 688
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["field"], "vars", [], "any", false, true, false, 688), "label_attr", [], "any", true, true, false, 688)) ? (Twig\Extension\CoreExtension::defaultFilter(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["field"], "vars", [], "any", false, true, false, 688), "label_attr", [], "any", false, false, false, 688), [])) : ([])));
foreach ($context['_seq'] as $context["name"] => $context["value"]) {
yield Twig\Extension\EscaperExtension::escape($this->env, $context["name"], "html", null, true);
yield "=\"";
yield Twig\Extension\EscaperExtension::escape($this->env, $context["value"], "html_attr");
yield "\" ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['name'], $context['value'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
yield ">
";
// line 689
yield Twig\Extension\EscaperExtension::escape($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["field"], "vars", [], "any", false, true, false, 689), "label", [], "any", true, true, false, 689)) ? (Twig\Extension\CoreExtension::defaultFilter(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["field"], "vars", [], "any", false, true, false, 689), "label", [], "any", false, false, false, 689), $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->humanize(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["field"], "vars", [], "any", false, false, false, 689), "name", [], "any", false, false, false, 689)))) : ($this->env->getRuntime('Symfony\Component\Form\FormRenderer')->humanize(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["field"], "vars", [], "any", false, false, false, 689), "name", [], "any", false, false, false, 689)))), array(), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["ea"]) || array_key_exists("ea", $context) ? $context["ea"] : (function () { throw new RuntimeError('Variable "ea" does not exist.', 689, $this->source); })()), "i18n", [], "any", false, false, false, 689), "translationDomain", [], "any", false, false, false, 689)), "html", null, true);
yield "
</a>
</div>
<div id=\"filter-content-";
// line 692
yield Twig\Extension\EscaperExtension::escape($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 692), "html", null, true);
yield "\" class=\"filter-content collapse ";
if (CoreExtension::inFilter(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["field"], "vars", [], "any", false, false, false, 692), "name", [], "any", false, false, false, 692), (isset($context["applied_filters"]) || array_key_exists("applied_filters", $context) ? $context["applied_filters"] : (function () { throw new RuntimeError('Variable "applied_filters" does not exist.', 692, $this->source); })()))) {
yield "show";
}
yield "\" aria-labelledby=\"filter-heading-";
yield Twig\Extension\EscaperExtension::escape($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 692), "html", null, true);
yield "\">
<div class=\"form-widget\">
";
// line 694
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["field"], 'widget');
yield "
</div>
</div>
</div>
</div>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['field'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 702
public function block_comparison_widget($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "comparison_widget"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "comparison_widget"));
// line 703
yield " ";
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 703, $this->source); })()), 'widget', ["attr" => Twig\Extension\CoreExtension::arrayMerge(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 703, $this->source); })()), "vars", [], "any", false, false, false, 703), "attr", [], "any", false, false, false, 703), ["data-ea-comparison-id" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 703, $this->source); })()), "vars", [], "any", false, false, false, 703), "id", [], "any", false, false, false, 703)])]);
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 706
public function block_ea_numeric_filter_widget($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ea_numeric_filter_widget"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ea_numeric_filter_widget"));
// line 707
yield " <div class=\"form-widget-compound\">
";
// line 708
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 708, $this->source); })()), "comparison", [], "any", false, false, false, 708), 'row');
yield "
";
// line 709
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 709, $this->source); })()), "value", [], "any", false, false, false, 709), 'row');
yield "
<div data-ea-value2-of-comparison-id=\"";
// line 710
yield Twig\Extension\EscaperExtension::escape($this->env, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 710, $this->source); })()), "comparison", [], "any", false, false, false, 710), "vars", [], "any", false, false, false, 710), "id", [], "any", false, false, false, 710), "html", null, true);
yield "\" class=\"";
yield (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 710, $this->source); })()), "comparison", [], "any", false, false, false, 710), "vars", [], "any", false, false, false, 710), "value", [], "any", false, false, false, 710) != "between")) ? ("d-none") : (""));
yield "\">
";
// line 711
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 711, $this->source); })()), "value2", [], "any", false, false, false, 711), 'row');
yield "
</div>
</div>";
// line 714
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 714, $this->source); })()), 'errors');
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 717
public function block_ea_datetime_filter_widget($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ea_datetime_filter_widget"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ea_datetime_filter_widget"));
// line 718
yield " ";
yield from $this->unwrap()->yieldBlock("ea_numeric_filter_widget", $context, $blocks);
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 721
public function block_ea_fileupload_widget($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ea_fileupload_widget"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ea_fileupload_widget"));
// line 722
yield " <div class=\"ea-fileupload\">
<div class=\"input-group\">
";
// line 724
$context["placeholder"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->createTranslatable("action.choose_file", [], "EasyAdminBundle");
// line 725
yield " ";
$context["title"] = "";
// line 726
yield " ";
$context["filesLabel"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("files", [], "EasyAdminBundle");
// line 727
yield " ";
if ((isset($context["currentFiles"]) || array_key_exists("currentFiles", $context) ? $context["currentFiles"] : (function () { throw new RuntimeError('Variable "currentFiles" does not exist.', 727, $this->source); })())) {
// line 728
yield " ";
if ((isset($context["multiple"]) || array_key_exists("multiple", $context) ? $context["multiple"] : (function () { throw new RuntimeError('Variable "multiple" does not exist.', 728, $this->source); })())) {
// line 729
yield " ";
$context["placeholder"] = ((Twig\Extension\CoreExtension::lengthFilter($this->env, (isset($context["currentFiles"]) || array_key_exists("currentFiles", $context) ? $context["currentFiles"] : (function () { throw new RuntimeError('Variable "currentFiles" does not exist.', 729, $this->source); })())) . " ") . (isset($context["filesLabel"]) || array_key_exists("filesLabel", $context) ? $context["filesLabel"] : (function () { throw new RuntimeError('Variable "filesLabel" does not exist.', 729, $this->source); })()));
// line 730
yield " ";
} else {
// line 731
yield " ";
$context["placeholder"] = CoreExtension::getAttribute($this->env, $this->source, Twig\Extension\CoreExtension::first($this->env, (isset($context["currentFiles"]) || array_key_exists("currentFiles", $context) ? $context["currentFiles"] : (function () { throw new RuntimeError('Variable "currentFiles" does not exist.', 731, $this->source); })())), "filename", [], "any", false, false, false, 731);
// line 732
yield " ";
$context["title"] = Twig\Extension\CoreExtension::dateFormatFilter($this->env, CoreExtension::getAttribute($this->env, $this->source, Twig\Extension\CoreExtension::first($this->env, (isset($context["currentFiles"]) || array_key_exists("currentFiles", $context) ? $context["currentFiles"] : (function () { throw new RuntimeError('Variable "currentFiles" does not exist.', 732, $this->source); })())), "mTime", [], "any", false, false, false, 732));
// line 733
yield " ";
}
// line 734
yield " ";
}
// line 735
yield " <div class=\"custom-file\">
";
// line 736
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 736, $this->source); })()), "file", [], "any", false, false, false, 736), 'widget', ["attr" => Twig\Extension\CoreExtension::arrayMerge(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 736, $this->source); })()), "file", [], "any", false, false, false, 736), "vars", [], "any", false, false, false, 736), "attr", [], "any", false, false, false, 736), ["placeholder" => (isset($context["placeholder"]) || array_key_exists("placeholder", $context) ? $context["placeholder"] : (function () { throw new RuntimeError('Variable "placeholder" does not exist.', 736, $this->source); })()), "title" => (isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 736, $this->source); })()), "data-files-label" => (isset($context["filesLabel"]) || array_key_exists("filesLabel", $context) ? $context["filesLabel"] : (function () { throw new RuntimeError('Variable "filesLabel" does not exist.', 736, $this->source); })()), "class" => "d-none"])]);
yield "
";
// line 737
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 737, $this->source); })()), "file", [], "any", false, false, false, 737), 'label', ["label_attr" => ["class" => "custom-file-label"]] + (twig_test_empty($_label_ = (isset($context["placeholder"]) || array_key_exists("placeholder", $context) ? $context["placeholder"] : (function () { throw new RuntimeError('Variable "placeholder" does not exist.', 737, $this->source); })())) ? [] : ["label" => $_label_]));
yield "
</div>
<div class=\"input-group-text\">";
// line 740
if ((isset($context["currentFiles"]) || array_key_exists("currentFiles", $context) ? $context["currentFiles"] : (function () { throw new RuntimeError('Variable "currentFiles" does not exist.', 740, $this->source); })())) {
// line 741
if ((isset($context["multiple"]) || array_key_exists("multiple", $context) ? $context["multiple"] : (function () { throw new RuntimeError('Variable "multiple" does not exist.', 741, $this->source); })())) {
// line 742
yield " ";
yield Twig\Extension\EscaperExtension::escape($this->env, $this->extensions['EasyCorp\Bundle\EasyAdminBundle\Twig\EasyAdminTwigExtension']->fileSize(Twig\Extension\CoreExtension::arrayReduce($this->env, (isset($context["currentFiles"]) || array_key_exists("currentFiles", $context) ? $context["currentFiles"] : (function () { throw new RuntimeError('Variable "currentFiles" does not exist.', 742, $this->source); })()), function ($__carry__, $__file__) use ($context, $macros) { $context["carry"] = $__carry__; $context["file"] = $__file__; return ((isset($context["carry"]) || array_key_exists("carry", $context) ? $context["carry"] : (function () { throw new RuntimeError('Variable "carry" does not exist.', 742, $this->source); })()) + CoreExtension::getAttribute($this->env, $this->source, (isset($context["file"]) || array_key_exists("file", $context) ? $context["file"] : (function () { throw new RuntimeError('Variable "file" does not exist.', 742, $this->source); })()), "size", [], "any", false, false, false, 742)); })), "html", null, true);
yield "
";
} else {
// line 744
yield " ";
yield Twig\Extension\EscaperExtension::escape($this->env, $this->extensions['EasyCorp\Bundle\EasyAdminBundle\Twig\EasyAdminTwigExtension']->fileSize(CoreExtension::getAttribute($this->env, $this->source, Twig\Extension\CoreExtension::first($this->env, (isset($context["currentFiles"]) || array_key_exists("currentFiles", $context) ? $context["currentFiles"] : (function () { throw new RuntimeError('Variable "currentFiles" does not exist.', 744, $this->source); })())), "size", [], "any", false, false, false, 744)), "html", null, true);
yield "
";
}
}
// line 747
if ((isset($context["allow_delete"]) || array_key_exists("allow_delete", $context) ? $context["allow_delete"] : (function () { throw new RuntimeError('Variable "allow_delete" does not exist.', 747, $this->source); })())) {
// line 748
yield " <label class=\"btn ea-fileupload-delete-btn ";
yield ((Twig\Extension\CoreExtension::testEmpty((isset($context["currentFiles"]) || array_key_exists("currentFiles", $context) ? $context["currentFiles"] : (function () { throw new RuntimeError('Variable "currentFiles" does not exist.', 748, $this->source); })()))) ? ("d-none") : (""));
yield "\" for=\"";
yield Twig\Extension\EscaperExtension::escape($this->env, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 748, $this->source); })()), "delete", [], "any", false, false, false, 748), "vars", [], "any", false, false, false, 748), "id", [], "any", false, false, false, 748), "html", null, true);
yield "\">
<i class=\"fa fa-trash-o\"></i>
</label>
";
}
// line 752
yield " <label class=\"btn\" for=\"";
yield Twig\Extension\EscaperExtension::escape($this->env, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 752, $this->source); })()), "file", [], "any", false, false, false, 752), "vars", [], "any", false, false, false, 752), "id", [], "any", false, false, false, 752), "html", null, true);
yield "\">
<i class=\"fa fa-folder-open-o\"></i>
</label>
</div>
</div>
";
// line 757
if (((isset($context["multiple"]) || array_key_exists("multiple", $context) ? $context["multiple"] : (function () { throw new RuntimeError('Variable "multiple" does not exist.', 757, $this->source); })()) && (isset($context["currentFiles"]) || array_key_exists("currentFiles", $context) ? $context["currentFiles"] : (function () { throw new RuntimeError('Variable "currentFiles" does not exist.', 757, $this->source); })()))) {
// line 758
yield " <div class=\"form-control fileupload-list\">
<table class=\"fileupload-table\">
<tbody>
";
// line 761
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["currentFiles"]) || array_key_exists("currentFiles", $context) ? $context["currentFiles"] : (function () { throw new RuntimeError('Variable "currentFiles" does not exist.', 761, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["file"]) {
// line 762
yield " <tr>
<td>
";
// line 764
if ((isset($context["download_path"]) || array_key_exists("download_path", $context) ? $context["download_path"] : (function () { throw new RuntimeError('Variable "download_path" does not exist.', 764, $this->source); })())) {
yield "<a href=\"";
yield Twig\Extension\EscaperExtension::escape($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(((isset($context["download_path"]) || array_key_exists("download_path", $context) ? $context["download_path"] : (function () { throw new RuntimeError('Variable "download_path" does not exist.', 764, $this->source); })()) . CoreExtension::getAttribute($this->env, $this->source, $context["file"], "filename", [], "any", false, false, false, 764))), "html", null, true);
yield "\">";
}
// line 765
yield " <span title=\"";
yield Twig\Extension\EscaperExtension::escape($this->env, Twig\Extension\CoreExtension::dateFormatFilter($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["file"], "mTime", [], "any", false, false, false, 765)), "html", null, true);
yield "\">
<i class=\"fa fa-file-o\"></i> ";
// line 766
yield Twig\Extension\EscaperExtension::escape($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["file"], "filename", [], "any", false, false, false, 766), "html", null, true);
yield "
</span>
";
// line 768
if ((isset($context["download_path"]) || array_key_exists("download_path", $context) ? $context["download_path"] : (function () { throw new RuntimeError('Variable "download_path" does not exist.', 768, $this->source); })())) {
yield "</a>";
}
// line 769
yield " </td>
<td class=\"text-right file-size\">";
// line 770
yield Twig\Extension\EscaperExtension::escape($this->env, $this->extensions['EasyCorp\Bundle\EasyAdminBundle\Twig\EasyAdminTwigExtension']->fileSize(CoreExtension::getAttribute($this->env, $this->source, $context["file"], "size", [], "any", false, false, false, 770)), "html", null, true);
yield "</td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['file'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 773
yield " </tbody>
</table>
</div>
";
}
// line 777
yield " ";
if ((isset($context["allow_delete"]) || array_key_exists("allow_delete", $context) ? $context["allow_delete"] : (function () { throw new RuntimeError('Variable "allow_delete" does not exist.', 777, $this->source); })())) {
// line 778
yield " <div class=\"d-none\">";
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 778, $this->source); })()), "delete", [], "any", false, false, false, 778), 'widget', ["label" => false]);
yield "</div>
";
}
// line 780
yield " </div>
";
// line 781
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 781, $this->source); })()), "file", [], "any", false, false, false, 781), 'errors');
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 784
public function block_TODO_ea_fileupload_widget($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "TODO_ea_fileupload_widget"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "TODO_ea_fileupload_widget"));
// line 785
yield " ";
$context["placeholder"] = "";
// line 786
yield " ";
$context["title"] = "";
// line 787
yield " ";
$context["filesLabel"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("files", [], "EasyAdminBundle");
// line 788
yield " ";
if ((isset($context["currentFiles"]) || array_key_exists("currentFiles", $context) ? $context["currentFiles"] : (function () { throw new RuntimeError('Variable "currentFiles" does not exist.', 788, $this->source); })())) {
// line 789
yield " ";
if ((isset($context["multiple"]) || array_key_exists("multiple", $context) ? $context["multiple"] : (function () { throw new RuntimeError('Variable "multiple" does not exist.', 789, $this->source); })())) {
// line 790
yield " ";
$context["placeholder"] = ((Twig\Extension\CoreExtension::lengthFilter($this->env, (isset($context["currentFiles"]) || array_key_exists("currentFiles", $context) ? $context["currentFiles"] : (function () { throw new RuntimeError('Variable "currentFiles" does not exist.', 790, $this->source); })())) . " ") . (isset($context["filesLabel"]) || array_key_exists("filesLabel", $context) ? $context["filesLabel"] : (function () { throw new RuntimeError('Variable "filesLabel" does not exist.', 790, $this->source); })()));
// line 791
yield " ";
} else {
// line 792
yield " ";
$context["placeholder"] = CoreExtension::getAttribute($this->env, $this->source, Twig\Extension\CoreExtension::first($this->env, (isset($context["currentFiles"]) || array_key_exists("currentFiles", $context) ? $context["currentFiles"] : (function () { throw new RuntimeError('Variable "currentFiles" does not exist.', 792, $this->source); })())), "filename", [], "any", false, false, false, 792);
// line 793
yield " ";
$context["title"] = Twig\Extension\CoreExtension::dateFormatFilter($this->env, CoreExtension::getAttribute($this->env, $this->source, Twig\Extension\CoreExtension::first($this->env, (isset($context["currentFiles"]) || array_key_exists("currentFiles", $context) ? $context["currentFiles"] : (function () { throw new RuntimeError('Variable "currentFiles" does not exist.', 793, $this->source); })())), "mTime", [], "any", false, false, false, 793));
// line 794
yield " ";
}
// line 795
yield " ";
}
// line 796
yield "
<div class=\"ea-fileupload\">
<div class=\"input-group\">
";
// line 799
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 799, $this->source); })()), "file", [], "any", false, false, false, 799), 'widget', ["attr" => Twig\Extension\CoreExtension::arrayMerge(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 799, $this->source); })()), "file", [], "any", false, false, false, 799), "vars", [], "any", false, false, false, 799), "attr", [], "any", false, false, false, 799), ["placeholder" => (isset($context["placeholder"]) || array_key_exists("placeholder", $context) ? $context["placeholder"] : (function () { throw new RuntimeError('Variable "placeholder" does not exist.', 799, $this->source); })()), "title" => (isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 799, $this->source); })()), "data-files-label" => (isset($context["filesLabel"]) || array_key_exists("filesLabel", $context) ? $context["filesLabel"] : (function () { throw new RuntimeError('Variable "filesLabel" does not exist.', 799, $this->source); })()), "class" => "form-control"])]);
yield "
";
// line 801
if ((isset($context["currentFiles"]) || array_key_exists("currentFiles", $context) ? $context["currentFiles"] : (function () { throw new RuntimeError('Variable "currentFiles" does not exist.', 801, $this->source); })())) {
// line 802
yield " <span class=\"input-group-text\">
";
// line 803
if ((isset($context["multiple"]) || array_key_exists("multiple", $context) ? $context["multiple"] : (function () { throw new RuntimeError('Variable "multiple" does not exist.', 803, $this->source); })())) {
// line 804
yield " ";
yield Twig\Extension\EscaperExtension::escape($this->env, $this->extensions['EasyCorp\Bundle\EasyAdminBundle\Twig\EasyAdminTwigExtension']->fileSize(Twig\Extension\CoreExtension::arrayReduce($this->env, (isset($context["currentFiles"]) || array_key_exists("currentFiles", $context) ? $context["currentFiles"] : (function () { throw new RuntimeError('Variable "currentFiles" does not exist.', 804, $this->source); })()), function ($__carry__, $__file__) use ($context, $macros) { $context["carry"] = $__carry__; $context["file"] = $__file__; return ((isset($context["carry"]) || array_key_exists("carry", $context) ? $context["carry"] : (function () { throw new RuntimeError('Variable "carry" does not exist.', 804, $this->source); })()) + CoreExtension::getAttribute($this->env, $this->source, (isset($context["file"]) || array_key_exists("file", $context) ? $context["file"] : (function () { throw new RuntimeError('Variable "file" does not exist.', 804, $this->source); })()), "size", [], "any", false, false, false, 804)); })), "html", null, true);
yield "
";
} else {
// line 806
yield " ";
yield Twig\Extension\EscaperExtension::escape($this->env, $this->extensions['EasyCorp\Bundle\EasyAdminBundle\Twig\EasyAdminTwigExtension']->fileSize(CoreExtension::getAttribute($this->env, $this->source, Twig\Extension\CoreExtension::first($this->env, (isset($context["currentFiles"]) || array_key_exists("currentFiles", $context) ? $context["currentFiles"] : (function () { throw new RuntimeError('Variable "currentFiles" does not exist.', 806, $this->source); })())), "size", [], "any", false, false, false, 806)), "html", null, true);
yield "
";
}
// line 808
yield " </span>
";
}
// line 810
yield "
";
// line 811
if (((isset($context["currentFiles"]) || array_key_exists("currentFiles", $context) ? $context["currentFiles"] : (function () { throw new RuntimeError('Variable "currentFiles" does not exist.', 811, $this->source); })()) && (isset($context["allow_delete"]) || array_key_exists("allow_delete", $context) ? $context["allow_delete"] : (function () { throw new RuntimeError('Variable "allow_delete" does not exist.', 811, $this->source); })()))) {
// line 812
yield " <button class=\"btn ea-fileupload-delete-btn\">
<i class=\"fa fa-trash-o\"></i>
</button>
";
}
// line 816
yield "
";
// line 817
if ((isset($context["currentFiles"]) || array_key_exists("currentFiles", $context) ? $context["currentFiles"] : (function () { throw new RuntimeError('Variable "currentFiles" does not exist.', 817, $this->source); })())) {
// line 818
yield " <button class=\"btn\">
<i class=\"fa fa-folder-open-o\"></i>
</button>
";
}
// line 822
yield " </div>
";
// line 824
if (((isset($context["multiple"]) || array_key_exists("multiple", $context) ? $context["multiple"] : (function () { throw new RuntimeError('Variable "multiple" does not exist.', 824, $this->source); })()) && (isset($context["currentFiles"]) || array_key_exists("currentFiles", $context) ? $context["currentFiles"] : (function () { throw new RuntimeError('Variable "currentFiles" does not exist.', 824, $this->source); })()))) {
// line 825
yield " <div class=\"form-control fileupload-list\">
<table class=\"fileupload-table\">
<tbody>
";
// line 828
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["currentFiles"]) || array_key_exists("currentFiles", $context) ? $context["currentFiles"] : (function () { throw new RuntimeError('Variable "currentFiles" does not exist.', 828, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["file"]) {
// line 829
yield " <tr>
<td>
";
// line 831
if ((isset($context["download_path"]) || array_key_exists("download_path", $context) ? $context["download_path"] : (function () { throw new RuntimeError('Variable "download_path" does not exist.', 831, $this->source); })())) {
yield "<a href=\"";
yield Twig\Extension\EscaperExtension::escape($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(((isset($context["download_path"]) || array_key_exists("download_path", $context) ? $context["download_path"] : (function () { throw new RuntimeError('Variable "download_path" does not exist.', 831, $this->source); })()) . CoreExtension::getAttribute($this->env, $this->source, $context["file"], "filename", [], "any", false, false, false, 831))), "html", null, true);
yield "\">";
}
// line 832
yield " <span title=\"";
yield Twig\Extension\EscaperExtension::escape($this->env, Twig\Extension\CoreExtension::dateFormatFilter($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["file"], "mTime", [], "any", false, false, false, 832)), "html", null, true);
yield "\">
<i class=\"fa fa-file-o\"></i> ";
// line 833
yield Twig\Extension\EscaperExtension::escape($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["file"], "filename", [], "any", false, false, false, 833), "html", null, true);
yield "
</span>
";
// line 835
if ((isset($context["download_path"]) || array_key_exists("download_path", $context) ? $context["download_path"] : (function () { throw new RuntimeError('Variable "download_path" does not exist.', 835, $this->source); })())) {
yield "</a>";
}
// line 836
yield " </td>
<td class=\"text-right file-size\">";
// line 837
yield Twig\Extension\EscaperExtension::escape($this->env, $this->extensions['EasyCorp\Bundle\EasyAdminBundle\Twig\EasyAdminTwigExtension']->fileSize(CoreExtension::getAttribute($this->env, $this->source, $context["file"], "size", [], "any", false, false, false, 837)), "html", null, true);
yield "</td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['file'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 840
yield " </tbody>
</table>
</div>
";
}
// line 844
yield " ";
if ((isset($context["allow_delete"]) || array_key_exists("allow_delete", $context) ? $context["allow_delete"] : (function () { throw new RuntimeError('Variable "allow_delete" does not exist.', 844, $this->source); })())) {
// line 845
yield " <div class=\"d-none\">";
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 845, $this->source); })()), "delete", [], "any", false, false, false, 845), 'widget', ["label" => false]);
yield "</div>
";
}
// line 847
yield " </div>
";
// line 849
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 849, $this->source); })()), "file", [], "any", false, false, false, 849), 'errors');
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 852
public function block_ea_slug_widget($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ea_slug_widget"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ea_slug_widget"));
// line 853
yield " ";
$context["attr"] = Twig\Extension\CoreExtension::arrayMerge((isset($context["attr"]) || array_key_exists("attr", $context) ? $context["attr"] : (function () { throw new RuntimeError('Variable "attr" does not exist.', 853, $this->source); })()), ["data-ea-slug-field" => "", "data-target" => json_encode(Twig\Extension\CoreExtension::arrayMap($this->env, Twig\Extension\CoreExtension::splitFilter($this->env, // line 855
(isset($context["target"]) || array_key_exists("target", $context) ? $context["target"] : (function () { throw new RuntimeError('Variable "target" does not exist.', 855, $this->source); })()), "|"), function ($__name__) use ($context, $macros) { $context["name"] = $__name__; return 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, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 855, $this->source); })()), "parent", [], "any", false, false, false, 855), "children", [], "any", false, false, false, 855), (isset($context["name"]) || array_key_exists("name", $context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.', 855, $this->source); })()), [], "array", false, false, false, 855), "vars", [], "any", false, false, false, 855), "id", [], "any", false, false, false, 855); }))]);
// line 857
yield " ";
if (CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "data-confirm-text", [], "array", true, true, false, 857)) {
// line 858
yield " ";
$context["attr"] = Twig\Extension\CoreExtension::arrayMerge((isset($context["attr"]) || array_key_exists("attr", $context) ? $context["attr"] : (function () { throw new RuntimeError('Variable "attr" does not exist.', 858, $this->source); })()), ["data-confirm-text" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env, $this->source, // line 859
(isset($context["attr"]) || array_key_exists("attr", $context) ? $context["attr"] : (function () { throw new RuntimeError('Variable "attr" does not exist.', 859, $this->source); })()), "data-confirm-text", [], "array", false, false, false, 859))]);
// line 861
yield " ";
}
// line 862
yield "
<div class=\"input-group\">
";
// line 864
yield from $this->unwrap()->yieldBlock("form_widget", $context, $blocks);
yield "
<button type=\"button\" class=\"btn\">
<i class=\"fas fa-lock fa-fw\"></i>
</button>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 476
public function macro_recursiveFieldsetForm($__form__ = null, ...$__varargs__)
{
$macros = $this->macros;
$context = $this->env->mergeGlobals([
"form" => $__form__,
"varargs" => $__varargs__,
]);
$blocks = [];
return ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "recursiveFieldsetForm"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "recursiveFieldsetForm"));
// line 477
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(Twig\Extension\CoreExtension::arrayFilter($this->env, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 477, $this->source); })()), function ($__field__) use ($context, $macros) { $context["field"] = $__field__; return (!CoreExtension::inFilter("hidden", CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["field"], "vars", [], "any", false, false, false, 477), "block_prefixes", [], "any", false, false, false, 477)) && ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["field"], "vars", [], "any", false, true, false, 477), "ea_crud_form", [], "any", false, true, false, 477), "form_tab", [], "any", true, true, false, 477) && !CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["field"], "vars", [], "any", false, false, false, 477), "ea_crud_form", [], "any", false, false, false, 477), "form_tab", [], "any", false, false, false, 477)) || CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["field"], "vars", [], "any", false, true, false, 477), "ea_crud_form", [], "any", false, true, false, 477), "form_tabs", [], "any", true, true, false, 477))); }));
foreach ($context['_seq'] as $context["_key"] => $context["field"]) {
// line 478
yield " ";
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["field"], "vars", [], "any", false, true, false, 478), "ea_crud_form", [], "any", false, true, false, 478), "form_tabs", [], "any", true, true, false, 478)) {
// line 479
yield " ";
// line 480
yield " ";
yield CoreExtension::callMacro($macros["_self"], "macro_recursiveFieldsetForm", [$context["field"]], 480, $context, $this->getSourceContext());
yield "
";
} else {
// line 482
yield " ";
// line 483
yield " ";
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["field"], 'row');
yield "
";
}
// line 485
yield " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['field'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 486
yield " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
})() ?? new \EmptyIterator())) ? '' : new Markup($tmp, $this->env->getCharset());
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "@EasyAdmin/crud/form_theme.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 3138 => 486, 3132 => 485, 3126 => 483, 3124 => 482, 3118 => 480, 3116 => 479, 3113 => 478, 3108 => 477, 3090 => 476, 3073 => 864, 3069 => 862, 3066 => 861, 3064 => 859, 3062 => 858, 3059 => 857, 3057 => 855, 3055 => 853, 3045 => 852, 3032 => 849, 3028 => 847, 3022 => 845, 3019 => 844, 3013 => 840, 3004 => 837, 3001 => 836, 2997 => 835, 2992 => 833, 2987 => 832, 2981 => 831, 2977 => 829, 2973 => 828, 2968 => 825, 2966 => 824, 2962 => 822, 2956 => 818, 2954 => 817, 2951 => 816, 2945 => 812, 2943 => 811, 2940 => 810, 2936 => 808, 2930 => 806, 2924 => 804, 2922 => 803, 2919 => 802, 2917 => 801, 2912 => 799, 2907 => 796, 2904 => 795, 2901 => 794, 2898 => 793, 2895 => 792, 2892 => 791, 2889 => 790, 2886 => 789, 2883 => 788, 2880 => 787, 2877 => 786, 2874 => 785, 2864 => 784, 2851 => 781, 2848 => 780, 2842 => 778, 2839 => 777, 2833 => 773, 2824 => 770, 2821 => 769, 2817 => 768, 2812 => 766, 2807 => 765, 2801 => 764, 2797 => 762, 2793 => 761, 2788 => 758, 2786 => 757, 2777 => 752, 2767 => 748, 2765 => 747, 2758 => 744, 2752 => 742, 2750 => 741, 2748 => 740, 2743 => 737, 2739 => 736, 2736 => 735, 2733 => 734, 2730 => 733, 2727 => 732, 2724 => 731, 2721 => 730, 2718 => 729, 2715 => 728, 2712 => 727, 2709 => 726, 2706 => 725, 2704 => 724, 2700 => 722, 2690 => 721, 2676 => 718, 2666 => 717, 2655 => 714, 2650 => 711, 2644 => 710, 2640 => 709, 2636 => 708, 2633 => 707, 2623 => 706, 2609 => 703, 2599 => 702, 2570 => 694, 2559 => 692, 2553 => 689, 2539 => 688, 2531 => 687, 2525 => 686, 2521 => 685, 2517 => 684, 2514 => 683, 2497 => 682, 2494 => 681, 2491 => 680, 2481 => 679, 2468 => 674, 2458 => 673, 2445 => 669, 2439 => 666, 2436 => 665, 2434 => 664, 2413 => 663, 2410 => 662, 2407 => 661, 2404 => 660, 2394 => 659, 2381 => 655, 2371 => 654, 2358 => 650, 2348 => 649, 2335 => 645, 2327 => 642, 2324 => 640, 2322 => 639, 2318 => 638, 2316 => 637, 2314 => 636, 2309 => 634, 2304 => 632, 2302 => 631, 2293 => 630, 2290 => 629, 2286 => 628, 2281 => 625, 2278 => 624, 2275 => 623, 2272 => 622, 2269 => 621, 2259 => 620, 2244 => 614, 2234 => 613, 2214 => 609, 2211 => 608, 2206 => 605, 2200 => 603, 2198 => 602, 2195 => 601, 2189 => 598, 2186 => 597, 2180 => 594, 2174 => 593, 2170 => 592, 2165 => 591, 2163 => 590, 2160 => 589, 2155 => 587, 2152 => 586, 2146 => 584, 2144 => 583, 2141 => 582, 2137 => 580, 2134 => 579, 2132 => 578, 2124 => 576, 2122 => 575, 2115 => 573, 2112 => 572, 2109 => 571, 2099 => 570, 2087 => 567, 2077 => 566, 2064 => 562, 2058 => 560, 2056 => 559, 2052 => 557, 2047 => 556, 2041 => 555, 2037 => 553, 2035 => 552, 2029 => 551, 2026 => 550, 2023 => 549, 2020 => 548, 2017 => 547, 2007 => 546, 1994 => 542, 1991 => 541, 1989 => 539, 1979 => 538, 1966 => 534, 1963 => 533, 1961 => 532, 1951 => 531, 1937 => 528, 1927 => 527, 1913 => 522, 1908 => 519, 1906 => 518, 1905 => 517, 1903 => 515, 1893 => 514, 1881 => 510, 1879 => 509, 1878 => 508, 1877 => 507, 1876 => 506, 1875 => 505, 1873 => 503, 1863 => 502, 1849 => 498, 1846 => 497, 1836 => 496, 1822 => 493, 1812 => 492, 1794 => 487, 1792 => 476, 1783 => 471, 1777 => 470, 1771 => 468, 1768 => 467, 1764 => 466, 1753 => 464, 1750 => 463, 1745 => 460, 1739 => 458, 1737 => 457, 1730 => 454, 1724 => 452, 1722 => 451, 1719 => 450, 1715 => 448, 1713 => 447, 1710 => 446, 1703 => 444, 1699 => 443, 1694 => 442, 1690 => 440, 1688 => 439, 1680 => 437, 1678 => 436, 1673 => 434, 1670 => 433, 1667 => 432, 1665 => 431, 1662 => 430, 1659 => 429, 1654 => 428, 1651 => 427, 1648 => 426, 1638 => 425, 1625 => 422, 1622 => 421, 1619 => 420, 1609 => 419, 1591 => 414, 1586 => 413, 1576 => 412, 1562 => 408, 1552 => 407, 1538 => 403, 1535 => 402, 1529 => 400, 1527 => 399, 1521 => 396, 1517 => 395, 1514 => 394, 1510 => 391, 1505 => 389, 1498 => 386, 1496 => 385, 1493 => 384, 1490 => 383, 1486 => 381, 1480 => 379, 1474 => 377, 1472 => 376, 1468 => 375, 1464 => 373, 1458 => 371, 1452 => 369, 1450 => 368, 1446 => 367, 1443 => 366, 1440 => 365, 1436 => 363, 1430 => 361, 1424 => 359, 1422 => 358, 1419 => 357, 1416 => 356, 1414 => 355, 1411 => 354, 1408 => 353, 1398 => 352, 1384 => 349, 1381 => 348, 1371 => 347, 1357 => 343, 1354 => 342, 1348 => 340, 1346 => 339, 1340 => 336, 1336 => 335, 1333 => 334, 1329 => 331, 1324 => 329, 1317 => 326, 1315 => 325, 1312 => 324, 1308 => 322, 1305 => 320, 1302 => 318, 1300 => 317, 1297 => 316, 1292 => 315, 1289 => 308, 1286 => 307, 1284 => 306, 1281 => 305, 1271 => 304, 1257 => 301, 1254 => 300, 1244 => 299, 1230 => 295, 1227 => 294, 1217 => 293, 1203 => 287, 1199 => 284, 1196 => 282, 1194 => 281, 1190 => 278, 1187 => 276, 1185 => 275, 1183 => 274, 1168 => 273, 1164 => 270, 1161 => 267, 1160 => 266, 1159 => 265, 1157 => 264, 1155 => 263, 1153 => 260, 1150 => 258, 1148 => 257, 1145 => 255, 1142 => 253, 1140 => 252, 1138 => 251, 1135 => 247, 1125 => 246, 1114 => 241, 1112 => 240, 1106 => 239, 1096 => 238, 1082 => 234, 1079 => 233, 1076 => 232, 1073 => 231, 1070 => 230, 1067 => 229, 1061 => 227, 1058 => 226, 1055 => 225, 1053 => 223, 1051 => 222, 1048 => 221, 1038 => 220, 1026 => 217, 1017 => 211, 1009 => 208, 1006 => 207, 1000 => 205, 998 => 204, 992 => 201, 985 => 199, 981 => 197, 978 => 196, 972 => 194, 970 => 193, 966 => 192, 961 => 191, 959 => 190, 953 => 189, 950 => 188, 943 => 184, 940 => 183, 937 => 182, 934 => 181, 931 => 180, 928 => 179, 925 => 178, 915 => 177, 900 => 172, 896 => 170, 894 => 169, 891 => 168, 888 => 167, 885 => 166, 883 => 165, 879 => 163, 873 => 160, 870 => 159, 864 => 157, 862 => 156, 857 => 155, 855 => 154, 851 => 152, 848 => 151, 845 => 150, 843 => 148, 833 => 147, 820 => 144, 817 => 143, 815 => 141, 814 => 140, 813 => 139, 812 => 138, 811 => 137, 810 => 135, 807 => 134, 804 => 133, 801 => 132, 798 => 131, 788 => 130, 775 => 127, 772 => 126, 769 => 125, 766 => 120, 763 => 119, 753 => 118, 740 => 114, 737 => 113, 731 => 108, 729 => 107, 723 => 104, 721 => 103, 716 => 102, 714 => 101, 711 => 100, 706 => 99, 700 => 97, 698 => 96, 693 => 94, 690 => 93, 684 => 90, 681 => 89, 678 => 88, 674 => 87, 671 => 86, 668 => 85, 665 => 84, 663 => 83, 660 => 82, 658 => 81, 647 => 80, 643 => 79, 640 => 78, 637 => 77, 635 => 75, 633 => 74, 623 => 73, 611 => 67, 608 => 65, 606 => 64, 604 => 63, 594 => 62, 583 => 59, 581 => 58, 579 => 57, 569 => 56, 558 => 53, 556 => 52, 554 => 51, 544 => 50, 532 => 47, 530 => 46, 528 => 45, 525 => 44, 515 => 43, 504 => 40, 501 => 38, 499 => 37, 497 => 36, 494 => 34, 492 => 33, 482 => 32, 470 => 27, 459 => 25, 454 => 24, 451 => 23, 441 => 22, 429 => 19, 423 => 17, 420 => 16, 410 => 15, 395 => 11, 393 => 10, 389 => 9, 386 => 8, 380 => 6, 377 => 5, 367 => 4, 356 => 852, 353 => 851, 351 => 784, 348 => 783, 346 => 721, 343 => 720, 341 => 717, 338 => 716, 336 => 706, 333 => 705, 331 => 702, 328 => 701, 326 => 679, 323 => 677, 321 => 673, 318 => 672, 316 => 659, 313 => 658, 311 => 654, 308 => 653, 306 => 649, 303 => 648, 301 => 620, 298 => 619, 296 => 613, 293 => 612, 291 => 570, 288 => 569, 286 => 566, 283 => 565, 281 => 546, 278 => 545, 276 => 538, 273 => 537, 271 => 531, 268 => 530, 266 => 527, 263 => 525, 261 => 514, 258 => 512, 256 => 502, 253 => 500, 251 => 496, 248 => 495, 246 => 492, 243 => 490, 241 => 425, 238 => 424, 236 => 419, 233 => 417, 231 => 412, 228 => 410, 226 => 407, 223 => 406, 221 => 352, 218 => 351, 216 => 347, 213 => 346, 211 => 304, 208 => 303, 206 => 299, 203 => 298, 201 => 293, 198 => 292, 195 => 290, 193 => 246, 190 => 245, 187 => 243, 185 => 238, 182 => 237, 180 => 220, 177 => 219, 175 => 177, 172 => 176, 170 => 147, 167 => 146, 165 => 130, 162 => 129, 160 => 118, 157 => 117, 155 => 73, 152 => 72, 149 => 70, 147 => 62, 144 => 61, 142 => 56, 139 => 55, 137 => 50, 134 => 49, 132 => 43, 129 => 42, 127 => 32, 124 => 31, 121 => 29, 119 => 22, 116 => 21, 114 => 15, 111 => 14, 109 => 4, 106 => 3, 93 => 0, 31 => 2,);
}
public function getSourceContext()
{
return new Source("{# @var ea \\EasyCorp\\Bundle\\EasyAdminBundle\\Context\\AdminContext #}
{% use '@EasyAdmin/symfony-form-themes/bootstrap_5_layout.html.twig' %}
{% block form_start %}
{% if form.vars.errors|length > 0 and 'ea_crud' in form.vars.block_prefixes|default([]) %}
{{ form_errors(form, {attr: { class: 'global-invalid-feedback' }}) }}
{% endif %}
{{ parent() }}
{% if ea.request.query.get('referrer') %}
<input type=\"hidden\" name=\"referrer\" value=\"{{ ea.request.query.get('referrer') }}\">
{% endif %}
{% endblock form_start %}
{% block form_end %}
{% if not render_rest is defined or render_rest %}
{{ form_rest(form) }}
{% endif %}
</form>
{% endblock %}
{% block form_errors %}
{% if errors|length > 0 %}
{% for error in errors %}
<div class=\"{{ attr.class|default('') }} invalid-feedback d-block\">{{ error.message }}</div>
{% endfor %}
{% endif %}
{% endblock form_errors %}
{# Widgets #}
{% block form_widget_simple -%}
{% if type is not defined or type not in ['file', 'hidden'] %}
{%- set attr = attr|merge({class: (attr.class|default(''))|trim}) -%}
{% endif %}
{%- if type is defined and (type == 'range' or type == 'color') %}
{# Attribute \"required\" is not supported #}
{%- set required = false -%}
{% endif %}
{{- parent() -}}
{%- endblock form_widget_simple %}
{% block datetime_widget %}
{% set attr = attr|merge({class: (attr.class|default('') ~ ' form-inline')|trim}) %}
<div class=\"datetime-widget datetime-widget-datetime\">
{{- parent() -}}
</div>
{% endblock datetime_widget %}
{% block date_widget -%}
<div class=\"datetime-widget datetime-widget-date\">
{{- parent() -}}
</div>
{%- endblock date_widget %}
{% block time_widget -%}
<div class=\"datetime-widget datetime-widget-time\">
{{- parent() -}}
</div>
{%- endblock time_widget %}
{% block file_widget -%}
{% if vich|default(false) %}
{%- set type = type|default('file') -%}
{{- block('form_widget_simple') -}}
{% else %}
{{- block('form_widget_simple') -}}
{% endif %}
{%- endblock %}
{# Rows #}
{% block form_row %}
{% set row_attr = row_attr|merge({
class: row_attr.class|default('') ~ ' form-group'
}) %}
{% set field = form.vars.ea_vars.field %}
<div class=\"{{ field.columns ?? field.defaultColumns ?? '' }}\">
<div {% with { attr: row_attr } %}{{ block('attributes') }}{% endwith %}>
{{- form_label(form) -}}
<div class=\"form-widget\">
{% set has_prepend_html = field.prepend_html|default(null) is not null %}
{% set has_append_html = field.append_html|default(null) is not null %}
{% set has_input_groups = has_prepend_html or has_append_html %}
{% if has_input_groups %}<div class=\"input-group\">{% endif %}
{% if has_prepend_html %}
<div class=\"input-group-prepend\">
<span class=\"input-group-text\">{{ field.prepend_html|raw }}</span>
</div>
{% endif %}
{{ form_widget(form) }}
{% if has_append_html %}
<span class=\"input-group-text\">{{ field.append_html|raw }}</span>
{% endif %}
{% if has_input_groups %}</div>{% endif %}
{% if field.help ?? false %}
<small class=\"form-text form-help\">{{ field.help|trans(label_translation_parameters, translation_domain)|raw }}</small>
{% elseif form.vars.help ?? false %}
<small class=\"form-text form-help\">{{ form.vars.help|trans(form.vars.help_translation_parameters, form.vars.translation_domain)|raw }}</small>
{% endif %}
{{- form_errors(form) -}}
</div>
</div>
</div>
{# if a field doesn't define its columns explicitly, insert a fill element to make the field take the entire row space #}
{% if field.columns|default(null) is null %}
<div class=\"flex-fill\"></div>
{% endif %}
{% endblock form_row %}
{% block choice_widget_collapsed %}
{% if 'ea-autocomplete' == attr['data-ea-widget']|default(false) %}
{% set attr = attr|merge({
'data-ea-i18n-no-results-found': 'autocomplete.no-results-found'|trans({}, 'EasyAdminBundle'),
'data-ea-i18n-no-more-results': 'autocomplete.no-more-results'|trans({}, 'EasyAdminBundle'),
'data-ea-i18n-loading-more-results': 'autocomplete.loading-more-results'|trans({}, 'EasyAdminBundle'),
}) %}
{% endif %}
{{ parent() }}
{% endblock choice_widget_collapsed %}
{% block collection_row %}
{% if prototype is defined and not prototype.rendered %}
{% set row_attr = row_attr|merge({ 'data-prototype': form_row(prototype) }) %}
{% endif %}
{% set row_attr = row_attr|merge({
'data-ea-collection-field': 'true',
'data-entry-is-complex': form.vars.ea_vars.field and form.vars.ea_vars.field.customOptions.get('entryIsComplex') ? 'true' : 'false',
'data-allow-add': allow_add ? 'true' : 'false',
'data-allow-delete': allow_delete ? 'true' : 'false',
'data-num-items': form.children is empty ? 0 : max(form.children|keys) + 1,
'data-form-type-name-placeholder': prototype is defined ? prototype.vars.name : '',
}) %}
{{ block('form_row') }}
{% endblock collection_row %}
{% block collection_widget %}
{# the \"is iterable\" check is needed because if an object implements __toString() and
returns an empty string, \"is empty\" returns true even if it's not a collection #}
{% set isEmptyCollection = value is null or (value is iterable and value is empty) %}
{% set is_array_field = 'EasyCorp\\\\Bundle\\\\EasyAdminBundle\\\\Field\\\\ArrayField' == form.vars.ea_vars.field.fieldFqcn ?? false %}
<div class=\"ea-form-collection-items\">
{% if isEmptyCollection %}
{{ block('empty_collection') }}
{% elseif is_array_field %}
{{ block('form_widget') }}
{% else %}
<div class=\"accordion\">
{{ block('form_widget') }}
</div>
{% endif %}
</div>
{% if isEmptyCollection or form.vars.prototype is defined %}
{% set attr = attr|merge({'data-empty-collection': block('empty_collection') }) %}
{% endif %}
{% if allow_add|default(false) and not disabled %}
<button type=\"button\" class=\"btn btn-link field-collection-add-button\">
<i class=\"fa fa-plus pr-1\"></i>
{{ 'action.add_new_item'|trans({}, 'EasyAdminBundle') }}
</button>
{% endif %}
{% endblock collection_widget %}
{% block collection_entry_row %}
{% set is_array_field = 'EasyCorp\\\\Bundle\\\\EasyAdminBundle\\\\Field\\\\ArrayField' == form_parent(form).vars.ea_vars.field.fieldFqcn ?? false %}
{% set is_complex = form_parent(form).vars.ea_vars.field.customOptions.get('entryIsComplex') ?? false %}
{% set allows_deleting_items = form_parent(form).vars.allow_delete|default(false) %}
{% set render_expanded = form_parent(form).vars.ea_vars.field.customOptions.get('renderExpanded') ?? false %}
{% set delete_item_button %}
<button type=\"button\" class=\"btn btn-link btn-link-danger field-collection-delete-button\"
title=\"{{ 'action.remove_item'|trans({}, 'EasyAdminBundle') }}\">
<i class=\"far fa-trash-alt\"></i>
</button>
{% endset %}
<div class=\"field-collection-item {{ is_complex ? 'field-collection-item-complex' }} {{ not form.vars.valid ? 'is-invalid' }}\">
{% if is_array_field|default(false) %}
{{ form_label(form) }}
{{ form_widget(form) }}
{% if allows_deleting_items and not disabled %}
{{ delete_item_button }}
{% endif %}
{% else %}
<div class=\"accordion-item\">
<h2 class=\"accordion-header\">
<button class=\"accordion-button {{ render_expanded ? '' : 'collapsed' }}\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#{{ id }}-contents\">
<i class=\"fas fw fa-chevron-right form-collection-item-collapse-marker\"></i>
{{ value|ea_as_string }}
</button>
{% if allows_deleting_items and not disabled %}
{{ delete_item_button }}
{% endif %}
</h2>
<div id=\"{{ id }}-contents\" class=\"accordion-collapse collapse {{ render_expanded ? 'show' }}\">
<div class=\"accordion-body\">
<div class=\"row\">
{{ form_widget(form) }}
</div>
</div>
</div>
</div>
{% endif %}
</div>
{% endblock collection_entry_row %}
{% block form_widget_compound %}
<div class=\"form-widget-compound\">
{% if 'collection' in block_prefixes %}
{# the \"is iterable\" check is needed because if an object implements __toString() and
returns an empty string, \"is empty\" returns true even if it's not a collection #}
{% set isEmptyCollection = value is null or (value is iterable and value is empty) %}
{% if isEmptyCollection %}
{{ block('empty_collection') }}
{% endif %}
{% if isEmptyCollection or form.vars.prototype is defined %}
{% set attr = attr|merge({'data-empty-collection': block('empty_collection') }) %}
{% endif %}
{% endif %}
{{ parent() }}
</div>
{% endblock form_widget_compound %}
{% block button_row -%}
<div class=\"form-group field-{{ block_prefixes|slice(-2)|first }} {{ ea.field.css_class|default('') }}\">
{{- form_widget(form) -}}
</div>
{%- endblock button_row %}
{# Labels #}
{% block form_label -%}
{% if label is same as(false) -%}
{# don't display anything, not even an empty <label> element; if you want to not display
any label contents but keep the form layout, use an empty string as the field label #}
{%- else -%}
{%- if compound is defined and compound -%}
{%- set element = 'legend' -%}
{%- set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' col-form-label')|trim}) -%}
{%- else -%}
{%- set label_attr = label_attr|merge({for: id, class: (label_attr.class|default('') ~ ' form-control-label')|trim}) -%}
{%- endif -%}
{% if required -%}
{% set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' required')|trim}) %}
{%- endif -%}
{% if label is same as('') -%}
{# don't process the label; this is used to not display any label content
but render an empty <label> element keep the form layout #}
{%- elseif label is null -%}
{%- if label_format is not empty -%}
{% set label = label_format|replace({
'%name%': name,
'%id%': id,
}) %}
{%- else -%}
{% set label = name|humanize %}
{%- endif -%}
{%- endif -%}
<{{ element|default('label') }}{% if label_attr %}{% with { attr: label_attr } %}{{ block('attributes') }}{% endwith %}{% endif %}>
{%- if translation_domain is same as(false) -%}
{%- if label_html|default(false) is same as(false) -%}
{{- label -}}
{%- else -%}
{{- label|raw -}}
{%- endif -%}
{%- else -%}
{%- if label_html|default(false) is same as(false) -%}
{{- label|trans(label_translation_parameters, translation_domain) -}}
{%- else -%}
{{- label|trans(label_translation_parameters, translation_domain)|raw -}}
{%- endif -%}
{%- endif -%}
</{{ element|default('label') }}>
{%- endif -%}
{%- endblock form_label %}
{# Errors #}
{% block empty_collection %}
<div class=\"empty collection-empty\">
{{ include(ea.templatePath('label/empty')) }}
</div>
{% endblock empty_collection %}
{% block vich_file_row %}
{% set force_error = true %}
{{ block('form_row') }}
{% endblock %}
{% block vich_file_widget %}
<div class=\"ea-vich-file\">
{% if download_uri|default('') is not empty %}
{% set file_extension = download_uri|split('.')|last %}
{% set extension_icons = {
'gif': 'fa-file-image-o',
'jpg': 'fa-file-image-o',
'pdf': 'fa-file-pdf-o',
'png': 'fa-file-image-o',
'zip': 'fa-file-archive-o'
} %}
<a class=\"ea-vich-file-name\" href=\"{{ asset_helper is same as(true) ? asset(download_uri) : download_uri }}\">
<i class=\"fa fa-fw {{ extension_icons[file_extension] ?? 'fa-file-o' }}\"></i>
{%- if download_label|default(false) -%}
{{ download_label|trans({}, 'VichUploaderBundle') }}
{%- else -%}
{{ download_uri|split('/')|last ?: 'download'|trans({}, 'VichUploaderBundle') }}
{%- endif -%}
</a>
{% endif %}
{% set file_upload_js %}
var newFile = document.getElementById('{{ form.file.vars.id }}').files[0];
var fileSizeInMegabytes = newFile.size > 1024 * 1024;
var fileSize = fileSizeInMegabytes ? newFile.size / (1024 * 1024) : newFile.size / 1024;
document.getElementById('{{ form.file.vars.id }}_new_file_name').innerText = newFile.name + ' (' + fileSize.toFixed(2) + ' ' + (fileSizeInMegabytes ? 'MB' : 'KB') + ')';
{% endset %}
<div class=\"ea-vich-file-actions\">
{# the container element is needed to allow customizing the <input type=\"file\" /> #}
<div class=\"btn btn-secondary input-file-container\">
<i class=\"fa fa-fw fa-upload\"></i> {{ 'action.choose_file'|trans({}, 'EasyAdminBundle') }}
{{ form_widget(form.file, { 'attr': { 'onchange': file_upload_js }, vich: true}) }}
</div>
{% if form.delete is defined %}
{{ form_row(form.delete) }}
{% endif %}
</div>
<div class=\"small\" id=\"{{ form.file.vars.id }}_new_file_name\"></div>
</div>
{% endblock %}
{% block vich_image_row %}
{% set force_error = true %}
{{ block('form_row') }}
{% endblock %}
{% block vich_image_widget %}
{% set formTypeOptions = ea_vars.field.formTypeOptions|default('') %}
<div class=\"ea-vich-image\">
{% if image_uri|default('') is not empty %}
{% if download_uri|default('') is empty %}
<div class=\"ea-lightbox-thumbnail\">
{% if formTypeOptions.imagine_pattern is defined and formTypeOptions.imagine_pattern is not empty %}
<img style=\"cursor: initial\" src=\"{{ (asset_helper is same as(true) ? asset(image_uri) : image_uri)|ea_apply_filter_if_exists('imagine_filter', formTypeOptions.imagine_pattern) }}\">
{% else %}
<img style=\"cursor: initial\" src=\"{{ asset_helper is same as(true) ? asset(image_uri) : image_uri }}\">
{% endif %}
</div>
{% else %}
{% set _lightbox_id = 'ea-lightbox-' ~ id %}
<a href=\"#\" class=\"ea-lightbox-thumbnail\" data-ea-lightbox-content-selector=\"#{{ _lightbox_id }}\">
{% if formTypeOptions.imagine_pattern is defined and formTypeOptions.imagine_pattern is not empty %}
<img src=\"{{ (asset_helper is same as(true) ? asset(download_uri) : download_uri)|ea_apply_filter_if_exists('imagine_filter', formTypeOptions.imagine_pattern) }}\">
{% else %}
<img src=\"{{ asset_helper is same as(true) ? asset(download_uri) : download_uri }}\">
{% endif %}
</a>
<div id=\"{{ _lightbox_id }}\" class=\"ea-lightbox\">
{% if formTypeOptions.imagine_pattern is defined and formTypeOptions.imagine_pattern is not empty %}
<img src=\"{{ (asset_helper is same as(true) ? asset(download_uri) : download_uri)|ea_apply_filter_if_exists('imagine_filter', formTypeOptions.imagine_pattern) }}\">
{% else %}
<img src=\"{{ asset_helper is same as(true) ? asset(download_uri) : download_uri }}\">
{% endif %}
</div>
{% endif %}
{% endif %}
{% set file_upload_js %}
var newFile = document.getElementById('{{ form.file.vars.id }}').files[0];
var fileSizeInMegabytes = newFile.size > 1024 * 1024;
var fileSize = fileSizeInMegabytes ? newFile.size / (1024 * 1024) : newFile.size / 1024;
document.getElementById('{{ form.file.vars.id }}_new_file_name').innerText = newFile.name + ' (' + fileSize.toFixed(2) + ' ' + (fileSizeInMegabytes ? 'MB' : 'KB') + ')';
{% endset %}
<div class=\"ea-vich-image-actions\">
{# the container element is needed to allow customizing the <input type=\"file\" /> #}
<div class=\"btn btn-secondary input-file-container\">
<i class=\"fa fa-fw fa-upload\"></i> {{ 'action.choose_file'|trans({}, 'EasyAdminBundle') }}
{{ form_widget(form.file, { 'attr': { 'onchange': file_upload_js }, vich: true}) }}
</div>
{% if form.delete is defined %}
{{ form_row(form.delete) }}
{% endif %}
</div>
<div class=\"small\" id=\"{{ form.file.vars.id }}_new_file_name\"></div>
</div>
{% endblock %}
{% block ea_crud_rest %}
{{ form_rest(form) }}
{% endblock ea_crud_rest %}
{# EasyAdmin form type #}
{% block ea_crud_widget %}
{% for field in form %}
{{ form_row(field) }}
{% endfor %}
{% endblock ea_crud_widget %}
{# TODO: remove this when \"form panels\" are removed #}
{% block ea_crud_widget_panels %}
{% deprecated 'The \"ea_crud_widget_panels\" block is deprecated because the form layout building logic has been revamped. Check \"ea_crud_widget\" block in `form_theme.html.page` for more details.' %}
{{ block('ea_crud_widget_fieldsets') }}
{% endblock ea_crud_widget_panels %}
{% block ea_crud_widget_fieldsets %}
{% deprecated 'The \"ea_crud_widget_fieldsets\" block is deprecated because the form layout building logic has been revamped. Check \"ea_crud_widget\" block in `form_theme.html.page` for more details.' %}
{% for fieldset_name, fieldset_config in field.vars.ea_crud_form.form_fieldsets|filter(fieldset_config => not fieldset_config.form_tab or fieldset_config.form_tab == tab_name) %}
{% set fieldset_has_header = fieldset_config.label|default(false) or fieldset_config.icon|default(false) or fieldset_config.help|default(false) %}
{% set collapsible = fieldset_config.collapsible %}
{% set collapsed = fieldset_config.collapsed %}
<div class=\"{{ fieldset_config.css_class ?? '' }}\">
<fieldset class=\"form-fieldset\">
{% if fieldset_has_header %}
<div class=\"form-fieldset-header {{ collapsible ? 'collapsible' }} {{ fieldset_config.help|default(false) is not empty ? 'with-help' }}\">
<div class=\"form-fieldset-title\">
<a {% if not collapsible %}
href=\"#\" class=\"not-collapsible\"
{% else %}
href=\"#content-{{ fieldset_name }}\" data-bs-toggle=\"collapse\"
class=\"form-fieldset-collapse {{ collapsed ? 'collapsed' }}\"
aria-expanded=\"{{ collapsed ? 'false' : 'true' }}\" aria-controls=\"content-{{ fieldset_name }}\"
{% endif %}
>
{% if collapsible %}
<i class=\"fas fw fa-chevron-right form-fieldset-collapse-marker\"></i>
{% endif %}
{% if fieldset_config.icon|default(false) %}
<i class=\"form-fieldset-icon {{ fieldset_config.icon }}\"></i>
{% endif %}
{{ fieldset_config.label|trans|raw }}
</a>
{% if fieldset_config.help|default(false) %}
<div class=\"form-fieldset-help\">{{ fieldset_config.help|trans|raw }}</div>
{% endif %}
</div>
</div>
{% endif %}
<div id=\"content-{{ fieldset_name }}\" class=\"form-fieldset-body {{ not fieldset_has_header ? 'without-header' }} {{ collapsible ? 'collapse' }} {{ not collapsed ? 'show'}}\">
<div class=\"row\">
{% for field in form|filter(field => 'hidden' not in field.vars.block_prefixes and field.vars.ea_crud_form.form_fieldset == fieldset_name) %}
{% if not field.vars.ea_crud_form.form_tab or field.vars.ea_crud_form.form_tab == tab_name %}
{{ form_row(field) }}
{% endif %}
{% endfor %}
</div>
</div>
</fieldset>
</div>
{% else %}
{% macro recursiveFieldsetForm(form) %}
{% for field in form|filter(field => 'hidden' not in field.vars.block_prefixes and ((field.vars.ea_crud_form.form_tab is defined and not field.vars.ea_crud_form.form_tab) or field.vars.ea_crud_form.form_tabs is defined)) %}
{% if field.vars.ea_crud_form.form_tabs is defined %}
{# If the field is a nested CRUD form then only render its children #}
{{ _self.recursiveFieldsetForm(field) }}
{% else %}
{# Render all other fields #}
{{ form_row(field) }}
{% endif %}
{% endfor %}
{% endmacro %}
{{ _self.recursiveFieldsetForm(form) }}
{% endfor %}
{% endblock ea_crud_widget_fieldsets %}
{# EasyAdminAutocomplete form type #}
{% block ea_autocomplete_widget %}
{{ form_widget(form.autocomplete, { attr: attr|merge({ required: required }) }) }}
{% endblock ea_autocomplete_widget %}
{% block ea_autocomplete_inner_label %}
{% set name = form_parent(form).vars.name %}
{{ block('form_label') }}
{% endblock ea_autocomplete_inner_label %}
{# EasyAdmin's CodeEditor form type #}
{% block ea_code_editor_widget %}
{{ form_widget(form, { attr: attr|merge({
'data-ea-code-editor-field': 'true',
'data-language': form.vars.ea_vars.field.customOptions.get('language'),
'data-tab-size': form.vars.ea_vars.field.customOptions.get('tabSize'),
'data-indent-with-tabs': form.vars.ea_vars.field.customOptions.get('indentWithTabs') ? 'true' : 'false',
'data-show-line-numbers': form.vars.ea_vars.field.customOptions.get('showLineNumbers') ? 'true' : 'false',
'data-number-of-rows': form.vars.ea_vars.field.customOptions.get('numOfRows'),
}) }) }}
{% endblock ea_code_editor_widget %}
{# EasyAdmin's TextEditor form type #}
{% block ea_text_editor_widget %}
{{ form_widget(form, { attr: attr|merge({
class: 'ea-text-editor-content d-none',
'data-number-of-rows': form.vars.ea_vars.field.customOptions.get('numOfRows')|default(5),
'data-trix-editor-config': form.vars.ea_vars.field.customOptions.get('trixEditorConfig')|default(null)|json_encode,
}) }) }}
<div class=\"ea-text-editor-wrapper\">
<trix-editor input=\"{{ id }}\" class=\"trix-content\"></trix-editor>
</div>
{% endblock ea_text_editor_widget %}
{# EasyAdminSection form type #}
{% block ea_form_row_row %}
<div class=\"{{ form.vars.row_attr.class }}\"></div>
{% endblock %}
{% block ea_form_column_group_open_row %}
{# if columns are inside tabs, don't add a '.row' element because the tab pane already opens it #}
{% if not form.vars.ea_is_inside_tab|default(false) %}
<div class=\"row\">
{% endif %}
{% endblock ea_form_column_group_open_row %}
{% block ea_form_column_group_close_row %}
{# if columns are inside tabs, we don't add a '.row' element because
the tab pane already opens it; so, don't close it here #}
{% if not form.vars.ea_is_inside_tab|default(false) %}
</div>
{% endif %}
{% endblock ea_form_column_group_close_row %}
{% block ea_form_column_open_row %}
{% set field = form.vars.ea_vars.field %}
{% set field_icon = field.getCustomOption('icon') %}
{% set column_has_title = field_icon != null or field.label != false or field.label != null or field.label != '' or field.help != null %}
<div class=\"form-column {{ not column_has_title ? 'form-column-no-header' }} {{ field.cssClass }}\">
{% if column_has_title %}
<div class=\"form-column-title\">
<div class=\"form-column-title-content\">
{% if field_icon %}<i class=\"form-column-icon fa fa-fw fa-{{ field_icon }}\"></i>{% endif %}
{% if field.label %}{{ field.label|default('')|trans(domain = ea.i18n.translationDomain)|raw }}{% endif %}
</div>
{% if field.help %}
<div class=\"form-column-help\">{{ field.help|trans(domain = ea.i18n.translationDomain)|raw }}</div>
{% endif %}
</div>
{% endif %}
{% endblock ea_form_column_open_row %}
{% block ea_form_column_close_row %}
</div>
{% endblock ea_form_column_close_row %}
{% block ea_form_fieldset_open_row %}
{% set fieldset_has_header = form.vars.label or ea_icon or ea_help %}
<div class=\"form-fieldset {{ not fieldset_has_header ? 'form-fieldset-no-header' }} {{ ea_css_class }}\">
<fieldset>
{% if fieldset_has_header %}
<div class=\"form-fieldset-header {{ ea_is_collapsible ? 'collapsible' }} {{ ea_help is not empty ? 'with-help' }}\">
<div class=\"form-fieldset-title\">
{% set fieldset_title_contents %}
{% if ea_is_collapsible %}
<i class=\"fas fw fa-chevron-right form-fieldset-collapse-marker\"></i>
{% endif %}
{% if ea_icon %}
<i class=\"form-fieldset-icon {{ ea_icon }}\"></i>
{% endif %}
{{ form.vars.label|trans|raw }}
{% endset %}
{% if ea_is_collapsible %}
<a href=\"#content-{{ form.vars.name }}\" data-bs-toggle=\"collapse\"
class=\"form-fieldset-title-content form-fieldset-collapse {{ ea_is_collapsed ? 'collapsed' }}\"
aria-expanded=\"{{ ea_is_collapsed ? 'false' : 'true' }}\" aria-controls=\"content-{{ form.vars.name }}\">
{{ fieldset_title_contents|raw }}
</a>
{% else %}
<span class=\"not-collapsible form-fieldset-title-content\">
{{ fieldset_title_contents|raw }}
</span>
{% endif %}
{% if ea_help %}
<div class=\"form-fieldset-help\">{{ ea_help|trans|raw }}</div>
{% endif %}
</div>
</div>
{% endif %}
<div id=\"content-{{ form.vars.name }}\" class=\"form-fieldset-body {{ not fieldset_has_header ? 'without-header' }} {{ ea_is_collapsible ? 'collapse' }} {{ not ea_is_collapsed ? 'show'}}\">
<div class=\"row\">
{% endblock ea_form_fieldset_open_row %}
{% block ea_form_fieldset_close_row %}
</div>
</div>
</fieldset>
</div>
{% endblock ea_form_fieldset_close_row %}
{% block ea_form_tablist_row %}
{% set tab_id_option_name = constant('EasyCorp\\\\Bundle\\\\EasyAdminBundle\\\\Field\\\\FormField::OPTION_TAB_ID') %}
{% set tab_is_active_option_name = constant('EasyCorp\\\\Bundle\\\\EasyAdminBundle\\\\Field\\\\FormField::OPTION_TAB_IS_ACTIVE') %}
{% set tab_error_count_option_name = constant('EasyCorp\\\\Bundle\\\\EasyAdminBundle\\\\Field\\\\FormField::OPTION_TAB_ERROR_COUNT') %}
{% set field = form.vars.ea_vars.field %}
<div class=\"nav-tabs-custom form-tabs-tablist\">
<ul class=\"nav nav-tabs\">
{% for tab in field.getCustomOption('tabs') %}
<li class=\"nav-item\">
<a class=\"nav-link {% if tab.getCustomOption(tab_is_active_option_name) %}active{% endif %}\" href=\"#{{ tab.getCustomOption(tab_id_option_name) }}\" id=\"tablist-{{ tab.getCustomOption(tab_id_option_name) }}\" data-bs-toggle=\"tab\">
{%- if tab.getCustomOption('icon')|default(false) -%}
<i class=\"tab-nav-item-icon fa-fw {{ tab.getCustomOption('icon') }}\"></i>
{%- endif -%}
{{ tab.label|trans(domain = ea.i18n.translationDomain)|raw }}
{% set tab_error_count = tab.getCustomOption(tab_error_count_option_name) %}
{%- if tab_error_count > 0 -%}
<span class=\"badge badge-danger\" title=\"{{ 'form.tab.error_badge_title'|trans({'%count%': tab_error_count}, 'EasyAdminBundle') }}\">
{{- tab_error_count -}}
</span>
{%- endif -%}
</a>
</li>
{% endfor %}
</ul>
</div>
{% endblock ea_form_tablist_row %}
{% block ea_form_tabpane_group_open_row %}
<div class=\"nav-tabs-custom form-tabs-content\">
<div class=\"tab-content\">
{% endblock ea_form_tabpane_group_open_row %}
{% block ea_form_tabpane_group_close_row %}
</div>
</div>
{% endblock ea_form_tabpane_group_close_row %}
{% block ea_form_tabpane_open_row %}
{% set tab_is_active_option_name = constant('EasyCorp\\\\Bundle\\\\EasyAdminBundle\\\\Field\\\\FormField::OPTION_TAB_IS_ACTIVE') %}
{% set field = form.vars.ea_vars.field %}
<div id=\"{{ ea_tab_id }}\" class=\"tab-pane {% if field.getCustomOption(tab_is_active_option_name) %}active{% endif %} {{ ea_css_class }}\" {% for key, value in form.vars.attr %}{{ key }}={{ value|e('html_attr') }}{% endfor %}>
{% if ea_help %}
<div class=\"content-header-help tab-help\">
{{ ea_help|trans(domain = ea.i18n.translationDomain)|raw }}
</div>
{% endif %}
<div class=\"row\">
{% endblock ea_form_tabpane_open_row %}
{% block ea_form_tabpane_close_row %}
</div>
</div>
{% endblock ea_form_tabpane_close_row %}
{# EasyAdminFilters form type #}
{% block ea_filters_widget %}
{% set applied_filters = ea.request.query.all()['filters']|default([])|keys %}
{% for field in form %}
<div class=\"col-12\">
<div class=\"filter-field px-3\" data-filter-property=\"{{ field.vars.name }}\">
<div class=\"filter-heading\" id=\"filter-heading-{{ loop.index }}\">
<input type=\"checkbox\" class=\"filter-checkbox\" {% if field.vars.name in applied_filters %}checked{% endif %}>
<a data-bs-toggle=\"collapse\" href=\"#filter-content-{{ loop.index }}\" aria-expanded=\"{{ field.vars.name in applied_filters ? 'true' : 'false' }}\" aria-controls=\"filter-content-{{ loop.index }}\"
{% for name, value in field.vars.label_attr|default([]) %}{{ name }}=\"{{ value|e('html_attr') }}\" {% endfor %}>
{{ field.vars.label|default(field.vars.name|humanize)|trans(domain = ea.i18n.translationDomain) }}
</a>
</div>
<div id=\"filter-content-{{ loop.index }}\" class=\"filter-content collapse {% if field.vars.name in applied_filters %}show{% endif %}\" aria-labelledby=\"filter-heading-{{ loop.index }}\">
<div class=\"form-widget\">
{{ form_widget(field) }}
</div>
</div>
</div>
</div>
{% endfor %}
{% endblock ea_filters_widget %}
{% block comparison_widget %}
{{ form_widget(form, { attr: form.vars.attr|merge({'data-ea-comparison-id': form.vars.id}) }) }}
{% endblock comparison_widget %}
{% block ea_numeric_filter_widget %}
<div class=\"form-widget-compound\">
{{ form_row(form.comparison) }}
{{ form_row(form.value) }}
<div data-ea-value2-of-comparison-id=\"{{ form.comparison.vars.id }}\" class=\"{{ form.comparison.vars.value != 'between' ? 'd-none' }}\">
{{ form_row(form.value2) }}
</div>
</div>
{{- form_errors(form) -}}
{% endblock ea_numeric_filter_widget %}
{% block ea_datetime_filter_widget %}
{{ block('ea_numeric_filter_widget') }}
{% endblock ea_datetime_filter_widget %}
{% block ea_fileupload_widget %}
<div class=\"ea-fileupload\">
<div class=\"input-group\">
{% set placeholder = t('action.choose_file', {}, 'EasyAdminBundle') %}
{% set title = '' %}
{% set filesLabel = 'files'|trans({}, 'EasyAdminBundle') %}
{% if currentFiles %}
{% if multiple %}
{% set placeholder = currentFiles|length ~ ' ' ~ filesLabel %}
{% else %}
{% set placeholder = (currentFiles|first).filename %}
{% set title = (currentFiles|first).mTime|date %}
{% endif %}
{% endif %}
<div class=\"custom-file\">
{{ form_widget(form.file, { attr: form.file.vars.attr|merge({ placeholder: placeholder, title: title, 'data-files-label': filesLabel, class: 'd-none' }) }) }}
{{ form_label(form.file, placeholder, { label_attr: { class: 'custom-file-label' }}) }}
</div>
<div class=\"input-group-text\">
{%- if currentFiles -%}
{% if multiple %}
{{ (currentFiles|reduce((carry, file) => carry + file.size))|ea_filesize }}
{% else %}
{{ (currentFiles|first).size|ea_filesize }}
{% endif %}
{%- endif -%}
{% if allow_delete %}
<label class=\"btn ea-fileupload-delete-btn {{ currentFiles is empty ? 'd-none' }}\" for=\"{{ form.delete.vars.id }}\">
<i class=\"fa fa-trash-o\"></i>
</label>
{% endif %}
<label class=\"btn\" for=\"{{ form.file.vars.id }}\">
<i class=\"fa fa-folder-open-o\"></i>
</label>
</div>
</div>
{% if multiple and currentFiles %}
<div class=\"form-control fileupload-list\">
<table class=\"fileupload-table\">
<tbody>
{% for file in currentFiles %}
<tr>
<td>
{% if download_path %}<a href=\"{{ asset(download_path ~ file.filename) }}\">{% endif %}
<span title=\"{{ file.mTime|date }}\">
<i class=\"fa fa-file-o\"></i> {{ file.filename }}
</span>
{% if download_path %}</a>{% endif %}
</td>
<td class=\"text-right file-size\">{{ file.size|ea_filesize }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endif %}
{% if allow_delete %}
<div class=\"d-none\">{{ form_widget(form.delete, { label: false }) }}</div>
{% endif %}
</div>
{{ form_errors(form.file) }}
{% endblock %}
{% block TODO_ea_fileupload_widget %}
{% set placeholder = '' %}
{% set title = '' %}
{% set filesLabel = 'files'|trans({}, 'EasyAdminBundle') %}
{% if currentFiles %}
{% if multiple %}
{% set placeholder = currentFiles|length ~ ' ' ~ filesLabel %}
{% else %}
{% set placeholder = (currentFiles|first).filename %}
{% set title = (currentFiles|first).mTime|date %}
{% endif %}
{% endif %}
<div class=\"ea-fileupload\">
<div class=\"input-group\">
{{ form_widget(form.file, { attr: form.file.vars.attr|merge({ placeholder: placeholder, title: title, 'data-files-label': filesLabel, class: 'form-control' }) }) }}
{% if currentFiles %}
<span class=\"input-group-text\">
{% if multiple %}
{{ (currentFiles|reduce((carry, file) => carry + file.size))|ea_filesize }}
{% else %}
{{ (currentFiles|first).size|ea_filesize }}
{% endif %}
</span>
{% endif %}
{% if currentFiles and allow_delete %}
<button class=\"btn ea-fileupload-delete-btn\">
<i class=\"fa fa-trash-o\"></i>
</button>
{% endif %}
{% if currentFiles %}
<button class=\"btn\">
<i class=\"fa fa-folder-open-o\"></i>
</button>
{% endif %}
</div>
{% if multiple and currentFiles %}
<div class=\"form-control fileupload-list\">
<table class=\"fileupload-table\">
<tbody>
{% for file in currentFiles %}
<tr>
<td>
{% if download_path %}<a href=\"{{ asset(download_path ~ file.filename) }}\">{% endif %}
<span title=\"{{ file.mTime|date }}\">
<i class=\"fa fa-file-o\"></i> {{ file.filename }}
</span>
{% if download_path %}</a>{% endif %}
</td>
<td class=\"text-right file-size\">{{ file.size|ea_filesize }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endif %}
{% if allow_delete %}
<div class=\"d-none\">{{ form_widget(form.delete, { label: false }) }}</div>
{% endif %}
</div>
{{ form_errors(form.file) }}
{% endblock %}
{% block ea_slug_widget %}
{% set attr = attr|merge({
'data-ea-slug-field': '',
'data-target': target|split('|')|map(name => form.parent.children[name].vars.id)|json_encode
}) %}
{% if attr['data-confirm-text'] is defined %}
{% set attr = attr|merge({
'data-confirm-text': attr['data-confirm-text']|trans
}) %}
{% endif %}
<div class=\"input-group\">
{{ block('form_widget') }}
<button type=\"button\" class=\"btn\">
<i class=\"fas fa-lock fa-fw\"></i>
</button>
</div>
{% endblock %}
", "@EasyAdmin/crud/form_theme.html.twig", "/home/annuairepn/www/aea/vendor/easycorp/easyadmin-bundle/src/Resources/views/crud/form_theme.html.twig");
}
}