Current File : //var/www/prestashop/var/cache/prod/twig/64/64d66407ddef024ee3694d3ef5d75b1d.php |
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;
/* bootstrap_4_layout.html.twig */
class __TwigTemplate_98503f3c7718bd00a73fa28433ae9e21 extends Template
{
private $source;
private $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_4_layout.html.twig", 1);
if (!$_trait_0->isTraitable()) {
throw new RuntimeError('Template "'."bootstrap_base_layout.html.twig".'" cannot be used as a trait.', 1, $this->source);
}
$_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'],
'file_widget' => [$this, 'block_file_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'],
'form_help' => [$this, 'block_form_help'],
]
);
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
// 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 120
echo "
";
// line 121
$this->displayBlock('file_widget', $context, $blocks);
// line 133
echo "
";
// line 134
$this->displayBlock('form_widget_simple', $context, $blocks);
// line 150
echo "
";
// line 151
$this->displayBlock('widget_attributes', $context, $blocks);
// line 157
echo "
";
// line 158
$this->displayBlock('button_widget', $context, $blocks);
// line 162
echo "
";
// line 163
$this->displayBlock('submit_widget', $context, $blocks);
// line 167
echo "
";
// line 168
$this->displayBlock('checkbox_widget', $context, $blocks);
// line 187
echo "
";
// line 188
$this->displayBlock('radio_widget', $context, $blocks);
// line 202
echo "
";
// line 203
$this->displayBlock('choice_widget_expanded', $context, $blocks);
// line 214
echo "
";
// line 216
echo "
";
// line 217
$this->displayBlock('form_label', $context, $blocks);
// line 247
echo "
";
// line 248
$this->displayBlock('checkbox_radio_label', $context, $blocks);
// line 282
echo "
";
// line 284
echo "
";
// line 285
$this->displayBlock('form_row', $context, $blocks);
// line 299
echo "
";
// line 301
echo "
";
// line 302
$this->displayBlock('form_errors', $context, $blocks);
// line 313
echo "
";
// line 315
echo "
";
// line 316
$this->displayBlock('form_help', $context, $blocks);
}
// line 5
public function block_money_widget($context, array $blocks = [])
{
$macros = $this->macros;
// line 6
$context["prepend"] = !(is_string($__internal_compile_0 = ($context["money_pattern"] ?? null)) && is_string($__internal_compile_1 = "{{") && ('' === $__internal_compile_1 || 0 === strpos($__internal_compile_0, $__internal_compile_1)));
// line 7
$context["append"] = !(is_string($__internal_compile_2 = ($context["money_pattern"] ?? null)) && is_string($__internal_compile_3 = "}}") && ('' === $__internal_compile_3 || $__internal_compile_3 === substr($__internal_compile_2, -strlen($__internal_compile_3))));
// 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 = [])
{
$macros = $this->macros;
// 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((((twig_get_attribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", true, true, false, 29)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", false, false, false, 29), "")) : ("")) . " 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 = [])
{
$macros = $this->macros;
// 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((((twig_get_attribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", true, true, false, 37)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", false, false, false, 37), "")) : ("")) . " 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 = [])
{
$macros = $this->macros;
// 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((((twig_get_attribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", true, true, false, 45)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", false, false, false, 45), "")) : ("")) . " 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 = [])
{
$macros = $this->macros;
// 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((((twig_get_attribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", true, true, false, 53)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", false, false, false, 53), "")) : ("")) . " 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((((twig_get_attribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", true, true, false, 59)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", false, false, false, 59), "")) : ("")) . " 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(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "years", [], "any", false, false, false, 63), 'label');
echo "
";
// line 64
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "years", [], "any", false, false, false, 64), '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(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "months", [], "any", false, false, false, 69), 'label');
echo "
";
// line 70
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "months", [], "any", false, false, false, 70), '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(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "weeks", [], "any", false, false, false, 75), 'label');
echo "
";
// line 76
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "weeks", [], "any", false, false, false, 76), '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(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "days", [], "any", false, false, false, 81), 'label');
echo "
";
// line 82
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "days", [], "any", false, false, false, 82), '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(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "hours", [], "any", false, false, false, 87), 'label');
echo "
";
// line 88
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "hours", [], "any", false, false, false, 88), '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(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "minutes", [], "any", false, false, false, 93), 'label');
echo "
";
// line 94
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "minutes", [], "any", false, false, false, 94), '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(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "seconds", [], "any", false, false, false, 99), 'label');
echo "
";
// line 100
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "seconds", [], "any", false, false, false, 100), 'widget');
echo "
</div>";
}
// line 103
if (($context["with_invert"] ?? null)) {
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "invert", [], "any", false, false, false, 103), 'widget');
}
// line 104
echo "</div>";
}
}
// line 108
public function block_percent_widget($context, array $blocks = [])
{
$macros = $this->macros;
// line 109
if (($context["symbol"] ?? null)) {
// line 110
echo "<div class=\"input-group\">";
// line 111
$this->displayBlock("form_widget_simple", $context, $blocks);
// line 112
echo "<div class=\"input-group-append\">
<span class=\"input-group-text\">";
// line 113
echo twig_escape_filter($this->env, ((array_key_exists("symbol", $context)) ? (_twig_default_filter(($context["symbol"] ?? null), "%")) : ("%")), "html", null, true);
echo "</span>
</div>
</div>";
} else {
// line 117
$this->displayBlock("form_widget_simple", $context, $blocks);
}
}
// line 121
public function block_file_widget($context, array $blocks = [])
{
$macros = $this->macros;
// line 122
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=\"custom-file\">";
// line 123
$context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter(($context["type"] ?? null), "file")) : ("file"));
// line 124
$this->displayBlock("form_widget_simple", $context, $blocks);
// line 125
$context["label_attr"] = twig_array_filter($this->env, twig_array_merge(($context["label_attr"] ?? null), ["class" => twig_trim_filter((((twig_get_attribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", true, true, false, 125)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", false, false, false, 125), "")) : ("")) . " custom-file-label"))]), function ($__value__, $__key__) use ($context, $macros) { $context["value"] = $__value__; $context["key"] = $__key__; return (($context["key"] ?? null) != "id"); });
// line 126
echo "<label for=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "vars", [], "any", false, false, false, 126), "id", [], "any", false, false, false, 126), "html", null, true);
echo "\" ";
$__internal_compile_4 = $context;
$__internal_compile_5 = ["attr" => ($context["label_attr"] ?? null)];
if (!twig_test_iterable($__internal_compile_5)) {
throw new RuntimeError('Variables passed to the "with" tag must be a hash.', 126, $this->getSourceContext());
}
$__internal_compile_5 = twig_to_array($__internal_compile_5);
$context = $this->env->mergeGlobals(array_merge($context, $__internal_compile_5));
$this->displayBlock("attributes", $context, $blocks);
$context = $__internal_compile_4;
echo ">";
// line 127
if ((twig_get_attribute($this->env, $this->source, ($context["attr"] ?? null), "placeholder", [], "any", true, true, false, 127) && !(null === twig_get_attribute($this->env, $this->source, ($context["attr"] ?? null), "placeholder", [], "any", false, false, false, 127)))) {
// line 128
echo twig_escape_filter($this->env, (((($context["translation_domain"] ?? null) === false)) ? (twig_get_attribute($this->env, $this->source, ($context["attr"] ?? null), "placeholder", [], "any", false, false, false, 128)) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env, $this->source, ($context["attr"] ?? null), "placeholder", [], "any", false, false, false, 128), [], ($context["translation_domain"] ?? null)))), "html", null, true);
}
// line 130
echo "</label>
</";
// line 131
echo twig_escape_filter($this->env, ((array_key_exists("element", $context)) ? (_twig_default_filter(($context["element"] ?? null), "div")) : ("div")), "html", null, true);
echo ">
";
}
// line 134
public function block_form_widget_simple($context, array $blocks = [])
{
$macros = $this->macros;
// line 135
if (( !array_key_exists("type", $context) || (($context["type"] ?? null) != "hidden"))) {
// line 136
$context["className"] = " form-control";
// line 137
if ((((array_key_exists("type", $context)) ? (_twig_default_filter(($context["type"] ?? null), "")) : ("")) == "file")) {
// line 138
$context["className"] = " custom-file-input";
} elseif (((( // line 139
array_key_exists("type", $context)) ? (_twig_default_filter(($context["type"] ?? null), "")) : ("")) == "range")) {
// line 140
$context["className"] = " form-control-range";
}
// line 142
$context["attr"] = twig_array_merge(($context["attr"] ?? null), ["class" => twig_trim_filter((((twig_get_attribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", true, true, false, 142)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", false, false, false, 142), "")) : ("")) . ($context["className"] ?? null)))]);
}
// line 144
if ((array_key_exists("type", $context) && ((($context["type"] ?? null) == "range") || (($context["type"] ?? null) == "color")))) {
// line 145
echo " ";
// line 146
$context["required"] = false;
}
// line 148
$this->displayParentBlock("form_widget_simple", $context, $blocks);
}
// line 151
public function block_widget_attributes($context, array $blocks = [])
{
$macros = $this->macros;
// line 152
if ( !($context["valid"] ?? null)) {
// line 153
$context["attr"] = twig_array_merge(($context["attr"] ?? null), ["class" => twig_trim_filter((((twig_get_attribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", true, true, false, 153)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", false, false, false, 153), "")) : ("")) . " is-invalid"))]);
}
// line 155
$this->displayParentBlock("widget_attributes", $context, $blocks);
}
// line 158
public function block_button_widget($context, array $blocks = [])
{
$macros = $this->macros;
// line 159
$context["attr"] = twig_array_merge(($context["attr"] ?? null), ["class" => twig_trim_filter((((twig_get_attribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", true, true, false, 159)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", false, false, false, 159), "btn-secondary")) : ("btn-secondary")) . " btn"))]);
// line 160
$this->displayParentBlock("button_widget", $context, $blocks);
}
// line 163
public function block_submit_widget($context, array $blocks = [])
{
$macros = $this->macros;
// line 164
$context["attr"] = twig_array_merge(($context["attr"] ?? null), ["class" => twig_trim_filter(((twig_get_attribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", true, true, false, 164)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", false, false, false, 164), "btn-primary")) : ("btn-primary")))]);
// line 165
$this->displayParentBlock("submit_widget", $context, $blocks);
}
// line 168
public function block_checkbox_widget($context, array $blocks = [])
{
$macros = $this->macros;
// line 169
$context["parent_label_class"] = ((array_key_exists("parent_label_class", $context)) ? (_twig_default_filter(($context["parent_label_class"] ?? null), ((twig_get_attribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", true, true, false, 169)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", false, false, false, 169), "")) : ("")))) : (((twig_get_attribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", true, true, false, 169)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", false, false, false, 169), "")) : (""))));
// line 170
if (twig_in_filter("checkbox-custom", ($context["parent_label_class"] ?? null))) {
// line 171
$context["attr"] = twig_array_merge(($context["attr"] ?? null), ["class" => twig_trim_filter((((twig_get_attribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", true, true, false, 171)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", false, false, false, 171), "")) : ("")) . " custom-control-input"))]);
// line 172
echo "<div class=\"custom-control custom-checkbox";
echo ((twig_in_filter("checkbox-inline", ($context["parent_label_class"] ?? null))) ? (" custom-control-inline") : (""));
echo "\">";
// line 173
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'label', ["widget" => $this->renderParentBlock("checkbox_widget", $context, $blocks)]);
// line 174
echo "</div>";
} elseif (twig_in_filter("switch-custom", // line 175
($context["parent_label_class"] ?? null))) {
// line 176
$context["attr"] = twig_array_merge(($context["attr"] ?? null), ["class" => twig_trim_filter((((twig_get_attribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", true, true, false, 176)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", false, false, false, 176), "")) : ("")) . " custom-control-input"))]);
// line 177
echo "<div class=\"custom-control custom-switch";
echo ((twig_in_filter("switch-inline", ($context["parent_label_class"] ?? null))) ? (" custom-control-inline") : (""));
echo "\">";
// line 178
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'label', ["widget" => $this->renderParentBlock("checkbox_widget", $context, $blocks)]);
// line 179
echo "</div>";
} else {
// line 181
$context["attr"] = twig_array_merge(($context["attr"] ?? null), ["class" => twig_trim_filter((((twig_get_attribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", true, true, false, 181)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", false, false, false, 181), "")) : ("")) . " form-check-input"))]);
// line 182
echo "<div class=\"form-check";
echo ((twig_in_filter("checkbox-inline", ($context["parent_label_class"] ?? null))) ? (" form-check-inline") : (""));
echo "\">";
// line 183
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'label', ["widget" => $this->renderParentBlock("checkbox_widget", $context, $blocks)]);
// line 184
echo "</div>";
}
}
// line 188
public function block_radio_widget($context, array $blocks = [])
{
$macros = $this->macros;
// line 189
$context["parent_label_class"] = ((array_key_exists("parent_label_class", $context)) ? (_twig_default_filter(($context["parent_label_class"] ?? null), ((twig_get_attribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", true, true, false, 189)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", false, false, false, 189), "")) : ("")))) : (((twig_get_attribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", true, true, false, 189)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", false, false, false, 189), "")) : (""))));
// line 190
if (twig_in_filter("radio-custom", ($context["parent_label_class"] ?? null))) {
// line 191
$context["attr"] = twig_array_merge(($context["attr"] ?? null), ["class" => twig_trim_filter((((twig_get_attribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", true, true, false, 191)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", false, false, false, 191), "")) : ("")) . " custom-control-input"))]);
// line 192
echo "<div class=\"custom-control custom-radio";
echo ((twig_in_filter("radio-inline", ($context["parent_label_class"] ?? null))) ? (" custom-control-inline") : (""));
echo "\">";
// line 193
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'label', ["widget" => $this->renderParentBlock("radio_widget", $context, $blocks)]);
// line 194
echo "</div>";
} else {
// line 196
$context["attr"] = twig_array_merge(($context["attr"] ?? null), ["class" => twig_trim_filter((((twig_get_attribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", true, true, false, 196)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["attr"] ?? null), "class", [], "any", false, false, false, 196), "")) : ("")) . " form-check-input"))]);
// line 197
echo "<div class=\"form-check";
echo ((twig_in_filter("radio-inline", ($context["parent_label_class"] ?? null))) ? (" form-check-inline") : (""));
echo "\">";
// line 198
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'label', ["widget" => $this->renderParentBlock("radio_widget", $context, $blocks)]);
// line 199
echo "</div>";
}
}
// line 203
public function block_choice_widget_expanded($context, array $blocks = [])
{
$macros = $this->macros;
// line 204
echo "<div ";
$this->displayBlock("widget_container_attributes", $context, $blocks);
echo ">";
// line 205
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["form"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
// line 206
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["child"], 'widget', ["parent_label_class" => ((twig_get_attribute($this->env, $this->source, // line 207
($context["label_attr"] ?? null), "class", [], "any", true, true, false, 207)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", false, false, false, 207), "")) : ("")), "translation_domain" => // line 208
($context["choice_translation_domain"] ?? null), "valid" => // line 209
($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 212
echo "</div>";
}
// line 217
public function block_form_label($context, array $blocks = [])
{
$macros = $this->macros;
// line 218
if ( !(($context["label"] ?? null) === false)) {
// line 219
if ((array_key_exists("compound", $context) && ($context["compound"] ?? null))) {
// line 220
$context["element"] = "legend";
// line 221
$context["label_attr"] = twig_array_merge(($context["label_attr"] ?? null), ["class" => twig_trim_filter((((twig_get_attribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", true, true, false, 221)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", false, false, false, 221), "")) : ("")) . " col-form-label"))]);
} else {
// line 223
$context["label_attr"] = twig_array_merge(($context["label_attr"] ?? null), ["for" => ($context["id"] ?? null)]);
}
// line 225
if (($context["required"] ?? null)) {
// line 226
$context["label_attr"] = twig_array_merge(($context["label_attr"] ?? null), ["class" => twig_trim_filter((((twig_get_attribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", true, true, false, 226)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", false, false, false, 226), "")) : ("")) . " required"))]);
}
// line 228
if (twig_test_empty(($context["label"] ?? null))) {
// line 229
if ( !twig_test_empty(($context["label_format"] ?? null))) {
// line 230
$context["label"] = twig_replace_filter(($context["label_format"] ?? null), ["%name%" => // line 231
($context["name"] ?? null), "%id%" => // line 232
($context["id"] ?? null)]);
} else {
// line 235
$context["label"] = $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->humanize(($context["name"] ?? null));
}
}
// line 238
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_compile_6 = $context;
$__internal_compile_7 = ["attr" => ($context["label_attr"] ?? null)];
if (!twig_test_iterable($__internal_compile_7)) {
throw new RuntimeError('Variables passed to the "with" tag must be a hash.', 238, $this->getSourceContext());
}
$__internal_compile_7 = twig_to_array($__internal_compile_7);
$context = $this->env->mergeGlobals(array_merge($context, $__internal_compile_7));
$this->displayBlock("attributes", $context, $blocks);
$context = $__internal_compile_6;
}
echo ">";
echo twig_escape_filter($this->env, (((($context["translation_domain"] ?? null) === false)) ? (($context["label"] ?? null)) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(($context["label"] ?? null), ($context["label_translation_parameters"] ?? 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 240
if ((twig_length_filter($this->env, ($context["errors"] ?? null)) > 0)) {
// line 241
echo "<div id=\"";
echo twig_escape_filter($this->env, ($context["id"] ?? null), "html", null, true);
echo "_errors\" class=\"mb-2\">";
// line 242
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'errors');
// line 243
echo "</div>";
}
}
}
// line 238
public function block_form_label_errors($context, array $blocks = [])
{
$macros = $this->macros;
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'errors');
}
// line 248
public function block_checkbox_radio_label($context, array $blocks = [])
{
$macros = $this->macros;
// line 250
if (array_key_exists("widget", $context)) {
// line 251
$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))) || twig_in_filter("switch-custom", ($context["parent_label_class"] ?? null))));
// line 252
echo " ";
$context["is_custom"] = (twig_get_attribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", true, true, false, 252) && ((twig_in_filter("checkbox-custom", twig_get_attribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", false, false, false, 252)) || twig_in_filter("radio-custom", twig_get_attribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", false, false, false, 252))) || twig_in_filter("switch-custom", twig_get_attribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", false, false, false, 252))));
// line 253
if ((($context["is_parent_custom"] ?? null) || ($context["is_custom"] ?? null))) {
// line 254
$context["label_attr"] = twig_array_merge(($context["label_attr"] ?? null), ["class" => twig_trim_filter((((twig_get_attribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", true, true, false, 254)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", false, false, false, 254), "")) : ("")) . " custom-control-label"))]);
} else {
// line 256
$context["label_attr"] = twig_array_merge(($context["label_attr"] ?? null), ["class" => twig_trim_filter((((twig_get_attribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", true, true, false, 256)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", false, false, false, 256), "")) : ("")) . " form-check-label"))]);
}
// line 258
if ( !($context["compound"] ?? null)) {
// line 259
$context["label_attr"] = twig_array_merge(($context["label_attr"] ?? null), ["for" => ($context["id"] ?? null)]);
}
// line 261
if (($context["required"] ?? null)) {
// line 262
$context["label_attr"] = twig_array_merge(($context["label_attr"] ?? null), ["class" => twig_trim_filter((((twig_get_attribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", true, true, false, 262)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["label_attr"] ?? null), "class", [], "any", false, false, false, 262), "")) : ("")) . " required"))]);
}
// line 264
if (( !(($context["label"] ?? null) === false) && twig_test_empty(($context["label"] ?? null)))) {
// line 265
if ( !twig_test_empty(($context["label_format"] ?? null))) {
// line 266
$context["label"] = twig_replace_filter(($context["label_format"] ?? null), ["%name%" => // line 267
($context["name"] ?? null), "%id%" => // line 268
($context["id"] ?? null)]);
} else {
// line 271
$context["label"] = $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->humanize(($context["name"] ?? null));
}
}
// line 275
echo ($context["widget"] ?? null);
echo "
<label";
// line 276
$__internal_compile_8 = $context;
$__internal_compile_9 = ["attr" => ($context["label_attr"] ?? null)];
if (!twig_test_iterable($__internal_compile_9)) {
throw new RuntimeError('Variables passed to the "with" tag must be a hash.', 276, $this->getSourceContext());
}
$__internal_compile_9 = twig_to_array($__internal_compile_9);
$context = $this->env->mergeGlobals(array_merge($context, $__internal_compile_9));
$this->displayBlock("attributes", $context, $blocks);
$context = $__internal_compile_8;
echo ">";
// line 277
(( !(($context["label"] ?? null) === false)) ? (print (twig_escape_filter($this->env, (((($context["translation_domain"] ?? null) === false)) ? (($context["label"] ?? null)) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(($context["label"] ?? null), ($context["label_translation_parameters"] ?? null), ($context["translation_domain"] ?? null)))), "html", null, true))) : (print ("")));
// line 278
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'errors');
// line 279
echo "</label>";
}
}
// line 285
public function block_form_row($context, array $blocks = [])
{
$macros = $this->macros;
// line 286
if ((array_key_exists("compound", $context) && ($context["compound"] ?? null))) {
// line 287
$context["element"] = "fieldset";
}
// line 289
$context["widget_attr"] = [];
// line 290
if ( !twig_test_empty(($context["help"] ?? null))) {
// line 291
$context["widget_attr"] = ["attr" => ["aria-describedby" => (($context["id"] ?? null) . "_help")]];
}
// line 293
echo "<";
echo twig_escape_filter($this->env, ((array_key_exists("element", $context)) ? (_twig_default_filter(($context["element"] ?? null), "div")) : ("div")), "html", null, true);
$__internal_compile_10 = $context;
$__internal_compile_11 = ["attr" => twig_array_merge(($context["row_attr"] ?? null), ["class" => twig_trim_filter((((twig_get_attribute($this->env, $this->source, ($context["row_attr"] ?? null), "class", [], "any", true, true, false, 293)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["row_attr"] ?? null), "class", [], "any", false, false, false, 293), "")) : ("")) . " form-group"))])];
if (!twig_test_iterable($__internal_compile_11)) {
throw new RuntimeError('Variables passed to the "with" tag must be a hash.', 293, $this->getSourceContext());
}
$__internal_compile_11 = twig_to_array($__internal_compile_11);
$context = $this->env->mergeGlobals(array_merge($context, $__internal_compile_11));
$this->displayBlock("attributes", $context, $blocks);
$context = $__internal_compile_10;
echo ">";
// line 294
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'label');
// line 295
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'widget', ($context["widget_attr"] ?? null));
// line 296
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'help');
// line 297
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 302
public function block_form_errors($context, array $blocks = [])
{
$macros = $this->macros;
// line 303
if ((twig_length_filter($this->env, ($context["errors"] ?? null)) > 0)) {
// line 304
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 305
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["errors"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
// line 306
echo "<span class=\"d-block\">
<span class=\"form-error-icon badge badge-danger text-uppercase\">";
// line 307
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Error", [], "validators"), "html", null, true);
echo "</span> <span class=\"form-error-message\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["error"], "message", [], "any", false, false, false, 307), "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 310
echo "</span>";
}
}
// line 316
public function block_form_help($context, array $blocks = [])
{
$macros = $this->macros;
// line 317
if ( !twig_test_empty(($context["help"] ?? null))) {
// line 318
$context["help_attr"] = twig_array_merge(($context["help_attr"] ?? null), ["class" => twig_trim_filter((((twig_get_attribute($this->env, $this->source, ($context["help_attr"] ?? null), "class", [], "any", true, true, false, 318)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["help_attr"] ?? null), "class", [], "any", false, false, false, 318), "")) : ("")) . " form-text text-muted"))]);
// line 319
echo "<small id=\"";
echo twig_escape_filter($this->env, ($context["id"] ?? null), "html", null, true);
echo "_help\"";
$__internal_compile_12 = $context;
$__internal_compile_13 = ["attr" => ($context["help_attr"] ?? null)];
if (!twig_test_iterable($__internal_compile_13)) {
throw new RuntimeError('Variables passed to the "with" tag must be a hash.', 319, $this->getSourceContext());
}
$__internal_compile_13 = twig_to_array($__internal_compile_13);
$context = $this->env->mergeGlobals(array_merge($context, $__internal_compile_13));
$this->displayBlock("attributes", $context, $blocks);
$context = $__internal_compile_12;
echo ">";
// line 320
if ((($context["translation_domain"] ?? null) === false)) {
// line 321
if ((($context["help_html"] ?? null) === false)) {
// line 322
echo twig_escape_filter($this->env, ($context["help"] ?? null), "html", null, true);
} else {
// line 324
echo ($context["help"] ?? null);
}
} else {
// line 327
if ((($context["help_html"] ?? null) === false)) {
// line 328
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(($context["help"] ?? null), ($context["help_translation_parameters"] ?? null), ($context["translation_domain"] ?? null)), "html", null, true);
} else {
// line 330
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(($context["help"] ?? null), ($context["help_translation_parameters"] ?? null), ($context["translation_domain"] ?? null));
}
}
// line 333
echo "</small>";
}
}
public function getTemplateName()
{
return "bootstrap_4_layout.html.twig";
}
public function getDebugInfo()
{
return array ( 891 => 333, 887 => 330, 884 => 328, 882 => 327, 878 => 324, 875 => 322, 873 => 321, 871 => 320, 857 => 319, 855 => 318, 853 => 317, 849 => 316, 844 => 310, 834 => 307, 831 => 306, 827 => 305, 819 => 304, 817 => 303, 813 => 302, 807 => 297, 805 => 296, 803 => 295, 801 => 294, 788 => 293, 785 => 291, 783 => 290, 781 => 289, 778 => 287, 776 => 286, 772 => 285, 767 => 279, 765 => 278, 763 => 277, 752 => 276, 748 => 275, 744 => 271, 741 => 268, 740 => 267, 739 => 266, 737 => 265, 735 => 264, 732 => 262, 730 => 261, 727 => 259, 725 => 258, 722 => 256, 719 => 254, 717 => 253, 714 => 252, 712 => 251, 710 => 250, 706 => 248, 699 => 238, 693 => 243, 691 => 242, 687 => 241, 685 => 240, 664 => 238, 660 => 235, 657 => 232, 656 => 231, 655 => 230, 653 => 229, 651 => 228, 648 => 226, 646 => 225, 643 => 223, 640 => 221, 638 => 220, 636 => 219, 634 => 218, 630 => 217, 626 => 212, 620 => 209, 619 => 208, 618 => 207, 617 => 206, 613 => 205, 609 => 204, 605 => 203, 600 => 199, 598 => 198, 594 => 197, 592 => 196, 589 => 194, 587 => 193, 583 => 192, 581 => 191, 579 => 190, 577 => 189, 573 => 188, 568 => 184, 566 => 183, 562 => 182, 560 => 181, 557 => 179, 555 => 178, 551 => 177, 549 => 176, 547 => 175, 545 => 174, 543 => 173, 539 => 172, 537 => 171, 535 => 170, 533 => 169, 529 => 168, 525 => 165, 523 => 164, 519 => 163, 515 => 160, 513 => 159, 509 => 158, 505 => 155, 502 => 153, 500 => 152, 496 => 151, 492 => 148, 489 => 146, 487 => 145, 485 => 144, 482 => 142, 479 => 140, 477 => 139, 475 => 138, 473 => 137, 471 => 136, 469 => 135, 465 => 134, 459 => 131, 456 => 130, 453 => 128, 451 => 127, 437 => 126, 435 => 125, 433 => 124, 431 => 123, 427 => 122, 423 => 121, 418 => 117, 412 => 113, 409 => 112, 407 => 111, 405 => 110, 403 => 109, 399 => 108, 394 => 104, 390 => 103, 385 => 100, 381 => 99, 378 => 98, 376 => 97, 371 => 94, 367 => 93, 364 => 92, 362 => 91, 357 => 88, 353 => 87, 350 => 86, 348 => 85, 343 => 82, 339 => 81, 336 => 80, 334 => 79, 329 => 76, 325 => 75, 322 => 74, 320 => 73, 315 => 70, 311 => 69, 308 => 68, 306 => 67, 301 => 64, 297 => 63, 294 => 62, 292 => 61, 288 => 60, 286 => 59, 283 => 57, 281 => 56, 278 => 54, 276 => 53, 274 => 52, 270 => 51, 266 => 48, 263 => 46, 261 => 45, 259 => 44, 255 => 43, 251 => 40, 248 => 38, 246 => 37, 244 => 36, 240 => 35, 236 => 32, 233 => 30, 231 => 29, 229 => 28, 225 => 27, 220 => 23, 217 => 21, 212 => 18, 209 => 17, 207 => 16, 205 => 15, 200 => 12, 197 => 11, 195 => 10, 191 => 9, 189 => 8, 187 => 7, 185 => 6, 181 => 5, 177 => 316, 174 => 315, 171 => 313, 169 => 302, 166 => 301, 163 => 299, 161 => 285, 158 => 284, 155 => 282, 153 => 248, 150 => 247, 148 => 217, 145 => 216, 142 => 214, 140 => 203, 137 => 202, 135 => 188, 132 => 187, 130 => 168, 127 => 167, 125 => 163, 122 => 162, 120 => 158, 117 => 157, 115 => 151, 112 => 150, 110 => 134, 107 => 133, 105 => 121, 102 => 120, 100 => 108, 97 => 107, 95 => 51, 92 => 50, 90 => 43, 87 => 42, 85 => 35, 82 => 34, 80 => 27, 77 => 26, 75 => 5, 72 => 4, 69 => 2, 30 => 1,);
}
public function getSourceContext()
{
return new Source("", "bootstrap_4_layout.html.twig", "/var/www/prestashop/vendor/symfony/symfony/src/Symfony/Bridge/Twig/Resources/views/Form/bootstrap_4_layout.html.twig");
}
}