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

1124 lines
52 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;
/* @PrestaShop/Admin/TwigTemplateForm/form_div_layout.html.twig */
class __TwigTemplate_bd70c016757d2027a58cc4603a1b9fd2cbe76c1feadf2f9f25d3d48daa77fd9e extends \Twig\Template
{
public function __construct(Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = [
'form_widget' => [$this, 'block_form_widget'],
'form_widget_simple' => [$this, 'block_form_widget_simple'],
'form_widget_compound' => [$this, 'block_form_widget_compound'],
'collection_widget' => [$this, 'block_collection_widget'],
'textarea_widget' => [$this, 'block_textarea_widget'],
'choice_widget' => [$this, 'block_choice_widget'],
'choice_widget_expanded' => [$this, 'block_choice_widget_expanded'],
'choice_widget_collapsed' => [$this, 'block_choice_widget_collapsed'],
'choice_widget_options' => [$this, 'block_choice_widget_options'],
'checkbox_widget' => [$this, 'block_checkbox_widget'],
'radio_widget' => [$this, 'block_radio_widget'],
'datetime_widget' => [$this, 'block_datetime_widget'],
'date_widget' => [$this, 'block_date_widget'],
'time_widget' => [$this, 'block_time_widget'],
'number_widget' => [$this, 'block_number_widget'],
'integer_widget' => [$this, 'block_integer_widget'],
'money_widget' => [$this, 'block_money_widget'],
'url_widget' => [$this, 'block_url_widget'],
'search_widget' => [$this, 'block_search_widget'],
'percent_widget' => [$this, 'block_percent_widget'],
'password_widget' => [$this, 'block_password_widget'],
'hidden_widget' => [$this, 'block_hidden_widget'],
'email_widget' => [$this, 'block_email_widget'],
'button_widget' => [$this, 'block_button_widget'],
'submit_widget' => [$this, 'block_submit_widget'],
'reset_widget' => [$this, 'block_reset_widget'],
'form_label' => [$this, 'block_form_label'],
'button_label' => [$this, 'block_button_label'],
'repeated_row' => [$this, 'block_repeated_row'],
'form_row' => [$this, 'block_form_row'],
'button_row' => [$this, 'block_button_row'],
'hidden_row' => [$this, 'block_hidden_row'],
'form' => [$this, 'block_form'],
'form_start' => [$this, 'block_form_start'],
'form_end' => [$this, 'block_form_end'],
'form_enctype' => [$this, 'block_form_enctype'],
'form_errors' => [$this, 'block_form_errors'],
'form_rest' => [$this, 'block_form_rest'],
'form_rows' => [$this, 'block_form_rows'],
'widget_attributes' => [$this, 'block_widget_attributes'],
'widget_container_attributes' => [$this, 'block_widget_container_attributes'],
'button_attributes' => [$this, 'block_button_attributes'],
'attributes' => [$this, 'block_attributes'],
];
}
protected function doDisplay(array $context, array $blocks = [])
{
// line 27
$this->displayBlock('form_widget', $context, $blocks);
// line 37
$this->displayBlock('form_widget_simple', $context, $blocks);
// line 43
$this->displayBlock('form_widget_compound', $context, $blocks);
// line 53
$this->displayBlock('collection_widget', $context, $blocks);
// line 60
$this->displayBlock('textarea_widget', $context, $blocks);
// line 65
$this->displayBlock('choice_widget', $context, $blocks);
// line 73
$this->displayBlock('choice_widget_expanded', $context, $blocks);
// line 82
$this->displayBlock('choice_widget_collapsed', $context, $blocks);
// line 103
$this->displayBlock('choice_widget_options', $context, $blocks);
// line 116
$this->displayBlock('checkbox_widget', $context, $blocks);
// line 122
$this->displayBlock('radio_widget', $context, $blocks);
// line 128
$this->displayBlock('datetime_widget', $context, $blocks);
// line 141
$this->displayBlock('date_widget', $context, $blocks);
// line 155
$this->displayBlock('time_widget', $context, $blocks);
// line 166
$this->displayBlock('number_widget', $context, $blocks);
// line 173
$this->displayBlock('integer_widget', $context, $blocks);
// line 178
$this->displayBlock('money_widget', $context, $blocks);
// line 182
$this->displayBlock('url_widget', $context, $blocks);
// line 187
$this->displayBlock('search_widget', $context, $blocks);
// line 192
$this->displayBlock('percent_widget', $context, $blocks);
// line 197
$this->displayBlock('password_widget', $context, $blocks);
// line 202
$this->displayBlock('hidden_widget', $context, $blocks);
// line 207
$this->displayBlock('email_widget', $context, $blocks);
// line 212
$this->displayBlock('button_widget', $context, $blocks);
// line 226
$this->displayBlock('submit_widget', $context, $blocks);
// line 231
$this->displayBlock('reset_widget', $context, $blocks);
// line 238
$this->displayBlock('form_label', $context, $blocks);
// line 272
$this->displayBlock('button_label', $context, $blocks);
// line 276
$this->displayBlock('repeated_row', $context, $blocks);
// line 284
$this->displayBlock('form_row', $context, $blocks);
// line 292
$this->displayBlock('button_row', $context, $blocks);
// line 298
$this->displayBlock('hidden_row', $context, $blocks);
// line 304
$this->displayBlock('form', $context, $blocks);
// line 310
$this->displayBlock('form_start', $context, $blocks);
// line 324
$this->displayBlock('form_end', $context, $blocks);
// line 331
$this->displayBlock('form_enctype', $context, $blocks);
// line 335
$this->displayBlock('form_errors', $context, $blocks);
// line 345
$this->displayBlock('form_rest', $context, $blocks);
// line 356
echo "
";
// line 359
$this->displayBlock('form_rows', $context, $blocks);
// line 365
$this->displayBlock('widget_attributes', $context, $blocks);
// line 382
$this->displayBlock('widget_container_attributes', $context, $blocks);
// line 396
$this->displayBlock('button_attributes', $context, $blocks);
// line 410
$this->displayBlock('attributes', $context, $blocks);
}
// line 27
public function block_form_widget($context, array $blocks = [])
{
// line 28
if (($context["compound"] ?? null)) {
// line 29
$this->displayBlock("form_widget_compound", $context, $blocks);
} else {
// line 31
$this->displayBlock("form_widget_simple", $context, $blocks);
}
// line 34
$this->displayBlock("form_help", $context, $blocks);
}
// line 37
public function block_form_widget_simple($context, array $blocks = [])
{
// line 38
$context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter(($context["type"] ?? null), "text")) : ("text"));
// line 39
echo "<input type=\"";
echo twig_escape_filter($this->env, ($context["type"] ?? null), "html", null, true);
echo "\" ";
$this->displayBlock("widget_attributes", $context, $blocks);
echo " ";
if ( !twig_test_empty(($context["value"] ?? null))) {
echo "value=\"";
echo twig_escape_filter($this->env, ($context["value"] ?? null), "html", null, true);
echo "\" ";
}
echo "/>
";
// line 40
$this->loadTemplate("@Twig/form_max_length.html.twig", "@PrestaShop/Admin/TwigTemplateForm/form_div_layout.html.twig", 40)->display(twig_array_merge($context, ["attr" => ($context["attr"] ?? null)]));
}
// line 43
public function block_form_widget_compound($context, array $blocks = [])
{
// line 44
echo "<div ";
$this->displayBlock("widget_container_attributes", $context, $blocks);
echo ">";
// line 45
if (twig_test_empty($this->getAttribute(($context["form"] ?? null), "parent", []))) {
// line 46
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'errors');
}
// line 48
$this->displayBlock("form_rows", $context, $blocks);
// line 49
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'rest');
// line 50
echo "</div>";
}
// line 53
public function block_collection_widget($context, array $blocks = [])
{
// line 54
if (array_key_exists("prototype", $context)) {
// line 55
$context["attr"] = twig_array_merge(($context["attr"] ?? null), ["data-prototype" => $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["prototype"] ?? null), 'row')]);
}
// line 57
$this->displayBlock("form_widget", $context, $blocks);
}
// line 60
public function block_textarea_widget($context, array $blocks = [])
{
// line 61
echo "<textarea ";
$this->displayBlock("widget_attributes", $context, $blocks);
echo ">";
echo twig_escape_filter($this->env, ($context["value"] ?? null), "html", null, true);
echo "</textarea>
";
// line 62
$this->loadTemplate("@Twig/form_max_length.html.twig", "@PrestaShop/Admin/TwigTemplateForm/form_div_layout.html.twig", 62)->display(twig_array_merge($context, ["attr" => ($context["attr"] ?? null)]));
}
// line 65
public function block_choice_widget($context, array $blocks = [])
{
// line 66
if (($context["expanded"] ?? null)) {
// line 67
$this->displayBlock("choice_widget_expanded", $context, $blocks);
} else {
// line 69
$this->displayBlock("choice_widget_collapsed", $context, $blocks);
}
}
// line 73
public function block_choice_widget_expanded($context, array $blocks = [])
{
// line 74
echo "<div ";
$this->displayBlock("widget_container_attributes", $context, $blocks);
echo ">";
// line 75
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["form"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
// line 76
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["child"], 'widget');
// line 77
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["child"], 'label', ["translation_domain" => ($context["choice_translation_domain"] ?? 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 79
echo "</div>";
}
// line 82
public function block_choice_widget_collapsed($context, array $blocks = [])
{
// line 83
if ((((($context["required"] ?? null) && (null === ($context["placeholder"] ?? null))) && !($context["placeholder_in_choices"] ?? null)) && !($context["multiple"] ?? null))) {
// line 84
$context["required"] = false;
}
// line 86
echo "<select ";
$this->displayBlock("widget_attributes", $context, $blocks);
if (($context["multiple"] ?? null)) {
echo " multiple=\"multiple\"";
}
echo ">";
// line 87
if ( !(null === ($context["placeholder"] ?? null))) {
// line 88
echo "<option
value=\"\"";
// line 89
if ((($context["required"] ?? null) && twig_test_empty(($context["value"] ?? null)))) {
echo " selected=\"selected\"";
}
echo ">";
(((($context["placeholder"] ?? null) != "")) ? (print (twig_escape_filter($this->env, ($context["placeholder"] ?? null), "html", null, true))) : (print ("")));
echo "</option>";
}
// line 91
if ((twig_length_filter($this->env, ($context["preferred_choices"] ?? null)) > 0)) {
// line 92
$context["options"] = ($context["preferred_choices"] ?? null);
// line 93
$this->displayBlock("choice_widget_options", $context, $blocks);
// line 94
if (((twig_length_filter($this->env, ($context["choices"] ?? null)) > 0) && !(null === ($context["separator"] ?? null)))) {
// line 95
echo "<option disabled=\"disabled\">";
echo twig_escape_filter($this->env, ($context["separator"] ?? null), "html", null, true);
echo "</option>";
}
}
// line 98
$context["options"] = ($context["choices"] ?? null);
// line 99
$this->displayBlock("choice_widget_options", $context, $blocks);
// line 100
echo "</select>";
}
// line 103
public function block_choice_widget_options($context, array $blocks = [])
{
// line 104
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["options"] ?? null));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["group_label"] => $context["choice"]) {
// line 105
if (twig_test_iterable($context["choice"])) {
// line 106
echo "<optgroup label=\"";
echo twig_escape_filter($this->env, (((($context["choice_translation_domain"] ?? null) === false)) ? ($context["group_label"]) : ($this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans($context["group_label"], [], ($context["choice_translation_domain"] ?? null)))), "html", null, true);
echo "\">
";
// line 107
$context["options"] = $context["choice"];
// line 108
$this->displayBlock("choice_widget_options", $context, $blocks);
// line 109
echo "</optgroup>";
} else {
// line 111
echo "<option value=\"";
echo twig_escape_filter($this->env, $this->getAttribute($context["choice"], "value", []), "html", null, true);
echo "\"";
if ($this->getAttribute($context["choice"], "attr", [])) {
echo " ";
$context["attr"] = $this->getAttribute($context["choice"], "attr", []);
$this->displayBlock("attributes", $context, $blocks);
}
if (Symfony\Bridge\Twig\Extension\twig_is_selected_choice($context["choice"], ($context["value"] ?? null))) {
echo " selected=\"selected\"";
}
echo ">";
echo twig_escape_filter($this->env, (((($context["choice_translation_domain"] ?? null) === false)) ? ($this->getAttribute($context["choice"], "label", [])) : ($this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans($this->getAttribute($context["choice"], "label", []), [], ($context["choice_translation_domain"] ?? null)))), "html", null, true);
echo "</option>";
}
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['group_label'], $context['choice'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
}
// line 116
public function block_checkbox_widget($context, array $blocks = [])
{
// line 117
$context["switch"] = ((array_key_exists("switch", $context)) ? (_twig_default_filter(($context["switch"] ?? null), "")) : (""));
// line 118
echo "<input type=\"checkbox\"
";
// line 119
if (($context["switch"] ?? null)) {
echo "data-toggle=\"switch\"";
}
echo " ";
if (($context["switch"] ?? null)) {
echo "class=\"";
echo twig_escape_filter($this->env, ($context["switch"] ?? null), "html", null, true);
echo "\"";
}
echo " ";
$this->displayBlock("widget_attributes", $context, $blocks);
if (array_key_exists("value", $context)) {
echo " value=\"";
echo twig_escape_filter($this->env, ($context["value"] ?? null), "html", null, true);
echo "\"";
}
if (($context["checked"] ?? null)) {
echo " checked=\"checked\"";
}
echo " />
";
}
// line 122
public function block_radio_widget($context, array $blocks = [])
{
// line 123
echo "<input
type=\"radio\" ";
// line 124
$this->displayBlock("widget_attributes", $context, $blocks);
if (array_key_exists("value", $context)) {
echo " value=\"";
echo twig_escape_filter($this->env, ($context["value"] ?? null), "html", null, true);
echo "\"";
}
if (($context["checked"] ?? null)) {
echo " checked=\"checked\"";
}
echo " />
<i class=\"form-check-round\"></i>
";
}
// line 128
public function block_datetime_widget($context, array $blocks = [])
{
// line 129
if ((($context["widget"] ?? null) == "single_text")) {
// line 130
$this->displayBlock("form_widget_simple", $context, $blocks);
} else {
// line 132
echo "<div ";
$this->displayBlock("widget_container_attributes", $context, $blocks);
echo ">";
// line 133
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "date", []), 'errors');
// line 134
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "time", []), 'errors');
// line 135
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "date", []), 'widget');
// line 136
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "time", []), 'widget');
// line 137
echo "</div>";
}
}
// line 141
public function block_date_widget($context, array $blocks = [])
{
// line 142
if ((($context["widget"] ?? null) == "single_text")) {
// line 143
$this->displayBlock("form_widget_simple", $context, $blocks);
} else {
// line 145
echo "<div ";
$this->displayBlock("widget_container_attributes", $context, $blocks);
echo ">";
// line 146
echo twig_replace_filter(($context["date_pattern"] ?? null), ["{{ year }}" => // line 147
$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "year", []), 'widget'), "{{ month }}" => // line 148
$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "month", []), 'widget'), "{{ day }}" => // line 149
$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "day", []), 'widget')]);
// line 151
echo "</div>";
}
}
// line 155
public function block_time_widget($context, array $blocks = [])
{
// line 156
if ((($context["widget"] ?? null) == "single_text")) {
// line 157
$this->displayBlock("form_widget_simple", $context, $blocks);
} else {
// line 159
$context["vars"] = (((($context["widget"] ?? null) == "text")) ? (["attr" => ["size" => 1]]) : ([]));
// line 160
echo "<div ";
$this->displayBlock("widget_container_attributes", $context, $blocks);
echo ">
";
// line 161
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "hour", []), 'widget', ($context["vars"] ?? null));
if (($context["with_minutes"] ?? null)) {
echo ":";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "minute", []), 'widget', ($context["vars"] ?? null));
}
if (($context["with_seconds"] ?? null)) {
echo ":";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "second", []), 'widget', ($context["vars"] ?? null));
}
// line 162
echo " </div>";
}
}
// line 166
public function block_number_widget($context, array $blocks = [])
{
// line 168
$context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter(($context["type"] ?? null), "text")) : ("text"));
// line 170
$this->displayBlock("form_widget_simple", $context, $blocks);
}
// line 173
public function block_integer_widget($context, array $blocks = [])
{
// line 174
$context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter(($context["type"] ?? null), "number")) : ("number"));
// line 175
$this->displayBlock("form_widget_simple", $context, $blocks);
}
// line 178
public function block_money_widget($context, array $blocks = [])
{
// line 179
echo twig_replace_filter(($context["money_pattern"] ?? null), ["{{ widget }}" => $this->renderBlock("form_widget_simple", $context, $blocks)]);
}
// line 182
public function block_url_widget($context, array $blocks = [])
{
// line 183
$context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter(($context["type"] ?? null), "url")) : ("url"));
// line 184
$this->displayBlock("form_widget_simple", $context, $blocks);
}
// line 187
public function block_search_widget($context, array $blocks = [])
{
// line 188
$context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter(($context["type"] ?? null), "search")) : ("search"));
// line 189
$this->displayBlock("form_widget_simple", $context, $blocks);
}
// line 192
public function block_percent_widget($context, array $blocks = [])
{
// line 193
$context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter(($context["type"] ?? null), "text")) : ("text"));
// line 194
$this->displayBlock("form_widget_simple", $context, $blocks);
echo " %";
}
// line 197
public function block_password_widget($context, array $blocks = [])
{
// line 198
$context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter(($context["type"] ?? null), "password")) : ("password"));
// line 199
$this->displayBlock("form_widget_simple", $context, $blocks);
}
// line 202
public function block_hidden_widget($context, array $blocks = [])
{
// line 203
$context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter(($context["type"] ?? null), "hidden")) : ("hidden"));
// line 204
$this->displayBlock("form_widget_simple", $context, $blocks);
}
// line 207
public function block_email_widget($context, array $blocks = [])
{
// line 208
$context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter(($context["type"] ?? null), "email")) : ("email"));
// line 209
$this->displayBlock("form_widget_simple", $context, $blocks);
}
// line 212
public function block_button_widget($context, array $blocks = [])
{
// line 213
if (twig_test_empty(($context["label"] ?? null))) {
// line 214
if ( !twig_test_empty(($context["label_format"] ?? null))) {
// line 215
$context["label"] = twig_replace_filter(($context["label_format"] ?? null), ["%name%" => // line 216
($context["name"] ?? null), "%id%" => // line 217
($context["id"] ?? null)]);
} else {
// line 220
$context["label"] = $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->humanize(($context["name"] ?? null));
}
}
// line 223
echo "<button type=\"";
echo twig_escape_filter($this->env, ((array_key_exists("type", $context)) ? (_twig_default_filter(($context["type"] ?? null), "button")) : ("button")), "html", null, true);
echo "\" ";
$this->displayBlock("button_attributes", $context, $blocks);
echo ">";
echo twig_escape_filter($this->env, ($context["label"] ?? null), "html", null, true);
echo "</button>";
}
// line 226
public function block_submit_widget($context, array $blocks = [])
{
// line 227
$context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter(($context["type"] ?? null), "submit")) : ("submit"));
// line 228
$this->displayBlock("button_widget", $context, $blocks);
}
// line 231
public function block_reset_widget($context, array $blocks = [])
{
// line 232
$context["type"] = ((array_key_exists("type", $context)) ? (_twig_default_filter(($context["type"] ?? null), "reset")) : ("reset"));
// line 233
$this->displayBlock("button_widget", $context, $blocks);
}
// line 238
public function block_form_label($context, array $blocks = [])
{
// line 239
if ( !(($context["label"] ?? null) === false)) {
// line 240
if ( !($context["compound"] ?? null)) {
// line 241
$context["label_attr"] = twig_array_merge(($context["label_attr"] ?? null), ["for" => ($context["id"] ?? null)]);
}
// line 243
echo " ";
if (($context["required"] ?? null)) {
// line 244
$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 246
echo " ";
if (twig_test_empty(($context["label"] ?? null))) {
// line 247
if ( !twig_test_empty(($context["label_format"] ?? null))) {
// line 248
$context["label"] = twig_replace_filter(($context["label_format"] ?? null), ["%name%" => // line 249
($context["name"] ?? null), "%id%" => // line 250
($context["id"] ?? null)]);
} else {
// line 253
$context["label"] = $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->humanize(($context["name"] ?? null));
}
}
// line 256
echo "<label";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["label_attr"] ?? null));
foreach ($context['_seq'] as $context["attrname"] => $context["attrvalue"]) {
echo " ";
echo twig_escape_filter($this->env, $context["attrname"], "html", null, true);
echo "=\"";
echo twig_escape_filter($this->env, $context["attrvalue"], "html", null, true);
echo "\"";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['attrname'], $context['attrvalue'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
echo ">";
echo (((($context["translation_domain"] ?? null) === false)) ? (($context["label"] ?? null)) : (($context["label"] ?? null)));
echo "
";
// line 257
if ($this->getAttribute(($context["label_attr"] ?? null), "tooltip", [], "array", true, true)) {
// line 258
echo " ";
$context["placement"] = (($this->getAttribute(($context["label_attr"] ?? null), "tooltip_placement", [], "array", true, true)) ? ($this->getAttribute(($context["label_attr"] ?? null), "tooltip_placement", [], "array")) : ("top"));
// line 259
echo " <i class=\"icon-question\" data-toggle=\"pstooltip\" data-placement=\"";
echo twig_escape_filter($this->env, ($context["placement"] ?? null), "html", null, true);
echo "\"
title=\"";
// line 260
echo twig_escape_filter($this->env, $this->getAttribute(($context["label_attr"] ?? null), "tooltip", [], "array"), "html", null, true);
echo "\"></i>
";
}
// line 262
echo "
";
// line 263
if ($this->getAttribute(($context["label_attr"] ?? null), "popover", [], "array", true, true)) {
// line 264
echo " ";
$context["placement"] = (($this->getAttribute(($context["label_attr"] ?? null), "popover_placement", [], "array", true, true)) ? ($this->getAttribute(($context["label_attr"] ?? null), "popover_placement", [], "array")) : ("top"));
// line 265
echo " ";
$this->loadTemplate("@Common/HelpBox/helpbox.html.twig", "@PrestaShop/Admin/TwigTemplateForm/form_div_layout.html.twig", 265)->display(twig_array_merge($context, ["placement" => ($context["placement"] ?? null), "content" => $this->getAttribute(($context["label_attr"] ?? null), "popover", [], "array")]));
// line 266
echo " ";
}
// line 267
echo " </label>";
}
}
// line 272
public function block_button_label($context, array $blocks = [])
{
}
// line 276
public function block_repeated_row($context, array $blocks = [])
{
// line 281
$this->displayBlock("form_rows", $context, $blocks);
}
// line 284
public function block_form_row($context, array $blocks = [])
{
// line 285
echo "<div>";
// line 286
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'label');
// line 287
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'errors');
// line 288
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'widget');
// line 289
echo "</div>";
}
// line 292
public function block_button_row($context, array $blocks = [])
{
// line 293
echo "<div>";
// line 294
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'widget');
// line 295
echo "</div>";
}
// line 298
public function block_hidden_row($context, array $blocks = [])
{
// line 299
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'widget');
}
// line 304
public function block_form($context, array $blocks = [])
{
// line 305
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["form"] ?? null), 'form_start');
// line 306
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'widget');
// line 307
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["form"] ?? null), 'form_end');
}
// line 310
public function block_form_start($context, array $blocks = [])
{
// line 311
$context["method"] = twig_upper_filter($this->env, ($context["method"] ?? null));
// line 312
if (twig_in_filter(($context["method"] ?? null), [0 => "GET", 1 => "POST"])) {
// line 313
$context["form_method"] = ($context["method"] ?? null);
} else {
// line 315
$context["form_method"] = "POST";
}
// line 317
echo "<form name=\"";
echo twig_escape_filter($this->env, ($context["name"] ?? null), "html", null, true);
echo "\"
method=\"";
// line 318
echo twig_escape_filter($this->env, twig_lower_filter($this->env, ($context["form_method"] ?? null)), "html", null, true);
echo "\" action=\"";
echo twig_escape_filter($this->env, ($context["action"] ?? null), "html", null, true);
echo "\"";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["attr"] ?? null));
foreach ($context['_seq'] as $context["attrname"] => $context["attrvalue"]) {
echo " ";
echo twig_escape_filter($this->env, $context["attrname"], "html", null, true);
echo "=\"";
echo twig_escape_filter($this->env, $context["attrvalue"], "html", null, true);
echo "\"";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['attrname'], $context['attrvalue'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
if (($context["multipart"] ?? null)) {
echo " enctype=\"multipart/form-data\"";
}
echo ">";
// line 319
if ((($context["form_method"] ?? null) != ($context["method"] ?? null))) {
// line 320
echo "<input type=\"hidden\" name=\"_method\" value=\"";
echo twig_escape_filter($this->env, ($context["method"] ?? null), "html", null, true);
echo "\"/>";
}
}
// line 324
public function block_form_end($context, array $blocks = [])
{
// line 325
if (( !array_key_exists("render_rest", $context) || ($context["render_rest"] ?? null))) {
// line 326
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'rest');
}
// line 328
echo "</form>";
}
// line 331
public function block_form_enctype($context, array $blocks = [])
{
// line 332
if (($context["multipart"] ?? null)) {
echo "enctype=\"multipart/form-data\"";
}
}
// line 335
public function block_form_errors($context, array $blocks = [])
{
// line 336
if ((twig_length_filter($this->env, ($context["errors"] ?? null)) > 0)) {
// line 337
echo "<ul>";
// line 338
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["errors"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
// line 339
echo "<li>";
echo twig_escape_filter($this->env, $this->getAttribute($context["error"], "message", []), "html", null, true);
echo "</li>";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 341
echo "</ul>";
}
}
// line 345
public function block_form_rest($context, array $blocks = [])
{
// line 346
$context["ps"] = $this->loadTemplate("@PrestaShop/Admin/macros.html.twig", "@PrestaShop/Admin/TwigTemplateForm/form_div_layout.html.twig", 346)->unwrap();
// line 347
echo "
";
// line 348
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["form"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
// line 349
if ( !$this->getAttribute($context["child"], "rendered", [])) {
// line 350
echo $context["ps"]->getform_group_row($context["child"], ["attr" => $this->getAttribute($this->getAttribute($context["child"], "vars", []), "attr", [])], ["label" => $this->getAttribute($this->getAttribute( // line 351
$context["child"], "vars", []), "label", [])]);
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
}
// line 359
public function block_form_rows($context, array $blocks = [])
{
// line 360
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["form"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
// line 361
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["child"], 'row');
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
}
// line 365
public function block_widget_attributes($context, array $blocks = [])
{
// line 366
echo "id=\"";
echo twig_escape_filter($this->env, ($context["id"] ?? null), "html", null, true);
echo "\" name=\"";
echo twig_escape_filter($this->env, ($context["full_name"] ?? null), "html", null, true);
echo "\"";
// line 367
if ((((array_key_exists("read_only", $context)) ? (_twig_default_filter(($context["read_only"] ?? null), false)) : (false)) && !$this->getAttribute(($context["attr"] ?? null), "readonly", [], "any", true, true))) {
echo " readonly=\"readonly\"";
}
// line 368
if (($context["disabled"] ?? null)) {
echo " disabled=\"disabled\"";
}
// line 369
if (($context["required"] ?? null)) {
echo " required=\"required\"";
}
// line 370
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["attr"] ?? null));
foreach ($context['_seq'] as $context["attrname"] => $context["attrvalue"]) {
// line 371
echo " ";
// line 372
if (twig_in_filter($context["attrname"], [0 => "placeholder", 1 => "title"])) {
// line 373
echo twig_escape_filter($this->env, $context["attrname"], "html", null, true);
echo "=\"";
echo twig_escape_filter($this->env, $context["attrvalue"], "html", null, true);
echo "\"";
} elseif (( // line 374
$context["attrvalue"] === true)) {
// line 375
echo twig_escape_filter($this->env, $context["attrname"], "html", null, true);
echo "=\"";
echo twig_escape_filter($this->env, $context["attrname"], "html", null, true);
echo "\"";
} elseif ( !( // line 376
$context["attrvalue"] === false)) {
// line 377
echo twig_escape_filter($this->env, $context["attrname"], "html", null, true);
echo "=\"";
echo twig_escape_filter($this->env, $context["attrvalue"], "html", null, true);
echo "\"";
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['attrname'], $context['attrvalue'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
}
// line 382
public function block_widget_container_attributes($context, array $blocks = [])
{
// line 383
if ( !twig_test_empty(($context["id"] ?? null))) {
echo "id=\"";
echo twig_escape_filter($this->env, ($context["id"] ?? null), "html", null, true);
echo "\"";
}
// line 384
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["attr"] ?? null));
foreach ($context['_seq'] as $context["attrname"] => $context["attrvalue"]) {
// line 385
echo " ";
// line 386
if (twig_in_filter($context["attrname"], [0 => "placeholder", 1 => "title"])) {
// line 387
echo twig_escape_filter($this->env, $context["attrname"], "html", null, true);
echo "=\"";
echo twig_escape_filter($this->env, $context["attrvalue"], "html", null, true);
echo "\"";
} elseif (( // line 388
$context["attrvalue"] === true)) {
// line 389
echo twig_escape_filter($this->env, $context["attrname"], "html", null, true);
echo "=\"";
echo twig_escape_filter($this->env, $context["attrname"], "html", null, true);
echo "\"";
} elseif ( !( // line 390
$context["attrvalue"] === false)) {
// line 391
echo twig_escape_filter($this->env, $context["attrname"], "html", null, true);
echo "=\"";
echo twig_escape_filter($this->env, $context["attrvalue"], "html", null, true);
echo "\"";
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['attrname'], $context['attrvalue'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
}
// line 396
public function block_button_attributes($context, array $blocks = [])
{
// line 397
echo "id=\"";
echo twig_escape_filter($this->env, ($context["id"] ?? null), "html", null, true);
echo "\" name=\"";
echo twig_escape_filter($this->env, ($context["full_name"] ?? null), "html", null, true);
echo "\"";
if (($context["disabled"] ?? null)) {
echo " disabled=\"disabled\"";
}
// line 398
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["attr"] ?? null));
foreach ($context['_seq'] as $context["attrname"] => $context["attrvalue"]) {
// line 399
echo " ";
// line 400
if (twig_in_filter($context["attrname"], [0 => "placeholder", 1 => "title"])) {
// line 401
echo twig_escape_filter($this->env, $context["attrname"], "html", null, true);
echo "=\"";
echo twig_escape_filter($this->env, $context["attrvalue"], "html", null, true);
echo "\"";
} elseif (( // line 402
$context["attrvalue"] === true)) {
// line 403
echo twig_escape_filter($this->env, $context["attrname"], "html", null, true);
echo "=\"";
echo twig_escape_filter($this->env, $context["attrname"], "html", null, true);
echo "\"";
} elseif ( !( // line 404
$context["attrvalue"] === false)) {
// line 405
echo twig_escape_filter($this->env, $context["attrname"], "html", null, true);
echo "=\"";
echo twig_escape_filter($this->env, $context["attrvalue"], "html", null, true);
echo "\"";
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['attrname'], $context['attrvalue'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
}
// line 410
public function block_attributes($context, array $blocks = [])
{
// line 411
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["attr"] ?? null));
foreach ($context['_seq'] as $context["attrname"] => $context["attrvalue"]) {
// line 412
echo " ";
// line 413
if (twig_in_filter($context["attrname"], [0 => "placeholder", 1 => "title"])) {
// line 414
echo twig_escape_filter($this->env, $context["attrname"], "html", null, true);
echo "=\"";
echo twig_escape_filter($this->env, $context["attrvalue"], "html", null, true);
echo "\"";
} elseif (( // line 415
$context["attrvalue"] === true)) {
// line 416
echo twig_escape_filter($this->env, $context["attrname"], "html", null, true);
echo "=\"";
echo twig_escape_filter($this->env, $context["attrname"], "html", null, true);
echo "\"";
} elseif ( !( // line 417
$context["attrvalue"] === false)) {
// line 418
echo twig_escape_filter($this->env, $context["attrname"], "html", null, true);
echo "=\"";
echo twig_escape_filter($this->env, $context["attrvalue"], "html", null, true);
echo "\"";
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['attrname'], $context['attrvalue'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
}
public function getTemplateName()
{
return "@PrestaShop/Admin/TwigTemplateForm/form_div_layout.html.twig";
}
public function getDebugInfo()
{
return array ( 1090 => 418, 1088 => 417, 1083 => 416, 1081 => 415, 1076 => 414, 1074 => 413, 1072 => 412, 1068 => 411, 1065 => 410, 1053 => 405, 1051 => 404, 1046 => 403, 1044 => 402, 1039 => 401, 1037 => 400, 1035 => 399, 1031 => 398, 1022 => 397, 1019 => 396, 1007 => 391, 1005 => 390, 1000 => 389, 998 => 388, 993 => 387, 991 => 386, 989 => 385, 985 => 384, 979 => 383, 976 => 382, 964 => 377, 962 => 376, 957 => 375, 955 => 374, 950 => 373, 948 => 372, 946 => 371, 942 => 370, 938 => 369, 934 => 368, 930 => 367, 924 => 366, 921 => 365, 913 => 361, 909 => 360, 906 => 359, 897 => 351, 896 => 350, 894 => 349, 890 => 348, 887 => 347, 885 => 346, 882 => 345, 877 => 341, 869 => 339, 865 => 338, 863 => 337, 861 => 336, 858 => 335, 852 => 332, 849 => 331, 845 => 328, 842 => 326, 840 => 325, 837 => 324, 830 => 320, 828 => 319, 807 => 318, 802 => 317, 799 => 315, 796 => 313, 794 => 312, 792 => 311, 789 => 310, 785 => 307, 783 => 306, 781 => 305, 778 => 304, 774 => 299, 771 => 298, 767 => 295, 765 => 294, 763 => 293, 760 => 292, 756 => 289, 754 => 288, 752 => 287, 750 => 286, 748 => 285, 745 => 284, 741 => 281, 738 => 276, 733 => 272, 728 => 267, 725 => 266, 722 => 265, 719 => 264, 717 => 263, 714 => 262, 709 => 260, 704 => 259, 701 => 258, 699 => 257, 681 => 256, 677 => 253, 674 => 250, 673 => 249, 672 => 248, 670 => 247, 667 => 246, 664 => 244, 661 => 243, 658 => 241, 656 => 240, 654 => 239, 651 => 238, 647 => 233, 645 => 232, 642 => 231, 638 => 228, 636 => 227, 633 => 226, 623 => 223, 619 => 220, 616 => 217, 615 => 216, 614 => 215, 612 => 214, 610 => 213, 607 => 212, 603 => 209, 601 => 208, 598 => 207, 594 => 204, 592 => 203, 589 => 202, 585 => 199, 583 => 198, 580 => 197, 575 => 194, 573 => 193, 570 => 192, 566 => 189, 564 => 188, 561 => 187, 557 => 184, 555 => 183, 552 => 182, 548 => 179, 545 => 178, 541 => 175, 539 => 174, 536 => 173, 532 => 170, 530 => 168, 527 => 166, 522 => 162, 512 => 161, 507 => 160, 505 => 159, 502 => 157, 500 => 156, 497 => 155, 492 => 151, 490 => 149, 489 => 148, 488 => 147, 487 => 146, 483 => 145, 480 => 143, 478 => 142, 475 => 141, 470 => 137, 468 => 136, 466 => 135, 464 => 134, 462 => 133, 458 => 132, 455 => 130, 453 => 129, 450 => 128, 435 => 124, 432 => 123, 429 => 122, 405 => 119, 402 => 118, 400 => 117, 397 => 116, 367 => 111, 364 => 109, 362 => 108, 360 => 107, 355 => 106, 353 => 105, 336 => 104, 333 => 103, 329 => 100, 327 => 99, 325 => 98, 319 => 95, 317 => 94, 315 => 93, 313 => 92, 311 => 91, 303 => 89, 300 => 88, 298 => 87, 291 => 86, 288 => 84, 286 => 83, 283 => 82, 279 => 79, 273 => 77, 271 => 76, 267 => 75, 263 => 74, 260 => 73, 255 => 69, 252 => 67, 250 => 66, 247 => 65, 243 => 62, 236 => 61, 233 => 60, 229 => 57, 226 => 55, 224 => 54, 221 => 53, 217 => 50, 215 => 49, 213 => 48, 210 => 46, 208 => 45, 204 => 44, 201 => 43, 197 => 40, 184 => 39, 182 => 38, 179 => 37, 175 => 34, 172 => 31, 169 => 29, 167 => 28, 164 => 27, 160 => 410, 158 => 396, 156 => 382, 154 => 365, 152 => 359, 149 => 356, 147 => 345, 145 => 335, 143 => 331, 141 => 324, 139 => 310, 137 => 304, 135 => 298, 133 => 292, 131 => 284, 129 => 276, 127 => 272, 125 => 238, 123 => 231, 121 => 226, 119 => 212, 117 => 207, 115 => 202, 113 => 197, 111 => 192, 109 => 187, 107 => 182, 105 => 178, 103 => 173, 101 => 166, 99 => 155, 97 => 141, 95 => 128, 93 => 122, 91 => 116, 89 => 103, 87 => 82, 85 => 73, 83 => 65, 81 => 60, 79 => 53, 77 => 43, 75 => 37, 73 => 27,);
}
/** @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("", "@PrestaShop/Admin/TwigTemplateForm/form_div_layout.html.twig", "/home/admin/domains/masimmo.pl/public_html/src/PrestaShopBundle/Resources/views/Admin/TwigTemplateForm/form_div_layout.html.twig");
}
}