1515 lines
113 KiB
PHP
1515 lines
113 KiB
PHP
<?php
|
|
|
|
use Twig\Environment;
|
|
use Twig\Error\LoaderError;
|
|
use Twig\Error\RuntimeError;
|
|
use Twig\Extension\CoreExtension;
|
|
use Twig\Extension\SandboxExtension;
|
|
use Twig\Markup;
|
|
use Twig\Sandbox\SecurityError;
|
|
use Twig\Sandbox\SecurityNotAllowedTagError;
|
|
use Twig\Sandbox\SecurityNotAllowedFilterError;
|
|
use Twig\Sandbox\SecurityNotAllowedFunctionError;
|
|
use Twig\Source;
|
|
use Twig\Template;
|
|
use Twig\TemplateWrapper;
|
|
|
|
/* bootstrap_5_layout.html.twig */
|
|
class __TwigTemplate_896fa5482ff3495286b71c3c7c2df980 extends Template
|
|
{
|
|
private Source $source;
|
|
/**
|
|
* @var array<string, Template>
|
|
*/
|
|
private array $macros = [];
|
|
|
|
public function __construct(Environment $env)
|
|
{
|
|
parent::__construct($env);
|
|
|
|
$this->source = $this->getSourceContext();
|
|
|
|
$this->parent = false;
|
|
|
|
// line 1
|
|
$_trait_0 = $this->loadTemplate("bootstrap_base_layout.html.twig", "bootstrap_5_layout.html.twig", 1);
|
|
if (!$_trait_0->unwrap()->isTraitable()) {
|
|
throw new RuntimeError('Template "'."bootstrap_base_layout.html.twig".'" cannot be used as a trait.', 1, $this->source);
|
|
}
|
|
$_trait_0_blocks = $_trait_0->unwrap()->getBlocks();
|
|
|
|
$this->traits = $_trait_0_blocks;
|
|
|
|
$this->blocks = array_merge(
|
|
$this->traits,
|
|
[
|
|
'money_widget' => [$this, 'block_money_widget'],
|
|
'date_widget' => [$this, 'block_date_widget'],
|
|
'time_widget' => [$this, 'block_time_widget'],
|
|
'datetime_widget' => [$this, 'block_datetime_widget'],
|
|
'dateinterval_widget' => [$this, 'block_dateinterval_widget'],
|
|
'percent_widget' => [$this, 'block_percent_widget'],
|
|
'form_widget_simple' => [$this, 'block_form_widget_simple'],
|
|
'widget_attributes' => [$this, 'block_widget_attributes'],
|
|
'button_widget' => [$this, 'block_button_widget'],
|
|
'submit_widget' => [$this, 'block_submit_widget'],
|
|
'checkbox_widget' => [$this, 'block_checkbox_widget'],
|
|
'radio_widget' => [$this, 'block_radio_widget'],
|
|
'choice_widget_collapsed' => [$this, 'block_choice_widget_collapsed'],
|
|
'choice_widget_expanded' => [$this, 'block_choice_widget_expanded'],
|
|
'form_label' => [$this, 'block_form_label'],
|
|
'checkbox_radio_label' => [$this, 'block_checkbox_radio_label'],
|
|
'form_row' => [$this, 'block_form_row'],
|
|
'button_row' => [$this, 'block_button_row'],
|
|
'form_errors' => [$this, 'block_form_errors'],
|
|
'form_help' => [$this, 'block_form_help'],
|
|
]
|
|
);
|
|
}
|
|
|
|
protected function doDisplay(array $context, array $blocks = []): iterable
|
|
{
|
|
$macros = $this->macros;
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "bootstrap_5_layout.html.twig"));
|
|
|
|
// line 2
|
|
yield "
|
|
";
|
|
// line 4
|
|
yield "
|
|
";
|
|
// line 5
|
|
yield from $this->unwrap()->yieldBlock('money_widget', $context, $blocks);
|
|
// line 22
|
|
yield "
|
|
";
|
|
// line 23
|
|
yield from $this->unwrap()->yieldBlock('date_widget', $context, $blocks);
|
|
// line 53
|
|
yield "
|
|
";
|
|
// line 54
|
|
yield from $this->unwrap()->yieldBlock('time_widget', $context, $blocks);
|
|
// line 92
|
|
yield "
|
|
";
|
|
// line 93
|
|
yield from $this->unwrap()->yieldBlock('datetime_widget', $context, $blocks);
|
|
// line 109
|
|
yield "
|
|
";
|
|
// line 110
|
|
yield from $this->unwrap()->yieldBlock('dateinterval_widget', $context, $blocks);
|
|
// line 165
|
|
yield "
|
|
";
|
|
// line 166
|
|
yield from $this->unwrap()->yieldBlock('percent_widget', $context, $blocks);
|
|
// line 176
|
|
yield "
|
|
";
|
|
// line 177
|
|
yield from $this->unwrap()->yieldBlock('form_widget_simple', $context, $blocks);
|
|
// line 194
|
|
yield from $this->unwrap()->yieldBlock('widget_attributes', $context, $blocks);
|
|
// line 201
|
|
yield from $this->unwrap()->yieldBlock('button_widget', $context, $blocks);
|
|
// line 206
|
|
yield from $this->unwrap()->yieldBlock('submit_widget', $context, $blocks);
|
|
// line 211
|
|
yield from $this->unwrap()->yieldBlock('checkbox_widget', $context, $blocks);
|
|
// line 235
|
|
yield from $this->unwrap()->yieldBlock('radio_widget', $context, $blocks);
|
|
// line 256
|
|
yield from $this->unwrap()->yieldBlock('choice_widget_collapsed', $context, $blocks);
|
|
// line 261
|
|
yield from $this->unwrap()->yieldBlock('choice_widget_expanded', $context, $blocks);
|
|
// line 272
|
|
yield "
|
|
";
|
|
// line 275
|
|
yield from $this->unwrap()->yieldBlock('form_label', $context, $blocks);
|
|
// line 294
|
|
yield from $this->unwrap()->yieldBlock('checkbox_radio_label', $context, $blocks);
|
|
// line 320
|
|
yield "
|
|
";
|
|
// line 323
|
|
yield from $this->unwrap()->yieldBlock('form_row', $context, $blocks);
|
|
// line 345
|
|
yield from $this->unwrap()->yieldBlock('button_row', $context, $blocks);
|
|
// line 350
|
|
yield "
|
|
";
|
|
// line 353
|
|
yield from $this->unwrap()->yieldBlock('form_errors', $context, $blocks);
|
|
// line 360
|
|
yield "
|
|
";
|
|
// line 363
|
|
yield from $this->unwrap()->yieldBlock('form_help', $context, $blocks);
|
|
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
|
|
|
|
yield from [];
|
|
}
|
|
|
|
// line 5
|
|
/**
|
|
* @return iterable<null|scalar|\Stringable>
|
|
*/
|
|
public function block_money_widget(array $context, array $blocks = []): iterable
|
|
{
|
|
$macros = $this->macros;
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "money_widget"));
|
|
|
|
// line 6
|
|
$context["prepend"] = !(is_string($__internal_compile_0 = (isset($context["money_pattern"]) || array_key_exists("money_pattern", $context) ? $context["money_pattern"] : (function () { throw new RuntimeError('Variable "money_pattern" does not exist.', 6, $this->source); })())) && is_string($__internal_compile_1 = "{{") && str_starts_with($__internal_compile_0, $__internal_compile_1));
|
|
// line 7
|
|
$context["append"] = !(is_string($__internal_compile_2 = (isset($context["money_pattern"]) || array_key_exists("money_pattern", $context) ? $context["money_pattern"] : (function () { throw new RuntimeError('Variable "money_pattern" does not exist.', 7, $this->source); })())) && is_string($__internal_compile_3 = "}}") && str_ends_with($__internal_compile_2, $__internal_compile_3));
|
|
// line 8
|
|
if (((isset($context["prepend"]) || array_key_exists("prepend", $context) ? $context["prepend"] : (function () { throw new RuntimeError('Variable "prepend" does not exist.', 8, $this->source); })()) || (isset($context["append"]) || array_key_exists("append", $context) ? $context["append"] : (function () { throw new RuntimeError('Variable "append" does not exist.', 8, $this->source); })()))) {
|
|
// line 9
|
|
yield "<div class=\"input-group ";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((array_key_exists("group_class", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["group_class"]) || array_key_exists("group_class", $context) ? $context["group_class"] : (function () { throw new RuntimeError('Variable "group_class" does not exist.', 9, $this->source); })()), "")) : ("")), "html", null, true);
|
|
yield "\">";
|
|
// line 10
|
|
if ((isset($context["prepend"]) || array_key_exists("prepend", $context) ? $context["prepend"] : (function () { throw new RuntimeError('Variable "prepend" does not exist.', 10, $this->source); })())) {
|
|
// line 11
|
|
yield "<span class=\"input-group-text\">";
|
|
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->encodeCurrency($this->env, (isset($context["money_pattern"]) || array_key_exists("money_pattern", $context) ? $context["money_pattern"] : (function () { throw new RuntimeError('Variable "money_pattern" does not exist.', 11, $this->source); })()));
|
|
yield "</span>";
|
|
}
|
|
// line 13
|
|
yield from $this->unwrap()->yieldBlock("form_widget_simple", $context, $blocks);
|
|
// line 14
|
|
if ((isset($context["append"]) || array_key_exists("append", $context) ? $context["append"] : (function () { throw new RuntimeError('Variable "append" does not exist.', 14, $this->source); })())) {
|
|
// line 15
|
|
yield "<span class=\"input-group-text\">";
|
|
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->encodeCurrency($this->env, (isset($context["money_pattern"]) || array_key_exists("money_pattern", $context) ? $context["money_pattern"] : (function () { throw new RuntimeError('Variable "money_pattern" does not exist.', 15, $this->source); })()));
|
|
yield "</span>";
|
|
}
|
|
// line 17
|
|
yield "</div>";
|
|
} else {
|
|
// line 19
|
|
yield from $this->unwrap()->yieldBlock("form_widget_simple", $context, $blocks);
|
|
}
|
|
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
|
|
|
|
yield from [];
|
|
}
|
|
|
|
// line 23
|
|
/**
|
|
* @return iterable<null|scalar|\Stringable>
|
|
*/
|
|
public function block_date_widget(array $context, array $blocks = []): iterable
|
|
{
|
|
$macros = $this->macros;
|
|
$__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 24
|
|
if (((isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 24, $this->source); })()) == "single_text")) {
|
|
// line 25
|
|
yield from $this->unwrap()->yieldBlock("form_widget_simple", $context, $blocks);
|
|
} else {
|
|
// line 27
|
|
if ( !(isset($context["valid"]) || array_key_exists("valid", $context) ? $context["valid"] : (function () { throw new RuntimeError('Variable "valid" does not exist.', 27, $this->source); })())) {
|
|
// line 28
|
|
yield " ";
|
|
$context["attr"] = Twig\Extension\CoreExtension::merge((isset($context["attr"]) || array_key_exists("attr", $context) ? $context["attr"] : (function () { throw new RuntimeError('Variable "attr" does not exist.', 28, $this->source); })()), ["class" => Twig\Extension\CoreExtension::trim((((CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", true, true, false, 28)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", false, false, false, 28), "")) : ("")) . " is-invalid"))]);
|
|
// line 29
|
|
$context["valid"] = true;
|
|
// line 30
|
|
yield " ";
|
|
}
|
|
// line 31
|
|
if (( !array_key_exists("datetime", $context) || !(isset($context["datetime"]) || array_key_exists("datetime", $context) ? $context["datetime"] : (function () { throw new RuntimeError('Variable "datetime" does not exist.', 31, $this->source); })()))) {
|
|
// line 32
|
|
yield "<div ";
|
|
yield from $this->unwrap()->yieldBlock("widget_container_attributes", $context, $blocks);
|
|
yield ">";
|
|
}
|
|
// line 34
|
|
if ( !((isset($context["label"]) || array_key_exists("label", $context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.', 34, $this->source); })()) === false)) {
|
|
// line 35
|
|
yield "<div class=\"visually-hidden\">";
|
|
// line 36
|
|
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.', 36, $this->source); })()), "year", [], "any", false, false, false, 36), 'label');
|
|
// line 37
|
|
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.', 37, $this->source); })()), "month", [], "any", false, false, false, 37), 'label');
|
|
// line 38
|
|
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.', 38, $this->source); })()), "day", [], "any", false, false, false, 38), 'label');
|
|
// line 39
|
|
yield "</div>";
|
|
}
|
|
// line 41
|
|
yield "<div class=\"input-group\">";
|
|
// line 42
|
|
yield Twig\Extension\CoreExtension::replace((isset($context["date_pattern"]) || array_key_exists("date_pattern", $context) ? $context["date_pattern"] : (function () { throw new RuntimeError('Variable "date_pattern" does not exist.', 42, $this->source); })()), ["{{ year }}" => // line 43
|
|
$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.', 43, $this->source); })()), "year", [], "any", false, false, false, 43), 'widget'), "{{ month }}" => // line 44
|
|
$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.', 44, $this->source); })()), "month", [], "any", false, false, false, 44), 'widget'), "{{ day }}" => // line 45
|
|
$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.', 45, $this->source); })()), "day", [], "any", false, false, false, 45), 'widget')]);
|
|
// line 47
|
|
yield "</div>";
|
|
// line 48
|
|
if (( !array_key_exists("datetime", $context) || !(isset($context["datetime"]) || array_key_exists("datetime", $context) ? $context["datetime"] : (function () { throw new RuntimeError('Variable "datetime" does not exist.', 48, $this->source); })()))) {
|
|
// line 49
|
|
yield "</div>";
|
|
}
|
|
}
|
|
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
|
|
|
|
yield from [];
|
|
}
|
|
|
|
// line 54
|
|
/**
|
|
* @return iterable<null|scalar|\Stringable>
|
|
*/
|
|
public function block_time_widget(array $context, array $blocks = []): iterable
|
|
{
|
|
$macros = $this->macros;
|
|
$__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 55
|
|
if (((isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 55, $this->source); })()) == "single_text")) {
|
|
// line 56
|
|
yield from $this->unwrap()->yieldBlock("form_widget_simple", $context, $blocks);
|
|
} else {
|
|
// line 58
|
|
if ( !(isset($context["valid"]) || array_key_exists("valid", $context) ? $context["valid"] : (function () { throw new RuntimeError('Variable "valid" does not exist.', 58, $this->source); })())) {
|
|
// line 59
|
|
yield " ";
|
|
$context["attr"] = Twig\Extension\CoreExtension::merge((isset($context["attr"]) || array_key_exists("attr", $context) ? $context["attr"] : (function () { throw new RuntimeError('Variable "attr" does not exist.', 59, $this->source); })()), ["class" => Twig\Extension\CoreExtension::trim((((CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", true, true, false, 59)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", false, false, false, 59), "")) : ("")) . " is-invalid"))]);
|
|
// line 60
|
|
$context["valid"] = true;
|
|
// line 61
|
|
yield " ";
|
|
}
|
|
// line 62
|
|
if (( !array_key_exists("datetime", $context) || (false == (isset($context["datetime"]) || array_key_exists("datetime", $context) ? $context["datetime"] : (function () { throw new RuntimeError('Variable "datetime" does not exist.', 62, $this->source); })())))) {
|
|
// line 63
|
|
yield "<div ";
|
|
yield from $this->unwrap()->yieldBlock("widget_container_attributes", $context, $blocks);
|
|
yield ">";
|
|
}
|
|
// line 65
|
|
if ( !((isset($context["label"]) || array_key_exists("label", $context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.', 65, $this->source); })()) === false)) {
|
|
// line 66
|
|
yield "<div class=\"visually-hidden\">";
|
|
// line 67
|
|
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.', 67, $this->source); })()), "hour", [], "any", false, false, false, 67), 'label');
|
|
// line 68
|
|
if ((isset($context["with_minutes"]) || array_key_exists("with_minutes", $context) ? $context["with_minutes"] : (function () { throw new RuntimeError('Variable "with_minutes" does not exist.', 68, $this->source); })())) {
|
|
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.', 68, $this->source); })()), "minute", [], "any", false, false, false, 68), 'label');
|
|
}
|
|
// line 69
|
|
if ((isset($context["with_seconds"]) || array_key_exists("with_seconds", $context) ? $context["with_seconds"] : (function () { throw new RuntimeError('Variable "with_seconds" does not exist.', 69, $this->source); })())) {
|
|
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.', 69, $this->source); })()), "second", [], "any", false, false, false, 69), 'label');
|
|
}
|
|
// line 70
|
|
yield "</div>";
|
|
}
|
|
// line 72
|
|
if (((isset($context["with_minutes"]) || array_key_exists("with_minutes", $context) ? $context["with_minutes"] : (function () { throw new RuntimeError('Variable "with_minutes" does not exist.', 72, $this->source); })()) || (isset($context["with_seconds"]) || array_key_exists("with_seconds", $context) ? $context["with_seconds"] : (function () { throw new RuntimeError('Variable "with_seconds" does not exist.', 72, $this->source); })()))) {
|
|
// line 73
|
|
yield " <div class=\"input-group\">
|
|
";
|
|
}
|
|
// line 75
|
|
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.', 75, $this->source); })()), "hour", [], "any", false, false, false, 75), 'widget');
|
|
// line 76
|
|
if ((isset($context["with_minutes"]) || array_key_exists("with_minutes", $context) ? $context["with_minutes"] : (function () { throw new RuntimeError('Variable "with_minutes" does not exist.', 76, $this->source); })())) {
|
|
// line 77
|
|
yield "<span class=\"input-group-text\">:</span>";
|
|
// line 78
|
|
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.', 78, $this->source); })()), "minute", [], "any", false, false, false, 78), 'widget');
|
|
}
|
|
// line 80
|
|
if ((isset($context["with_seconds"]) || array_key_exists("with_seconds", $context) ? $context["with_seconds"] : (function () { throw new RuntimeError('Variable "with_seconds" does not exist.', 80, $this->source); })())) {
|
|
// line 81
|
|
yield "<span class=\"input-group-text\">:</span>";
|
|
// line 82
|
|
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.', 82, $this->source); })()), "second", [], "any", false, false, false, 82), 'widget');
|
|
}
|
|
// line 84
|
|
if (((isset($context["with_minutes"]) || array_key_exists("with_minutes", $context) ? $context["with_minutes"] : (function () { throw new RuntimeError('Variable "with_minutes" does not exist.', 84, $this->source); })()) || (isset($context["with_seconds"]) || array_key_exists("with_seconds", $context) ? $context["with_seconds"] : (function () { throw new RuntimeError('Variable "with_seconds" does not exist.', 84, $this->source); })()))) {
|
|
// line 85
|
|
yield " </div>
|
|
";
|
|
}
|
|
// line 87
|
|
if (( !array_key_exists("datetime", $context) || (false == (isset($context["datetime"]) || array_key_exists("datetime", $context) ? $context["datetime"] : (function () { throw new RuntimeError('Variable "datetime" does not exist.', 87, $this->source); })())))) {
|
|
// line 88
|
|
yield "</div>";
|
|
}
|
|
}
|
|
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
|
|
|
|
yield from [];
|
|
}
|
|
|
|
// line 93
|
|
/**
|
|
* @return iterable<null|scalar|\Stringable>
|
|
*/
|
|
public function block_datetime_widget(array $context, array $blocks = []): iterable
|
|
{
|
|
$macros = $this->macros;
|
|
$__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 94
|
|
if (((isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 94, $this->source); })()) == "single_text")) {
|
|
// line 95
|
|
yield from $this->unwrap()->yieldBlock("form_widget_simple", $context, $blocks);
|
|
} else {
|
|
// line 97
|
|
if ( !(isset($context["valid"]) || array_key_exists("valid", $context) ? $context["valid"] : (function () { throw new RuntimeError('Variable "valid" does not exist.', 97, $this->source); })())) {
|
|
// line 98
|
|
yield " ";
|
|
$context["attr"] = Twig\Extension\CoreExtension::merge((isset($context["attr"]) || array_key_exists("attr", $context) ? $context["attr"] : (function () { throw new RuntimeError('Variable "attr" does not exist.', 98, $this->source); })()), ["class" => Twig\Extension\CoreExtension::trim((((CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", true, true, false, 98)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", false, false, false, 98), "")) : ("")) . " is-invalid"))]);
|
|
// line 99
|
|
$context["valid"] = true;
|
|
// line 100
|
|
yield " ";
|
|
}
|
|
// line 101
|
|
yield " <div ";
|
|
yield from $this->unwrap()->yieldBlock("widget_container_attributes", $context, $blocks);
|
|
yield ">";
|
|
// line 102
|
|
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.', 102, $this->source); })()), "date", [], "any", false, false, false, 102), 'widget', ["datetime" => true]);
|
|
// line 103
|
|
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.', 103, $this->source); })()), "date", [], "any", false, false, false, 103), 'errors');
|
|
// line 104
|
|
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.', 104, $this->source); })()), "time", [], "any", false, false, false, 104), 'widget', ["datetime" => true]);
|
|
// line 105
|
|
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.', 105, $this->source); })()), "time", [], "any", false, false, false, 105), 'errors');
|
|
// line 106
|
|
yield "</div>";
|
|
}
|
|
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
|
|
|
|
yield from [];
|
|
}
|
|
|
|
// line 110
|
|
/**
|
|
* @return iterable<null|scalar|\Stringable>
|
|
*/
|
|
public function block_dateinterval_widget(array $context, array $blocks = []): iterable
|
|
{
|
|
$macros = $this->macros;
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "dateinterval_widget"));
|
|
|
|
// line 111
|
|
if (((isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 111, $this->source); })()) == "single_text")) {
|
|
// line 112
|
|
yield from $this->unwrap()->yieldBlock("form_widget_simple", $context, $blocks);
|
|
} else {
|
|
// line 114
|
|
if ( !(isset($context["valid"]) || array_key_exists("valid", $context) ? $context["valid"] : (function () { throw new RuntimeError('Variable "valid" does not exist.', 114, $this->source); })())) {
|
|
// line 115
|
|
yield " ";
|
|
$context["attr"] = Twig\Extension\CoreExtension::merge((isset($context["attr"]) || array_key_exists("attr", $context) ? $context["attr"] : (function () { throw new RuntimeError('Variable "attr" does not exist.', 115, $this->source); })()), ["class" => Twig\Extension\CoreExtension::trim((((CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", true, true, false, 115)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", false, false, false, 115), "")) : ("")) . " is-invalid"))]);
|
|
// line 116
|
|
$context["valid"] = true;
|
|
// line 117
|
|
yield " ";
|
|
}
|
|
// line 118
|
|
yield " <div ";
|
|
yield from $this->unwrap()->yieldBlock("widget_container_attributes", $context, $blocks);
|
|
yield ">";
|
|
// line 119
|
|
if ((isset($context["with_years"]) || array_key_exists("with_years", $context) ? $context["with_years"] : (function () { throw new RuntimeError('Variable "with_years" does not exist.', 119, $this->source); })())) {
|
|
// line 120
|
|
yield "<div class=\"col-auto mb-3\">
|
|
";
|
|
// line 121
|
|
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.', 121, $this->source); })()), "years", [], "any", false, false, false, 121), 'label');
|
|
yield "
|
|
";
|
|
// line 122
|
|
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.', 122, $this->source); })()), "years", [], "any", false, false, false, 122), 'widget');
|
|
yield "
|
|
</div>";
|
|
}
|
|
// line 125
|
|
if ((isset($context["with_months"]) || array_key_exists("with_months", $context) ? $context["with_months"] : (function () { throw new RuntimeError('Variable "with_months" does not exist.', 125, $this->source); })())) {
|
|
// line 126
|
|
yield "<div class=\"col-auto mb-3\">
|
|
";
|
|
// line 127
|
|
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.', 127, $this->source); })()), "months", [], "any", false, false, false, 127), 'label');
|
|
yield "
|
|
";
|
|
// line 128
|
|
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.', 128, $this->source); })()), "months", [], "any", false, false, false, 128), 'widget');
|
|
yield "
|
|
</div>";
|
|
}
|
|
// line 131
|
|
if ((isset($context["with_weeks"]) || array_key_exists("with_weeks", $context) ? $context["with_weeks"] : (function () { throw new RuntimeError('Variable "with_weeks" does not exist.', 131, $this->source); })())) {
|
|
// line 132
|
|
yield "<div class=\"col-auto mb-3\">
|
|
";
|
|
// line 133
|
|
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.', 133, $this->source); })()), "weeks", [], "any", false, false, false, 133), 'label');
|
|
yield "
|
|
";
|
|
// line 134
|
|
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.', 134, $this->source); })()), "weeks", [], "any", false, false, false, 134), 'widget');
|
|
yield "
|
|
</div>";
|
|
}
|
|
// line 137
|
|
if ((isset($context["with_days"]) || array_key_exists("with_days", $context) ? $context["with_days"] : (function () { throw new RuntimeError('Variable "with_days" does not exist.', 137, $this->source); })())) {
|
|
// line 138
|
|
yield "<div class=\"col-auto mb-3\">
|
|
";
|
|
// line 139
|
|
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.', 139, $this->source); })()), "days", [], "any", false, false, false, 139), 'label');
|
|
yield "
|
|
";
|
|
// line 140
|
|
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.', 140, $this->source); })()), "days", [], "any", false, false, false, 140), 'widget');
|
|
yield "
|
|
</div>";
|
|
}
|
|
// line 143
|
|
if ((isset($context["with_hours"]) || array_key_exists("with_hours", $context) ? $context["with_hours"] : (function () { throw new RuntimeError('Variable "with_hours" does not exist.', 143, $this->source); })())) {
|
|
// line 144
|
|
yield "<div class=\"col-auto mb-3\">
|
|
";
|
|
// line 145
|
|
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.', 145, $this->source); })()), "hours", [], "any", false, false, false, 145), 'label');
|
|
yield "
|
|
";
|
|
// line 146
|
|
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.', 146, $this->source); })()), "hours", [], "any", false, false, false, 146), 'widget');
|
|
yield "
|
|
</div>";
|
|
}
|
|
// line 149
|
|
if ((isset($context["with_minutes"]) || array_key_exists("with_minutes", $context) ? $context["with_minutes"] : (function () { throw new RuntimeError('Variable "with_minutes" does not exist.', 149, $this->source); })())) {
|
|
// line 150
|
|
yield "<div class=\"col-auto mb-3\">
|
|
";
|
|
// line 151
|
|
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.', 151, $this->source); })()), "minutes", [], "any", false, false, false, 151), 'label');
|
|
yield "
|
|
";
|
|
// line 152
|
|
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.', 152, $this->source); })()), "minutes", [], "any", false, false, false, 152), 'widget');
|
|
yield "
|
|
</div>";
|
|
}
|
|
// line 155
|
|
if ((isset($context["with_seconds"]) || array_key_exists("with_seconds", $context) ? $context["with_seconds"] : (function () { throw new RuntimeError('Variable "with_seconds" does not exist.', 155, $this->source); })())) {
|
|
// line 156
|
|
yield "<div class=\"col-auto mb-3\">
|
|
";
|
|
// line 157
|
|
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.', 157, $this->source); })()), "seconds", [], "any", false, false, false, 157), 'label');
|
|
yield "
|
|
";
|
|
// line 158
|
|
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.', 158, $this->source); })()), "seconds", [], "any", false, false, false, 158), 'widget');
|
|
yield "
|
|
</div>";
|
|
}
|
|
// line 161
|
|
if ((isset($context["with_invert"]) || array_key_exists("with_invert", $context) ? $context["with_invert"] : (function () { throw new RuntimeError('Variable "with_invert" does not exist.', 161, $this->source); })())) {
|
|
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.', 161, $this->source); })()), "invert", [], "any", false, false, false, 161), 'widget');
|
|
}
|
|
// line 162
|
|
yield "</div>";
|
|
}
|
|
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
|
|
|
|
yield from [];
|
|
}
|
|
|
|
// line 166
|
|
/**
|
|
* @return iterable<null|scalar|\Stringable>
|
|
*/
|
|
public function block_percent_widget(array $context, array $blocks = []): iterable
|
|
{
|
|
$macros = $this->macros;
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "percent_widget"));
|
|
|
|
// line 167
|
|
if ((isset($context["symbol"]) || array_key_exists("symbol", $context) ? $context["symbol"] : (function () { throw new RuntimeError('Variable "symbol" does not exist.', 167, $this->source); })())) {
|
|
// line 168
|
|
yield "<div class=\"input-group\">";
|
|
// line 169
|
|
yield from $this->unwrap()->yieldBlock("form_widget_simple", $context, $blocks);
|
|
// line 170
|
|
yield "<span class=\"input-group-text\">";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((array_key_exists("symbol", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["symbol"]) || array_key_exists("symbol", $context) ? $context["symbol"] : (function () { throw new RuntimeError('Variable "symbol" does not exist.', 170, $this->source); })()), "%")) : ("%")), "html", null, true);
|
|
yield "</span>
|
|
</div>";
|
|
} else {
|
|
// line 173
|
|
yield from $this->unwrap()->yieldBlock("form_widget_simple", $context, $blocks);
|
|
}
|
|
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
|
|
|
|
yield from [];
|
|
}
|
|
|
|
// line 177
|
|
/**
|
|
* @return iterable<null|scalar|\Stringable>
|
|
*/
|
|
public function block_form_widget_simple(array $context, array $blocks = []): iterable
|
|
{
|
|
$macros = $this->macros;
|
|
$__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 178
|
|
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.', 178, $this->source); })()) != "hidden"))) {
|
|
// line 179
|
|
$context["widget_class"] = " form-control";
|
|
// line 180
|
|
if ((((array_key_exists("type", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 180, $this->source); })()), "")) : ("")) == "color")) {
|
|
// line 181
|
|
$context["widget_class"] = ((isset($context["widget_class"]) || array_key_exists("widget_class", $context) ? $context["widget_class"] : (function () { throw new RuntimeError('Variable "widget_class" does not exist.', 181, $this->source); })()) . " form-control-color");
|
|
} elseif (((( // line 182
|
|
array_key_exists("type", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 182, $this->source); })()), "")) : ("")) == "range")) {
|
|
// line 183
|
|
$context["widget_class"] = " form-range";
|
|
}
|
|
// line 185
|
|
$context["attr"] = Twig\Extension\CoreExtension::merge((isset($context["attr"]) || array_key_exists("attr", $context) ? $context["attr"] : (function () { throw new RuntimeError('Variable "attr" does not exist.', 185, $this->source); })()), ["class" => Twig\Extension\CoreExtension::trim((((CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", true, true, false, 185)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", false, false, false, 185), "")) : ("")) . (isset($context["widget_class"]) || array_key_exists("widget_class", $context) ? $context["widget_class"] : (function () { throw new RuntimeError('Variable "widget_class" does not exist.', 185, $this->source); })())))]);
|
|
}
|
|
// line 187
|
|
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.', 187, $this->source); })()), ["range", "color"]))) {
|
|
// line 188
|
|
yield " ";
|
|
// line 189
|
|
yield " ";
|
|
$context["required"] = false;
|
|
// line 190
|
|
yield " ";
|
|
}
|
|
// line 191
|
|
yield from $this->yieldParentBlock("form_widget_simple", $context, $blocks);
|
|
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
|
|
|
|
yield from [];
|
|
}
|
|
|
|
// line 194
|
|
/**
|
|
* @return iterable<null|scalar|\Stringable>
|
|
*/
|
|
public function block_widget_attributes(array $context, array $blocks = []): iterable
|
|
{
|
|
$macros = $this->macros;
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "widget_attributes"));
|
|
|
|
// line 195
|
|
if ( !(isset($context["valid"]) || array_key_exists("valid", $context) ? $context["valid"] : (function () { throw new RuntimeError('Variable "valid" does not exist.', 195, $this->source); })())) {
|
|
// line 196
|
|
yield " ";
|
|
$context["attr"] = Twig\Extension\CoreExtension::merge((isset($context["attr"]) || array_key_exists("attr", $context) ? $context["attr"] : (function () { throw new RuntimeError('Variable "attr" does not exist.', 196, $this->source); })()), ["class" => Twig\Extension\CoreExtension::trim((((CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", true, true, false, 196)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", false, false, false, 196), "")) : ("")) . " is-invalid"))]);
|
|
// line 197
|
|
yield " ";
|
|
}
|
|
// line 198
|
|
yield from $this->yieldParentBlock("widget_attributes", $context, $blocks);
|
|
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
|
|
|
|
yield from [];
|
|
}
|
|
|
|
// line 201
|
|
/**
|
|
* @return iterable<null|scalar|\Stringable>
|
|
*/
|
|
public function block_button_widget(array $context, array $blocks = []): iterable
|
|
{
|
|
$macros = $this->macros;
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "button_widget"));
|
|
|
|
// line 202
|
|
$context["attr"] = Twig\Extension\CoreExtension::merge((isset($context["attr"]) || array_key_exists("attr", $context) ? $context["attr"] : (function () { throw new RuntimeError('Variable "attr" does not exist.', 202, $this->source); })()), ["class" => Twig\Extension\CoreExtension::trim((((CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", true, true, false, 202)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", false, false, false, 202), "btn-secondary")) : ("btn-secondary")) . " btn"))]);
|
|
// line 203
|
|
yield from $this->yieldParentBlock("button_widget", $context, $blocks);
|
|
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
|
|
|
|
yield from [];
|
|
}
|
|
|
|
// line 206
|
|
/**
|
|
* @return iterable<null|scalar|\Stringable>
|
|
*/
|
|
public function block_submit_widget(array $context, array $blocks = []): iterable
|
|
{
|
|
$macros = $this->macros;
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "submit_widget"));
|
|
|
|
// line 207
|
|
$context["attr"] = Twig\Extension\CoreExtension::merge((isset($context["attr"]) || array_key_exists("attr", $context) ? $context["attr"] : (function () { throw new RuntimeError('Variable "attr" does not exist.', 207, $this->source); })()), ["class" => Twig\Extension\CoreExtension::trim(((CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", true, true, false, 207)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", false, false, false, 207), "btn-primary")) : ("btn-primary")))]);
|
|
// line 208
|
|
yield from $this->yieldParentBlock("submit_widget", $context, $blocks);
|
|
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
|
|
|
|
yield from [];
|
|
}
|
|
|
|
// line 211
|
|
/**
|
|
* @return iterable<null|scalar|\Stringable>
|
|
*/
|
|
public function block_checkbox_widget(array $context, array $blocks = []): iterable
|
|
{
|
|
$macros = $this->macros;
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "checkbox_widget"));
|
|
|
|
// line 212
|
|
$context["attr_class"] = ((array_key_exists("attr_class", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["attr_class"]) || array_key_exists("attr_class", $context) ? $context["attr_class"] : (function () { throw new RuntimeError('Variable "attr_class" does not exist.', 212, $this->source); })()), ((CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", true, true, false, 212)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", false, false, false, 212), "")) : ("")))) : (((CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", true, true, false, 212)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", false, false, false, 212), "")) : (""))));
|
|
// line 213
|
|
$context["row_class"] = "";
|
|
// line 214
|
|
if (!CoreExtension::inFilter("btn-check", (isset($context["attr_class"]) || array_key_exists("attr_class", $context) ? $context["attr_class"] : (function () { throw new RuntimeError('Variable "attr_class" does not exist.', 214, $this->source); })()))) {
|
|
// line 215
|
|
$context["attr_class"] = ((isset($context["attr_class"]) || array_key_exists("attr_class", $context) ? $context["attr_class"] : (function () { throw new RuntimeError('Variable "attr_class" does not exist.', 215, $this->source); })()) . " form-check-input");
|
|
// line 216
|
|
$context["row_class"] = "form-check";
|
|
}
|
|
// line 218
|
|
$context["attr"] = Twig\Extension\CoreExtension::merge((isset($context["attr"]) || array_key_exists("attr", $context) ? $context["attr"] : (function () { throw new RuntimeError('Variable "attr" does not exist.', 218, $this->source); })()), ["class" => Twig\Extension\CoreExtension::trim((isset($context["attr_class"]) || array_key_exists("attr_class", $context) ? $context["attr_class"] : (function () { throw new RuntimeError('Variable "attr_class" does not exist.', 218, $this->source); })()))]);
|
|
// line 219
|
|
$context["parent_label_class"] = ((array_key_exists("parent_label_class", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["parent_label_class"]) || array_key_exists("parent_label_class", $context) ? $context["parent_label_class"] : (function () { throw new RuntimeError('Variable "parent_label_class" does not exist.', 219, $this->source); })()), ((CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", true, true, false, 219)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", false, false, false, 219), "")) : ("")))) : (((CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", true, true, false, 219)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", false, false, false, 219), "")) : (""))));
|
|
// line 220
|
|
if (CoreExtension::inFilter("checkbox-inline", (isset($context["parent_label_class"]) || array_key_exists("parent_label_class", $context) ? $context["parent_label_class"] : (function () { throw new RuntimeError('Variable "parent_label_class" does not exist.', 220, $this->source); })()))) {
|
|
// line 221
|
|
$context["row_class"] = ((isset($context["row_class"]) || array_key_exists("row_class", $context) ? $context["row_class"] : (function () { throw new RuntimeError('Variable "row_class" does not exist.', 221, $this->source); })()) . " form-check-inline");
|
|
}
|
|
// line 223
|
|
if (CoreExtension::inFilter("checkbox-switch", (isset($context["parent_label_class"]) || array_key_exists("parent_label_class", $context) ? $context["parent_label_class"] : (function () { throw new RuntimeError('Variable "parent_label_class" does not exist.', 223, $this->source); })()))) {
|
|
// line 224
|
|
$context["row_class"] = ((isset($context["row_class"]) || array_key_exists("row_class", $context) ? $context["row_class"] : (function () { throw new RuntimeError('Variable "row_class" does not exist.', 224, $this->source); })()) . " form-switch");
|
|
}
|
|
// line 226
|
|
if ( !Twig\Extension\CoreExtension::testEmpty((isset($context["row_class"]) || array_key_exists("row_class", $context) ? $context["row_class"] : (function () { throw new RuntimeError('Variable "row_class" does not exist.', 226, $this->source); })()))) {
|
|
// line 227
|
|
yield "<div class=\"";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["row_class"]) || array_key_exists("row_class", $context) ? $context["row_class"] : (function () { throw new RuntimeError('Variable "row_class" does not exist.', 227, $this->source); })()), "html", null, true);
|
|
yield "\">";
|
|
}
|
|
// line 229
|
|
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.', 229, $this->source); })()), 'label', ["widget" => $this->renderParentBlock("checkbox_widget", $context, $blocks)]);
|
|
// line 230
|
|
if ( !Twig\Extension\CoreExtension::testEmpty((isset($context["row_class"]) || array_key_exists("row_class", $context) ? $context["row_class"] : (function () { throw new RuntimeError('Variable "row_class" does not exist.', 230, $this->source); })()))) {
|
|
// line 231
|
|
yield "</div>";
|
|
}
|
|
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
|
|
|
|
yield from [];
|
|
}
|
|
|
|
// line 235
|
|
/**
|
|
* @return iterable<null|scalar|\Stringable>
|
|
*/
|
|
public function block_radio_widget(array $context, array $blocks = []): iterable
|
|
{
|
|
$macros = $this->macros;
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "radio_widget"));
|
|
|
|
// line 236
|
|
$context["attr_class"] = ((array_key_exists("attr_class", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["attr_class"]) || array_key_exists("attr_class", $context) ? $context["attr_class"] : (function () { throw new RuntimeError('Variable "attr_class" does not exist.', 236, $this->source); })()), ((CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", true, true, false, 236)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", false, false, false, 236), "")) : ("")))) : (((CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", true, true, false, 236)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", false, false, false, 236), "")) : (""))));
|
|
// line 237
|
|
$context["row_class"] = "";
|
|
// line 238
|
|
if (!CoreExtension::inFilter("btn-check", (isset($context["attr_class"]) || array_key_exists("attr_class", $context) ? $context["attr_class"] : (function () { throw new RuntimeError('Variable "attr_class" does not exist.', 238, $this->source); })()))) {
|
|
// line 239
|
|
$context["attr_class"] = ((isset($context["attr_class"]) || array_key_exists("attr_class", $context) ? $context["attr_class"] : (function () { throw new RuntimeError('Variable "attr_class" does not exist.', 239, $this->source); })()) . " form-check-input");
|
|
// line 240
|
|
$context["row_class"] = "form-check";
|
|
}
|
|
// line 242
|
|
$context["attr"] = Twig\Extension\CoreExtension::merge((isset($context["attr"]) || array_key_exists("attr", $context) ? $context["attr"] : (function () { throw new RuntimeError('Variable "attr" does not exist.', 242, $this->source); })()), ["class" => Twig\Extension\CoreExtension::trim((isset($context["attr_class"]) || array_key_exists("attr_class", $context) ? $context["attr_class"] : (function () { throw new RuntimeError('Variable "attr_class" does not exist.', 242, $this->source); })()))]);
|
|
// line 243
|
|
$context["parent_label_class"] = ((array_key_exists("parent_label_class", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["parent_label_class"]) || array_key_exists("parent_label_class", $context) ? $context["parent_label_class"] : (function () { throw new RuntimeError('Variable "parent_label_class" does not exist.', 243, $this->source); })()), ((CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", true, true, false, 243)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", false, false, false, 243), "")) : ("")))) : (((CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", true, true, false, 243)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", false, false, false, 243), "")) : (""))));
|
|
// line 244
|
|
if (CoreExtension::inFilter("radio-inline", (isset($context["parent_label_class"]) || array_key_exists("parent_label_class", $context) ? $context["parent_label_class"] : (function () { throw new RuntimeError('Variable "parent_label_class" does not exist.', 244, $this->source); })()))) {
|
|
// line 245
|
|
$context["row_class"] = ((isset($context["row_class"]) || array_key_exists("row_class", $context) ? $context["row_class"] : (function () { throw new RuntimeError('Variable "row_class" does not exist.', 245, $this->source); })()) . " form-check-inline");
|
|
}
|
|
// line 247
|
|
if ( !Twig\Extension\CoreExtension::testEmpty((isset($context["row_class"]) || array_key_exists("row_class", $context) ? $context["row_class"] : (function () { throw new RuntimeError('Variable "row_class" does not exist.', 247, $this->source); })()))) {
|
|
// line 248
|
|
yield "<div class=\"";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["row_class"]) || array_key_exists("row_class", $context) ? $context["row_class"] : (function () { throw new RuntimeError('Variable "row_class" does not exist.', 248, $this->source); })()), "html", null, true);
|
|
yield "\">";
|
|
}
|
|
// line 250
|
|
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.', 250, $this->source); })()), 'label', ["widget" => $this->renderParentBlock("radio_widget", $context, $blocks)]);
|
|
// line 251
|
|
if ( !Twig\Extension\CoreExtension::testEmpty((isset($context["row_class"]) || array_key_exists("row_class", $context) ? $context["row_class"] : (function () { throw new RuntimeError('Variable "row_class" does not exist.', 251, $this->source); })()))) {
|
|
// line 252
|
|
yield "</div>";
|
|
}
|
|
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
|
|
|
|
yield from [];
|
|
}
|
|
|
|
// line 256
|
|
/**
|
|
* @return iterable<null|scalar|\Stringable>
|
|
*/
|
|
public function block_choice_widget_collapsed(array $context, array $blocks = []): iterable
|
|
{
|
|
$macros = $this->macros;
|
|
$__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 257
|
|
$context["attr"] = Twig\Extension\CoreExtension::merge((isset($context["attr"]) || array_key_exists("attr", $context) ? $context["attr"] : (function () { throw new RuntimeError('Variable "attr" does not exist.', 257, $this->source); })()), ["class" => Twig\Extension\CoreExtension::trim((((CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", true, true, false, 257)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", false, false, false, 257), "")) : ("")) . " form-select"))]);
|
|
// line 258
|
|
yield from $this->yieldParentBlock("choice_widget_collapsed", $context, $blocks);
|
|
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
|
|
|
|
yield from [];
|
|
}
|
|
|
|
// line 261
|
|
/**
|
|
* @return iterable<null|scalar|\Stringable>
|
|
*/
|
|
public function block_choice_widget_expanded(array $context, array $blocks = []): iterable
|
|
{
|
|
$macros = $this->macros;
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "choice_widget_expanded"));
|
|
|
|
// line 262
|
|
yield "<div ";
|
|
yield from $this->unwrap()->yieldBlock("widget_container_attributes", $context, $blocks);
|
|
yield ">";
|
|
// line 263
|
|
$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.', 263, $this->source); })()));
|
|
foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
|
|
// line 264
|
|
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["child"], 'widget', ["parent_label_class" => ((CoreExtension::getAttribute($this->env, $this->source, // line 265
|
|
($context["label_attr"] ?? null), "class", [], "any", true, true, false, 265)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", false, false, false, 265), "")) : ("")), "translation_domain" => // line 266
|
|
(isset($context["choice_translation_domain"]) || array_key_exists("choice_translation_domain", $context) ? $context["choice_translation_domain"] : (function () { throw new RuntimeError('Variable "choice_translation_domain" does not exist.', 266, $this->source); })()), "valid" => // line 267
|
|
(isset($context["valid"]) || array_key_exists("valid", $context) ? $context["valid"] : (function () { throw new RuntimeError('Variable "valid" does not exist.', 267, $this->source); })())]);
|
|
}
|
|
$_parent = $context['_parent'];
|
|
unset($context['_seq'], $context['_key'], $context['child'], $context['_parent']);
|
|
$context = array_intersect_key($context, $_parent) + $_parent;
|
|
// line 270
|
|
yield "</div>";
|
|
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
|
|
|
|
yield from [];
|
|
}
|
|
|
|
// line 275
|
|
/**
|
|
* @return iterable<null|scalar|\Stringable>
|
|
*/
|
|
public function block_form_label(array $context, array $blocks = []): iterable
|
|
{
|
|
$macros = $this->macros;
|
|
$__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 276
|
|
if ( !((isset($context["label"]) || array_key_exists("label", $context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.', 276, $this->source); })()) === false)) {
|
|
// line 277
|
|
$context["parent_label_class"] = ((array_key_exists("parent_label_class", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["parent_label_class"]) || array_key_exists("parent_label_class", $context) ? $context["parent_label_class"] : (function () { throw new RuntimeError('Variable "parent_label_class" does not exist.', 277, $this->source); })()), ((CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", true, true, false, 277)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", false, false, false, 277), "")) : ("")))) : (((CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", true, true, false, 277)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", false, false, false, 277), "")) : (""))));
|
|
// line 278
|
|
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.', 278, $this->source); })()))) {
|
|
// line 279
|
|
$context["element"] = "legend";
|
|
// line 280
|
|
if (!CoreExtension::inFilter("col-form-label", (isset($context["parent_label_class"]) || array_key_exists("parent_label_class", $context) ? $context["parent_label_class"] : (function () { throw new RuntimeError('Variable "parent_label_class" does not exist.', 280, $this->source); })()))) {
|
|
// line 281
|
|
$context["label_attr"] = Twig\Extension\CoreExtension::merge((isset($context["label_attr"]) || array_key_exists("label_attr", $context) ? $context["label_attr"] : (function () { throw new RuntimeError('Variable "label_attr" does not exist.', 281, $this->source); })()), ["class" => Twig\Extension\CoreExtension::trim((((CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", true, true, false, 281)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", false, false, false, 281), "")) : ("")) . " col-form-label"))]);
|
|
}
|
|
} else {
|
|
// line 284
|
|
$context["row_class"] = ((array_key_exists("row_class", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["row_class"]) || array_key_exists("row_class", $context) ? $context["row_class"] : (function () { throw new RuntimeError('Variable "row_class" does not exist.', 284, $this->source); })()), ((CoreExtension::getAttribute($this->env, $this->source, ($context["row_attr"] ?? null), "class", [], "any", true, true, false, 284)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["row_attr"] ?? null), "class", [], "any", false, false, false, 284), "")) : ("")))) : (((CoreExtension::getAttribute($this->env, $this->source, ($context["row_attr"] ?? null), "class", [], "any", true, true, false, 284)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["row_attr"] ?? null), "class", [], "any", false, false, false, 284), "")) : (""))));
|
|
// line 285
|
|
$context["label_attr"] = Twig\Extension\CoreExtension::merge((isset($context["label_attr"]) || array_key_exists("label_attr", $context) ? $context["label_attr"] : (function () { throw new RuntimeError('Variable "label_attr" does not exist.', 285, $this->source); })()), ["for" => (isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 285, $this->source); })())]);
|
|
// line 286
|
|
if (!CoreExtension::inFilter("col-form-label", (isset($context["parent_label_class"]) || array_key_exists("parent_label_class", $context) ? $context["parent_label_class"] : (function () { throw new RuntimeError('Variable "parent_label_class" does not exist.', 286, $this->source); })()))) {
|
|
// line 287
|
|
$context["label_attr"] = Twig\Extension\CoreExtension::merge((isset($context["label_attr"]) || array_key_exists("label_attr", $context) ? $context["label_attr"] : (function () { throw new RuntimeError('Variable "label_attr" does not exist.', 287, $this->source); })()), ["class" => Twig\Extension\CoreExtension::trim((((CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", true, true, false, 287)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", false, false, false, 287), "")) : ("")) . ((CoreExtension::inFilter("input-group", (isset($context["row_class"]) || array_key_exists("row_class", $context) ? $context["row_class"] : (function () { throw new RuntimeError('Variable "row_class" does not exist.', 287, $this->source); })()))) ? (" input-group-text") : (" form-label"))))]);
|
|
}
|
|
}
|
|
}
|
|
// line 291
|
|
yield from $this->yieldParentBlock("form_label", $context, $blocks);
|
|
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
|
|
|
|
yield from [];
|
|
}
|
|
|
|
// line 294
|
|
/**
|
|
* @return iterable<null|scalar|\Stringable>
|
|
*/
|
|
public function block_checkbox_radio_label(array $context, array $blocks = []): iterable
|
|
{
|
|
$macros = $this->macros;
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "checkbox_radio_label"));
|
|
|
|
// line 296
|
|
if (array_key_exists("widget", $context)) {
|
|
// line 297
|
|
$context["label_attr_class"] = ((array_key_exists("label_attr_class", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["label_attr_class"]) || array_key_exists("label_attr_class", $context) ? $context["label_attr_class"] : (function () { throw new RuntimeError('Variable "label_attr_class" does not exist.', 297, $this->source); })()), ((CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", true, true, false, 297)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", false, false, false, 297), "")) : ("")))) : (((CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", true, true, false, 297)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", false, false, false, 297), "")) : (""))));
|
|
// line 298
|
|
if (!CoreExtension::inFilter("btn", (isset($context["label_attr_class"]) || array_key_exists("label_attr_class", $context) ? $context["label_attr_class"] : (function () { throw new RuntimeError('Variable "label_attr_class" does not exist.', 298, $this->source); })()))) {
|
|
// line 299
|
|
$context["label_attr_class"] = ((isset($context["label_attr_class"]) || array_key_exists("label_attr_class", $context) ? $context["label_attr_class"] : (function () { throw new RuntimeError('Variable "label_attr_class" does not exist.', 299, $this->source); })()) . " form-check-label");
|
|
}
|
|
// line 301
|
|
$context["label_attr"] = Twig\Extension\CoreExtension::merge((isset($context["label_attr"]) || array_key_exists("label_attr", $context) ? $context["label_attr"] : (function () { throw new RuntimeError('Variable "label_attr" does not exist.', 301, $this->source); })()), ["class" => Twig\Extension\CoreExtension::trim((isset($context["label_attr_class"]) || array_key_exists("label_attr_class", $context) ? $context["label_attr_class"] : (function () { throw new RuntimeError('Variable "label_attr_class" does not exist.', 301, $this->source); })()))]);
|
|
// line 302
|
|
if ( !(isset($context["compound"]) || array_key_exists("compound", $context) ? $context["compound"] : (function () { throw new RuntimeError('Variable "compound" does not exist.', 302, $this->source); })())) {
|
|
// line 303
|
|
$context["label_attr"] = Twig\Extension\CoreExtension::merge((isset($context["label_attr"]) || array_key_exists("label_attr", $context) ? $context["label_attr"] : (function () { throw new RuntimeError('Variable "label_attr" does not exist.', 303, $this->source); })()), ["for" => (isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 303, $this->source); })())]);
|
|
}
|
|
// line 305
|
|
if ((isset($context["required"]) || array_key_exists("required", $context) ? $context["required"] : (function () { throw new RuntimeError('Variable "required" does not exist.', 305, $this->source); })())) {
|
|
// line 306
|
|
$context["label_attr"] = Twig\Extension\CoreExtension::merge((isset($context["label_attr"]) || array_key_exists("label_attr", $context) ? $context["label_attr"] : (function () { throw new RuntimeError('Variable "label_attr" does not exist.', 306, $this->source); })()), ["class" => Twig\Extension\CoreExtension::trim((((CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", true, true, false, 306)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", false, false, false, 306), "")) : ("")) . " required"))]);
|
|
}
|
|
// line 308
|
|
if (array_key_exists("parent_label_class", $context)) {
|
|
// line 309
|
|
$context["label_attr"] = Twig\Extension\CoreExtension::merge((isset($context["label_attr"]) || array_key_exists("label_attr", $context) ? $context["label_attr"] : (function () { throw new RuntimeError('Variable "label_attr" does not exist.', 309, $this->source); })()), ["class" => Twig\Extension\CoreExtension::trim(Twig\Extension\CoreExtension::replace(((((CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", true, true, false, 309)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", false, false, false, 309), "")) : ("")) . " ") . (isset($context["parent_label_class"]) || array_key_exists("parent_label_class", $context) ? $context["parent_label_class"] : (function () { throw new RuntimeError('Variable "parent_label_class" does not exist.', 309, $this->source); })())), ["checkbox-inline" => "", "radio-inline" => ""]))]);
|
|
}
|
|
// line 312
|
|
yield (isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 312, $this->source); })());
|
|
yield "
|
|
<label";
|
|
// line 313
|
|
$__internal_compile_4 = $context;
|
|
$__internal_compile_5 = ["attr" => (isset($context["label_attr"]) || array_key_exists("label_attr", $context) ? $context["label_attr"] : (function () { throw new RuntimeError('Variable "label_attr" does not exist.', 313, $this->source); })())];
|
|
if (!is_iterable($__internal_compile_5)) {
|
|
throw new RuntimeError('Variables passed to the "with" tag must be a mapping.', 313, $this->getSourceContext());
|
|
}
|
|
$__internal_compile_5 = CoreExtension::toArray($__internal_compile_5);
|
|
$context = $__internal_compile_5 + $context + $this->env->getGlobals();
|
|
yield from $this->unwrap()->yieldBlock("attributes", $context, $blocks);
|
|
$context = $__internal_compile_4;
|
|
yield ">";
|
|
// line 314
|
|
if ( !((isset($context["label"]) || array_key_exists("label", $context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.', 314, $this->source); })()) === false)) {
|
|
// line 315
|
|
yield from $this->unwrap()->yieldBlock("form_label_content", $context, $blocks);
|
|
}
|
|
// line 317
|
|
yield "</label>";
|
|
}
|
|
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
|
|
|
|
yield from [];
|
|
}
|
|
|
|
// line 323
|
|
/**
|
|
* @return iterable<null|scalar|\Stringable>
|
|
*/
|
|
public function block_form_row(array $context, array $blocks = []): iterable
|
|
{
|
|
$macros = $this->macros;
|
|
$__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 324
|
|
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.', 324, $this->source); })()))) {
|
|
// line 325
|
|
$context["element"] = "fieldset";
|
|
}
|
|
// line 327
|
|
$context["widget_attr"] = [];
|
|
// line 328
|
|
if ( !Twig\Extension\CoreExtension::testEmpty((isset($context["help"]) || array_key_exists("help", $context) ? $context["help"] : (function () { throw new RuntimeError('Variable "help" does not exist.', 328, $this->source); })()))) {
|
|
// line 329
|
|
$context["widget_attr"] = ["attr" => ["aria-describedby" => ((isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 329, $this->source); })()) . "_help")]];
|
|
}
|
|
// line 331
|
|
$context["row_class"] = ((array_key_exists("row_class", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["row_class"]) || array_key_exists("row_class", $context) ? $context["row_class"] : (function () { throw new RuntimeError('Variable "row_class" does not exist.', 331, $this->source); })()), Twig\Extension\CoreExtension::trim(((CoreExtension::getAttribute($this->env, $this->source, ($context["row_attr"] ?? null), "class", [], "any", true, true, false, 331)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["row_attr"] ?? null), "class", [], "any", false, false, false, 331), "mb-3")) : ("mb-3"))))) : (Twig\Extension\CoreExtension::trim(((CoreExtension::getAttribute($this->env, $this->source, ($context["row_attr"] ?? null), "class", [], "any", true, true, false, 331)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["row_attr"] ?? null), "class", [], "any", false, false, false, 331), "mb-3")) : ("mb-3")))));
|
|
// line 332
|
|
yield "<";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((array_key_exists("element", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["element"]) || array_key_exists("element", $context) ? $context["element"] : (function () { throw new RuntimeError('Variable "element" does not exist.', 332, $this->source); })()), "div")) : ("div")), "html", null, true);
|
|
$__internal_compile_6 = $context;
|
|
$__internal_compile_7 = ["attr" => Twig\Extension\CoreExtension::merge((isset($context["row_attr"]) || array_key_exists("row_attr", $context) ? $context["row_attr"] : (function () { throw new RuntimeError('Variable "row_attr" does not exist.', 332, $this->source); })()), ["class" => (isset($context["row_class"]) || array_key_exists("row_class", $context) ? $context["row_class"] : (function () { throw new RuntimeError('Variable "row_class" does not exist.', 332, $this->source); })())])];
|
|
if (!is_iterable($__internal_compile_7)) {
|
|
throw new RuntimeError('Variables passed to the "with" tag must be a mapping.', 332, $this->getSourceContext());
|
|
}
|
|
$__internal_compile_7 = CoreExtension::toArray($__internal_compile_7);
|
|
$context = $__internal_compile_7 + $context + $this->env->getGlobals();
|
|
yield from $this->unwrap()->yieldBlock("attributes", $context, $blocks);
|
|
$context = $__internal_compile_6;
|
|
yield ">";
|
|
// line 333
|
|
if (CoreExtension::inFilter("form-floating", (isset($context["row_class"]) || array_key_exists("row_class", $context) ? $context["row_class"] : (function () { throw new RuntimeError('Variable "row_class" does not exist.', 333, $this->source); })()))) {
|
|
// line 334
|
|
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.', 334, $this->source); })()), 'widget', (isset($context["widget_attr"]) || array_key_exists("widget_attr", $context) ? $context["widget_attr"] : (function () { throw new RuntimeError('Variable "widget_attr" does not exist.', 334, $this->source); })()));
|
|
// line 335
|
|
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.', 335, $this->source); })()), 'label');
|
|
} else {
|
|
// line 337
|
|
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.', 337, $this->source); })()), 'label');
|
|
// line 338
|
|
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.', 338, $this->source); })()), 'widget', (isset($context["widget_attr"]) || array_key_exists("widget_attr", $context) ? $context["widget_attr"] : (function () { throw new RuntimeError('Variable "widget_attr" does not exist.', 338, $this->source); })()));
|
|
}
|
|
// line 340
|
|
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.', 340, $this->source); })()), 'help');
|
|
// line 341
|
|
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.', 341, $this->source); })()), 'errors');
|
|
// line 342
|
|
yield "</";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((array_key_exists("element", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["element"]) || array_key_exists("element", $context) ? $context["element"] : (function () { throw new RuntimeError('Variable "element" does not exist.', 342, $this->source); })()), "div")) : ("div")), "html", null, true);
|
|
yield ">";
|
|
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
|
|
|
|
yield from [];
|
|
}
|
|
|
|
// line 345
|
|
/**
|
|
* @return iterable<null|scalar|\Stringable>
|
|
*/
|
|
public function block_button_row(array $context, array $blocks = []): iterable
|
|
{
|
|
$macros = $this->macros;
|
|
$__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 346
|
|
yield "<div";
|
|
$__internal_compile_8 = $context;
|
|
$__internal_compile_9 = ["attr" => Twig\Extension\CoreExtension::merge((isset($context["row_attr"]) || array_key_exists("row_attr", $context) ? $context["row_attr"] : (function () { throw new RuntimeError('Variable "row_attr" does not exist.', 346, $this->source); })()), ["class" => Twig\Extension\CoreExtension::trim(((CoreExtension::getAttribute($this->env, $this->source, ($context["row_attr"] ?? null), "class", [], "any", true, true, false, 346)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["row_attr"] ?? null), "class", [], "any", false, false, false, 346), "mb-3")) : ("mb-3")))])];
|
|
if (!is_iterable($__internal_compile_9)) {
|
|
throw new RuntimeError('Variables passed to the "with" tag must be a mapping.', 346, $this->getSourceContext());
|
|
}
|
|
$__internal_compile_9 = CoreExtension::toArray($__internal_compile_9);
|
|
$context = $__internal_compile_9 + $context + $this->env->getGlobals();
|
|
yield from $this->unwrap()->yieldBlock("attributes", $context, $blocks);
|
|
$context = $__internal_compile_8;
|
|
yield ">";
|
|
// line 347
|
|
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.', 347, $this->source); })()), 'widget');
|
|
// line 348
|
|
yield "</div>";
|
|
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
|
|
|
|
yield from [];
|
|
}
|
|
|
|
// line 353
|
|
/**
|
|
* @return iterable<null|scalar|\Stringable>
|
|
*/
|
|
public function block_form_errors(array $context, array $blocks = []): iterable
|
|
{
|
|
$macros = $this->macros;
|
|
$__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 354
|
|
if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["errors"]) || array_key_exists("errors", $context) ? $context["errors"] : (function () { throw new RuntimeError('Variable "errors" does not exist.', 354, $this->source); })())) > 0)) {
|
|
// line 355
|
|
$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.', 355, $this->source); })()));
|
|
foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
|
|
// line 356
|
|
yield "<div class=\"";
|
|
if ( !Symfony\Bridge\Twig\Extension\twig_is_root_form((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 356, $this->source); })()))) {
|
|
yield "invalid-feedback";
|
|
} else {
|
|
yield "alert alert-danger";
|
|
}
|
|
yield " d-block\">";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["error"], "message", [], "any", false, false, false, 356), "html", null, true);
|
|
yield "</div>";
|
|
}
|
|
$_parent = $context['_parent'];
|
|
unset($context['_seq'], $context['_key'], $context['error'], $context['_parent']);
|
|
$context = array_intersect_key($context, $_parent) + $_parent;
|
|
}
|
|
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
|
|
|
|
yield from [];
|
|
}
|
|
|
|
// line 363
|
|
/**
|
|
* @return iterable<null|scalar|\Stringable>
|
|
*/
|
|
public function block_form_help(array $context, array $blocks = []): iterable
|
|
{
|
|
$macros = $this->macros;
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form_help"));
|
|
|
|
// line 364
|
|
$context["row_class"] = ((CoreExtension::getAttribute($this->env, $this->source, ($context["row_attr"] ?? null), "class", [], "any", true, true, false, 364)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["row_attr"] ?? null), "class", [], "any", false, false, false, 364), "")) : (""));
|
|
// line 365
|
|
$context["help_class"] = " form-text";
|
|
// line 366
|
|
if (CoreExtension::inFilter("input-group", (isset($context["row_class"]) || array_key_exists("row_class", $context) ? $context["row_class"] : (function () { throw new RuntimeError('Variable "row_class" does not exist.', 366, $this->source); })()))) {
|
|
// line 368
|
|
$context["help_class"] = " input-group-text";
|
|
}
|
|
// line 370
|
|
if ( !Twig\Extension\CoreExtension::testEmpty((isset($context["help"]) || array_key_exists("help", $context) ? $context["help"] : (function () { throw new RuntimeError('Variable "help" does not exist.', 370, $this->source); })()))) {
|
|
// line 371
|
|
$context["help_attr"] = Twig\Extension\CoreExtension::merge((isset($context["help_attr"]) || array_key_exists("help_attr", $context) ? $context["help_attr"] : (function () { throw new RuntimeError('Variable "help_attr" does not exist.', 371, $this->source); })()), ["class" => Twig\Extension\CoreExtension::trim(((((CoreExtension::getAttribute($this->env, $this->source, ($context["help_attr"] ?? null), "class", [], "any", true, true, false, 371)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["help_attr"] ?? null), "class", [], "any", false, false, false, 371), "")) : ("")) . (isset($context["help_class"]) || array_key_exists("help_class", $context) ? $context["help_class"] : (function () { throw new RuntimeError('Variable "help_class" does not exist.', 371, $this->source); })())) . " mb-0"))]);
|
|
}
|
|
// line 373
|
|
yield from $this->yieldParentBlock("form_help", $context, $blocks);
|
|
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
|
|
|
|
yield from [];
|
|
}
|
|
|
|
/**
|
|
* @codeCoverageIgnore
|
|
*/
|
|
public function getTemplateName(): string
|
|
{
|
|
return "bootstrap_5_layout.html.twig";
|
|
}
|
|
|
|
/**
|
|
* @codeCoverageIgnore
|
|
*/
|
|
public function getDebugInfo(): array
|
|
{
|
|
return array ( 1113 => 373, 1110 => 371, 1108 => 370, 1105 => 368, 1103 => 366, 1101 => 365, 1099 => 364, 1089 => 363, 1068 => 356, 1064 => 355, 1062 => 354, 1052 => 353, 1044 => 348, 1042 => 347, 1030 => 346, 1020 => 345, 1010 => 342, 1008 => 341, 1006 => 340, 1003 => 338, 1001 => 337, 998 => 335, 996 => 334, 994 => 333, 981 => 332, 979 => 331, 976 => 329, 974 => 328, 972 => 327, 969 => 325, 967 => 324, 957 => 323, 948 => 317, 945 => 315, 943 => 314, 932 => 313, 928 => 312, 925 => 309, 923 => 308, 920 => 306, 918 => 305, 915 => 303, 913 => 302, 911 => 301, 908 => 299, 906 => 298, 904 => 297, 902 => 296, 892 => 294, 884 => 291, 879 => 287, 877 => 286, 875 => 285, 873 => 284, 869 => 281, 867 => 280, 865 => 279, 863 => 278, 861 => 277, 859 => 276, 849 => 275, 841 => 270, 835 => 267, 834 => 266, 833 => 265, 832 => 264, 828 => 263, 824 => 262, 814 => 261, 806 => 258, 804 => 257, 794 => 256, 785 => 252, 783 => 251, 781 => 250, 776 => 248, 774 => 247, 771 => 245, 769 => 244, 767 => 243, 765 => 242, 762 => 240, 760 => 239, 758 => 238, 756 => 237, 754 => 236, 744 => 235, 735 => 231, 733 => 230, 731 => 229, 726 => 227, 724 => 226, 721 => 224, 719 => 223, 716 => 221, 714 => 220, 712 => 219, 710 => 218, 707 => 216, 705 => 215, 703 => 214, 701 => 213, 699 => 212, 689 => 211, 681 => 208, 679 => 207, 669 => 206, 661 => 203, 659 => 202, 649 => 201, 641 => 198, 638 => 197, 635 => 196, 633 => 195, 623 => 194, 615 => 191, 612 => 190, 609 => 189, 607 => 188, 605 => 187, 602 => 185, 599 => 183, 597 => 182, 595 => 181, 593 => 180, 591 => 179, 589 => 178, 579 => 177, 570 => 173, 564 => 170, 562 => 169, 560 => 168, 558 => 167, 548 => 166, 539 => 162, 535 => 161, 530 => 158, 526 => 157, 523 => 156, 521 => 155, 516 => 152, 512 => 151, 509 => 150, 507 => 149, 502 => 146, 498 => 145, 495 => 144, 493 => 143, 488 => 140, 484 => 139, 481 => 138, 479 => 137, 474 => 134, 470 => 133, 467 => 132, 465 => 131, 460 => 128, 456 => 127, 453 => 126, 451 => 125, 446 => 122, 442 => 121, 439 => 120, 437 => 119, 433 => 118, 430 => 117, 428 => 116, 425 => 115, 423 => 114, 420 => 112, 418 => 111, 408 => 110, 399 => 106, 397 => 105, 395 => 104, 393 => 103, 391 => 102, 387 => 101, 384 => 100, 382 => 99, 379 => 98, 377 => 97, 374 => 95, 372 => 94, 362 => 93, 352 => 88, 350 => 87, 346 => 85, 344 => 84, 341 => 82, 339 => 81, 337 => 80, 334 => 78, 332 => 77, 330 => 76, 328 => 75, 324 => 73, 322 => 72, 319 => 70, 315 => 69, 311 => 68, 309 => 67, 307 => 66, 305 => 65, 300 => 63, 298 => 62, 295 => 61, 293 => 60, 290 => 59, 288 => 58, 285 => 56, 283 => 55, 273 => 54, 263 => 49, 261 => 48, 259 => 47, 257 => 45, 256 => 44, 255 => 43, 254 => 42, 252 => 41, 249 => 39, 247 => 38, 245 => 37, 243 => 36, 241 => 35, 239 => 34, 234 => 32, 232 => 31, 229 => 30, 227 => 29, 224 => 28, 222 => 27, 219 => 25, 217 => 24, 207 => 23, 198 => 19, 195 => 17, 190 => 15, 188 => 14, 186 => 13, 181 => 11, 179 => 10, 175 => 9, 173 => 8, 171 => 7, 169 => 6, 159 => 5, 151 => 363, 148 => 360, 146 => 353, 143 => 350, 141 => 345, 139 => 323, 136 => 320, 134 => 294, 132 => 275, 129 => 272, 127 => 261, 125 => 256, 123 => 235, 121 => 211, 119 => 206, 117 => 201, 115 => 194, 113 => 177, 110 => 176, 108 => 166, 105 => 165, 103 => 110, 100 => 109, 98 => 93, 95 => 92, 93 => 54, 90 => 53, 88 => 23, 85 => 22, 83 => 5, 80 => 4, 77 => 2, 35 => 1,);
|
|
}
|
|
|
|
public function getSourceContext(): Source
|
|
{
|
|
return new Source("{% use \"bootstrap_base_layout.html.twig\" %}
|
|
|
|
{# Widgets #}
|
|
|
|
{% block money_widget -%}
|
|
{%- set prepend = not (money_pattern starts with '{{') -%}
|
|
{%- set append = not (money_pattern ends with '}}') -%}
|
|
{%- if prepend or append -%}
|
|
<div class=\"input-group {{ group_class|default('') }}\">
|
|
{%- if prepend -%}
|
|
<span class=\"input-group-text\">{{ money_pattern|form_encode_currency }}</span>
|
|
{%- endif -%}
|
|
{{- block('form_widget_simple') -}}
|
|
{%- if append -%}
|
|
<span class=\"input-group-text\">{{ money_pattern|form_encode_currency }}</span>
|
|
{%- endif -%}
|
|
</div>
|
|
{%- else -%}
|
|
{{- block('form_widget_simple') -}}
|
|
{%- endif -%}
|
|
{%- endblock money_widget %}
|
|
|
|
{% block date_widget -%}
|
|
{%- if widget == 'single_text' -%}
|
|
{{- block('form_widget_simple') -}}
|
|
{%- else -%}
|
|
{% if not valid %}
|
|
{% set attr = attr|merge({class: (attr.class|default('') ~ ' is-invalid')|trim}) -%}
|
|
{% set valid = true %}
|
|
{% endif %}
|
|
{%- if datetime is not defined or not datetime -%}
|
|
<div {{ block('widget_container_attributes') -}}>
|
|
{%- endif %}
|
|
{%- if label is not same as(false) -%}
|
|
<div class=\"visually-hidden\">
|
|
{{- form_label(form.year) -}}
|
|
{{- form_label(form.month) -}}
|
|
{{- form_label(form.day) -}}
|
|
</div>
|
|
{%- endif -%}
|
|
<div class=\"input-group\">
|
|
{{- date_pattern|replace({
|
|
'{{ year }}': form_widget(form.year),
|
|
'{{ month }}': form_widget(form.month),
|
|
'{{ day }}': form_widget(form.day),
|
|
})|raw -}}
|
|
</div>
|
|
{%- if datetime is not defined or not datetime -%}
|
|
</div>
|
|
{%- endif -%}
|
|
{%- endif -%}
|
|
{%- endblock date_widget %}
|
|
|
|
{% block time_widget -%}
|
|
{%- if widget == 'single_text' -%}
|
|
{{- block('form_widget_simple') -}}
|
|
{%- else -%}
|
|
{% if not valid %}
|
|
{% set attr = attr|merge({class: (attr.class|default('') ~ ' is-invalid')|trim}) -%}
|
|
{% set valid = true %}
|
|
{% endif %}
|
|
{%- if datetime is not defined or false == datetime -%}
|
|
<div {{ block('widget_container_attributes') -}}>
|
|
{%- endif -%}
|
|
{%- if label is not same as(false) -%}
|
|
<div class=\"visually-hidden\">
|
|
{{- form_label(form.hour) -}}
|
|
{%- if with_minutes -%}{{ form_label(form.minute) }}{%- endif -%}
|
|
{%- if with_seconds -%}{{ form_label(form.second) }}{%- endif -%}
|
|
</div>
|
|
{%- endif -%}
|
|
{% if with_minutes or with_seconds %}
|
|
<div class=\"input-group\">
|
|
{% endif %}
|
|
{{- form_widget(form.hour) -}}
|
|
{%- if with_minutes -%}
|
|
<span class=\"input-group-text\">:</span>
|
|
{{- form_widget(form.minute) -}}
|
|
{%- endif -%}
|
|
{%- if with_seconds -%}
|
|
<span class=\"input-group-text\">:</span>
|
|
{{- form_widget(form.second) -}}
|
|
{%- endif -%}
|
|
{% if with_minutes or with_seconds %}
|
|
</div>
|
|
{% endif %}
|
|
{%- if datetime is not defined or false == datetime -%}
|
|
</div>
|
|
{%- endif -%}
|
|
{%- endif -%}
|
|
{%- endblock time_widget %}
|
|
|
|
{% block datetime_widget -%}
|
|
{%- if widget == 'single_text' -%}
|
|
{{- block('form_widget_simple') -}}
|
|
{%- else -%}
|
|
{% if not valid %}
|
|
{% set attr = attr|merge({class: (attr.class|default('') ~ ' is-invalid')|trim}) -%}
|
|
{% set valid = true %}
|
|
{% endif %}
|
|
<div {{ block('widget_container_attributes') }}>
|
|
{{- form_widget(form.date, { datetime: true } ) -}}
|
|
{{- form_errors(form.date) -}}
|
|
{{- form_widget(form.time, { datetime: true } ) -}}
|
|
{{- form_errors(form.time) -}}
|
|
</div>
|
|
{%- endif -%}
|
|
{%- endblock datetime_widget %}
|
|
|
|
{% block dateinterval_widget -%}
|
|
{%- if widget == 'single_text' -%}
|
|
{{- block('form_widget_simple') -}}
|
|
{%- else -%}
|
|
{% if not valid %}
|
|
{% set attr = attr|merge({class: (attr.class|default('') ~ ' is-invalid')|trim}) -%}
|
|
{% set valid = true %}
|
|
{% endif %}
|
|
<div {{ block('widget_container_attributes') }}>
|
|
{%- if with_years -%}
|
|
<div class=\"col-auto mb-3\">
|
|
{{ form_label(form.years) }}
|
|
{{ form_widget(form.years) }}
|
|
</div>
|
|
{%- endif -%}
|
|
{%- if with_months -%}
|
|
<div class=\"col-auto mb-3\">
|
|
{{ form_label(form.months) }}
|
|
{{ form_widget(form.months) }}
|
|
</div>
|
|
{%- endif -%}
|
|
{%- if with_weeks -%}
|
|
<div class=\"col-auto mb-3\">
|
|
{{ form_label(form.weeks) }}
|
|
{{ form_widget(form.weeks) }}
|
|
</div>
|
|
{%- endif -%}
|
|
{%- if with_days -%}
|
|
<div class=\"col-auto mb-3\">
|
|
{{ form_label(form.days) }}
|
|
{{ form_widget(form.days) }}
|
|
</div>
|
|
{%- endif -%}
|
|
{%- if with_hours -%}
|
|
<div class=\"col-auto mb-3\">
|
|
{{ form_label(form.hours) }}
|
|
{{ form_widget(form.hours) }}
|
|
</div>
|
|
{%- endif -%}
|
|
{%- if with_minutes -%}
|
|
<div class=\"col-auto mb-3\">
|
|
{{ form_label(form.minutes) }}
|
|
{{ form_widget(form.minutes) }}
|
|
</div>
|
|
{%- endif -%}
|
|
{%- if with_seconds -%}
|
|
<div class=\"col-auto mb-3\">
|
|
{{ form_label(form.seconds) }}
|
|
{{ form_widget(form.seconds) }}
|
|
</div>
|
|
{%- endif -%}
|
|
{%- if with_invert %}{{ form_widget(form.invert) }}{% endif -%}
|
|
</div>
|
|
{%- endif -%}
|
|
{%- endblock dateinterval_widget %}
|
|
|
|
{% block percent_widget -%}
|
|
{%- if symbol -%}
|
|
<div class=\"input-group\">
|
|
{{- block('form_widget_simple') -}}
|
|
<span class=\"input-group-text\">{{ symbol|default('%') }}</span>
|
|
</div>
|
|
{%- else -%}
|
|
{{- block('form_widget_simple') -}}
|
|
{%- endif -%}
|
|
{%- endblock percent_widget %}
|
|
|
|
{% block form_widget_simple -%}
|
|
{%- if type is not defined or type != 'hidden' %}
|
|
{%- set widget_class = ' form-control' %}
|
|
{%- if type|default('') == 'color' -%}
|
|
{%- set widget_class = widget_class ~ ' form-control-color' -%}
|
|
{%- elseif type|default('') == 'range' -%}
|
|
{%- set widget_class = ' form-range' -%}
|
|
{%- endif -%}
|
|
{%- set attr = attr|merge({class: (attr.class|default('') ~ widget_class)|trim}) -%}
|
|
{% endif -%}
|
|
{%- if type is defined and type in ['range', 'color'] %}
|
|
{# Attribute \"required\" is not supported #}
|
|
{% set required = false %}
|
|
{% endif -%}
|
|
{{- parent() -}}
|
|
{%- endblock form_widget_simple %}
|
|
|
|
{%- block widget_attributes -%}
|
|
{%- if not valid %}
|
|
{% set attr = attr|merge({class: (attr.class|default('') ~ ' is-invalid')|trim}) %}
|
|
{% endif -%}
|
|
{{ parent() }}
|
|
{%- endblock widget_attributes -%}
|
|
|
|
{%- block button_widget -%}
|
|
{%- set attr = attr|merge({class: (attr.class|default('btn-secondary') ~ ' btn')|trim}) -%}
|
|
{{- parent() -}}
|
|
{%- endblock button_widget %}
|
|
|
|
{%- block submit_widget -%}
|
|
{%- set attr = attr|merge({class: (attr.class|default('btn-primary'))|trim}) -%}
|
|
{{- parent() -}}
|
|
{%- endblock submit_widget %}
|
|
|
|
{%- block checkbox_widget -%}
|
|
{%- set attr_class = attr_class|default(attr.class|default('')) -%}
|
|
{%- set row_class = '' -%}
|
|
{%- if 'btn-check' not in attr_class -%}
|
|
{%- set attr_class = attr_class ~ ' form-check-input' -%}
|
|
{%- set row_class = 'form-check' -%}
|
|
{%- endif -%}
|
|
{%- set attr = attr|merge({class: attr_class|trim}) -%}
|
|
{%- set parent_label_class = parent_label_class|default(label_attr.class|default('')) -%}
|
|
{%- if 'checkbox-inline' in parent_label_class %}
|
|
{%- set row_class = row_class ~ ' form-check-inline' -%}
|
|
{% endif -%}
|
|
{%- if 'checkbox-switch' in parent_label_class %}
|
|
{%- set row_class = row_class ~ ' form-switch' -%}
|
|
{% endif -%}
|
|
{%- if row_class is not empty -%}
|
|
<div class=\"{{ row_class }}\">
|
|
{%- endif -%}
|
|
{{- form_label(form, null, { widget: parent() }) -}}
|
|
{%- if row_class is not empty -%}
|
|
</div>
|
|
{%- endif -%}
|
|
{%- endblock checkbox_widget %}
|
|
|
|
{%- block radio_widget -%}
|
|
{%- set attr_class = attr_class|default(attr.class|default('')) -%}
|
|
{%- set row_class = '' -%}
|
|
{%- if 'btn-check' not in attr_class -%}
|
|
{%- set attr_class = attr_class ~ ' form-check-input' -%}
|
|
{%- set row_class = 'form-check' -%}
|
|
{%- endif -%}
|
|
{%- set attr = attr|merge({class: attr_class|trim}) -%}
|
|
{%- set parent_label_class = parent_label_class|default(label_attr.class|default('')) -%}
|
|
{%- if 'radio-inline' in parent_label_class -%}
|
|
{%- set row_class = row_class ~ ' form-check-inline' -%}
|
|
{%- endif -%}
|
|
{%- if row_class is not empty -%}
|
|
<div class=\"{{ row_class }}\">
|
|
{%- endif -%}
|
|
{{- form_label(form, null, { widget: parent() }) -}}
|
|
{%- if row_class is not empty -%}
|
|
</div>
|
|
{%- endif -%}
|
|
{%- endblock radio_widget %}
|
|
|
|
{%- block choice_widget_collapsed -%}
|
|
{%- set attr = attr|merge({class: (attr.class|default('') ~ ' form-select')|trim}) -%}
|
|
{{- parent() -}}
|
|
{%- endblock choice_widget_collapsed -%}
|
|
|
|
{%- block choice_widget_expanded -%}
|
|
<div {{ block('widget_container_attributes') }}>
|
|
{%- for child in form %}
|
|
{{- form_widget(child, {
|
|
parent_label_class: label_attr.class|default(''),
|
|
translation_domain: choice_translation_domain,
|
|
valid: valid,
|
|
}) -}}
|
|
{% endfor -%}
|
|
</div>
|
|
{%- endblock choice_widget_expanded %}
|
|
|
|
{# Labels #}
|
|
|
|
{%- block form_label -%}
|
|
{% if label is not same as(false) -%}
|
|
{%- set parent_label_class = parent_label_class|default(label_attr.class|default('')) -%}
|
|
{%- if compound is defined and compound -%}
|
|
{%- set element = 'legend' -%}
|
|
{%- if 'col-form-label' not in parent_label_class -%}
|
|
{%- set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' col-form-label' )|trim}) -%}
|
|
{%- endif -%}
|
|
{%- else -%}
|
|
{%- set row_class = row_class|default(row_attr.class|default('')) -%}
|
|
{%- set label_attr = label_attr|merge({for: id}) -%}
|
|
{%- if 'col-form-label' not in parent_label_class -%}
|
|
{%- set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ('input-group' in row_class ? ' input-group-text' : ' form-label') )|trim}) -%}
|
|
{%- endif -%}
|
|
{%- endif -%}
|
|
{%- endif -%}
|
|
{{- parent() -}}
|
|
{%- endblock form_label %}
|
|
|
|
{%- block checkbox_radio_label -%}
|
|
{#- Do not display the label if widget is not defined in order to prevent double label rendering -#}
|
|
{%- if widget is defined -%}
|
|
{%- set label_attr_class = label_attr_class|default(label_attr.class|default('')) -%}
|
|
{%- if 'btn' not in label_attr_class -%}
|
|
{%- set label_attr_class = label_attr_class ~ ' form-check-label' -%}
|
|
{%- endif -%}
|
|
{%- set label_attr = label_attr|merge({class: label_attr_class|trim}) -%}
|
|
{%- if not compound -%}
|
|
{% set label_attr = label_attr|merge({'for': id}) %}
|
|
{%- endif -%}
|
|
{%- if required -%}
|
|
{%- set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' required')|trim}) -%}
|
|
{%- endif -%}
|
|
{%- if parent_label_class is defined -%}
|
|
{%- set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' ' ~ parent_label_class)|replace({'checkbox-inline': '', 'radio-inline': ''})|trim}) -%}
|
|
{%- endif -%}
|
|
|
|
{{ widget|raw }}
|
|
<label{% with { attr: label_attr } %}{{ block('attributes') }}{% endwith %}>
|
|
{%- if label is not same as(false) -%}
|
|
{{- block('form_label_content') -}}
|
|
{%- endif -%}
|
|
</label>
|
|
{%- endif -%}
|
|
{%- endblock checkbox_radio_label %}
|
|
|
|
{# Rows #}
|
|
|
|
{%- block form_row -%}
|
|
{%- if compound is defined and compound -%}
|
|
{%- set element = 'fieldset' -%}
|
|
{%- endif -%}
|
|
{%- set widget_attr = {} -%}
|
|
{%- if help is not empty -%}
|
|
{%- set widget_attr = {attr: {'aria-describedby': id ~\"_help\"}} -%}
|
|
{%- endif -%}
|
|
{%- set row_class = row_class|default(row_attr.class|default('mb-3')|trim) -%}
|
|
<{{ element|default('div') }}{% with {attr: row_attr|merge({class: row_class})} %}{{ block('attributes') }}{% endwith %}>
|
|
{%- if 'form-floating' in row_class -%}
|
|
{{- form_widget(form, widget_attr) -}}
|
|
{{- form_label(form) -}}
|
|
{%- else -%}
|
|
{{- form_label(form) -}}
|
|
{{- form_widget(form, widget_attr) -}}
|
|
{%- endif -%}
|
|
{{- form_help(form) -}}
|
|
{{- form_errors(form) -}}
|
|
</{{ element|default('div') }}>
|
|
{%- endblock form_row %}
|
|
|
|
{%- block button_row -%}
|
|
<div{% with {attr: row_attr|merge({class: row_attr.class|default('mb-3')|trim})} %}{{ block('attributes') }}{% endwith %}>
|
|
{{- form_widget(form) -}}
|
|
</div>
|
|
{%- endblock button_row %}
|
|
|
|
{# Errors #}
|
|
|
|
{%- block form_errors -%}
|
|
{%- if errors|length > 0 -%}
|
|
{%- for error in errors -%}
|
|
<div class=\"{% if form is not rootform %}invalid-feedback{% else %}alert alert-danger{% endif %} d-block\">{{ error.message }}</div>
|
|
{%- endfor -%}
|
|
{%- endif %}
|
|
{%- endblock form_errors %}
|
|
|
|
{# Help #}
|
|
|
|
{%- block form_help -%}
|
|
{%- set row_class = row_attr.class|default('') -%}
|
|
{%- set help_class = ' form-text' -%}
|
|
{%- if 'input-group' in row_class -%}
|
|
{#- Hack to properly display help with input group -#}
|
|
{%- set help_class = ' input-group-text' -%}
|
|
{%- endif -%}
|
|
{%- if help is not empty -%}
|
|
{%- set help_attr = help_attr|merge({class: (help_attr.class|default('') ~ help_class ~ ' mb-0')|trim}) -%}
|
|
{%- endif -%}
|
|
{{- parent() -}}
|
|
{%- endblock form_help %}
|
|
", "bootstrap_5_layout.html.twig", "/home/skylar/Projects/mycomments-api/vendor/symfony/twig-bridge/Resources/views/Form/bootstrap_5_layout.html.twig");
|
|
}
|
|
}
|