Files
masimmo.pl/var/cache/prod/twig/74/74aa5448e427686df78833eaa93d0ced520061dc254e80b1961abf6a5aac44e9.php
2024-11-20 09:09:44 +01:00

741 lines
41 KiB
PHP

<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;
/* bootstrap_4_layout.html.twig */
class __TwigTemplate_c2987d7fcffae74f33c1ad0d378f3be562b953d72a9a6ad26979dbeaf7b28243 extends \Twig\Template
{
public function __construct(Environment $env)
{
parent::__construct($env);
$this->parent = false;
$_trait_0 = $this->loadTemplate("bootstrap_base_layout.html.twig", "bootstrap_4_layout.html.twig", 1);
// line 1
if (!$_trait_0->isTraitable()) {
throw new RuntimeError('Template "'."bootstrap_base_layout.html.twig".'" cannot be used as a trait.', 1, $this->getSourceContext());
}
$_trait_0_blocks = $_trait_0->getBlocks();
$this->traits = $_trait_0_blocks;
$this->blocks = array_merge(
$this->traits,
[
'money_widget' => [$this, 'block_money_widget'],
'datetime_widget' => [$this, 'block_datetime_widget'],
'date_widget' => [$this, 'block_date_widget'],
'time_widget' => [$this, 'block_time_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_expanded' => [$this, 'block_choice_widget_expanded'],
'form_label' => [$this, 'block_form_label'],
'form_label_errors' => [$this, 'block_form_label_errors'],
'checkbox_radio_label' => [$this, 'block_checkbox_radio_label'],
'form_row' => [$this, 'block_form_row'],
'form_errors' => [$this, 'block_form_errors'],
]
);
}
protected function doDisplay(array $context, array $blocks = [])
{
// line 2
echo "
";
// line 4
echo "
";
// line 5
$this->displayBlock('money_widget', $context, $blocks);
// line 26
echo "
";
// line 27
$this->displayBlock('datetime_widget', $context, $blocks);
// line 34
echo "
";
// line 35
$this->displayBlock('date_widget', $context, $blocks);
// line 42
echo "
";
// line 43
$this->displayBlock('time_widget', $context, $blocks);
// line 50
echo "
";
// line 51
$this->displayBlock('dateinterval_widget', $context, $blocks);
// line 107
echo "
";
// line 108
$this->displayBlock('percent_widget', $context, $blocks);
// line 116
echo "
";
// line 117
$this->displayBlock('form_widget_simple', $context, $blocks);
// line 128
$this->displayBlock('widget_attributes', $context, $blocks);
// line 135
$this->displayBlock('button_widget', $context, $blocks);
// line 139
echo "
";
// line 140
$this->displayBlock('submit_widget', $context, $blocks);
// line 144
echo "
";
// line 145
$this->displayBlock('checkbox_widget', $context, $blocks);
// line 159
echo "
";
// line 160
$this->displayBlock('radio_widget', $context, $blocks);
// line 174
echo "
";
// line 175
$this->displayBlock('choice_widget_expanded', $context, $blocks);
// line 186
echo "
";
// line 188
echo "
";
// line 189
$this->displayBlock('form_label', $context, $blocks);
// line 219
echo "
";
// line 220
$this->displayBlock('checkbox_radio_label', $context, $blocks);
// line 257
echo "
";
// line 259
echo "
";
// line 260
$this->displayBlock('form_row', $context, $blocks);
// line 269
echo "
";
// line 271
echo "
";
// line 272
$this->displayBlock('form_errors', $context, $blocks);
}
// line 5
public function block_money_widget($context, array $blocks = [])
{
// line 6
$context["prepend"] = !(is_string($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4 = ($context["money_pattern"] ?? null)) && is_string($__internal_62824350bc4502ee19dbc2e99fc6bdd3bd90e7d8dd6e72f42c35efd048542144 = "{{") && ('' === $__internal_62824350bc4502ee19dbc2e99fc6bdd3bd90e7d8dd6e72f42c35efd048542144 || 0 === strpos($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4, $__internal_62824350bc4502ee19dbc2e99fc6bdd3bd90e7d8dd6e72f42c35efd048542144)));
// line 7
$context["append"] = !(is_string($__internal_1cfccaec8dd2e8578ccb026fbe7f2e7e29ac2ed5deb976639c5fc99a6ea8583b = ($context["money_pattern"] ?? null)) && is_string($__internal_68aa442c1d43d3410ea8f958ba9090f3eaa9a76f8de8fc9be4d6c7389ba28002 = "}}") && ('' === $__internal_68aa442c1d43d3410ea8f958ba9090f3eaa9a76f8de8fc9be4d6c7389ba28002 || $__internal_68aa442c1d43d3410ea8f958ba9090f3eaa9a76f8de8fc9be4d6c7389ba28002 === substr($__internal_1cfccaec8dd2e8578ccb026fbe7f2e7e29ac2ed5deb976639c5fc99a6ea8583b, -strlen($__internal_68aa442c1d43d3410ea8f958ba9090f3eaa9a76f8de8fc9be4d6c7389ba28002))));
// line 8
if ((($context["prepend"] ?? null) || ($context["append"] ?? null))) {
// line 9
echo "<div class=\"input-group";
echo twig_escape_filter($this->env, ((array_key_exists("group_class", $context)) ? (_twig_default_filter(($context["group_class"] ?? null), "")) : ("")), "html", null, true);
echo "\">";
// line 10
if (($context["prepend"] ?? null)) {
// line 11
echo "<div class=\"input-group-prepend\">
<span class=\"input-group-text\">";
// line 12
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->encodeCurrency($this->env, ($context["money_pattern"] ?? null));
echo "</span>
</div>";
}
// line 15
$this->displayBlock("form_widget_simple", $context, $blocks);
// line 16
if (($context["append"] ?? null)) {
// line 17
echo "<div class=\"input-group-append\">
<span class=\"input-group-text\">";
// line 18
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->encodeCurrency($this->env, ($context["money_pattern"] ?? null));
echo "</span>
</div>";
}
// line 21
echo "</div>";
} else {
// line 23
$this->displayBlock("form_widget_simple", $context, $blocks);
}
}
// line 27
public function block_datetime_widget($context, array $blocks = [])
{
// line 28
if (((($context["widget"] ?? null) != "single_text") && !($context["valid"] ?? null))) {
// line 29
$context["attr"] = twig_array_merge(($context["attr"] ?? null), ["class" => twig_trim_filter(((($this->getAttribute(($context["attr"] ?? null), "class", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["attr"] ?? null), "class", []), "")) : ("")) . " form-control is-invalid"))]);
// line 30
$context["valid"] = true;
}
// line 32
$this->displayParentBlock("datetime_widget", $context, $blocks);
}
// line 35
public function block_date_widget($context, array $blocks = [])
{
// line 36
if (((($context["widget"] ?? null) != "single_text") && !($context["valid"] ?? null))) {
// line 37
$context["attr"] = twig_array_merge(($context["attr"] ?? null), ["class" => twig_trim_filter(((($this->getAttribute(($context["attr"] ?? null), "class", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["attr"] ?? null), "class", []), "")) : ("")) . " form-control is-invalid"))]);
// line 38
$context["valid"] = true;
}
// line 40
$this->displayParentBlock("date_widget", $context, $blocks);
}
// line 43
public function block_time_widget($context, array $blocks = [])
{
// line 44
if (((($context["widget"] ?? null) != "single_text") && !($context["valid"] ?? null))) {
// line 45
$context["attr"] = twig_array_merge(($context["attr"] ?? null), ["class" => twig_trim_filter(((($this->getAttribute(($context["attr"] ?? null), "class", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["attr"] ?? null), "class", []), "")) : ("")) . " form-control is-invalid"))]);
// line 46
$context["valid"] = true;
}
// line 48
$this->displayParentBlock("time_widget", $context, $blocks);
}
// line 51
public function block_dateinterval_widget($context, array $blocks = [])
{
// line 52
if (((($context["widget"] ?? null) != "single_text") && !($context["valid"] ?? null))) {
// line 53
$context["attr"] = twig_array_merge(($context["attr"] ?? null), ["class" => twig_trim_filter(((($this->getAttribute(($context["attr"] ?? null), "class", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["attr"] ?? null), "class", []), "")) : ("")) . " form-control is-invalid"))]);
// line 54
$context["valid"] = true;
}
// line 56
if ((($context["widget"] ?? null) == "single_text")) {
// line 57
$this->displayBlock("form_widget_simple", $context, $blocks);
} else {
// line 59
$context["attr"] = twig_array_merge(($context["attr"] ?? null), ["class" => twig_trim_filter(((($this->getAttribute(($context["attr"] ?? null), "class", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["attr"] ?? null), "class", []), "")) : ("")) . " form-inline"))]);
// line 60
echo "<div ";
$this->displayBlock("widget_container_attributes", $context, $blocks);
echo ">";
// line 61
if (($context["with_years"] ?? null)) {
// line 62
echo "<div class=\"col-auto\">
";
// line 63
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "years", []), 'label');
echo "
";
// line 64
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "years", []), 'widget');
echo "
</div>";
}
// line 67
if (($context["with_months"] ?? null)) {
// line 68
echo "<div class=\"col-auto\">
";
// line 69
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "months", []), 'label');
echo "
";
// line 70
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "months", []), 'widget');
echo "
</div>";
}
// line 73
if (($context["with_weeks"] ?? null)) {
// line 74
echo "<div class=\"col-auto\">
";
// line 75
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "weeks", []), 'label');
echo "
";
// line 76
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "weeks", []), 'widget');
echo "
</div>";
}
// line 79
if (($context["with_days"] ?? null)) {
// line 80
echo "<div class=\"col-auto\">
";
// line 81
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "days", []), 'label');
echo "
";
// line 82
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "days", []), 'widget');
echo "
</div>";
}
// line 85
if (($context["with_hours"] ?? null)) {
// line 86
echo "<div class=\"col-auto\">
";
// line 87
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "hours", []), 'label');
echo "
";
// line 88
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "hours", []), 'widget');
echo "
</div>";
}
// line 91
if (($context["with_minutes"] ?? null)) {
// line 92
echo "<div class=\"col-auto\">
";
// line 93
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "minutes", []), 'label');
echo "
";
// line 94
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "minutes", []), 'widget');
echo "
</div>";
}
// line 97
if (($context["with_seconds"] ?? null)) {
// line 98
echo "<div class=\"col-auto\">
";
// line 99
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "seconds", []), 'label');
echo "
";
// line 100
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "seconds", []), 'widget');
echo "
</div>";
}
// line 103
if (($context["with_invert"] ?? null)) {
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "invert", []), 'widget');
}
// line 104
echo "</div>";
}
}
// line 108
public function block_percent_widget($context, array $blocks = [])
{
// line 109
echo "<div class=\"input-group\">";
// line 110
$this->displayBlock("form_widget_simple", $context, $blocks);
// line 111
echo "<div class=\"input-group-append\">
<span class=\"input-group-text\">%</span>
</div>
</div>";
}
// line 117
public function block_form_widget_simple($context, array $blocks = [])
{
// line 118
if (( !array_key_exists("type", $context) || (($context["type"] ?? null) != "hidden"))) {
// line 119
$context["attr"] = twig_array_merge(($context["attr"] ?? null), ["class" => twig_trim_filter((((($this->getAttribute(($context["attr"] ?? null), "class", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["attr"] ?? null), "class", []), "")) : ("")) . " form-control") . (((((array_key_exists("type", $context)) ? (_twig_default_filter(($context["type"] ?? null), "")) : ("")) == "file")) ? ("-file") : (""))))]);
}
// line 121
if ((array_key_exists("type", $context) && ((($context["type"] ?? null) == "range") || (($context["type"] ?? null) == "color")))) {
// line 122
echo " ";
// line 123
$context["required"] = false;
}
// line 125
$this->displayParentBlock("form_widget_simple", $context, $blocks);
}
// line 128
public function block_widget_attributes($context, array $blocks = [])
{
// line 129
if ( !($context["valid"] ?? null)) {
// line 130
echo " ";
$context["attr"] = twig_array_merge(($context["attr"] ?? null), ["class" => twig_trim_filter(((($this->getAttribute(($context["attr"] ?? null), "class", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["attr"] ?? null), "class", []), "")) : ("")) . " is-invalid"))]);
// line 131
echo " ";
}
// line 132
$this->displayParentBlock("widget_attributes", $context, $blocks);
}
// line 135
public function block_button_widget($context, array $blocks = [])
{
// line 136
$context["attr"] = twig_array_merge(($context["attr"] ?? null), ["class" => twig_trim_filter(((($this->getAttribute(($context["attr"] ?? null), "class", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["attr"] ?? null), "class", []), "btn-secondary")) : ("btn-secondary")) . " btn"))]);
// line 137
$this->displayParentBlock("button_widget", $context, $blocks);
}
// line 140
public function block_submit_widget($context, array $blocks = [])
{
// line 141
$context["attr"] = twig_array_merge(($context["attr"] ?? null), ["class" => twig_trim_filter((($this->getAttribute(($context["attr"] ?? null), "class", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["attr"] ?? null), "class", []), "btn-primary")) : ("btn-primary")))]);
// line 142
$this->displayParentBlock("submit_widget", $context, $blocks);
}
// line 145
public function block_checkbox_widget($context, array $blocks = [])
{
// line 146
$context["parent_label_class"] = ((array_key_exists("parent_label_class", $context)) ? (_twig_default_filter(($context["parent_label_class"] ?? null), (($this->getAttribute(($context["label_attr"] ?? null), "class", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["label_attr"] ?? null), "class", []), "")) : ("")))) : ((($this->getAttribute(($context["label_attr"] ?? null), "class", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["label_attr"] ?? null), "class", []), "")) : (""))));
// line 147
if (twig_in_filter("checkbox-custom", ($context["parent_label_class"] ?? null))) {
// line 148
$context["attr"] = twig_array_merge(($context["attr"] ?? null), ["class" => twig_trim_filter(((($this->getAttribute(($context["attr"] ?? null), "class", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["attr"] ?? null), "class", []), "")) : ("")) . " custom-control-input"))]);
// line 149
echo "<div class=\"custom-control custom-checkbox";
echo ((twig_in_filter("checkbox-inline", ($context["parent_label_class"] ?? null))) ? (" custom-control-inline") : (""));
echo "\">";
// line 150
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'label', ["widget" => $this->renderParentBlock("checkbox_widget", $context, $blocks)]);
// line 151
echo "</div>";
} else {
// line 153
$context["attr"] = twig_array_merge(($context["attr"] ?? null), ["class" => twig_trim_filter(((($this->getAttribute(($context["attr"] ?? null), "class", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["attr"] ?? null), "class", []), "")) : ("")) . " form-check-input"))]);
// line 154
echo "<div class=\"form-check";
echo ((twig_in_filter("checkbox-inline", ($context["parent_label_class"] ?? null))) ? (" form-check-inline") : (""));
echo "\">";
// line 155
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'label', ["widget" => $this->renderParentBlock("checkbox_widget", $context, $blocks)]);
// line 156
echo "</div>";
}
}
// line 160
public function block_radio_widget($context, array $blocks = [])
{
// line 161
$context["parent_label_class"] = ((array_key_exists("parent_label_class", $context)) ? (_twig_default_filter(($context["parent_label_class"] ?? null), (($this->getAttribute(($context["label_attr"] ?? null), "class", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["label_attr"] ?? null), "class", []), "")) : ("")))) : ((($this->getAttribute(($context["label_attr"] ?? null), "class", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["label_attr"] ?? null), "class", []), "")) : (""))));
// line 162
if (twig_in_filter("radio-custom", ($context["parent_label_class"] ?? null))) {
// line 163
$context["attr"] = twig_array_merge(($context["attr"] ?? null), ["class" => twig_trim_filter(((($this->getAttribute(($context["attr"] ?? null), "class", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["attr"] ?? null), "class", []), "")) : ("")) . " custom-control-input"))]);
// line 164
echo "<div class=\"custom-control custom-radio";
echo ((twig_in_filter("radio-inline", ($context["parent_label_class"] ?? null))) ? (" custom-control-inline") : (""));
echo "\">";
// line 165
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'label', ["widget" => $this->renderParentBlock("radio_widget", $context, $blocks)]);
// line 166
echo "</div>";
} else {
// line 168
$context["attr"] = twig_array_merge(($context["attr"] ?? null), ["class" => twig_trim_filter(((($this->getAttribute(($context["attr"] ?? null), "class", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["attr"] ?? null), "class", []), "")) : ("")) . " form-check-input"))]);
// line 169
echo "<div class=\"form-check";
echo ((twig_in_filter("radio-inline", ($context["parent_label_class"] ?? null))) ? (" form-check-inline") : (""));
echo "\">";
// line 170
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'label', ["widget" => $this->renderParentBlock("radio_widget", $context, $blocks)]);
// line 171
echo "</div>";
}
}
// line 175
public function block_choice_widget_expanded($context, array $blocks = [])
{
// line 176
echo "<div ";
$this->displayBlock("widget_container_attributes", $context, $blocks);
echo ">";
// line 177
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["form"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
// line 178
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["child"], 'widget', ["parent_label_class" => (($this->getAttribute( // line 179
($context["label_attr"] ?? null), "class", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["label_attr"] ?? null), "class", []), "")) : ("")), "translation_domain" => // line 180
($context["choice_translation_domain"] ?? null), "valid" => // line 181
($context["valid"] ?? null)]);
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 184
echo "</div>";
}
// line 189
public function block_form_label($context, array $blocks = [])
{
// line 190
if ( !(($context["label"] ?? null) === false)) {
// line 191
if ((array_key_exists("compound", $context) && ($context["compound"] ?? null))) {
// line 192
$context["element"] = "legend";
// line 193
$context["label_attr"] = twig_array_merge(($context["label_attr"] ?? null), ["class" => twig_trim_filter(((($this->getAttribute(($context["label_attr"] ?? null), "class", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["label_attr"] ?? null), "class", []), "")) : ("")) . " col-form-label"))]);
} else {
// line 195
$context["label_attr"] = twig_array_merge(($context["label_attr"] ?? null), ["for" => ($context["id"] ?? null)]);
}
// line 197
if (($context["required"] ?? null)) {
// line 198
$context["label_attr"] = twig_array_merge(($context["label_attr"] ?? null), ["class" => twig_trim_filter(((($this->getAttribute(($context["label_attr"] ?? null), "class", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["label_attr"] ?? null), "class", []), "")) : ("")) . " required"))]);
}
// line 200
if (twig_test_empty(($context["label"] ?? null))) {
// line 201
if ( !twig_test_empty(($context["label_format"] ?? null))) {
// line 202
$context["label"] = twig_replace_filter(($context["label_format"] ?? null), ["%name%" => // line 203
($context["name"] ?? null), "%id%" => // line 204
($context["id"] ?? null)]);
} else {
// line 207
$context["label"] = $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->humanize(($context["name"] ?? null));
}
}
// line 210
echo "<";
echo twig_escape_filter($this->env, ((array_key_exists("element", $context)) ? (_twig_default_filter(($context["element"] ?? null), "label")) : ("label")), "html", null, true);
if (($context["label_attr"] ?? null)) {
$__internal_d7fc55f1a54b629533d60b43063289db62e68921ee7a5f8de562bd9d4a2b7ad4 = ["attr" => ($context["label_attr"] ?? null)];
if (!twig_test_iterable($__internal_d7fc55f1a54b629533d60b43063289db62e68921ee7a5f8de562bd9d4a2b7ad4)) {
throw new RuntimeError('Variables passed to the "with" tag must be a hash.', 210, $this->getSourceContext());
}
$__internal_d7fc55f1a54b629533d60b43063289db62e68921ee7a5f8de562bd9d4a2b7ad4 = twig_to_array($__internal_d7fc55f1a54b629533d60b43063289db62e68921ee7a5f8de562bd9d4a2b7ad4);
$context['_parent'] = $context;
$context = $this->env->mergeGlobals(array_merge($context, $__internal_d7fc55f1a54b629533d60b43063289db62e68921ee7a5f8de562bd9d4a2b7ad4));
$this->displayBlock("attributes", $context, $blocks);
$context = $context['_parent'];
}
echo ">";
echo twig_escape_filter($this->env, (((($context["translation_domain"] ?? null) === false)) ? (($context["label"] ?? null)) : ($this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans(($context["label"] ?? null), [], ($context["translation_domain"] ?? null)))), "html", null, true);
$this->displayBlock('form_label_errors', $context, $blocks);
echo "</";
echo twig_escape_filter($this->env, ((array_key_exists("element", $context)) ? (_twig_default_filter(($context["element"] ?? null), "label")) : ("label")), "html", null, true);
echo ">";
} else {
// line 212
if ((twig_length_filter($this->env, ($context["errors"] ?? null)) > 0)) {
// line 213
echo "<div id=\"";
echo twig_escape_filter($this->env, ($context["id"] ?? null), "html", null, true);
echo "_errors\" class=\"mb-2\">";
// line 214
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'errors');
// line 215
echo "</div>";
}
}
}
// line 210
public function block_form_label_errors($context, array $blocks = [])
{
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'errors');
}
// line 220
public function block_checkbox_radio_label($context, array $blocks = [])
{
// line 222
if (array_key_exists("widget", $context)) {
// line 223
$context["is_parent_custom"] = (array_key_exists("parent_label_class", $context) && (twig_in_filter("checkbox-custom", ($context["parent_label_class"] ?? null)) || twig_in_filter("radio-custom", ($context["parent_label_class"] ?? null))));
// line 224
echo " ";
$context["is_custom"] = ($this->getAttribute(($context["label_attr"] ?? null), "class", [], "any", true, true) && (twig_in_filter("checkbox-custom", $this->getAttribute(($context["label_attr"] ?? null), "class", [])) || twig_in_filter("radio-custom", $this->getAttribute(($context["label_attr"] ?? null), "class", []))));
// line 225
if ((($context["is_parent_custom"] ?? null) || ($context["is_custom"] ?? null))) {
// line 226
$context["label_attr"] = twig_array_merge(($context["label_attr"] ?? null), ["class" => twig_trim_filter(((($this->getAttribute(($context["label_attr"] ?? null), "class", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["label_attr"] ?? null), "class", []), "")) : ("")) . " custom-control-label"))]);
} else {
// line 228
$context["label_attr"] = twig_array_merge(($context["label_attr"] ?? null), ["class" => twig_trim_filter(((($this->getAttribute(($context["label_attr"] ?? null), "class", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["label_attr"] ?? null), "class", []), "")) : ("")) . " form-check-label"))]);
}
// line 230
if ( !($context["compound"] ?? null)) {
// line 231
$context["label_attr"] = twig_array_merge(($context["label_attr"] ?? null), ["for" => ($context["id"] ?? null)]);
}
// line 233
if (($context["required"] ?? null)) {
// line 234
$context["label_attr"] = twig_array_merge(($context["label_attr"] ?? null), ["class" => twig_trim_filter(((($this->getAttribute(($context["label_attr"] ?? null), "class", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["label_attr"] ?? null), "class", []), "")) : ("")) . " required"))]);
}
// line 236
if (array_key_exists("parent_label_class", $context)) {
// line 237
$context["label_attr"] = twig_array_merge(($context["label_attr"] ?? null), ["class" => twig_trim_filter(twig_replace_filter((((($this->getAttribute(($context["label_attr"] ?? null), "class", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["label_attr"] ?? null), "class", []), "")) : ("")) . " ") . ($context["parent_label_class"] ?? null)), ["checkbox-inline" => "", "radio-inline" => "", "checkbox-custom" => "", "radio-custom" => ""]))]);
}
// line 239
if (( !(($context["label"] ?? null) === false) && twig_test_empty(($context["label"] ?? null)))) {
// line 240
if ( !twig_test_empty(($context["label_format"] ?? null))) {
// line 241
$context["label"] = twig_replace_filter(($context["label_format"] ?? null), ["%name%" => // line 242
($context["name"] ?? null), "%id%" => // line 243
($context["id"] ?? null)]);
} else {
// line 246
$context["label"] = $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->humanize(($context["name"] ?? null));
}
}
// line 250
echo ($context["widget"] ?? null);
echo "
<label";
// line 251
$__internal_01476f8db28655ee4ee02ea2d17dd5a92599be76304f08cd8bc0e05aced30666 = ["attr" => ($context["label_attr"] ?? null)];
if (!twig_test_iterable($__internal_01476f8db28655ee4ee02ea2d17dd5a92599be76304f08cd8bc0e05aced30666)) {
throw new RuntimeError('Variables passed to the "with" tag must be a hash.', 251, $this->getSourceContext());
}
$__internal_01476f8db28655ee4ee02ea2d17dd5a92599be76304f08cd8bc0e05aced30666 = twig_to_array($__internal_01476f8db28655ee4ee02ea2d17dd5a92599be76304f08cd8bc0e05aced30666);
$context['_parent'] = $context;
$context = $this->env->mergeGlobals(array_merge($context, $__internal_01476f8db28655ee4ee02ea2d17dd5a92599be76304f08cd8bc0e05aced30666));
$this->displayBlock("attributes", $context, $blocks);
$context = $context['_parent'];
echo ">";
// line 252
(( !(($context["label"] ?? null) === false)) ? (print (twig_escape_filter($this->env, (((($context["translation_domain"] ?? null) === false)) ? (($context["label"] ?? null)) : ($this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans(($context["label"] ?? null), [], ($context["translation_domain"] ?? null)))), "html", null, true))) : (print ("")));
// line 253
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'errors');
// line 254
echo "</label>";
}
}
// line 260
public function block_form_row($context, array $blocks = [])
{
// line 261
if ((array_key_exists("compound", $context) && ($context["compound"] ?? null))) {
// line 262
$context["element"] = "fieldset";
}
// line 264
echo "<";
echo twig_escape_filter($this->env, ((array_key_exists("element", $context)) ? (_twig_default_filter(($context["element"] ?? null), "div")) : ("div")), "html", null, true);
echo " class=\"form-group\">";
// line 265
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'label');
// line 266
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'widget');
// line 267
echo "</";
echo twig_escape_filter($this->env, ((array_key_exists("element", $context)) ? (_twig_default_filter(($context["element"] ?? null), "div")) : ("div")), "html", null, true);
echo ">";
}
// line 272
public function block_form_errors($context, array $blocks = [])
{
// line 273
if ((twig_length_filter($this->env, ($context["errors"] ?? null)) > 0)) {
// line 274
echo "<span class=\"";
if ( !Symfony\Bridge\Twig\Extension\twig_is_root_form(($context["form"] ?? null))) {
echo "invalid-feedback";
} else {
echo "alert alert-danger";
}
echo " d-block\">";
// line 275
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["errors"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
// line 276
echo "<span class=\"d-block\">
<span class=\"form-error-icon badge badge-danger text-uppercase\">";
// line 277
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Error", [], "validators"), "html", null, true);
echo "</span> <span class=\"form-error-message\">";
echo twig_escape_filter($this->env, $this->getAttribute($context["error"], "message", []), "html", null, true);
echo "</span>
</span>";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 280
echo "</span>";
}
}
public function getTemplateName()
{
return "bootstrap_4_layout.html.twig";
}
public function getDebugInfo()
{
return array ( 714 => 280, 704 => 277, 701 => 276, 697 => 275, 689 => 274, 687 => 273, 684 => 272, 678 => 267, 676 => 266, 674 => 265, 670 => 264, 667 => 262, 665 => 261, 662 => 260, 657 => 254, 655 => 253, 653 => 252, 642 => 251, 638 => 250, 634 => 246, 631 => 243, 630 => 242, 629 => 241, 627 => 240, 625 => 239, 622 => 237, 620 => 236, 617 => 234, 615 => 233, 612 => 231, 610 => 230, 607 => 228, 604 => 226, 602 => 225, 599 => 224, 597 => 223, 595 => 222, 592 => 220, 586 => 210, 580 => 215, 578 => 214, 574 => 213, 572 => 212, 551 => 210, 547 => 207, 544 => 204, 543 => 203, 542 => 202, 540 => 201, 538 => 200, 535 => 198, 533 => 197, 530 => 195, 527 => 193, 525 => 192, 523 => 191, 521 => 190, 518 => 189, 514 => 184, 508 => 181, 507 => 180, 506 => 179, 505 => 178, 501 => 177, 497 => 176, 494 => 175, 489 => 171, 487 => 170, 483 => 169, 481 => 168, 478 => 166, 476 => 165, 472 => 164, 470 => 163, 468 => 162, 466 => 161, 463 => 160, 458 => 156, 456 => 155, 452 => 154, 450 => 153, 447 => 151, 445 => 150, 441 => 149, 439 => 148, 437 => 147, 435 => 146, 432 => 145, 428 => 142, 426 => 141, 423 => 140, 419 => 137, 417 => 136, 414 => 135, 410 => 132, 407 => 131, 404 => 130, 402 => 129, 399 => 128, 395 => 125, 392 => 123, 390 => 122, 388 => 121, 385 => 119, 383 => 118, 380 => 117, 373 => 111, 371 => 110, 369 => 109, 366 => 108, 361 => 104, 357 => 103, 352 => 100, 348 => 99, 345 => 98, 343 => 97, 338 => 94, 334 => 93, 331 => 92, 329 => 91, 324 => 88, 320 => 87, 317 => 86, 315 => 85, 310 => 82, 306 => 81, 303 => 80, 301 => 79, 296 => 76, 292 => 75, 289 => 74, 287 => 73, 282 => 70, 278 => 69, 275 => 68, 273 => 67, 268 => 64, 264 => 63, 261 => 62, 259 => 61, 255 => 60, 253 => 59, 250 => 57, 248 => 56, 245 => 54, 243 => 53, 241 => 52, 238 => 51, 234 => 48, 231 => 46, 229 => 45, 227 => 44, 224 => 43, 220 => 40, 217 => 38, 215 => 37, 213 => 36, 210 => 35, 206 => 32, 203 => 30, 201 => 29, 199 => 28, 196 => 27, 191 => 23, 188 => 21, 183 => 18, 180 => 17, 178 => 16, 176 => 15, 171 => 12, 168 => 11, 166 => 10, 162 => 9, 160 => 8, 158 => 7, 156 => 6, 153 => 5, 149 => 272, 146 => 271, 143 => 269, 141 => 260, 138 => 259, 135 => 257, 133 => 220, 130 => 219, 128 => 189, 125 => 188, 122 => 186, 120 => 175, 117 => 174, 115 => 160, 112 => 159, 110 => 145, 107 => 144, 105 => 140, 102 => 139, 100 => 135, 98 => 128, 96 => 117, 93 => 116, 91 => 108, 88 => 107, 86 => 51, 83 => 50, 81 => 43, 78 => 42, 76 => 35, 73 => 34, 71 => 27, 68 => 26, 66 => 5, 63 => 4, 60 => 2, 25 => 1,);
}
/** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
public function getSource()
{
@trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
return $this->getSourceContext()->getCode();
}
public function getSourceContext()
{
return new Source("", "bootstrap_4_layout.html.twig", "/home/admin/domains/masimmo.pl/public_html/vendor/symfony/symfony/src/Symfony/Bridge/Twig/Resources/views/Form/bootstrap_4_layout.html.twig");
}
}