1119 lines
72 KiB
PHP
1119 lines
72 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_3_layout.html.twig */
|
|
class __TwigTemplate_5bd1de560d35ba6a8004f8963669e46a 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_3_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,
|
|
[
|
|
'form_widget_simple' => [$this, 'block_form_widget_simple'],
|
|
'button_widget' => [$this, 'block_button_widget'],
|
|
'money_widget' => [$this, 'block_money_widget'],
|
|
'checkbox_widget' => [$this, 'block_checkbox_widget'],
|
|
'radio_widget' => [$this, 'block_radio_widget'],
|
|
'choice_widget_collapsed' => [$this, 'block_choice_widget_collapsed'],
|
|
'form_label' => [$this, 'block_form_label'],
|
|
'choice_label' => [$this, 'block_choice_label'],
|
|
'checkbox_label' => [$this, 'block_checkbox_label'],
|
|
'radio_label' => [$this, 'block_radio_label'],
|
|
'checkbox_radio_label' => [$this, 'block_checkbox_radio_label'],
|
|
'form_row' => [$this, 'block_form_row'],
|
|
'button_row' => [$this, 'block_button_row'],
|
|
'choice_row' => [$this, 'block_choice_row'],
|
|
'date_row' => [$this, 'block_date_row'],
|
|
'time_row' => [$this, 'block_time_row'],
|
|
'datetime_row' => [$this, 'block_datetime_row'],
|
|
'checkbox_row' => [$this, 'block_checkbox_row'],
|
|
'radio_row' => [$this, 'block_radio_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_3_layout.html.twig"));
|
|
|
|
// line 2
|
|
yield "
|
|
";
|
|
// line 4
|
|
yield "
|
|
";
|
|
// line 5
|
|
yield from $this->unwrap()->yieldBlock('form_widget_simple', $context, $blocks);
|
|
// line 11
|
|
yield "
|
|
";
|
|
// line 12
|
|
yield from $this->unwrap()->yieldBlock('button_widget', $context, $blocks);
|
|
// line 16
|
|
yield "
|
|
";
|
|
// line 17
|
|
yield from $this->unwrap()->yieldBlock('money_widget', $context, $blocks);
|
|
// line 34
|
|
yield "
|
|
";
|
|
// line 35
|
|
yield from $this->unwrap()->yieldBlock('checkbox_widget', $context, $blocks);
|
|
// line 45
|
|
yield "
|
|
";
|
|
// line 46
|
|
yield from $this->unwrap()->yieldBlock('radio_widget', $context, $blocks);
|
|
// line 56
|
|
yield "
|
|
";
|
|
// line 57
|
|
yield from $this->unwrap()->yieldBlock('choice_widget_collapsed', $context, $blocks);
|
|
// line 61
|
|
yield "
|
|
";
|
|
// line 63
|
|
yield "
|
|
";
|
|
// line 64
|
|
yield from $this->unwrap()->yieldBlock('form_label', $context, $blocks);
|
|
// line 68
|
|
yield "
|
|
";
|
|
// line 69
|
|
yield from $this->unwrap()->yieldBlock('choice_label', $context, $blocks);
|
|
// line 74
|
|
yield "
|
|
";
|
|
// line 75
|
|
yield from $this->unwrap()->yieldBlock('checkbox_label', $context, $blocks);
|
|
// line 80
|
|
yield "
|
|
";
|
|
// line 81
|
|
yield from $this->unwrap()->yieldBlock('radio_label', $context, $blocks);
|
|
// line 86
|
|
yield "
|
|
";
|
|
// line 87
|
|
yield from $this->unwrap()->yieldBlock('checkbox_radio_label', $context, $blocks);
|
|
// line 127
|
|
yield "
|
|
";
|
|
// line 129
|
|
yield "
|
|
";
|
|
// line 130
|
|
yield from $this->unwrap()->yieldBlock('form_row', $context, $blocks);
|
|
// line 142
|
|
yield "
|
|
";
|
|
// line 143
|
|
yield from $this->unwrap()->yieldBlock('button_row', $context, $blocks);
|
|
// line 148
|
|
yield "
|
|
";
|
|
// line 149
|
|
yield from $this->unwrap()->yieldBlock('choice_row', $context, $blocks);
|
|
// line 153
|
|
yield "
|
|
";
|
|
// line 154
|
|
yield from $this->unwrap()->yieldBlock('date_row', $context, $blocks);
|
|
// line 158
|
|
yield "
|
|
";
|
|
// line 159
|
|
yield from $this->unwrap()->yieldBlock('time_row', $context, $blocks);
|
|
// line 163
|
|
yield "
|
|
";
|
|
// line 164
|
|
yield from $this->unwrap()->yieldBlock('datetime_row', $context, $blocks);
|
|
// line 168
|
|
yield "
|
|
";
|
|
// line 169
|
|
yield from $this->unwrap()->yieldBlock('checkbox_row', $context, $blocks);
|
|
// line 176
|
|
yield "
|
|
";
|
|
// line 177
|
|
yield from $this->unwrap()->yieldBlock('radio_row', $context, $blocks);
|
|
// line 184
|
|
yield "
|
|
";
|
|
// line 186
|
|
yield "
|
|
";
|
|
// line 187
|
|
yield from $this->unwrap()->yieldBlock('form_errors', $context, $blocks);
|
|
// line 198
|
|
yield "
|
|
";
|
|
// line 200
|
|
yield "
|
|
";
|
|
// line 201
|
|
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_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 6
|
|
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.', 6, $this->source); })()), ["file", "hidden"]))) {
|
|
// line 7
|
|
$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.', 7, $this->source); })()), ["class" => Twig\Extension\CoreExtension::trim((((CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", true, true, false, 7)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", false, false, false, 7), "")) : ("")) . " form-control"))]);
|
|
}
|
|
// line 9
|
|
yield from $this->yieldParentBlock("form_widget_simple", $context, $blocks);
|
|
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
|
|
|
|
yield from [];
|
|
}
|
|
|
|
// line 12
|
|
/**
|
|
* @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 13
|
|
$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.', 13, $this->source); })()), ["class" => Twig\Extension\CoreExtension::trim((((CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", true, true, false, 13)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", false, false, false, 13), "btn-default")) : ("btn-default")) . " btn"))]);
|
|
// line 14
|
|
yield from $this->yieldParentBlock("button_widget", $context, $blocks);
|
|
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
|
|
|
|
yield from [];
|
|
}
|
|
|
|
// line 17
|
|
/**
|
|
* @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 18
|
|
$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.', 18, $this->source); })())) && is_string($__internal_compile_1 = "{{") && str_starts_with($__internal_compile_0, $__internal_compile_1));
|
|
// line 19
|
|
yield " ";
|
|
$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.', 19, $this->source); })())) && is_string($__internal_compile_3 = "}}") && str_ends_with($__internal_compile_2, $__internal_compile_3));
|
|
// line 20
|
|
yield " ";
|
|
if (((isset($context["prepend"]) || array_key_exists("prepend", $context) ? $context["prepend"] : (function () { throw new RuntimeError('Variable "prepend" does not exist.', 20, $this->source); })()) || (isset($context["append"]) || array_key_exists("append", $context) ? $context["append"] : (function () { throw new RuntimeError('Variable "append" does not exist.', 20, $this->source); })()))) {
|
|
// line 21
|
|
yield " <div class=\"input-group\">
|
|
";
|
|
// line 22
|
|
if ((isset($context["prepend"]) || array_key_exists("prepend", $context) ? $context["prepend"] : (function () { throw new RuntimeError('Variable "prepend" does not exist.', 22, $this->source); })())) {
|
|
// line 23
|
|
yield " <span class=\"input-group-addon\">";
|
|
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.', 23, $this->source); })()));
|
|
yield "</span>
|
|
";
|
|
}
|
|
// line 25
|
|
yield from $this->unwrap()->yieldBlock("form_widget_simple", $context, $blocks);
|
|
// line 26
|
|
if ((isset($context["append"]) || array_key_exists("append", $context) ? $context["append"] : (function () { throw new RuntimeError('Variable "append" does not exist.', 26, $this->source); })())) {
|
|
// line 27
|
|
yield " <span class=\"input-group-addon\">";
|
|
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.', 27, $this->source); })()));
|
|
yield "</span>
|
|
";
|
|
}
|
|
// line 29
|
|
yield " </div>
|
|
";
|
|
} else {
|
|
// line 31
|
|
yield from $this->unwrap()->yieldBlock("form_widget_simple", $context, $blocks);
|
|
}
|
|
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
|
|
|
|
yield from [];
|
|
}
|
|
|
|
// line 35
|
|
/**
|
|
* @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 36
|
|
$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.', 36, $this->source); })()), ((CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", true, true, false, 36)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", false, false, false, 36), "")) : ("")))) : (((CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", true, true, false, 36)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", false, false, false, 36), "")) : (""))));
|
|
// line 37
|
|
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.', 37, $this->source); })()))) {
|
|
// line 38
|
|
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.', 38, $this->source); })()), 'label', ["widget" => $this->renderParentBlock("checkbox_widget", $context, $blocks)]);
|
|
} else {
|
|
// line 40
|
|
yield "<div class=\"checkbox\">";
|
|
// line 41
|
|
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.', 41, $this->source); })()), 'label', ["widget" => $this->renderParentBlock("checkbox_widget", $context, $blocks)]);
|
|
// line 42
|
|
yield "</div>";
|
|
}
|
|
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
|
|
|
|
yield from [];
|
|
}
|
|
|
|
// line 46
|
|
/**
|
|
* @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 47
|
|
$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.', 47, $this->source); })()), ((CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", true, true, false, 47)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", false, false, false, 47), "")) : ("")))) : (((CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", true, true, false, 47)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", false, false, false, 47), "")) : (""))));
|
|
// line 48
|
|
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.', 48, $this->source); })()))) {
|
|
// line 49
|
|
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.', 49, $this->source); })()), 'label', ["widget" => $this->renderParentBlock("radio_widget", $context, $blocks)]);
|
|
} else {
|
|
// line 51
|
|
yield "<div class=\"radio\">";
|
|
// line 52
|
|
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.', 52, $this->source); })()), 'label', ["widget" => $this->renderParentBlock("radio_widget", $context, $blocks)]);
|
|
// line 53
|
|
yield "</div>";
|
|
}
|
|
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
|
|
|
|
yield from [];
|
|
}
|
|
|
|
// line 57
|
|
/**
|
|
* @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 58
|
|
$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.', 58, $this->source); })()), ["class" => Twig\Extension\CoreExtension::trim((((CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", true, true, false, 58)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", false, false, false, 58), "")) : ("")) . " form-control"))]);
|
|
// line 59
|
|
yield from $this->yieldParentBlock("choice_widget_collapsed", $context, $blocks);
|
|
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
|
|
|
|
yield from [];
|
|
}
|
|
|
|
// line 64
|
|
/**
|
|
* @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 65
|
|
$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.', 65, $this->source); })()), ["class" => Twig\Extension\CoreExtension::trim((((CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", true, true, false, 65)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", false, false, false, 65), "")) : ("")) . " control-label"))]);
|
|
// line 66
|
|
yield from $this->yieldParentBlock("form_label", $context, $blocks);
|
|
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
|
|
|
|
yield from [];
|
|
}
|
|
|
|
// line 69
|
|
/**
|
|
* @return iterable<null|scalar|\Stringable>
|
|
*/
|
|
public function block_choice_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", "choice_label"));
|
|
|
|
// line 71
|
|
$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.', 71, $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, 71)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", false, false, false, 71), "")) : ("")), ["checkbox-inline" => "", "radio-inline" => ""]))]);
|
|
// line 72
|
|
yield from $this->unwrap()->yieldBlock("form_label", $context, $blocks);
|
|
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
|
|
|
|
yield from [];
|
|
}
|
|
|
|
// line 75
|
|
/**
|
|
* @return iterable<null|scalar|\Stringable>
|
|
*/
|
|
public function block_checkbox_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_label"));
|
|
|
|
// line 76
|
|
$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.', 76, $this->source); })()), ["for" => (isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 76, $this->source); })())]);
|
|
// line 78
|
|
yield from $this->unwrap()->yieldBlock("checkbox_radio_label", $context, $blocks);
|
|
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
|
|
|
|
yield from [];
|
|
}
|
|
|
|
// line 81
|
|
/**
|
|
* @return iterable<null|scalar|\Stringable>
|
|
*/
|
|
public function block_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", "radio_label"));
|
|
|
|
// line 82
|
|
$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.', 82, $this->source); })()), ["for" => (isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 82, $this->source); })())]);
|
|
// line 84
|
|
yield from $this->unwrap()->yieldBlock("checkbox_radio_label", $context, $blocks);
|
|
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
|
|
|
|
yield from [];
|
|
}
|
|
|
|
// line 87
|
|
/**
|
|
* @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 89
|
|
if (array_key_exists("widget", $context)) {
|
|
// line 90
|
|
if ((isset($context["required"]) || array_key_exists("required", $context) ? $context["required"] : (function () { throw new RuntimeError('Variable "required" does not exist.', 90, $this->source); })())) {
|
|
// line 91
|
|
$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.', 91, $this->source); })()), ["class" => Twig\Extension\CoreExtension::trim((((CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", true, true, false, 91)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", false, false, false, 91), "")) : ("")) . " required"))]);
|
|
}
|
|
// line 93
|
|
if (array_key_exists("parent_label_class", $context)) {
|
|
// line 94
|
|
$context["embed_label_classes"] = Twig\Extension\CoreExtension::filter($this->env, Twig\Extension\CoreExtension::split($this->env->getCharset(), (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.', 94, $this->source); })()), " "), function ($__class__) use ($context, $macros) { $context["class"] = $__class__; return CoreExtension::inFilter((isset($context["class"]) || array_key_exists("class", $context) ? $context["class"] : (function () { throw new RuntimeError('Variable "class" does not exist.', 94, $this->source); })()), ["checkbox-inline", "radio-inline"]); });
|
|
// line 95
|
|
$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.', 95, $this->source); })()), ["class" => Twig\Extension\CoreExtension::trim(((((CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", true, true, false, 95)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", false, false, false, 95), "")) : ("")) . " ") . Twig\Extension\CoreExtension::join((isset($context["embed_label_classes"]) || array_key_exists("embed_label_classes", $context) ? $context["embed_label_classes"] : (function () { throw new RuntimeError('Variable "embed_label_classes" does not exist.', 95, $this->source); })()), " ")))]);
|
|
}
|
|
// line 97
|
|
if (( !((isset($context["label"]) || array_key_exists("label", $context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.', 97, $this->source); })()) === false) && Twig\Extension\CoreExtension::testEmpty((isset($context["label"]) || array_key_exists("label", $context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.', 97, $this->source); })())))) {
|
|
// line 98
|
|
if ( !Twig\Extension\CoreExtension::testEmpty((isset($context["label_format"]) || array_key_exists("label_format", $context) ? $context["label_format"] : (function () { throw new RuntimeError('Variable "label_format" does not exist.', 98, $this->source); })()))) {
|
|
// line 99
|
|
$context["label"] = Twig\Extension\CoreExtension::replace((isset($context["label_format"]) || array_key_exists("label_format", $context) ? $context["label_format"] : (function () { throw new RuntimeError('Variable "label_format" does not exist.', 99, $this->source); })()), ["%name%" => // line 100
|
|
(isset($context["name"]) || array_key_exists("name", $context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.', 100, $this->source); })()), "%id%" => // line 101
|
|
(isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 101, $this->source); })())]);
|
|
} else {
|
|
// line 104
|
|
$context["label"] = $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->humanize((isset($context["name"]) || array_key_exists("name", $context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.', 104, $this->source); })()));
|
|
}
|
|
}
|
|
// line 107
|
|
yield "<label";
|
|
$__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.', 107, $this->source); })())];
|
|
if (!is_iterable($__internal_compile_5)) {
|
|
throw new RuntimeError('Variables passed to the "with" tag must be a mapping.', 107, $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 109
|
|
yield (isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 109, $this->source); })());
|
|
yield " ";
|
|
if ( !((isset($context["label"]) || array_key_exists("label", $context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.', 109, $this->source); })()) === false)) {
|
|
// line 110
|
|
if (((isset($context["translation_domain"]) || array_key_exists("translation_domain", $context) ? $context["translation_domain"] : (function () { throw new RuntimeError('Variable "translation_domain" does not exist.', 110, $this->source); })()) === false)) {
|
|
// line 111
|
|
if (((isset($context["label_html"]) || array_key_exists("label_html", $context) ? $context["label_html"] : (function () { throw new RuntimeError('Variable "label_html" does not exist.', 111, $this->source); })()) === false)) {
|
|
// line 112
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["label"]) || array_key_exists("label", $context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.', 112, $this->source); })()), "html", null, true);
|
|
} else {
|
|
// line 114
|
|
yield (isset($context["label"]) || array_key_exists("label", $context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.', 114, $this->source); })());
|
|
}
|
|
} else {
|
|
// line 117
|
|
if (((isset($context["label_html"]) || array_key_exists("label_html", $context) ? $context["label_html"] : (function () { throw new RuntimeError('Variable "label_html" does not exist.', 117, $this->source); })()) === false)) {
|
|
// line 118
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["label"]) || array_key_exists("label", $context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.', 118, $this->source); })()), (isset($context["label_translation_parameters"]) || array_key_exists("label_translation_parameters", $context) ? $context["label_translation_parameters"] : (function () { throw new RuntimeError('Variable "label_translation_parameters" does not exist.', 118, $this->source); })()), (isset($context["translation_domain"]) || array_key_exists("translation_domain", $context) ? $context["translation_domain"] : (function () { throw new RuntimeError('Variable "translation_domain" does not exist.', 118, $this->source); })())), "html", null, true);
|
|
} else {
|
|
// line 120
|
|
yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["label"]) || array_key_exists("label", $context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.', 120, $this->source); })()), (isset($context["label_translation_parameters"]) || array_key_exists("label_translation_parameters", $context) ? $context["label_translation_parameters"] : (function () { throw new RuntimeError('Variable "label_translation_parameters" does not exist.', 120, $this->source); })()), (isset($context["translation_domain"]) || array_key_exists("translation_domain", $context) ? $context["translation_domain"] : (function () { throw new RuntimeError('Variable "translation_domain" does not exist.', 120, $this->source); })()));
|
|
}
|
|
}
|
|
}
|
|
// line 124
|
|
yield "</label>";
|
|
}
|
|
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
|
|
|
|
yield from [];
|
|
}
|
|
|
|
// line 130
|
|
/**
|
|
* @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 131
|
|
$context["widget_attr"] = [];
|
|
// line 132
|
|
if ( !Twig\Extension\CoreExtension::testEmpty((isset($context["help"]) || array_key_exists("help", $context) ? $context["help"] : (function () { throw new RuntimeError('Variable "help" does not exist.', 132, $this->source); })()))) {
|
|
// line 133
|
|
$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.', 133, $this->source); })()) . "_help")]];
|
|
}
|
|
// line 135
|
|
yield "<div";
|
|
$__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.', 135, $this->source); })()), ["class" => Twig\Extension\CoreExtension::trim(((((CoreExtension::getAttribute($this->env, $this->source, ($context["row_attr"] ?? null), "class", [], "any", true, true, false, 135)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["row_attr"] ?? null), "class", [], "any", false, false, false, 135), "")) : ("")) . " form-group") . (((( !(isset($context["compound"]) || array_key_exists("compound", $context) ? $context["compound"] : (function () { throw new RuntimeError('Variable "compound" does not exist.', 135, $this->source); })()) || ((array_key_exists("force_error", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["force_error"]) || array_key_exists("force_error", $context) ? $context["force_error"] : (function () { throw new RuntimeError('Variable "force_error" does not exist.', 135, $this->source); })()), false)) : (false))) && !(isset($context["valid"]) || array_key_exists("valid", $context) ? $context["valid"] : (function () { throw new RuntimeError('Variable "valid" does not exist.', 135, $this->source); })()))) ? (" has-error") : (""))))])];
|
|
if (!is_iterable($__internal_compile_7)) {
|
|
throw new RuntimeError('Variables passed to the "with" tag must be a mapping.', 135, $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 136
|
|
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.', 136, $this->source); })()), 'label');
|
|
yield " ";
|
|
// line 137
|
|
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.', 137, $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.', 137, $this->source); })()));
|
|
yield " ";
|
|
// line 138
|
|
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.', 138, $this->source); })()), 'help');
|
|
// line 139
|
|
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.', 139, $this->source); })()), 'errors');
|
|
yield " ";
|
|
// line 140
|
|
yield "</div> ";
|
|
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
|
|
|
|
yield from [];
|
|
}
|
|
|
|
// line 143
|
|
/**
|
|
* @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 144
|
|
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.', 144, $this->source); })()), ["class" => Twig\Extension\CoreExtension::trim((((CoreExtension::getAttribute($this->env, $this->source, ($context["row_attr"] ?? null), "class", [], "any", true, true, false, 144)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["row_attr"] ?? null), "class", [], "any", false, false, false, 144), "")) : ("")) . " form-group"))])];
|
|
if (!is_iterable($__internal_compile_9)) {
|
|
throw new RuntimeError('Variables passed to the "with" tag must be a mapping.', 144, $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 145
|
|
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.', 145, $this->source); })()), 'widget');
|
|
// line 146
|
|
yield "</div>";
|
|
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
|
|
|
|
yield from [];
|
|
}
|
|
|
|
// line 149
|
|
/**
|
|
* @return iterable<null|scalar|\Stringable>
|
|
*/
|
|
public function block_choice_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", "choice_row"));
|
|
|
|
// line 150
|
|
$context["force_error"] = true;
|
|
// line 151
|
|
yield from $this->unwrap()->yieldBlock("form_row", $context, $blocks);
|
|
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
|
|
|
|
yield from [];
|
|
}
|
|
|
|
// line 154
|
|
/**
|
|
* @return iterable<null|scalar|\Stringable>
|
|
*/
|
|
public function block_date_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", "date_row"));
|
|
|
|
// line 155
|
|
$context["force_error"] = true;
|
|
// line 156
|
|
yield from $this->unwrap()->yieldBlock("form_row", $context, $blocks);
|
|
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
|
|
|
|
yield from [];
|
|
}
|
|
|
|
// line 159
|
|
/**
|
|
* @return iterable<null|scalar|\Stringable>
|
|
*/
|
|
public function block_time_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", "time_row"));
|
|
|
|
// line 160
|
|
$context["force_error"] = true;
|
|
// line 161
|
|
yield from $this->unwrap()->yieldBlock("form_row", $context, $blocks);
|
|
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
|
|
|
|
yield from [];
|
|
}
|
|
|
|
// line 164
|
|
/**
|
|
* @return iterable<null|scalar|\Stringable>
|
|
*/
|
|
public function block_datetime_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", "datetime_row"));
|
|
|
|
// line 165
|
|
$context["force_error"] = true;
|
|
// line 166
|
|
yield from $this->unwrap()->yieldBlock("form_row", $context, $blocks);
|
|
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
|
|
|
|
yield from [];
|
|
}
|
|
|
|
// line 169
|
|
/**
|
|
* @return iterable<null|scalar|\Stringable>
|
|
*/
|
|
public function block_checkbox_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", "checkbox_row"));
|
|
|
|
// line 170
|
|
yield "<div";
|
|
$__internal_compile_10 = $context;
|
|
$__internal_compile_11 = ["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.', 170, $this->source); })()), ["class" => Twig\Extension\CoreExtension::trim(((((CoreExtension::getAttribute($this->env, $this->source, ($context["row_attr"] ?? null), "class", [], "any", true, true, false, 170)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["row_attr"] ?? null), "class", [], "any", false, false, false, 170), "")) : ("")) . " form-group") . (( !(isset($context["valid"]) || array_key_exists("valid", $context) ? $context["valid"] : (function () { throw new RuntimeError('Variable "valid" does not exist.', 170, $this->source); })())) ? (" has-error") : (""))))])];
|
|
if (!is_iterable($__internal_compile_11)) {
|
|
throw new RuntimeError('Variables passed to the "with" tag must be a mapping.', 170, $this->getSourceContext());
|
|
}
|
|
$__internal_compile_11 = CoreExtension::toArray($__internal_compile_11);
|
|
$context = $__internal_compile_11 + $context + $this->env->getGlobals();
|
|
yield from $this->unwrap()->yieldBlock("attributes", $context, $blocks);
|
|
$context = $__internal_compile_10;
|
|
yield ">";
|
|
// line 171
|
|
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.', 171, $this->source); })()), 'widget');
|
|
// line 172
|
|
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.', 172, $this->source); })()), 'help');
|
|
// line 173
|
|
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.', 173, $this->source); })()), 'errors');
|
|
// line 174
|
|
yield "</div>";
|
|
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
|
|
|
|
yield from [];
|
|
}
|
|
|
|
// line 177
|
|
/**
|
|
* @return iterable<null|scalar|\Stringable>
|
|
*/
|
|
public function block_radio_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", "radio_row"));
|
|
|
|
// line 178
|
|
yield "<div";
|
|
$__internal_compile_12 = $context;
|
|
$__internal_compile_13 = ["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.', 178, $this->source); })()), ["class" => Twig\Extension\CoreExtension::trim(((((CoreExtension::getAttribute($this->env, $this->source, ($context["row_attr"] ?? null), "class", [], "any", true, true, false, 178)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["row_attr"] ?? null), "class", [], "any", false, false, false, 178), "")) : ("")) . " form-group") . (( !(isset($context["valid"]) || array_key_exists("valid", $context) ? $context["valid"] : (function () { throw new RuntimeError('Variable "valid" does not exist.', 178, $this->source); })())) ? (" has-error") : (""))))])];
|
|
if (!is_iterable($__internal_compile_13)) {
|
|
throw new RuntimeError('Variables passed to the "with" tag must be a mapping.', 178, $this->getSourceContext());
|
|
}
|
|
$__internal_compile_13 = CoreExtension::toArray($__internal_compile_13);
|
|
$context = $__internal_compile_13 + $context + $this->env->getGlobals();
|
|
yield from $this->unwrap()->yieldBlock("attributes", $context, $blocks);
|
|
$context = $__internal_compile_12;
|
|
yield ">";
|
|
// line 179
|
|
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.', 179, $this->source); })()), 'widget');
|
|
// line 180
|
|
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.', 180, $this->source); })()), 'help');
|
|
// line 181
|
|
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.', 181, $this->source); })()), 'errors');
|
|
// line 182
|
|
yield "</div>";
|
|
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
|
|
|
|
yield from [];
|
|
}
|
|
|
|
// line 187
|
|
/**
|
|
* @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 188
|
|
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.', 188, $this->source); })())) > 0)) {
|
|
// line 189
|
|
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.', 189, $this->source); })()))) {
|
|
yield "<span class=\"help-block\">";
|
|
} else {
|
|
yield "<div class=\"alert alert-danger\">";
|
|
}
|
|
// line 190
|
|
yield " <ul class=\"list-unstyled\">";
|
|
// line 191
|
|
$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.', 191, $this->source); })()));
|
|
foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
|
|
// line 192
|
|
yield "<li><span class=\"glyphicon glyphicon-exclamation-sign\"></span> ";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["error"], "message", [], "any", false, false, false, 192), "html", null, true);
|
|
yield "</li>";
|
|
}
|
|
$_parent = $context['_parent'];
|
|
unset($context['_seq'], $context['_key'], $context['error'], $context['_parent']);
|
|
$context = array_intersect_key($context, $_parent) + $_parent;
|
|
// line 194
|
|
yield "</ul>
|
|
";
|
|
// line 195
|
|
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.', 195, $this->source); })()))) {
|
|
yield "</span>";
|
|
} else {
|
|
yield "</div>";
|
|
}
|
|
}
|
|
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
|
|
|
|
yield from [];
|
|
}
|
|
|
|
// line 201
|
|
/**
|
|
* @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 202
|
|
if ( !Twig\Extension\CoreExtension::testEmpty((isset($context["help"]) || array_key_exists("help", $context) ? $context["help"] : (function () { throw new RuntimeError('Variable "help" does not exist.', 202, $this->source); })()))) {
|
|
// line 203
|
|
$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.', 203, $this->source); })()), ["class" => Twig\Extension\CoreExtension::trim((((CoreExtension::getAttribute($this->env, $this->source, ($context["help_attr"] ?? null), "class", [], "any", true, true, false, 203)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["help_attr"] ?? null), "class", [], "any", false, false, false, 203), "")) : ("")) . " help-block"))]);
|
|
// line 204
|
|
yield "<span id=\"";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 204, $this->source); })()), "html", null, true);
|
|
yield "_help\"";
|
|
$__internal_compile_14 = $context;
|
|
$__internal_compile_15 = ["attr" => (isset($context["help_attr"]) || array_key_exists("help_attr", $context) ? $context["help_attr"] : (function () { throw new RuntimeError('Variable "help_attr" does not exist.', 204, $this->source); })())];
|
|
if (!is_iterable($__internal_compile_15)) {
|
|
throw new RuntimeError('Variables passed to the "with" tag must be a mapping.', 204, $this->getSourceContext());
|
|
}
|
|
$__internal_compile_15 = CoreExtension::toArray($__internal_compile_15);
|
|
$context = $__internal_compile_15 + $context + $this->env->getGlobals();
|
|
yield from $this->unwrap()->yieldBlock("attributes", $context, $blocks);
|
|
$context = $__internal_compile_14;
|
|
yield ">";
|
|
// line 205
|
|
if (((isset($context["translation_domain"]) || array_key_exists("translation_domain", $context) ? $context["translation_domain"] : (function () { throw new RuntimeError('Variable "translation_domain" does not exist.', 205, $this->source); })()) === false)) {
|
|
// line 206
|
|
if (((isset($context["help_html"]) || array_key_exists("help_html", $context) ? $context["help_html"] : (function () { throw new RuntimeError('Variable "help_html" does not exist.', 206, $this->source); })()) === false)) {
|
|
// line 207
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["help"]) || array_key_exists("help", $context) ? $context["help"] : (function () { throw new RuntimeError('Variable "help" does not exist.', 207, $this->source); })()), "html", null, true);
|
|
} else {
|
|
// line 209
|
|
yield (isset($context["help"]) || array_key_exists("help", $context) ? $context["help"] : (function () { throw new RuntimeError('Variable "help" does not exist.', 209, $this->source); })());
|
|
}
|
|
} else {
|
|
// line 212
|
|
if (((isset($context["help_html"]) || array_key_exists("help_html", $context) ? $context["help_html"] : (function () { throw new RuntimeError('Variable "help_html" does not exist.', 212, $this->source); })()) === false)) {
|
|
// line 213
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["help"]) || array_key_exists("help", $context) ? $context["help"] : (function () { throw new RuntimeError('Variable "help" does not exist.', 213, $this->source); })()), (isset($context["help_translation_parameters"]) || array_key_exists("help_translation_parameters", $context) ? $context["help_translation_parameters"] : (function () { throw new RuntimeError('Variable "help_translation_parameters" does not exist.', 213, $this->source); })()), (isset($context["translation_domain"]) || array_key_exists("translation_domain", $context) ? $context["translation_domain"] : (function () { throw new RuntimeError('Variable "translation_domain" does not exist.', 213, $this->source); })())), "html", null, true);
|
|
} else {
|
|
// line 215
|
|
yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["help"]) || array_key_exists("help", $context) ? $context["help"] : (function () { throw new RuntimeError('Variable "help" does not exist.', 215, $this->source); })()), (isset($context["help_translation_parameters"]) || array_key_exists("help_translation_parameters", $context) ? $context["help_translation_parameters"] : (function () { throw new RuntimeError('Variable "help_translation_parameters" does not exist.', 215, $this->source); })()), (isset($context["translation_domain"]) || array_key_exists("translation_domain", $context) ? $context["translation_domain"] : (function () { throw new RuntimeError('Variable "translation_domain" does not exist.', 215, $this->source); })()));
|
|
}
|
|
}
|
|
// line 218
|
|
yield "</span>";
|
|
}
|
|
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
|
|
|
|
yield from [];
|
|
}
|
|
|
|
/**
|
|
* @codeCoverageIgnore
|
|
*/
|
|
public function getTemplateName(): string
|
|
{
|
|
return "bootstrap_3_layout.html.twig";
|
|
}
|
|
|
|
/**
|
|
* @codeCoverageIgnore
|
|
*/
|
|
public function getDebugInfo(): array
|
|
{
|
|
return array ( 870 => 218, 866 => 215, 863 => 213, 861 => 212, 857 => 209, 854 => 207, 852 => 206, 850 => 205, 836 => 204, 834 => 203, 832 => 202, 822 => 201, 809 => 195, 806 => 194, 798 => 192, 794 => 191, 792 => 190, 786 => 189, 784 => 188, 774 => 187, 766 => 182, 764 => 181, 762 => 180, 760 => 179, 748 => 178, 738 => 177, 730 => 174, 728 => 173, 726 => 172, 724 => 171, 712 => 170, 702 => 169, 694 => 166, 692 => 165, 682 => 164, 674 => 161, 672 => 160, 662 => 159, 654 => 156, 652 => 155, 642 => 154, 634 => 151, 632 => 150, 622 => 149, 614 => 146, 612 => 145, 600 => 144, 590 => 143, 582 => 140, 579 => 139, 577 => 138, 574 => 137, 571 => 136, 559 => 135, 556 => 133, 554 => 132, 552 => 131, 542 => 130, 533 => 124, 528 => 120, 525 => 118, 523 => 117, 519 => 114, 516 => 112, 514 => 111, 512 => 110, 508 => 109, 496 => 107, 492 => 104, 489 => 101, 488 => 100, 487 => 99, 485 => 98, 483 => 97, 480 => 95, 478 => 94, 476 => 93, 473 => 91, 471 => 90, 469 => 89, 459 => 87, 451 => 84, 449 => 82, 439 => 81, 431 => 78, 429 => 76, 419 => 75, 411 => 72, 409 => 71, 399 => 69, 391 => 66, 389 => 65, 379 => 64, 371 => 59, 369 => 58, 359 => 57, 350 => 53, 348 => 52, 346 => 51, 343 => 49, 341 => 48, 339 => 47, 329 => 46, 320 => 42, 318 => 41, 316 => 40, 313 => 38, 311 => 37, 309 => 36, 299 => 35, 290 => 31, 286 => 29, 280 => 27, 278 => 26, 276 => 25, 270 => 23, 268 => 22, 265 => 21, 262 => 20, 259 => 19, 257 => 18, 247 => 17, 239 => 14, 237 => 13, 227 => 12, 219 => 9, 216 => 7, 214 => 6, 204 => 5, 196 => 201, 193 => 200, 190 => 198, 188 => 187, 185 => 186, 182 => 184, 180 => 177, 177 => 176, 175 => 169, 172 => 168, 170 => 164, 167 => 163, 165 => 159, 162 => 158, 160 => 154, 157 => 153, 155 => 149, 152 => 148, 150 => 143, 147 => 142, 145 => 130, 142 => 129, 139 => 127, 137 => 87, 134 => 86, 132 => 81, 129 => 80, 127 => 75, 124 => 74, 122 => 69, 119 => 68, 117 => 64, 114 => 63, 111 => 61, 109 => 57, 106 => 56, 104 => 46, 101 => 45, 99 => 35, 96 => 34, 94 => 17, 91 => 16, 89 => 12, 86 => 11, 84 => 5, 81 => 4, 78 => 2, 35 => 1,);
|
|
}
|
|
|
|
public function getSourceContext(): Source
|
|
{
|
|
return new Source("{% use \"bootstrap_base_layout.html.twig\" %}
|
|
|
|
{# Widgets #}
|
|
|
|
{% block form_widget_simple -%}
|
|
{% if type is not defined or type not in ['file', 'hidden'] %}
|
|
{%- set attr = attr|merge({class: (attr.class|default('') ~ ' form-control')|trim}) -%}
|
|
{% endif %}
|
|
{{- parent() -}}
|
|
{%- endblock form_widget_simple %}
|
|
|
|
{% block button_widget -%}
|
|
{%- set attr = attr|merge({class: (attr.class|default('btn-default') ~ ' btn')|trim}) -%}
|
|
{{- parent() -}}
|
|
{%- endblock button_widget %}
|
|
|
|
{% 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\">
|
|
{% if prepend %}
|
|
<span class=\"input-group-addon\">{{ money_pattern|form_encode_currency }}</span>
|
|
{% endif %}
|
|
{{- block('form_widget_simple') -}}
|
|
{% if append %}
|
|
<span class=\"input-group-addon\">{{ money_pattern|form_encode_currency }}</span>
|
|
{% endif %}
|
|
</div>
|
|
{% else %}
|
|
{{- block('form_widget_simple') -}}
|
|
{% endif %}
|
|
{%- endblock money_widget %}
|
|
|
|
{% block checkbox_widget -%}
|
|
{%- set parent_label_class = parent_label_class|default(label_attr.class|default('')) -%}
|
|
{% if 'checkbox-inline' in parent_label_class %}
|
|
{{- form_label(form, null, { widget: parent() }) -}}
|
|
{% else -%}
|
|
<div class=\"checkbox\">
|
|
{{- form_label(form, null, { widget: parent() }) -}}
|
|
</div>
|
|
{%- endif -%}
|
|
{%- endblock checkbox_widget %}
|
|
|
|
{% block radio_widget -%}
|
|
{%- set parent_label_class = parent_label_class|default(label_attr.class|default('')) -%}
|
|
{%- if 'radio-inline' in parent_label_class -%}
|
|
{{- form_label(form, null, { widget: parent() }) -}}
|
|
{%- else -%}
|
|
<div class=\"radio\">
|
|
{{- form_label(form, null, { widget: parent() }) -}}
|
|
</div>
|
|
{%- endif -%}
|
|
{%- endblock radio_widget %}
|
|
|
|
{% block choice_widget_collapsed -%}
|
|
{%- set attr = attr|merge({class: (attr.class|default('') ~ ' form-control')|trim}) -%}
|
|
{{- parent() -}}
|
|
{%- endblock choice_widget_collapsed %}
|
|
|
|
{# Labels #}
|
|
|
|
{% block form_label -%}
|
|
{%- set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' control-label')|trim}) -%}
|
|
{{- parent() -}}
|
|
{%- endblock form_label %}
|
|
|
|
{% block choice_label -%}
|
|
{# remove the checkbox-inline and radio-inline class, it's only useful for embed labels #}
|
|
{%- set label_attr = label_attr|merge({class: label_attr.class|default('')|replace({'checkbox-inline': '', 'radio-inline': ''})|trim}) -%}
|
|
{{- block('form_label') -}}
|
|
{% endblock %}
|
|
|
|
{% block checkbox_label -%}
|
|
{%- set label_attr = label_attr|merge({'for': id}) -%}
|
|
|
|
{{- block('checkbox_radio_label') -}}
|
|
{%- endblock checkbox_label %}
|
|
|
|
{% block radio_label -%}
|
|
{%- set label_attr = label_attr|merge({'for': id}) -%}
|
|
|
|
{{- block('checkbox_radio_label') -}}
|
|
{%- endblock radio_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 -%}
|
|
{%- if required -%}
|
|
{%- set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' required')|trim}) -%}
|
|
{%- endif -%}
|
|
{%- if parent_label_class is defined -%}
|
|
{% set embed_label_classes = parent_label_class|split(' ')|filter(class => class in ['checkbox-inline', 'radio-inline']) %}
|
|
{%- set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' ' ~ embed_label_classes|join(' '))|trim}) -%}
|
|
{% endif %}
|
|
{%- if label is not same as(false) and label is empty -%}
|
|
{%- if label_format is not empty -%}
|
|
{%- set label = label_format|replace({
|
|
'%name%': name,
|
|
'%id%': id,
|
|
}) -%}
|
|
{%- else -%}
|
|
{% set label = name|humanize %}
|
|
{%- endif -%}
|
|
{%- endif -%}
|
|
<label{% with { attr: label_attr } %}{{ block('attributes') }}{% endwith %}>
|
|
{#- if statement must be kept on the same line, to force the space between widget and label -#}
|
|
{{- widget|raw }} {% if label is not same as(false) -%}
|
|
{%- if translation_domain is same as(false) -%}
|
|
{%- if label_html is same as(false) -%}
|
|
{{ label -}}
|
|
{%- else -%}
|
|
{{ label|raw -}}
|
|
{%- endif -%}
|
|
{%- else -%}
|
|
{%- if label_html is same as(false) -%}
|
|
{{ label|trans(label_translation_parameters, translation_domain) -}}
|
|
{%- else -%}
|
|
{{ label|trans(label_translation_parameters, translation_domain)|raw -}}
|
|
{%- endif -%}
|
|
{%- endif -%}
|
|
{%- endif -%}
|
|
</label>
|
|
{%- endif -%}
|
|
{%- endblock checkbox_radio_label %}
|
|
|
|
{# Rows #}
|
|
|
|
{% block form_row -%}
|
|
{%- set widget_attr = {} -%}
|
|
{%- if help is not empty -%}
|
|
{%- set widget_attr = {attr: {'aria-describedby': id ~\"_help\"}} -%}
|
|
{%- endif -%}
|
|
<div{% with {attr: row_attr|merge({class: (row_attr.class|default('') ~ ' form-group' ~ ((not compound or force_error|default(false)) and not valid ? ' has-error'))|trim})} %}{{ block('attributes') }}{% endwith %}>
|
|
{{- form_label(form) }} {# -#}
|
|
{{ form_widget(form, widget_attr) }} {# -#}
|
|
{{- form_help(form) -}}
|
|
{{ form_errors(form) }} {# -#}
|
|
</div> {# -#}
|
|
{%- endblock form_row %}
|
|
|
|
{% block button_row -%}
|
|
<div{% with {attr: row_attr|merge({class: (row_attr.class|default('') ~ ' form-group')|trim})} %}{{ block('attributes') }}{% endwith %}>
|
|
{{- form_widget(form) -}}
|
|
</div>
|
|
{%- endblock button_row %}
|
|
|
|
{% block choice_row -%}
|
|
{% set force_error = true %}
|
|
{{- block('form_row') }}
|
|
{%- endblock choice_row %}
|
|
|
|
{% block date_row -%}
|
|
{% set force_error = true %}
|
|
{{- block('form_row') }}
|
|
{%- endblock date_row %}
|
|
|
|
{% block time_row -%}
|
|
{% set force_error = true %}
|
|
{{- block('form_row') }}
|
|
{%- endblock time_row %}
|
|
|
|
{% block datetime_row -%}
|
|
{% set force_error = true %}
|
|
{{- block('form_row') }}
|
|
{%- endblock datetime_row %}
|
|
|
|
{% block checkbox_row -%}
|
|
<div{% with {attr: row_attr|merge({class: (row_attr.class|default('') ~ ' form-group' ~ (not valid ? ' has-error'))|trim})} %}{{ block('attributes') }}{% endwith %}>
|
|
{{- form_widget(form) -}}
|
|
{{- form_help(form) -}}
|
|
{{- form_errors(form) -}}
|
|
</div>
|
|
{%- endblock checkbox_row %}
|
|
|
|
{% block radio_row -%}
|
|
<div{% with {attr: row_attr|merge({class: (row_attr.class|default('') ~ ' form-group' ~ (not valid ? ' has-error'))|trim})} %}{{ block('attributes') }}{% endwith %}>
|
|
{{- form_widget(form) -}}
|
|
{{- form_help(form) -}}
|
|
{{- form_errors(form) -}}
|
|
</div>
|
|
{%- endblock radio_row %}
|
|
|
|
{# Errors #}
|
|
|
|
{% block form_errors -%}
|
|
{% if errors|length > 0 -%}
|
|
{% if form is not rootform %}<span class=\"help-block\">{% else %}<div class=\"alert alert-danger\">{% endif %}
|
|
<ul class=\"list-unstyled\">
|
|
{%- for error in errors -%}
|
|
<li><span class=\"glyphicon glyphicon-exclamation-sign\"></span> {{ error.message }}</li>
|
|
{%- endfor -%}
|
|
</ul>
|
|
{% if form is not rootform %}</span>{% else %}</div>{% endif %}
|
|
{%- endif %}
|
|
{%- endblock form_errors %}
|
|
|
|
{# Help #}
|
|
|
|
{% block form_help -%}
|
|
{%- if help is not empty -%}
|
|
{%- set help_attr = help_attr|merge({class: (help_attr.class|default('') ~ ' help-block')|trim}) -%}
|
|
<span id=\"{{ id }}_help\"{% with { attr: help_attr } %}{{ block('attributes') }}{% endwith %}>
|
|
{%- if translation_domain is same as(false) -%}
|
|
{%- if help_html is same as(false) -%}
|
|
{{- help -}}
|
|
{%- else -%}
|
|
{{- help|raw -}}
|
|
{%- endif -%}
|
|
{%- else -%}
|
|
{%- if help_html is same as(false) -%}
|
|
{{- help|trans(help_translation_parameters, translation_domain) -}}
|
|
{%- else -%}
|
|
{{- help|trans(help_translation_parameters, translation_domain)|raw -}}
|
|
{%- endif -%}
|
|
{%- endif -%}
|
|
</span>
|
|
{%- endif -%}
|
|
{%- endblock form_help %}
|
|
", "bootstrap_3_layout.html.twig", "/home/skylar/Projects/mycomments-api/vendor/symfony/twig-bridge/Resources/views/Form/bootstrap_3_layout.html.twig");
|
|
}
|
|
}
|