parent = false;
$this->blocks = [
'translatable_choice_widget' => [$this, 'block_translatable_choice_widget'],
];
}
protected function doDisplay(array $context, array $blocks = [])
{
// line 25
$this->displayBlock('translatable_choice_widget', $context, $blocks);
}
public function block_translatable_choice_widget($context, array $blocks = [])
{
// line 26
echo " ";
$context["ps"] = $this->loadTemplate("@PrestaShop/Admin/macros.html.twig", "@PrestaShop/Admin/TwigTemplateForm/translatable_choice.html.twig", 26)->unwrap();
// line 27
echo "
";
// line 28
$context["class"] = (($this->getAttribute(($context["extraVars"] ?? null), "class", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["extraVars"] ?? null), "class", []), "")) : (""));
// line 29
echo " ";
$context["rowAttributes"] = (($this->getAttribute(($context["extraVars"] ?? null), "row_attr", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["extraVars"] ?? null), "row_attr", []), [])) : ([]));
// line 30
echo " ";
$context["attr"] = $this->getAttribute($this->getAttribute(($context["form"] ?? null), "vars", []), "attr", []);
// line 31
echo " ";
$context["attr"] = twig_array_merge(($context["attr"] ?? null), ["class" => twig_trim_filter(((($this->getAttribute(($context["attr"] ?? null), "class", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["attr"] ?? null), "class", []), "")) : ("")) . " custom-select translatable_choice"))]);
// line 32
echo "
env, ($context["class"] ?? null), "html", null, true);
echo "\" ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["rowAttributes"] ?? null));
foreach ($context['_seq'] as $context["key"] => $context["rowAttr"]) {
echo " ";
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "=\"";
echo twig_escape_filter($this->env, $context["rowAttr"], "html", null, true);
echo "\"";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['rowAttr'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
echo ">
";
// line 33
$context["extraVars"] = ((array_key_exists("extraVars", $context)) ? (_twig_default_filter(($context["extraVars"] ?? null), [])) : ([]));
// line 34
echo "
";
// line 36
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute(($context["form"] ?? null), "vars", []), "choices", []));
foreach ($context['_seq'] as $context["language"] => $context["choices"]) {
// line 37
echo "
getAttribute($this->getAttribute(($context["form"] ?? null), "vars", [], "any", false, true), "default_locale", [], "any", true, true) && !($this->getAttribute($this->getAttribute(($context["form"] ?? null), "vars", []), "default_locale", []) === $context["language"]))) {
echo "style=\"display: none\"";
}
echo ">
env, ((($this->getAttribute($this->getAttribute(($context["form"] ?? null), "vars", []), "id", []) . "_") . $context["language"]) . "_value"), "html", null, true);
echo "\" name=\"";
echo twig_escape_filter($this->env, ((($this->getAttribute($this->getAttribute(($context["form"] ?? null), "vars", []), "full_name", []) . "[") . $context["language"]) . "]"), "html", null, true);
echo "\" value=\"";
echo twig_escape_filter($this->env, twig_first($this->env, $context["choices"]), "html", null, true);
echo "\" />
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['language'], $context['choices'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 48
echo "
";
// line 50
echo " ";
if (($this->getAttribute($this->getAttribute(($context["form"] ?? null), "vars", [], "any", false, true), "locales", [], "any", true, true) && !twig_test_empty($this->getAttribute($this->getAttribute(($context["form"] ?? null), "vars", []), "locales", [])))) {
// line 51
echo "
";
}
// line 61
echo "
";
// line 63
echo " ";
if (array_key_exists("button", $context)) {
// line 64
echo "
";
}
// line 71
echo "
";
// line 73
$this->displayBlock("form_help", $context, $blocks);
// line 74
$this->displayBlock("form_hint", $context, $blocks);
}
public function getTemplateName()
{
return "@PrestaShop/Admin/TwigTemplateForm/translatable_choice.html.twig";
}
public function getDebugInfo()
{
return array ( 236 => 74, 234 => 73, 232 => 71, 224 => 67, 218 => 66, 198 => 65, 195 => 64, 192 => 63, 189 => 61, 184 => 58, 181 => 57, 170 => 55, 165 => 54, 163 => 53, 159 => 52, 156 => 51, 153 => 50, 150 => 48, 137 => 45, 134 => 44, 110 => 42, 106 => 41, 101 => 40, 97 => 39, 89 => 38, 82 => 37, 77 => 36, 74 => 34, 72 => 33, 54 => 32, 51 => 31, 48 => 30, 45 => 29, 43 => 28, 40 => 27, 37 => 26, 31 => 25,);
}
/** @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/translatable_choice.html.twig", "/home/admin/domains/masimmo.pl/public_html/src/PrestaShopBundle/Resources/views/Admin/TwigTemplateForm/translatable_choice.html.twig");
}
}