Files
taome/var/cache/prod/twig/0b/0b4217683e2c1fa5e572fdd19769b04ae64a6238abd607c907dab70cbfef7aa3.php
2020-10-07 10:37:15 +02:00

1125 lines
53 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_ea62eed989d6cf2fe2fd6e3a02e9642d9d8d6866b1c53fcf1acd67ad51d7bda6 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 35
$this->displayBlock('form_widget_simple', $context, $blocks);
// line 41
$this->displayBlock('form_widget_compound', $context, $blocks);
// line 51
$this->displayBlock('collection_widget', $context, $blocks);
// line 58
$this->displayBlock('textarea_widget', $context, $blocks);
// line 63
$this->displayBlock('choice_widget', $context, $blocks);
// line 71
$this->displayBlock('choice_widget_expanded', $context, $blocks);
// line 80
$this->displayBlock('choice_widget_collapsed', $context, $blocks);
// line 101
$this->displayBlock('choice_widget_options', $context, $blocks);
// line 114
$this->displayBlock('checkbox_widget', $context, $blocks);
// line 120
$this->displayBlock('radio_widget', $context, $blocks);
// line 125
$this->displayBlock('datetime_widget', $context, $blocks);
// line 138
$this->displayBlock('date_widget', $context, $blocks);
// line 152
$this->displayBlock('time_widget', $context, $blocks);
// line 163
$this->displayBlock('number_widget', $context, $blocks);
// line 169
$this->displayBlock('integer_widget', $context, $blocks);
// line 174
$this->displayBlock('money_widget', $context, $blocks);
// line 178
$this->displayBlock('url_widget', $context, $blocks);
// line 183
$this->displayBlock('search_widget', $context, $blocks);
// line 188
$this->displayBlock('percent_widget', $context, $blocks);
// line 193
$this->displayBlock('password_widget', $context, $blocks);
// line 198
$this->displayBlock('hidden_widget', $context, $blocks);
// line 203
$this->displayBlock('email_widget', $context, $blocks);
// line 208
$this->displayBlock('button_widget', $context, $blocks);
// line 222
$this->displayBlock('submit_widget', $context, $blocks);
// line 227
$this->displayBlock('reset_widget', $context, $blocks);
// line 234
$this->displayBlock('form_label', $context, $blocks);
// line 269
$this->displayBlock('button_label', $context, $blocks);
// line 273
$this->displayBlock('repeated_row', $context, $blocks);
// line 281
$this->displayBlock('form_row', $context, $blocks);
// line 289
$this->displayBlock('button_row', $context, $blocks);
// line 295
$this->displayBlock('hidden_row', $context, $blocks);
// line 301
$this->displayBlock('form', $context, $blocks);
// line 307
$this->displayBlock('form_start', $context, $blocks);
// line 321
$this->displayBlock('form_end', $context, $blocks);
// line 328
$this->displayBlock('form_enctype', $context, $blocks);
// line 332
$this->displayBlock('form_errors', $context, $blocks);
// line 342
$this->displayBlock('form_rest', $context, $blocks);
// line 353
echo "
";
// line 356
$this->displayBlock('form_rows', $context, $blocks);
// line 362
$this->displayBlock('widget_attributes', $context, $blocks);
// line 379
$this->displayBlock('widget_container_attributes', $context, $blocks);
// line 393
$this->displayBlock('button_attributes', $context, $blocks);
// line 407
$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 35
public function block_form_widget_simple($context, array $blocks = [])
{
// line 36
$context["type"] = (((isset($context["type"]) || array_key_exists("type", $context))) ? (_twig_default_filter(($context["type"] ?? null), "text")) : ("text"));
// line 37
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 38
$this->loadTemplate("@Twig/form_max_length.html.twig", "@PrestaShop/Admin/TwigTemplateForm/form_div_layout.html.twig", 38)->display(twig_array_merge($context, ["attr" => ($context["attr"] ?? null)]));
}
// line 41
public function block_form_widget_compound($context, array $blocks = [])
{
// line 42
echo "<div ";
$this->displayBlock("widget_container_attributes", $context, $blocks);
echo ">";
// line 43
if (twig_test_empty($this->getAttribute(($context["form"] ?? null), "parent", []))) {
// line 44
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'errors');
}
// line 46
$this->displayBlock("form_rows", $context, $blocks);
// line 47
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'rest');
// line 48
echo "</div>";
}
// line 51
public function block_collection_widget($context, array $blocks = [])
{
// line 52
if ((isset($context["prototype"]) || array_key_exists("prototype", $context))) {
// line 53
$context["attr"] = twig_array_merge(($context["attr"] ?? null), ["data-prototype" => $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["prototype"] ?? null), 'row')]);
}
// line 55
$this->displayBlock("form_widget", $context, $blocks);
}
// line 58
public function block_textarea_widget($context, array $blocks = [])
{
// line 59
echo "<textarea ";
$this->displayBlock("widget_attributes", $context, $blocks);
echo ">";
echo twig_escape_filter($this->env, ($context["value"] ?? null), "html", null, true);
echo "</textarea>
";
// line 60
$this->loadTemplate("@Twig/form_max_length.html.twig", "@PrestaShop/Admin/TwigTemplateForm/form_div_layout.html.twig", 60)->display(twig_array_merge($context, ["attr" => ($context["attr"] ?? null)]));
}
// line 63
public function block_choice_widget($context, array $blocks = [])
{
// line 64
if (($context["expanded"] ?? null)) {
// line 65
$this->displayBlock("choice_widget_expanded", $context, $blocks);
} else {
// line 67
$this->displayBlock("choice_widget_collapsed", $context, $blocks);
}
}
// line 71
public function block_choice_widget_expanded($context, array $blocks = [])
{
// line 72
echo "<div ";
$this->displayBlock("widget_container_attributes", $context, $blocks);
echo ">";
// line 73
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["form"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
// line 74
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["child"], 'widget');
// line 75
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 77
echo "</div>";
}
// line 80
public function block_choice_widget_collapsed($context, array $blocks = [])
{
// line 81
if ((((($context["required"] ?? null) && (null === ($context["placeholder"] ?? null))) && !($context["placeholder_in_choices"] ?? null)) && !($context["multiple"] ?? null))) {
// line 82
$context["required"] = false;
}
// line 84
echo "<select ";
$this->displayBlock("widget_attributes", $context, $blocks);
if (($context["multiple"] ?? null)) {
echo " multiple=\"multiple\"";
}
echo ">";
// line 85
if ( !(null === ($context["placeholder"] ?? null))) {
// line 86
echo "<option
value=\"\"";
// line 87
if ((($context["required"] ?? null) && twig_test_empty(($context["value"] ?? null)))) {
echo " selected=\"selected\"";
}
echo ">";
echo twig_escape_filter($this->env, (((($context["placeholder"] ?? null) != "")) ? (($context["placeholder"] ?? null)) : ("")), "html", null, true);
echo "</option>";
}
// line 89
if ((twig_length_filter($this->env, ($context["preferred_choices"] ?? null)) > 0)) {
// line 90
$context["options"] = ($context["preferred_choices"] ?? null);
// line 91
$this->displayBlock("choice_widget_options", $context, $blocks);
// line 92
if (((twig_length_filter($this->env, ($context["choices"] ?? null)) > 0) && !(null === ($context["separator"] ?? null)))) {
// line 93
echo "<option disabled=\"disabled\">";
echo twig_escape_filter($this->env, ($context["separator"] ?? null), "html", null, true);
echo "</option>";
}
}
// line 96
$context["options"] = ($context["choices"] ?? null);
// line 97
$this->displayBlock("choice_widget_options", $context, $blocks);
// line 98
echo "</select>";
}
// line 101
public function block_choice_widget_options($context, array $blocks = [])
{
// line 102
$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 103
if (twig_test_iterable($context["choice"])) {
// line 104
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 105
$context["options"] = $context["choice"];
// line 106
$this->displayBlock("choice_widget_options", $context, $blocks);
// line 107
echo "</optgroup>";
} else {
// line 109
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 114
public function block_checkbox_widget($context, array $blocks = [])
{
// line 115
$context["switch"] = (((isset($context["switch"]) || array_key_exists("switch", $context))) ? (_twig_default_filter(($context["switch"] ?? null), "")) : (""));
// line 116
echo "<input type=\"checkbox\"
";
// line 117
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 ((isset($context["value"]) || 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 120
public function block_radio_widget($context, array $blocks = [])
{
// line 121
echo "<input
type=\"radio\" ";
// line 122
$this->displayBlock("widget_attributes", $context, $blocks);
if ((isset($context["value"]) || 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 125
public function block_datetime_widget($context, array $blocks = [])
{
// line 126
if ((($context["widget"] ?? null) == "single_text")) {
// line 127
$this->displayBlock("form_widget_simple", $context, $blocks);
} else {
// line 129
echo "<div ";
$this->displayBlock("widget_container_attributes", $context, $blocks);
echo ">";
// line 130
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "date", []), 'errors');
// line 131
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "time", []), 'errors');
// line 132
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "date", []), 'widget');
// line 133
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "time", []), 'widget');
// line 134
echo "</div>";
}
}
// line 138
public function block_date_widget($context, array $blocks = [])
{
// line 139
if ((($context["widget"] ?? null) == "single_text")) {
// line 140
$this->displayBlock("form_widget_simple", $context, $blocks);
} else {
// line 142
echo "<div ";
$this->displayBlock("widget_container_attributes", $context, $blocks);
echo ">";
// line 143
echo twig_replace_filter(($context["date_pattern"] ?? null), ["{{ year }}" => // line 144
$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "year", []), 'widget'), "{{ month }}" => // line 145
$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "month", []), 'widget'), "{{ day }}" => // line 146
$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "day", []), 'widget')]);
// line 148
echo "</div>";
}
}
// line 152
public function block_time_widget($context, array $blocks = [])
{
// line 153
if ((($context["widget"] ?? null) == "single_text")) {
// line 154
$this->displayBlock("form_widget_simple", $context, $blocks);
} else {
// line 156
$context["vars"] = (((($context["widget"] ?? null) == "text")) ? (["attr" => ["size" => 1]]) : ([]));
// line 157
echo "<div ";
$this->displayBlock("widget_container_attributes", $context, $blocks);
echo ">
";
// line 158
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 159
echo " </div>";
}
}
// line 163
public function block_number_widget($context, array $blocks = [])
{
// line 165
$context["type"] = (((isset($context["type"]) || array_key_exists("type", $context))) ? (_twig_default_filter(($context["type"] ?? null), "text")) : ("text"));
// line 166
$this->displayBlock("form_widget_simple", $context, $blocks);
}
// line 169
public function block_integer_widget($context, array $blocks = [])
{
// line 170
$context["type"] = (((isset($context["type"]) || array_key_exists("type", $context))) ? (_twig_default_filter(($context["type"] ?? null), "number")) : ("number"));
// line 171
$this->displayBlock("form_widget_simple", $context, $blocks);
}
// line 174
public function block_money_widget($context, array $blocks = [])
{
// line 175
echo twig_replace_filter(($context["money_pattern"] ?? null), ["{{ widget }}" => $this->renderBlock("form_widget_simple", $context, $blocks)]);
}
// line 178
public function block_url_widget($context, array $blocks = [])
{
// line 179
$context["type"] = (((isset($context["type"]) || array_key_exists("type", $context))) ? (_twig_default_filter(($context["type"] ?? null), "url")) : ("url"));
// line 180
$this->displayBlock("form_widget_simple", $context, $blocks);
}
// line 183
public function block_search_widget($context, array $blocks = [])
{
// line 184
$context["type"] = (((isset($context["type"]) || array_key_exists("type", $context))) ? (_twig_default_filter(($context["type"] ?? null), "search")) : ("search"));
// line 185
$this->displayBlock("form_widget_simple", $context, $blocks);
}
// line 188
public function block_percent_widget($context, array $blocks = [])
{
// line 189
$context["type"] = (((isset($context["type"]) || array_key_exists("type", $context))) ? (_twig_default_filter(($context["type"] ?? null), "text")) : ("text"));
// line 190
$this->displayBlock("form_widget_simple", $context, $blocks);
echo " %";
}
// line 193
public function block_password_widget($context, array $blocks = [])
{
// line 194
$context["type"] = (((isset($context["type"]) || array_key_exists("type", $context))) ? (_twig_default_filter(($context["type"] ?? null), "password")) : ("password"));
// line 195
$this->displayBlock("form_widget_simple", $context, $blocks);
}
// line 198
public function block_hidden_widget($context, array $blocks = [])
{
// line 199
$context["type"] = (((isset($context["type"]) || array_key_exists("type", $context))) ? (_twig_default_filter(($context["type"] ?? null), "hidden")) : ("hidden"));
// line 200
$this->displayBlock("form_widget_simple", $context, $blocks);
}
// line 203
public function block_email_widget($context, array $blocks = [])
{
// line 204
$context["type"] = (((isset($context["type"]) || array_key_exists("type", $context))) ? (_twig_default_filter(($context["type"] ?? null), "email")) : ("email"));
// line 205
$this->displayBlock("form_widget_simple", $context, $blocks);
}
// line 208
public function block_button_widget($context, array $blocks = [])
{
// line 209
if (twig_test_empty(($context["label"] ?? null))) {
// line 210
if ( !twig_test_empty(($context["label_format"] ?? null))) {
// line 211
$context["label"] = twig_replace_filter(($context["label_format"] ?? null), ["%name%" => // line 212
($context["name"] ?? null), "%id%" => // line 213
($context["id"] ?? null)]);
} else {
// line 216
$context["label"] = $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->humanize(($context["name"] ?? null));
}
}
// line 219
echo "<button type=\"";
echo twig_escape_filter($this->env, (((isset($context["type"]) || 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 222
public function block_submit_widget($context, array $blocks = [])
{
// line 223
$context["type"] = (((isset($context["type"]) || array_key_exists("type", $context))) ? (_twig_default_filter(($context["type"] ?? null), "submit")) : ("submit"));
// line 224
$this->displayBlock("button_widget", $context, $blocks);
}
// line 227
public function block_reset_widget($context, array $blocks = [])
{
// line 228
$context["type"] = (((isset($context["type"]) || array_key_exists("type", $context))) ? (_twig_default_filter(($context["type"] ?? null), "reset")) : ("reset"));
// line 229
$this->displayBlock("button_widget", $context, $blocks);
}
// line 234
public function block_form_label($context, array $blocks = [])
{
// line 235
if ( !(($context["label"] ?? null) === false)) {
// line 236
if ( !($context["compound"] ?? null)) {
// line 237
$context["label_attr"] = twig_array_merge(($context["label_attr"] ?? null), ["for" => ($context["id"] ?? null)]);
}
// line 239
echo " ";
if (($context["required"] ?? null)) {
// line 240
$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 242
echo " ";
if (twig_test_empty(($context["label"] ?? null))) {
// line 243
if ( !twig_test_empty(($context["label_format"] ?? null))) {
// line 244
$context["label"] = twig_replace_filter(($context["label_format"] ?? null), ["%name%" => // line 245
($context["name"] ?? null), "%id%" => // line 246
($context["id"] ?? null)]);
} else {
// line 249
$context["label"] = $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->humanize(($context["name"] ?? null));
}
}
// line 252
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 253
if ($this->getAttribute(($context["label_attr"] ?? null), "tooltip", [], "array", true, true)) {
// line 254
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 255
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 256
echo twig_escape_filter($this->env, $this->getAttribute(($context["label_attr"] ?? null), "tooltip", [], "array"), "html", null, true);
echo "\"></i>
";
}
// line 258
echo "
";
// line 259
if ($this->getAttribute(($context["label_attr"] ?? null), "popover", [], "array", true, true)) {
// line 260
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 261
echo " <span class=\"help-box\" data-toggle=\"popover\" data-placement=\"";
echo twig_escape_filter($this->env, ($context["placement"] ?? null), "html", null, true);
echo "\"
data-content=\"";
// line 262
echo twig_escape_filter($this->env, $this->getAttribute(($context["label_attr"] ?? null), "popover", [], "array"), "html", null, true);
echo "\"></span>
";
}
// line 264
echo " </label>";
}
}
// line 269
public function block_button_label($context, array $blocks = [])
{
}
// line 273
public function block_repeated_row($context, array $blocks = [])
{
// line 278
$this->displayBlock("form_rows", $context, $blocks);
}
// line 281
public function block_form_row($context, array $blocks = [])
{
// line 282
echo "<div>";
// line 283
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'label');
// line 284
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'errors');
// line 285
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'widget');
// line 286
echo "</div>";
}
// line 289
public function block_button_row($context, array $blocks = [])
{
// line 290
echo "<div>";
// line 291
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'widget');
// line 292
echo "</div>";
}
// line 295
public function block_hidden_row($context, array $blocks = [])
{
// line 296
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'widget');
}
// line 301
public function block_form($context, array $blocks = [])
{
// line 302
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["form"] ?? null), 'form_start');
// line 303
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'widget');
// line 304
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["form"] ?? null), 'form_end');
}
// line 307
public function block_form_start($context, array $blocks = [])
{
// line 308
$context["method"] = twig_upper_filter($this->env, ($context["method"] ?? null));
// line 309
if (twig_in_filter(($context["method"] ?? null), [0 => "GET", 1 => "POST"])) {
// line 310
$context["form_method"] = ($context["method"] ?? null);
} else {
// line 312
$context["form_method"] = "POST";
}
// line 314
echo "<form name=\"";
echo twig_escape_filter($this->env, ($context["name"] ?? null), "html", null, true);
echo "\"
method=\"";
// line 315
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 316
if ((($context["form_method"] ?? null) != ($context["method"] ?? null))) {
// line 317
echo "<input type=\"hidden\" name=\"_method\" value=\"";
echo twig_escape_filter($this->env, ($context["method"] ?? null), "html", null, true);
echo "\"/>";
}
}
// line 321
public function block_form_end($context, array $blocks = [])
{
// line 322
if (( !(isset($context["render_rest"]) || array_key_exists("render_rest", $context)) || ($context["render_rest"] ?? null))) {
// line 323
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'rest');
}
// line 325
echo "</form>";
}
// line 328
public function block_form_enctype($context, array $blocks = [])
{
// line 329
if (($context["multipart"] ?? null)) {
echo "enctype=\"multipart/form-data\"";
}
}
// line 332
public function block_form_errors($context, array $blocks = [])
{
// line 333
if ((twig_length_filter($this->env, ($context["errors"] ?? null)) > 0)) {
// line 334
echo "<ul>";
// line 335
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["errors"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
// line 336
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 338
echo "</ul>";
}
}
// line 342
public function block_form_rest($context, array $blocks = [])
{
// line 343
$context["ps"] = $this->loadTemplate("@PrestaShop/Admin/macros.html.twig", "@PrestaShop/Admin/TwigTemplateForm/form_div_layout.html.twig", 343);
// line 344
echo "
";
// line 345
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["form"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
// line 346
if ( !$this->getAttribute($context["child"], "rendered", [])) {
// line 347
echo $context["ps"]->getform_group_row($context["child"], ["attr" => $this->getAttribute($this->getAttribute($context["child"], "vars", []), "attr", [])], ["label" => $this->getAttribute($this->getAttribute( // line 348
$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 356
public function block_form_rows($context, array $blocks = [])
{
// line 357
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["form"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
// line 358
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 362
public function block_widget_attributes($context, array $blocks = [])
{
// line 363
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 364
if (((((isset($context["read_only"]) || 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 365
if (($context["disabled"] ?? null)) {
echo " disabled=\"disabled\"";
}
// line 366
if (($context["required"] ?? null)) {
echo " required=\"required\"";
}
// line 367
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["attr"] ?? null));
foreach ($context['_seq'] as $context["attrname"] => $context["attrvalue"]) {
// line 368
echo " ";
// line 369
if (twig_in_filter($context["attrname"], [0 => "placeholder", 1 => "title"])) {
// line 370
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 371
$context["attrvalue"] === true)) {
// line 372
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 373
$context["attrvalue"] === false)) {
// line 374
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 379
public function block_widget_container_attributes($context, array $blocks = [])
{
// line 380
if ( !twig_test_empty(($context["id"] ?? null))) {
echo "id=\"";
echo twig_escape_filter($this->env, ($context["id"] ?? null), "html", null, true);
echo "\"";
}
// line 381
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["attr"] ?? null));
foreach ($context['_seq'] as $context["attrname"] => $context["attrvalue"]) {
// line 382
echo " ";
// line 383
if (twig_in_filter($context["attrname"], [0 => "placeholder", 1 => "title"])) {
// line 384
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 385
$context["attrvalue"] === true)) {
// line 386
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 387
$context["attrvalue"] === false)) {
// line 388
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 393
public function block_button_attributes($context, array $blocks = [])
{
// line 394
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 395
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["attr"] ?? null));
foreach ($context['_seq'] as $context["attrname"] => $context["attrvalue"]) {
// line 396
echo " ";
// line 397
if (twig_in_filter($context["attrname"], [0 => "placeholder", 1 => "title"])) {
// line 398
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 399
$context["attrvalue"] === true)) {
// line 400
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 401
$context["attrvalue"] === false)) {
// line 402
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 407
public function block_attributes($context, array $blocks = [])
{
// line 408
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["attr"] ?? null));
foreach ($context['_seq'] as $context["attrname"] => $context["attrvalue"]) {
// line 409
echo " ";
// line 410
if (twig_in_filter($context["attrname"], [0 => "placeholder", 1 => "title"])) {
// line 411
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 412
$context["attrvalue"] === true)) {
// line 413
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 414
$context["attrvalue"] === false)) {
// line 415
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 ( 1091 => 415, 1089 => 414, 1084 => 413, 1082 => 412, 1077 => 411, 1075 => 410, 1073 => 409, 1069 => 408, 1066 => 407, 1054 => 402, 1052 => 401, 1047 => 400, 1045 => 399, 1040 => 398, 1038 => 397, 1036 => 396, 1032 => 395, 1023 => 394, 1020 => 393, 1008 => 388, 1006 => 387, 1001 => 386, 999 => 385, 994 => 384, 992 => 383, 990 => 382, 986 => 381, 980 => 380, 977 => 379, 965 => 374, 963 => 373, 958 => 372, 956 => 371, 951 => 370, 949 => 369, 947 => 368, 943 => 367, 939 => 366, 935 => 365, 931 => 364, 925 => 363, 922 => 362, 914 => 358, 910 => 357, 907 => 356, 898 => 348, 897 => 347, 895 => 346, 891 => 345, 888 => 344, 886 => 343, 883 => 342, 878 => 338, 870 => 336, 866 => 335, 864 => 334, 862 => 333, 859 => 332, 853 => 329, 850 => 328, 846 => 325, 843 => 323, 841 => 322, 838 => 321, 831 => 317, 829 => 316, 808 => 315, 803 => 314, 800 => 312, 797 => 310, 795 => 309, 793 => 308, 790 => 307, 786 => 304, 784 => 303, 782 => 302, 779 => 301, 775 => 296, 772 => 295, 768 => 292, 766 => 291, 764 => 290, 761 => 289, 757 => 286, 755 => 285, 753 => 284, 751 => 283, 749 => 282, 746 => 281, 742 => 278, 739 => 273, 734 => 269, 729 => 264, 724 => 262, 719 => 261, 716 => 260, 714 => 259, 711 => 258, 706 => 256, 701 => 255, 698 => 254, 696 => 253, 678 => 252, 674 => 249, 671 => 246, 670 => 245, 669 => 244, 667 => 243, 664 => 242, 661 => 240, 658 => 239, 655 => 237, 653 => 236, 651 => 235, 648 => 234, 644 => 229, 642 => 228, 639 => 227, 635 => 224, 633 => 223, 630 => 222, 620 => 219, 616 => 216, 613 => 213, 612 => 212, 611 => 211, 609 => 210, 607 => 209, 604 => 208, 600 => 205, 598 => 204, 595 => 203, 591 => 200, 589 => 199, 586 => 198, 582 => 195, 580 => 194, 577 => 193, 572 => 190, 570 => 189, 567 => 188, 563 => 185, 561 => 184, 558 => 183, 554 => 180, 552 => 179, 549 => 178, 545 => 175, 542 => 174, 538 => 171, 536 => 170, 533 => 169, 529 => 166, 527 => 165, 524 => 163, 519 => 159, 509 => 158, 504 => 157, 502 => 156, 499 => 154, 497 => 153, 494 => 152, 489 => 148, 487 => 146, 486 => 145, 485 => 144, 484 => 143, 480 => 142, 477 => 140, 475 => 139, 472 => 138, 467 => 134, 465 => 133, 463 => 132, 461 => 131, 459 => 130, 455 => 129, 452 => 127, 450 => 126, 447 => 125, 433 => 122, 430 => 121, 427 => 120, 403 => 117, 400 => 116, 398 => 115, 395 => 114, 365 => 109, 362 => 107, 360 => 106, 358 => 105, 353 => 104, 351 => 103, 334 => 102, 331 => 101, 327 => 98, 325 => 97, 323 => 96, 317 => 93, 315 => 92, 313 => 91, 311 => 90, 309 => 89, 301 => 87, 298 => 86, 296 => 85, 289 => 84, 286 => 82, 284 => 81, 281 => 80, 277 => 77, 271 => 75, 269 => 74, 265 => 73, 261 => 72, 258 => 71, 253 => 67, 250 => 65, 248 => 64, 245 => 63, 241 => 60, 234 => 59, 231 => 58, 227 => 55, 224 => 53, 222 => 52, 219 => 51, 215 => 48, 213 => 47, 211 => 46, 208 => 44, 206 => 43, 202 => 42, 199 => 41, 195 => 38, 182 => 37, 180 => 36, 177 => 35, 172 => 31, 169 => 29, 167 => 28, 164 => 27, 160 => 407, 158 => 393, 156 => 379, 154 => 362, 152 => 356, 149 => 353, 147 => 342, 145 => 332, 143 => 328, 141 => 321, 139 => 307, 137 => 301, 135 => 295, 133 => 289, 131 => 281, 129 => 273, 127 => 269, 125 => 234, 123 => 227, 121 => 222, 119 => 208, 117 => 203, 115 => 198, 113 => 193, 111 => 188, 109 => 183, 107 => 178, 105 => 174, 103 => 169, 101 => 163, 99 => 152, 97 => 138, 95 => 125, 93 => 120, 91 => 114, 89 => 101, 87 => 80, 85 => 71, 83 => 63, 81 => 58, 79 => 51, 77 => 41, 75 => 35, 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", "/Volumes/Dev/Sources/Clients/taome/Nouveau_site/www/src/PrestaShopBundle/Resources/views/Admin/TwigTemplateForm/form_div_layout.html.twig");
}
}