Files
taome/var/cache/dev/twig/86/86dfde075e453c393c031d7f29403bf23970e411f1c59e846a7bc0ad6d4eaa99.php
2020-10-07 10:37:15 +02:00

3482 lines
196 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/bootstrap_4_layout.html.twig */
class __TwigTemplate_967e941cb3aa696b1149d2f0bdf60dce2404e7d757f731e8f3306f6f0fbf2059 extends \Twig\Template
{
public function __construct(Environment $env)
{
parent::__construct($env);
$this->parent = false;
$_trait_0 = $this->loadTemplate("@PrestaShop/Admin/TwigTemplateForm/form_div_layout.html.twig", "@PrestaShop/Admin/TwigTemplateForm/bootstrap_4_layout.html.twig", 25);
// line 25
if (!$_trait_0->isTraitable()) {
throw new RuntimeError('Template "'."@PrestaShop/Admin/TwigTemplateForm/form_div_layout.html.twig".'" cannot be used as a trait.');
}
$_trait_0_blocks = $_trait_0->getBlocks();
$_trait_1 = $this->loadTemplate("@PrestaShop/Admin/TwigTemplateForm/typeahead.html.twig", "@PrestaShop/Admin/TwigTemplateForm/bootstrap_4_layout.html.twig", 26);
// line 26
if (!$_trait_1->isTraitable()) {
throw new RuntimeError('Template "'."@PrestaShop/Admin/TwigTemplateForm/typeahead.html.twig".'" cannot be used as a trait.');
}
$_trait_1_blocks = $_trait_1->getBlocks();
$_trait_2 = $this->loadTemplate("@PrestaShop/Admin/TwigTemplateForm/material.html.twig", "@PrestaShop/Admin/TwigTemplateForm/bootstrap_4_layout.html.twig", 27);
// line 27
if (!$_trait_2->isTraitable()) {
throw new RuntimeError('Template "'."@PrestaShop/Admin/TwigTemplateForm/material.html.twig".'" cannot be used as a trait.');
}
$_trait_2_blocks = $_trait_2->getBlocks();
$this->traits = array_merge(
$_trait_0_blocks,
$_trait_1_blocks,
$_trait_2_blocks
);
$this->blocks = array_merge(
$this->traits,
[
'form_widget_simple' => [$this, 'block_form_widget_simple'],
'textarea_widget' => [$this, 'block_textarea_widget'],
'button_widget' => [$this, 'block_button_widget'],
'money_widget' => [$this, 'block_money_widget'],
'percent_widget' => [$this, 'block_percent_widget'],
'datetime_widget' => [$this, 'block_datetime_widget'],
'date_widget' => [$this, 'block_date_widget'],
'time_widget' => [$this, 'block_time_widget'],
'choice_widget_collapsed' => [$this, 'block_choice_widget_collapsed'],
'choice_widget_expanded' => [$this, 'block_choice_widget_expanded'],
'checkbox_widget' => [$this, 'block_checkbox_widget'],
'radio_widget' => [$this, 'block_radio_widget'],
'choice_tree_widget' => [$this, 'block_choice_tree_widget'],
'choice_tree_item_widget' => [$this, 'block_choice_tree_item_widget'],
'translatefields_widget' => [$this, 'block_translatefields_widget'],
'translate_fields_widget' => [$this, 'block_translate_fields_widget'],
'translate_text_widget' => [$this, 'block_translate_text_widget'],
'translate_textarea_widget' => [$this, 'block_translate_textarea_widget'],
'date_picker_widget' => [$this, 'block_date_picker_widget'],
'date_range_widget' => [$this, 'block_date_range_widget'],
'search_and_reset_widget' => [$this, 'block_search_and_reset_widget'],
'switch_widget' => [$this, 'block_switch_widget'],
'_form_step6_attachments_widget' => [$this, 'block__form_step6_attachments_widget'],
'form_label' => [$this, 'block_form_label'],
'choice_label' => [$this, 'block_choice_label'],
'checkbox_label' => [$this, 'block_checkbox_label'],
'radio_label' => [$this, 'block_radio_label'],
'checkbox_radio_label' => [$this, 'block_checkbox_radio_label'],
'form_row' => [$this, 'block_form_row'],
'button_row' => [$this, 'block_button_row'],
'choice_row' => [$this, 'block_choice_row'],
'date_row' => [$this, 'block_date_row'],
'time_row' => [$this, 'block_time_row'],
'datetime_row' => [$this, 'block_datetime_row'],
'checkbox_row' => [$this, 'block_checkbox_row'],
'radio_row' => [$this, 'block_radio_row'],
'form_errors' => [$this, 'block_form_errors'],
'material_choice_table_widget' => [$this, 'block_material_choice_table_widget'],
'material_multiple_choice_table_widget' => [$this, 'block_material_multiple_choice_table_widget'],
'translatable_widget' => [$this, 'block_translatable_widget'],
'birthday_widget' => [$this, 'block_birthday_widget'],
'file_widget' => [$this, 'block_file_widget'],
'shop_restriction_checkbox_widget' => [$this, 'block_shop_restriction_checkbox_widget'],
'generatable_text_widget' => [$this, 'block_generatable_text_widget'],
'text_with_recommended_length_widget' => [$this, 'block_text_with_recommended_length_widget'],
]
);
}
protected function doDisplay(array $context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@PrestaShop/Admin/TwigTemplateForm/bootstrap_4_layout.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@PrestaShop/Admin/TwigTemplateForm/bootstrap_4_layout.html.twig"));
// line 28
echo "
";
// line 30
echo "
";
// line 31
$this->displayBlock('form_widget_simple', $context, $blocks);
// line 37
echo "
";
// line 38
$this->displayBlock('textarea_widget', $context, $blocks);
// line 42
echo "
";
// line 43
$this->displayBlock('button_widget', $context, $blocks);
// line 47
echo "
";
// line 48
$this->displayBlock('money_widget', $context, $blocks);
// line 64
echo "
";
// line 65
$this->displayBlock('percent_widget', $context, $blocks);
// line 73
echo "
";
// line 74
$this->displayBlock('datetime_widget', $context, $blocks);
// line 87
echo "
";
// line 88
$this->displayBlock('date_widget', $context, $blocks);
// line 106
echo "
";
// line 107
$this->displayBlock('time_widget', $context, $blocks);
// line 121
echo "
";
// line 122
$this->displayBlock('choice_widget_collapsed', $context, $blocks);
// line 126
echo "
";
// line 127
$this->displayBlock('choice_widget_expanded', $context, $blocks);
// line 148
echo "
";
// line 149
$this->displayBlock('checkbox_widget', $context, $blocks);
// line 159
echo "
";
// line 160
$this->displayBlock('radio_widget', $context, $blocks);
// line 170
echo "
";
// line 171
$this->displayBlock('choice_tree_widget', $context, $blocks);
// line 181
echo "
";
// line 182
$this->displayBlock('choice_tree_item_widget', $context, $blocks);
// line 220
echo "
";
// line 221
$this->displayBlock('translatefields_widget', $context, $blocks);
// line 246
echo "
";
// line 247
$this->displayBlock('translate_fields_widget', $context, $blocks);
// line 253
echo "
";
// line 254
$this->displayBlock('translate_text_widget', $context, $blocks);
// line 291
echo "
";
// line 292
$this->displayBlock('translate_textarea_widget', $context, $blocks);
// line 333
echo "
";
// line 334
$this->displayBlock('date_picker_widget', $context, $blocks);
// line 347
echo "
";
// line 348
$this->displayBlock('date_range_widget', $context, $blocks);
// line 354
echo "
";
// line 355
$this->displayBlock('search_and_reset_widget', $context, $blocks);
// line 380
echo "
";
// line 381
$this->displayBlock('switch_widget', $context, $blocks);
// line 393
echo "
";
// line 394
$this->displayBlock('_form_step6_attachments_widget', $context, $blocks);
// line 423
echo "
";
// line 425
echo "
";
// line 426
$this->displayBlock('form_label', $context, $blocks);
// line 430
echo "
";
// line 431
$this->displayBlock('choice_label', $context, $blocks);
// line 436
echo "
";
// line 437
$this->displayBlock('checkbox_label', $context, $blocks);
// line 440
echo "
";
// line 441
$this->displayBlock('radio_label', $context, $blocks);
// line 444
echo "
";
// line 445
$this->displayBlock('checkbox_radio_label', $context, $blocks);
// line 474
echo "
";
// line 476
echo "
";
// line 477
$this->displayBlock('form_row', $context, $blocks);
// line 484
echo "
";
// line 485
$this->displayBlock('button_row', $context, $blocks);
// line 490
echo "
";
// line 491
$this->displayBlock('choice_row', $context, $blocks);
// line 495
echo "
";
// line 496
$this->displayBlock('date_row', $context, $blocks);
// line 500
echo "
";
// line 501
$this->displayBlock('time_row', $context, $blocks);
// line 505
echo "
";
// line 506
$this->displayBlock('datetime_row', $context, $blocks);
// line 510
echo "
";
// line 511
$this->displayBlock('checkbox_row', $context, $blocks);
// line 517
echo "
";
// line 518
$this->displayBlock('radio_row', $context, $blocks);
// line 524
echo "
";
// line 526
echo "
";
// line 527
$this->displayBlock('form_errors', $context, $blocks);
// line 556
echo "
";
// line 559
echo "
";
// line 560
$this->displayBlock('material_choice_table_widget', $context, $blocks);
// line 590
echo "
";
// line 591
$this->displayBlock('material_multiple_choice_table_widget', $context, $blocks);
// line 643
echo "
";
// line 644
$this->displayBlock('translatable_widget', $context, $blocks);
// line 676
echo "
";
// line 677
$this->displayBlock('birthday_widget', $context, $blocks);
// line 701
echo "
";
// line 702
$this->displayBlock('file_widget', $context, $blocks);
// line 724
echo "
";
// line 725
$this->displayBlock('shop_restriction_checkbox_widget', $context, $blocks);
// line 741
echo "
";
// line 742
$this->displayBlock('generatable_text_widget', $context, $blocks);
// line 756
echo "
";
// line 757
$this->displayBlock('text_with_recommended_length_widget', $context, $blocks);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 31
public function block_form_widget_simple($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form_widget_simple"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form_widget_simple"));
// line 32
if (( !(isset($context["type"]) || array_key_exists("type", $context)) || ("file" != ($context["type"] ?? $this->getContext($context, "type"))))) {
// line 33
$context["attr"] = twig_array_merge(($context["attr"] ?? $this->getContext($context, "attr")), ["class" => twig_trim_filter(((($this->getAttribute(($context["attr"] ?? null), "class", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["attr"] ?? null), "class", []), "")) : ("")) . " form-control"))]);
}
// line 35
$this->displayParentBlock("form_widget_simple", $context, $blocks);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 38
public function block_textarea_widget($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "textarea_widget"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "textarea_widget"));
// line 39
$context["attr"] = twig_array_merge(($context["attr"] ?? $this->getContext($context, "attr")), ["class" => twig_trim_filter(((($this->getAttribute(($context["attr"] ?? null), "class", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["attr"] ?? null), "class", []), "")) : ("")) . " form-control"))]);
// line 40
$this->displayParentBlock("textarea_widget", $context, $blocks);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 43
public function block_button_widget($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "button_widget"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "button_widget"));
// line 44
$context["attr"] = twig_array_merge(($context["attr"] ?? $this->getContext($context, "attr")), ["class" => twig_trim_filter(((($this->getAttribute(($context["attr"] ?? null), "class", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["attr"] ?? null), "class", []), "btn-default")) : ("btn-default")) . " btn"))]);
// line 45
$this->displayParentBlock("button_widget", $context, $blocks);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 48
public function block_money_widget($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "money_widget"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "money_widget"));
// line 49
echo "<div class=\"input-group money-type\">
";
// line 50
$context["prepend"] = ("{{" == twig_slice($this->env, ($context["money_pattern"] ?? $this->getContext($context, "money_pattern")), 0, 2));
// line 51
echo " ";
if ( !($context["prepend"] ?? $this->getContext($context, "prepend"))) {
// line 52
echo " <div class=\"input-group-prepend\">
<span class=\"input-group-text\">";
// line 53
echo twig_escape_filter($this->env, twig_replace_filter(($context["money_pattern"] ?? $this->getContext($context, "money_pattern")), ["{{ widget }}" => ""]), "html", null, true);
echo "</span>
</div>
";
}
// line 56
$this->displayBlock("form_widget_simple", $context, $blocks);
// line 57
if (($context["prepend"] ?? $this->getContext($context, "prepend"))) {
// line 58
echo " <div class=\"input-group-append\">
<span class=\"input-group-text\">";
// line 59
echo twig_escape_filter($this->env, twig_replace_filter(($context["money_pattern"] ?? $this->getContext($context, "money_pattern")), ["{{ widget }}" => ""]), "html", null, true);
echo "</span>
</div>
";
}
// line 62
echo " </div>";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 65
public function block_percent_widget($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "percent_widget"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "percent_widget"));
// line 66
echo "<div class=\"input-group\">";
// line 67
$this->displayBlock("form_widget_simple", $context, $blocks);
// line 68
echo "<div class=\"input-group-append\">
<span class=\"input-group-text\">%</span>
</div>
</div>";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 74
public function block_datetime_widget($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "datetime_widget"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "datetime_widget"));
// line 75
if ((($context["widget"] ?? $this->getContext($context, "widget")) == "single_text")) {
// line 76
$this->displayBlock("form_widget_simple", $context, $blocks);
} else {
// line 78
$context["attr"] = twig_array_merge(($context["attr"] ?? $this->getContext($context, "attr")), ["class" => twig_trim_filter(((($this->getAttribute(($context["attr"] ?? null), "class", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["attr"] ?? null), "class", []), "")) : ("")) . " form-inline"))]);
// line 79
echo "<div ";
$this->displayBlock("widget_container_attributes", $context, $blocks);
echo ">";
// line 80
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "date", []), 'errors');
// line 81
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "time", []), 'errors');
// line 82
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "date", []), 'widget', ["datetime" => true]);
// line 83
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "time", []), 'widget', ["datetime" => true]);
// line 84
echo "</div>";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 88
public function block_date_widget($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "date_widget"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "date_widget"));
// line 89
if ((($context["widget"] ?? $this->getContext($context, "widget")) == "single_text")) {
// line 90
$this->displayBlock("form_widget_simple", $context, $blocks);
} else {
// line 92
$context["attr"] = twig_array_merge(($context["attr"] ?? $this->getContext($context, "attr")), ["class" => twig_trim_filter(((($this->getAttribute(($context["attr"] ?? null), "class", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["attr"] ?? null), "class", []), "")) : ("")) . " form-inline"))]);
// line 93
if (( !(isset($context["datetime"]) || array_key_exists("datetime", $context)) || !($context["datetime"] ?? $this->getContext($context, "datetime")))) {
// line 94
echo "<div ";
$this->displayBlock("widget_container_attributes", $context, $blocks);
echo ">";
}
// line 96
echo twig_replace_filter(($context["date_pattern"] ?? $this->getContext($context, "date_pattern")), ["{{ year }}" => // line 97
$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "year", []), 'widget'), "{{ month }}" => // line 98
$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "month", []), 'widget'), "{{ day }}" => // line 99
$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "day", []), 'widget')]);
// line 101
if (( !(isset($context["datetime"]) || array_key_exists("datetime", $context)) || !($context["datetime"] ?? $this->getContext($context, "datetime")))) {
// line 102
echo "</div>";
}
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 107
public function block_time_widget($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "time_widget"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "time_widget"));
// line 108
if ((($context["widget"] ?? $this->getContext($context, "widget")) == "single_text")) {
// line 109
$this->displayBlock("form_widget_simple", $context, $blocks);
} else {
// line 111
$context["attr"] = twig_array_merge(($context["attr"] ?? $this->getContext($context, "attr")), ["class" => twig_trim_filter(((($this->getAttribute(($context["attr"] ?? null), "class", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["attr"] ?? null), "class", []), "")) : ("")) . " form-inline"))]);
// line 112
if (( !(isset($context["datetime"]) || array_key_exists("datetime", $context)) || (false == ($context["datetime"] ?? $this->getContext($context, "datetime"))))) {
// line 113
echo "<div ";
$this->displayBlock("widget_container_attributes", $context, $blocks);
echo ">";
}
// line 115
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "hour", []), 'widget');
echo ":";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "minute", []), 'widget');
if (($context["with_seconds"] ?? $this->getContext($context, "with_seconds"))) {
echo ":";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "second", []), 'widget');
}
// line 116
echo " ";
if (( !(isset($context["datetime"]) || array_key_exists("datetime", $context)) || (false == ($context["datetime"] ?? $this->getContext($context, "datetime"))))) {
// line 117
echo "</div>";
}
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 122
public function block_choice_widget_collapsed($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "choice_widget_collapsed"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "choice_widget_collapsed"));
// line 123
$context["attr"] = twig_array_merge(($context["attr"] ?? $this->getContext($context, "attr")), ["class" => twig_trim_filter(((($this->getAttribute(($context["attr"] ?? null), "class", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["attr"] ?? null), "class", []), "")) : ("")) . " custom-select"))]);
// line 124
$this->displayParentBlock("choice_widget_collapsed", $context, $blocks);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 127
public function block_choice_widget_expanded($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "choice_widget_expanded"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "choice_widget_expanded"));
// line 128
if (twig_in_filter("-inline", (($this->getAttribute(($context["label_attr"] ?? null), "class", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["label_attr"] ?? null), "class", []), "")) : ("")))) {
// line 129
echo "<div class=\"control-group\">";
// line 130
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["form"] ?? $this->getContext($context, "form")));
foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
// line 131
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["child"], 'widget', ["parent_label_class" => (($this->getAttribute( // line 132
($context["label_attr"] ?? null), "class", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["label_attr"] ?? null), "class", []), "")) : ("")), "translation_domain" => // line 133
($context["choice_translation_domain"] ?? $this->getContext($context, "choice_translation_domain"))]);
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 136
echo "</div>";
} else {
// line 138
echo "<div ";
$this->displayBlock("widget_container_attributes", $context, $blocks);
echo ">";
// line 139
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["form"] ?? $this->getContext($context, "form")));
foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
// line 140
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["child"], 'widget', ["parent_label_class" => (($this->getAttribute( // line 141
($context["label_attr"] ?? null), "class", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["label_attr"] ?? null), "class", []), "")) : ("")), "translation_domain" => // line 142
($context["choice_translation_domain"] ?? $this->getContext($context, "choice_translation_domain"))]);
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 145
echo "</div>";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 149
public function block_checkbox_widget($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "checkbox_widget"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "checkbox_widget"));
// line 150
$context["parent_label_class"] = (((isset($context["parent_label_class"]) || array_key_exists("parent_label_class", $context))) ? (_twig_default_filter(($context["parent_label_class"] ?? $this->getContext($context, "parent_label_class")), "")) : (""));
// line 151
if (twig_in_filter("checkbox-inline", ($context["parent_label_class"] ?? $this->getContext($context, "parent_label_class")))) {
// line 152
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? $this->getContext($context, "form")), 'label', ["widget" => $this->renderParentBlock("checkbox_widget", $context, $blocks)]);
} else {
// line 154
echo "<div class=\"checkbox\">";
// line 155
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? $this->getContext($context, "form")), 'label', ["widget" => $this->renderParentBlock("checkbox_widget", $context, $blocks)]);
// line 156
echo "</div>";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 160
public function block_radio_widget($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "radio_widget"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "radio_widget"));
// line 161
$context["parent_label_class"] = (((isset($context["parent_label_class"]) || array_key_exists("parent_label_class", $context))) ? (_twig_default_filter(($context["parent_label_class"] ?? $this->getContext($context, "parent_label_class")), "")) : (""));
// line 162
if (twig_in_filter("radio-inline", ($context["parent_label_class"] ?? $this->getContext($context, "parent_label_class")))) {
// line 163
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? $this->getContext($context, "form")), 'label', ["widget" => $this->renderParentBlock("radio_widget", $context, $blocks)]);
} else {
// line 165
echo "<div class=\"radio\">";
// line 166
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? $this->getContext($context, "form")), 'label', ["widget" => $this->renderParentBlock("radio_widget", $context, $blocks)]);
// line 167
echo "</div>";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 171
public function block_choice_tree_widget($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "choice_tree_widget"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "choice_tree_widget"));
// line 172
echo "<div ";
$this->displayBlock("widget_container_attributes", $context, $blocks);
echo " class=\"category-tree-overflow\">
<ul class=\"category-tree\">
<li class=\"form-control-label text-right main-category\">";
// line 174
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Main category", [], "Admin.Catalog.Feature"), "html", null, true);
echo "</li>";
// line 175
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["choices"] ?? $this->getContext($context, "choices")));
$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["_key"] => $context["child"]) {
// line 176
echo " ";
$this->displayBlock("choice_tree_item_widget", $context, $blocks);
echo "
";
++$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['_key'], $context['child'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 178
echo "</ul>
</div>";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 182
public function block_choice_tree_item_widget($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "choice_tree_item_widget"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "choice_tree_item_widget"));
// line 183
echo "<li>
";
// line 184
$context["checked"] = ((($this->getAttribute($this->getAttribute(($context["form"] ?? null), "vars", [], "any", false, true), "submitted_values", [], "any", true, true) && $this->getAttribute(($context["submitted_values"] ?? null), $this->getAttribute(($context["child"] ?? $this->getContext($context, "child")), "id_category", []), [], "array", true, true))) ? ("checked=\"checked\"") : (""));
// line 185
echo " ";
if (($context["multiple"] ?? $this->getContext($context, "multiple"))) {
// line 186
echo "<div class=\"checkbox\">
<label>
<input type=\"checkbox\" name=\"";
// line 188
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "vars", []), "full_name", []), "html", null, true);
echo "[tree][]\" value=\"";
echo twig_escape_filter($this->env, $this->getAttribute(($context["child"] ?? $this->getContext($context, "child")), "id_category", []), "html", null, true);
echo "\" class=\"category\" ";
echo twig_escape_filter($this->env, ($context["checked"] ?? $this->getContext($context, "checked")), "html", null, true);
echo ">
";
// line 189
if (($this->getAttribute(($context["child"] ?? null), "active", [], "any", true, true) && ($this->getAttribute(($context["child"] ?? $this->getContext($context, "child")), "active", []) == 0))) {
// line 190
echo " <i>";
echo twig_escape_filter($this->env, $this->getAttribute(($context["child"] ?? $this->getContext($context, "child")), "name", []), "html", null, true);
echo "</i>";
} else {
// line 192
echo twig_escape_filter($this->env, $this->getAttribute(($context["child"] ?? $this->getContext($context, "child")), "name", []), "html", null, true);
echo "
";
}
// line 194
echo " ";
if ((isset($context["defaultCategory"]) || array_key_exists("defaultCategory", $context))) {
// line 195
echo " <input type=\"radio\" value=\"";
echo twig_escape_filter($this->env, $this->getAttribute(($context["child"] ?? $this->getContext($context, "child")), "id_category", []), "html", null, true);
echo "\" name=\"ignore\" class=\"default-category\" />
";
}
// line 197
echo " </label>
</div>";
} else {
// line 200
echo "<div class=\"radio\">
<label>
<input type=\"radio\" name=\"form[";
// line 202
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "vars", []), "id", []), "html", null, true);
echo "][tree]\" value=\"";
echo twig_escape_filter($this->env, $this->getAttribute(($context["child"] ?? $this->getContext($context, "child")), "id_category", []), "html", null, true);
echo "\" ";
echo twig_escape_filter($this->env, ($context["checked"] ?? $this->getContext($context, "checked")), "html", null, true);
echo " class=\"category\">
";
// line 203
echo twig_escape_filter($this->env, $this->getAttribute(($context["child"] ?? $this->getContext($context, "child")), "name", []), "html", null, true);
echo "
";
// line 204
if ((isset($context["defaultCategory"]) || array_key_exists("defaultCategory", $context))) {
// line 205
echo " <input type=\"radio\" value=\"";
echo twig_escape_filter($this->env, $this->getAttribute(($context["child"] ?? $this->getContext($context, "child")), "id_category", []), "html", null, true);
echo "\" name=\"ignore\" class=\"default-category\" />
";
}
// line 207
echo " </label>
</div>";
}
// line 210
echo " ";
if ($this->getAttribute(($context["child"] ?? null), "children", [], "any", true, true)) {
// line 211
echo " <ul>
";
// line 212
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["child"] ?? $this->getContext($context, "child")), "children", []));
$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["_key"] => $context["item"]) {
// line 213
echo " ";
$context["child"] = $context["item"];
// line 214
echo " ";
$this->displayBlock("choice_tree_item_widget", $context, $blocks);
echo "
";
++$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['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 216
echo "</ul>
";
}
// line 218
echo " </li>";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 221
public function block_translatefields_widget($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "translatefields_widget"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "translatefields_widget"));
// line 222
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? $this->getContext($context, "form")), 'errors');
echo "
<div class=\"translations tabbable\" id=\"";
// line 223
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "vars", []), "id", []), "html", null, true);
echo "\">
";
// line 224
if (((($context["hideTabs"] ?? $this->getContext($context, "hideTabs")) == false) && (twig_length_filter($this->env, ($context["form"] ?? $this->getContext($context, "form"))) > 1))) {
// line 225
echo " <ul class=\"translationsLocales nav nav-pills\">
";
// line 226
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["form"] ?? $this->getContext($context, "form")));
foreach ($context['_seq'] as $context["_key"] => $context["translationsFields"]) {
// line 227
echo " <li class=\"nav-item\">
<a href=\"#\" data-locale=\"";
// line 228
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["translationsFields"], "vars", []), "label", []), "html", null, true);
echo "\" class=\"";
if (($this->getAttribute(($context["defaultLocale"] ?? $this->getContext($context, "defaultLocale")), "id_lang", []) == $this->getAttribute($this->getAttribute($context["translationsFields"], "vars", []), "name", []))) {
echo "active";
}
echo " nav-link\" data-toggle=\"tab\" data-target=\".translationsFields-";
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["translationsFields"], "vars", []), "id", []), "html", null, true);
echo "\">
";
// line 229
echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute($this->getAttribute($context["translationsFields"], "vars", []), "label", [])), "html", null, true);
echo "
</a>
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['translationsFields'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 233
echo " </ul>
";
}
// line 235
echo "
<div class=\"translationsFields tab-content\">
";
// line 237
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["form"] ?? $this->getContext($context, "form")));
foreach ($context['_seq'] as $context["_key"] => $context["translationsFields"]) {
// line 238
echo " <div data-locale=\"";
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["translationsFields"], "vars", []), "label", []), "html", null, true);
echo "\" class=\"translationsFields-";
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["translationsFields"], "vars", []), "id", []), "html", null, true);
echo " tab-pane translation-field ";
if (((($context["hideTabs"] ?? $this->getContext($context, "hideTabs")) == false) && (twig_length_filter($this->env, ($context["form"] ?? $this->getContext($context, "form"))) > 1))) {
echo "panel panel-default";
}
echo " ";
if (($this->getAttribute(($context["defaultLocale"] ?? $this->getContext($context, "defaultLocale")), "id_lang", []) == $this->getAttribute($this->getAttribute($context["translationsFields"], "vars", []), "name", []))) {
echo "show active";
}
echo " ";
if ( !$this->getAttribute($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "vars", []), "valid", [])) {
echo "field-error";
}
echo " translation-label-";
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["translationsFields"], "vars", []), "label", []), "html", null, true);
echo "\">
";
// line 239
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["translationsFields"], 'errors');
echo "
";
// line 240
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["translationsFields"], 'widget');
echo "
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['translationsFields'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 243
echo " </div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 247
public function block_translate_fields_widget($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "translate_fields_widget"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "translate_fields_widget"));
// line 248
if (( !(isset($context["type"]) || array_key_exists("type", $context)) || ("file" != ($context["type"] ?? $this->getContext($context, "type"))))) {
// line 249
$context["attr"] = twig_array_merge(($context["attr"] ?? $this->getContext($context, "attr")), ["class" => twig_trim_filter(((($this->getAttribute(($context["attr"] ?? null), "class", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["attr"] ?? null), "class", []), "")) : ("")) . " form-control"))]);
}
// line 251
$this->displayParentBlock("translate_fields_widget", $context, $blocks);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 254
public function block_translate_text_widget($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "translate_text_widget"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "translate_text_widget"));
// line 255
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? $this->getContext($context, "form")), 'errors');
echo "
<div class=\"input-group locale-input-group js-locale-input-group\">
";
// line 257
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["form"] ?? $this->getContext($context, "form")));
foreach ($context['_seq'] as $context["_key"] => $context["translateField"]) {
// line 258
echo " ";
$context["classes"] = ((($this->getAttribute($this->getAttribute($this->getAttribute($context["translateField"], "vars", [], "any", false, true), "attr", [], "any", false, true), "class", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute($this->getAttribute($context["translateField"], "vars", [], "any", false, true), "attr", [], "any", false, true), "class", []), "")) : ("")) . " js-locale-input");
// line 259
echo " ";
$context["classes"] = ((($context["classes"] ?? $this->getContext($context, "classes")) . " js-locale-") . $this->getAttribute($this->getAttribute($context["translateField"], "vars", []), "label", []));
// line 260
echo "
";
// line 261
if (($this->getAttribute(($context["default_locale"] ?? $this->getContext($context, "default_locale")), "id_lang", []) != $this->getAttribute($this->getAttribute($context["translateField"], "vars", []), "name", []))) {
// line 262
echo " ";
$context["classes"] = (($context["classes"] ?? $this->getContext($context, "classes")) . " d-none");
// line 263
echo " ";
}
// line 264
echo "
";
// line 265
$context["attr"] = $this->getAttribute($this->getAttribute($context["translateField"], "vars", []), "attr", []);
// line 266
echo "
";
// line 267
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["translateField"], 'widget', ["attr" => ["class" => twig_trim_filter(($context["classes"] ?? $this->getContext($context, "classes")))]]);
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['translateField'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 269
echo "
";
// line 270
if ( !($context["hide_locales"] ?? $this->getContext($context, "hide_locales"))) {
// line 271
echo " <div class=\"dropdown\">
<button class=\"btn btn-outline-secondary dropdown-toggle js-locale-btn\"
type=\"button\"
data-toggle=\"dropdown\"
aria-haspopup=\"true\"
aria-expanded=\"false\"
id=\"";
// line 277
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "vars", []), "id", []), "html", null, true);
echo "\"
>
";
// line 279
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "vars", []), "default_locale", []), "iso_code", []), "html", null, true);
echo "
</button>
<div class=\"dropdown-menu\" aria-labelledby=\"";
// line 282
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "vars", []), "id", []), "html", null, true);
echo "\">
";
// line 283
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["locales"] ?? $this->getContext($context, "locales")));
foreach ($context['_seq'] as $context["_key"] => $context["locale"]) {
// line 284
echo " <span class=\"dropdown-item js-locale-item\" data-locale=\"";
echo twig_escape_filter($this->env, $this->getAttribute($context["locale"], "iso_code", []), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->getAttribute($context["locale"], "name", []), "html", null, true);
echo "</span>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['locale'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 286
echo " </div>
</div>
";
}
// line 289
echo " </div>";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 292
public function block_translate_textarea_widget($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "translate_textarea_widget"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "translate_textarea_widget"));
// line 293
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? $this->getContext($context, "form")), 'errors');
echo "
<div class=\"input-group locale-input-group js-locale-input-group\">
";
// line 295
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["form"] ?? $this->getContext($context, "form")));
foreach ($context['_seq'] as $context["_key"] => $context["textarea"]) {
// line 296
echo " ";
$context["classes"] = ((($this->getAttribute($this->getAttribute($this->getAttribute($context["textarea"], "vars", [], "any", false, true), "attr", [], "any", false, true), "class", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute($this->getAttribute($context["textarea"], "vars", [], "any", false, true), "attr", [], "any", false, true), "class", []), "")) : ("")) . " js-locale-input");
// line 297
echo " ";
$context["classes"] = ((($context["classes"] ?? $this->getContext($context, "classes")) . " js-locale-") . $this->getAttribute($this->getAttribute($context["textarea"], "vars", []), "label", []));
// line 298
echo "
";
// line 299
if (($this->getAttribute(($context["default_locale"] ?? $this->getContext($context, "default_locale")), "id_lang", []) != $this->getAttribute($this->getAttribute($context["textarea"], "vars", []), "name", []))) {
// line 300
echo " ";
$context["classes"] = (($context["classes"] ?? $this->getContext($context, "classes")) . " d-none");
// line 301
echo " ";
}
// line 302
echo "
<div class=\"";
// line 303
echo twig_escape_filter($this->env, ($context["classes"] ?? $this->getContext($context, "classes")), "html", null, true);
echo "\">
";
// line 304
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["textarea"], 'widget', ["attr" => ["class" => twig_trim_filter(($context["classes"] ?? $this->getContext($context, "classes")))]]);
echo "
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['textarea'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 307
echo "
";
// line 308
if (($context["show_locale_select"] ?? $this->getContext($context, "show_locale_select"))) {
// line 309
echo " <div class=\"dropdown\">
<button class=\"btn btn-outline-secondary dropdown-toggle js-locale-btn\"
type=\"button\"
data-toggle=\"dropdown\"
aria-haspopup=\"true\"
aria-expanded=\"false\"
id=\"";
// line 315
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "vars", []), "id", []), "html", null, true);
echo "\"
>
";
// line 317
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "vars", []), "default_locale", []), "iso_code", []), "html", null, true);
echo "
</button>
<div class=\"dropdown-menu\" aria-labelledby=\"";
// line 320
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "vars", []), "id", []), "html", null, true);
echo "\">
";
// line 321
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["locales"] ?? $this->getContext($context, "locales")));
foreach ($context['_seq'] as $context["_key"] => $context["locale"]) {
// line 322
echo " <span class=\"dropdown-item js-locale-item\"
data-locale=\"";
// line 323
echo twig_escape_filter($this->env, $this->getAttribute($context["locale"], "iso_code", []), "html", null, true);
echo "\"
>
";
// line 325
echo twig_escape_filter($this->env, $this->getAttribute($context["locale"], "name", []), "html", null, true);
echo "
</span>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['locale'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 328
echo " </div>
</div>
";
}
// line 331
echo " </div>";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 334
public function block_date_picker_widget($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "date_picker_widget"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "date_picker_widget"));
// line 335
echo " ";
ob_start();
// line 336
echo " ";
$context["attr"] = twig_array_merge(($context["attr"] ?? $this->getContext($context, "attr")), ["class" => twig_trim_filter(((($this->getAttribute(($context["attr"] ?? null), "class", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["attr"] ?? null), "class", []), "")) : ("")) . " datepicker"))]);
// line 337
echo " <div class=\"input-group datepicker\">
<input type=\"text\" class=\"form-control\" ";
// line 338
$this->displayBlock("widget_attributes", $context, $blocks);
echo " ";
if ( !twig_test_empty(($context["value"] ?? $this->getContext($context, "value")))) {
echo "value=\"";
echo twig_escape_filter($this->env, ($context["value"] ?? $this->getContext($context, "value")), "html", null, true);
echo "\" ";
}
echo "/>
<div class=\"input-group-append\">
<div class=\"input-group-text\">
<i class=\"material-icons\">date_range</i>
</div>
</div>
</div>
";
echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 348
public function block_date_range_widget($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "date_range_widget"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "date_range_widget"));
// line 349
echo " ";
ob_start();
// line 350
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "from", []), 'widget');
echo "
";
// line 351
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "to", []), 'widget');
echo "
";
echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 355
public function block_search_and_reset_widget($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "search_and_reset_widget"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "search_and_reset_widget"));
// line 356
echo " ";
ob_start();
// line 357
echo " <button type=\"submit\"
class=\"btn btn-primary grid-search-button d-block float-right\"
title=\"";
// line 359
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Search", [], "Admin.Actions"), "html", null, true);
echo "\"
name=\"";
// line 360
echo twig_escape_filter($this->env, ($context["full_name"] ?? $this->getContext($context, "full_name")), "html", null, true);
echo "[search]\"
>
<i class=\"material-icons\">search</i>
";
// line 363
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Search", [], "Admin.Actions"), "html", null, true);
echo "
</button>
";
// line 366
if (($context["show_reset_button"] ?? $this->getContext($context, "show_reset_button"))) {
// line 367
echo " <div class=\"clearfix\"></div>
<button type=\"reset\"
name=\"";
// line 369
echo twig_escape_filter($this->env, ($context["full_name"] ?? $this->getContext($context, "full_name")), "html", null, true);
echo "[reset]\"
class=\"btn btn-link js-reset-search btn d-block grid-reset-button float-right\"
data-url=\"";
// line 371
echo twig_escape_filter($this->env, ($context["reset_url"] ?? $this->getContext($context, "reset_url")), "html", null, true);
echo "\"
data-redirect=\"";
// line 372
echo twig_escape_filter($this->env, ($context["redirect_url"] ?? $this->getContext($context, "redirect_url")), "html", null, true);
echo "\"
>
<i class=\"material-icons\">clear</i>
";
// line 375
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Reset", [], "Admin.Actions"), "html", null, true);
echo "
</button>
";
}
// line 378
echo " ";
echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 381
public function block_switch_widget($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "switch_widget"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "switch_widget"));
// line 382
echo " ";
ob_start();
// line 383
echo " <span class=\"ps-switch\">
";
// line 384
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["choices"] ?? $this->getContext($context, "choices")));
$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["_key"] => $context["choice"]) {
// line 385
echo " ";
$context["inputId"] = ((($context["id"] ?? $this->getContext($context, "id")) . "_") . $this->getAttribute($context["choice"], "value", []));
// line 386
echo " <input id=\"";
echo twig_escape_filter($this->env, ($context["inputId"] ?? $this->getContext($context, "inputId")), "html", null, true);
echo "\" ";
$this->displayBlock("attributes", $context, $blocks);
echo " name=\"";
echo twig_escape_filter($this->env, ($context["full_name"] ?? $this->getContext($context, "full_name")), "html", null, true);
echo "\" value=\"";
echo twig_escape_filter($this->env, $this->getAttribute($context["choice"], "value", []), "html", null, true);
echo "\"";
if (Symfony\Bridge\Twig\Extension\twig_is_selected_choice($context["choice"], ($context["value"] ?? $this->getContext($context, "value")))) {
echo "checked=\"\"";
}
if (($context["disabled"] ?? $this->getContext($context, "disabled"))) {
echo "disabled=\"\"";
}
echo "type=\"radio\">
<label for=\"";
// line 387
echo twig_escape_filter($this->env, ($context["inputId"] ?? $this->getContext($context, "inputId")), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans($this->getAttribute($context["choice"], "label", []), [], ($context["choice_translation_domain"] ?? $this->getContext($context, "choice_translation_domain"))), "html", null, true);
echo "</label>
";
++$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['_key'], $context['choice'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 389
echo " <span class=\"slide-button\"></span>
</span>
";
echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 394
public function block__form_step6_attachments_widget($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "_form_step6_attachments_widget"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "_form_step6_attachments_widget"));
// line 395
echo " <div class=\"js-options-no-attachments ";
echo (((twig_length_filter($this->env, ($context["form"] ?? $this->getContext($context, "form"))) > 0)) ? ("hide") : (""));
echo "\">
<small>";
// line 396
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("There is no attachment yet.", [], "Admin.Catalog.Notification"), "html", null, true);
echo "</small>
</div>
<div id=\"product-attachments\" class=\"panel panel-default\">
<div class=\"panel-body js-options-with-attachments ";
// line 399
echo (((twig_length_filter($this->env, ($context["form"] ?? $this->getContext($context, "form"))) == 0)) ? ("hide") : (""));
echo "\">
<div>
<table id=\"product-attachment-file\" class=\"table\">
<thead class=\"thead-default\">
<tr>
<th class=\"col-md-3\"><input type=\"checkbox\" id=\"product-attachment-files-check\" /> ";
// line 404
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Title", [], "Admin.Global"), "html", null, true);
echo "</th>
<th class=\"col-md-6\">";
// line 405
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("File name", [], "Admin.Global"), "html", null, true);
echo "</th>
<th class=\"col-md-2\">";
// line 406
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Type", [], "Admin.Catalog.Feature"), "html", null, true);
echo "</th>
</tr>
</thead>
<tbody>";
// line 410
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["form"] ?? $this->getContext($context, "form")));
$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["_key"] => $context["child"]) {
// line 411
echo " <tr>
<td class=\"col-md-3\">";
// line 412
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["child"], 'widget');
echo "</td>
<td class=\"col-md-6 file-name\"><span>";
// line 413
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "vars", []), "attr", []), "data", []), $this->getAttribute($context["loop"], "index0", []), [], "array"), "file_name", [], "array"), "html", null, true);
echo "</span></td>
<td class=\"col-md-2\">";
// line 414
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "vars", []), "attr", []), "data", []), $this->getAttribute($context["loop"], "index0", []), [], "array"), "mime", [], "array"), "html", null, true);
echo "</td>
</tr>
";
++$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['_key'], $context['child'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 417
echo "</tbody>
</table>
</div>
</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 426
public function block_form_label($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form_label"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form_label"));
// line 427
$context["label_attr"] = twig_array_merge(($context["label_attr"] ?? $this->getContext($context, "label_attr")), ["class" => twig_trim_filter(((($this->getAttribute(($context["label_attr"] ?? null), "class", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["label_attr"] ?? null), "class", []), "")) : ("")) . " control-label"))]);
// line 428
$this->displayParentBlock("form_label", $context, $blocks);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 431
public function block_choice_label($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "choice_label"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "choice_label"));
// line 433
$context["label_attr"] = twig_array_merge(($context["label_attr"] ?? $this->getContext($context, "label_attr")), ["class" => twig_trim_filter(twig_replace_filter((($this->getAttribute(($context["label_attr"] ?? null), "class", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["label_attr"] ?? null), "class", []), "")) : ("")), ["checkbox-inline" => "", "radio-inline" => ""]))]);
// line 434
$this->displayBlock("form_label", $context, $blocks);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 437
public function block_checkbox_label($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "checkbox_label"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "checkbox_label"));
// line 438
$this->displayBlock("checkbox_radio_label", $context, $blocks);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 441
public function block_radio_label($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "radio_label"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "radio_label"));
// line 442
$this->displayBlock("checkbox_radio_label", $context, $blocks);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 445
public function block_checkbox_radio_label($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "checkbox_radio_label"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "checkbox_radio_label"));
// line 446
echo " ";
// line 447
echo " ";
if ((isset($context["widget"]) || array_key_exists("widget", $context))) {
// line 448
echo " ";
if (($context["required"] ?? $this->getContext($context, "required"))) {
// line 449
echo " ";
$context["label_attr"] = twig_array_merge(($context["label_attr"] ?? $this->getContext($context, "label_attr")), ["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 450
echo " ";
}
// line 451
echo " ";
if ((isset($context["parent_label_class"]) || array_key_exists("parent_label_class", $context))) {
// line 452
echo " ";
$context["label_attr"] = twig_array_merge(($context["label_attr"] ?? $this->getContext($context, "label_attr")), ["class" => twig_trim_filter((((($this->getAttribute(($context["label_attr"] ?? null), "class", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["label_attr"] ?? null), "class", []), "")) : ("")) . " ") . ($context["parent_label_class"] ?? $this->getContext($context, "parent_label_class"))))]);
// line 453
echo " ";
}
// line 454
echo " ";
if (( !(($context["label"] ?? $this->getContext($context, "label")) === false) && twig_test_empty(($context["label"] ?? $this->getContext($context, "label"))))) {
// line 455
echo " ";
$context["label"] = $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->humanize(($context["name"] ?? $this->getContext($context, "name")));
// line 456
echo " ";
}
// line 457
echo "
";
// line 458
if ((isset($context["material_design"]) || array_key_exists("material_design", $context))) {
// line 459
echo " <div class=\"md-checkbox md-checkbox-inline\">
<label";
// line 460
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["label_attr"] ?? $this->getContext($context, "label_attr")));
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 ">";
// line 461
echo ($context["widget"] ?? $this->getContext($context, "widget"));
// line 462
echo "<i class=\"md-checkbox-control\"></i>";
// line 463
echo (( !(($context["label"] ?? $this->getContext($context, "label")) === false)) ? ((((($context["translation_domain"] ?? $this->getContext($context, "translation_domain")) === false)) ? (($context["label"] ?? $this->getContext($context, "label"))) : (($context["label"] ?? $this->getContext($context, "label"))))) : (""));
// line 464
echo "</label>
</div>
";
} else {
// line 467
echo " <label";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["label_attr"] ?? $this->getContext($context, "label_attr")));
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 ">";
// line 468
echo ($context["widget"] ?? $this->getContext($context, "widget"));
// line 469
echo (( !(($context["label"] ?? $this->getContext($context, "label")) === false)) ? ((((($context["translation_domain"] ?? $this->getContext($context, "translation_domain")) === false)) ? (($context["label"] ?? $this->getContext($context, "label"))) : (($context["label"] ?? $this->getContext($context, "label"))))) : (""));
// line 470
echo "</label>
";
}
// line 472
echo " ";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 477
public function block_form_row($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form_row"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form_row"));
// line 478
echo "<div class=\"form-group";
if ((( !($context["compound"] ?? $this->getContext($context, "compound")) || (((isset($context["force_error"]) || array_key_exists("force_error", $context))) ? (_twig_default_filter(($context["force_error"] ?? $this->getContext($context, "force_error")), false)) : (false))) && !($context["valid"] ?? $this->getContext($context, "valid")))) {
echo " has-error";
}
echo "\">";
// line 479
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? $this->getContext($context, "form")), 'label');
// line 480
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? $this->getContext($context, "form")), 'widget');
// line 481
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? $this->getContext($context, "form")), 'errors');
// line 482
echo "</div>";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 485
public function block_button_row($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "button_row"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "button_row"));
// line 486
echo "<div class=\"form-group\">";
// line 487
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? $this->getContext($context, "form")), 'widget');
// line 488
echo "</div>";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 491
public function block_choice_row($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "choice_row"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "choice_row"));
// line 492
$context["force_error"] = true;
// line 493
$this->displayBlock("form_row", $context, $blocks);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 496
public function block_date_row($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "date_row"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "date_row"));
// line 497
$context["force_error"] = true;
// line 498
$this->displayBlock("form_row", $context, $blocks);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 501
public function block_time_row($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "time_row"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "time_row"));
// line 502
$context["force_error"] = true;
// line 503
$this->displayBlock("form_row", $context, $blocks);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 506
public function block_datetime_row($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "datetime_row"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "datetime_row"));
// line 507
$context["force_error"] = true;
// line 508
$this->displayBlock("form_row", $context, $blocks);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 511
public function block_checkbox_row($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "checkbox_row"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "checkbox_row"));
// line 512
echo "<div class=\"form-group";
if ( !($context["valid"] ?? $this->getContext($context, "valid"))) {
echo " has-error";
}
echo "\">";
// line 513
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? $this->getContext($context, "form")), 'widget');
// line 514
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? $this->getContext($context, "form")), 'errors');
// line 515
echo "</div>";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 518
public function block_radio_row($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "radio_row"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "radio_row"));
// line 519
echo "<div class=\"form-group";
if ( !($context["valid"] ?? $this->getContext($context, "valid"))) {
echo " has-error";
}
echo "\">";
// line 520
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? $this->getContext($context, "form")), 'widget');
// line 521
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? $this->getContext($context, "form")), 'errors');
// line 522
echo "</div>";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 527
public function block_form_errors($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form_errors"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form_errors"));
// line 528
if ((twig_length_filter($this->env, ($context["errors"] ?? $this->getContext($context, "errors"))) > 0)) {
// line 529
echo "<div class=\"alert alert-danger\">";
// line 530
if ((twig_length_filter($this->env, ($context["errors"] ?? $this->getContext($context, "errors"))) > 1)) {
// line 531
echo "<ul class=\"alert-text\">";
// line 532
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["errors"] ?? $this->getContext($context, "errors")));
foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
// line 533
echo "<li> ";
echo twig_escape_filter($this->env, (((null === $this->getAttribute( // line 534
$context["error"], "messagePluralization", []))) ? ($this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans($this->getAttribute( // line 535
$context["error"], "messageTemplate", []), $this->getAttribute($context["error"], "messageParameters", []), "form_error")) : ($this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->transchoice($this->getAttribute( // line 536
$context["error"], "messageTemplate", []), $this->getAttribute($context["error"], "messagePluralization", []), $this->getAttribute($context["error"], "messageParameters", []), "form_error"))), "html", null, true);
// line 537
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 540
echo "</ul>";
} else {
// line 542
echo "<div class=\"alert-text\">";
// line 543
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["errors"] ?? $this->getContext($context, "errors")));
foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
// line 544
echo "<p> ";
echo twig_escape_filter($this->env, (((null === $this->getAttribute( // line 545
$context["error"], "messagePluralization", []))) ? ($this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans($this->getAttribute( // line 546
$context["error"], "messageTemplate", []), $this->getAttribute($context["error"], "messageParameters", []), "form_error")) : ($this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->transchoice($this->getAttribute( // line 547
$context["error"], "messageTemplate", []), $this->getAttribute($context["error"], "messagePluralization", []), $this->getAttribute($context["error"], "messageParameters", []), "form_error"))), "html", null, true);
// line 548
echo "
</p>";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 551
echo "</div>";
}
// line 553
echo "</div>";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 560
public function block_material_choice_table_widget($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "material_choice_table_widget"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "material_choice_table_widget"));
// line 561
echo " ";
ob_start();
// line 562
echo " <div class=\"choice-table\">
<table class=\"table table-bordered mb-0\">
<thead>
<tr>
<th class=\"checkbox\">
<div class=\"md-checkbox\">
<label>
<input type=\"checkbox\" class=\"js-choice-table-select-all\">
<i class=\"md-checkbox-control\"></i>
";
// line 571
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Select all", [], "Admin.Actions"), "html", null, true);
echo "
</label>
</div>
</th>
</tr>
</thead>
<tbody>
";
// line 578
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["form"] ?? $this->getContext($context, "form")));
foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
// line 579
echo " <tr>
<td>
";
// line 581
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["child"], 'widget', ["material_design" => true]);
echo "
</td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 585
echo " </tbody>
</table>
</div>
";
echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 591
public function block_material_multiple_choice_table_widget($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "material_multiple_choice_table_widget"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "material_multiple_choice_table_widget"));
// line 592
echo " ";
ob_start();
// line 593
echo " <div class=\"choice-table table-responsive\">
<table class=\"table\">
<thead>
<tr>
<th>";
// line 597
echo twig_escape_filter($this->env, ($context["label"] ?? $this->getContext($context, "label")), "html", null, true);
echo "</th>
";
// line 598
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["form"] ?? $this->getContext($context, "form")));
$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["_key"] => $context["child_choice"]) {
// line 599
echo " <th class=\"text-center\">
";
// line 600
if (($this->getAttribute($this->getAttribute($context["child_choice"], "vars", []), "multiple", []) && !twig_in_filter($this->getAttribute($this->getAttribute($context["child_choice"], "vars", []), "name", []), ($context["headers_to_disable"] ?? $this->getContext($context, "headers_to_disable"))))) {
// line 601
echo " <a href=\"#\"
class=\"js-multiple-choice-table-select-column\"
data-column-num=\"";
// line 603
echo twig_escape_filter($this->env, ($this->getAttribute($context["loop"], "index", []) + 1), "html", null, true);
echo "\"
data-column-checked=\"false\"
>
";
// line 606
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["child_choice"], "vars", []), "label", []), "html", null, true);
echo "
</a>
";
} else {
// line 609
echo " ";
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["child_choice"], "vars", []), "label", []), "html", null, true);
echo "
";
}
// line 611
echo " </th>
";
++$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['_key'], $context['child_choice'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 613
echo " </tr>
</thead>
<tbody>
";
// line 616
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["choices"] ?? $this->getContext($context, "choices")));
foreach ($context['_seq'] as $context["choice_name"] => $context["choice_value"]) {
// line 617
echo " <tr>
<td>
";
// line 619
echo twig_escape_filter($this->env, $context["choice_name"], "html", null, true);
echo "
</td>
";
// line 621
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["form"] ?? $this->getContext($context, "form")));
foreach ($context['_seq'] as $context["child_choice_name"] => $context["child_choice"]) {
// line 622
echo " <td class=\"text-center\">
";
// line 623
if ($this->getAttribute($this->getAttribute(($context["child_choice_entry_index_mapping"] ?? null), $context["choice_value"], [], "array", false, true), $context["child_choice_name"], [], "array", true, true)) {
// line 624
echo " ";
$context["entry_index"] = $this->getAttribute($this->getAttribute(($context["child_choice_entry_index_mapping"] ?? $this->getContext($context, "child_choice_entry_index_mapping")), $context["choice_value"], [], "array"), $context["child_choice_name"], [], "array");
// line 625
echo "
";
// line 626
if ($this->getAttribute($this->getAttribute($context["child_choice"], "vars", []), "multiple", [])) {
// line 627
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute($context["child_choice"], ($context["entry_index"] ?? $this->getContext($context, "entry_index")), [], "array"), 'widget', ["material_design" => true]);
echo "
";
} else {
// line 629
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute($context["child_choice"], ($context["entry_index"] ?? $this->getContext($context, "entry_index")), [], "array"), 'widget');
echo "
";
}
// line 631
echo " ";
} else {
// line 632
echo " --
";
}
// line 634
echo " </td>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['child_choice_name'], $context['child_choice'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 636
echo " </tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['choice_name'], $context['choice_value'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 638
echo " </tbody>
</table>
</div>
";
echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 644
public function block_translatable_widget($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "translatable_widget"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "translatable_widget"));
// line 645
echo "<div class=\"input-group locale-input-group js-locale-input-group d-flex\">
";
// line 646
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["form"] ?? $this->getContext($context, "form")));
foreach ($context['_seq'] as $context["_key"] => $context["translateField"]) {
// line 647
echo " ";
$context["classes"] = ((($this->getAttribute($this->getAttribute($this->getAttribute($context["translateField"], "vars", [], "any", false, true), "attr", [], "any", false, true), "class", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute($this->getAttribute($context["translateField"], "vars", [], "any", false, true), "attr", [], "any", false, true), "class", []), "")) : ("")) . " js-locale-input");
// line 648
echo " ";
$context["classes"] = ((($context["classes"] ?? $this->getContext($context, "classes")) . " js-locale-") . $this->getAttribute($this->getAttribute($context["translateField"], "vars", []), "label", []));
// line 649
echo " ";
if (($this->getAttribute(($context["default_locale"] ?? $this->getContext($context, "default_locale")), "id_lang", []) != $this->getAttribute($this->getAttribute($context["translateField"], "vars", []), "name", []))) {
// line 650
echo " ";
$context["classes"] = (($context["classes"] ?? $this->getContext($context, "classes")) . " d-none");
// line 651
echo " ";
}
// line 652
echo " <div class=\"";
echo twig_escape_filter($this->env, ($context["classes"] ?? $this->getContext($context, "classes")), "html", null, true);
echo "\" style=\"flex-grow: 1;\">
";
// line 653
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["translateField"], 'widget');
echo "
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['translateField'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 656
echo " ";
if ( !($context["hide_locales"] ?? $this->getContext($context, "hide_locales"))) {
// line 657
echo " <div class=\"dropdown\">
<button class=\"btn btn-outline-secondary dropdown-toggle js-locale-btn\"
type=\"button\"
data-toggle=\"dropdown\"
aria-haspopup=\"true\"
aria-expanded=\"false\"
id=\"";
// line 663
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "vars", []), "id", []), "html", null, true);
echo "\"
>
";
// line 665
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "vars", []), "default_locale", []), "iso_code", []), "html", null, true);
echo "
</button>
<div class=\"dropdown-menu\" aria-labelledby=\"";
// line 667
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "vars", []), "id", []), "html", null, true);
echo "\">
";
// line 668
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["locales"] ?? $this->getContext($context, "locales")));
foreach ($context['_seq'] as $context["_key"] => $context["locale"]) {
// line 669
echo " <span class=\"dropdown-item js-locale-item\" data-locale=\"";
echo twig_escape_filter($this->env, $this->getAttribute($context["locale"], "iso_code", []), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->getAttribute($context["locale"], "name", []), "html", null, true);
echo "</span>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['locale'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 671
echo " </div>
</div>
";
}
// line 674
echo " </div>";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 677
public function block_birthday_widget($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "birthday_widget"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "birthday_widget"));
// line 678
echo " ";
if ((($context["widget"] ?? $this->getContext($context, "widget")) == "single_text")) {
// line 679
$this->displayBlock("form_widget_simple", $context, $blocks);
} else {
// line 681
$context["attr"] = twig_array_merge(($context["attr"] ?? $this->getContext($context, "attr")), ["class" => twig_trim_filter(((($this->getAttribute(($context["attr"] ?? null), "class", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["attr"] ?? null), "class", []), "")) : ("")) . " form-inline"))]);
// line 682
if (( !(isset($context["datetime"]) || array_key_exists("datetime", $context)) || !($context["datetime"] ?? $this->getContext($context, "datetime")))) {
// line 683
echo "<div ";
$this->displayBlock("widget_container_attributes", $context, $blocks);
echo ">";
}
// line 685
echo "
";
// line 686
$context["yearWidget"] = (("<div class=\"col pl-0\">" . $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "year", []), 'widget')) . "</div>");
// line 687
echo " ";
$context["monthWidget"] = (("<div class=\"col\">" . $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "month", []), 'widget')) . "</div>");
// line 688
echo " ";
$context["dayWidget"] = (("<div class=\"col pr-0\">" . $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "day", []), 'widget')) . "</div>");
// line 690
echo twig_replace_filter(($context["date_pattern"] ?? $this->getContext($context, "date_pattern")), ["{{ year }}" => // line 691
($context["yearWidget"] ?? $this->getContext($context, "yearWidget")), "{{ month }}" => // line 692
($context["monthWidget"] ?? $this->getContext($context, "monthWidget")), "{{ day }}" => // line 693
($context["dayWidget"] ?? $this->getContext($context, "dayWidget"))]);
// line 696
if (( !(isset($context["datetime"]) || array_key_exists("datetime", $context)) || !($context["datetime"] ?? $this->getContext($context, "datetime")))) {
// line 697
echo "</div>";
}
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 702
public function block_file_widget($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "file_widget"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "file_widget"));
// line 703
echo " <div class=\"custom-file\">
";
// line 704
$context["attr"] = twig_array_merge(($context["attr"] ?? $this->getContext($context, "attr")), ["class" => twig_trim_filter(((($this->getAttribute( // line 705
($context["attr"] ?? null), "class", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["attr"] ?? null), "class", []), "")) : ("")) . " custom-file-input")), "data-multiple-files-text" => $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("%count% file(s)", [], "Admin.Global"), "data-locale" => $this->env->getExtension('PrestaShopBundle\Twig\ContextIsoCodeProviderExtension')->getIsoCode()]);
// line 710
if (($this->getAttribute(($context["attr"] ?? null), "disabled", [], "any", true, true) && $this->getAttribute(($context["attr"] ?? $this->getContext($context, "attr")), "disabled", []))) {
// line 711
echo " ";
$context["attr"] = twig_array_merge(($context["attr"] ?? $this->getContext($context, "attr")), ["class" => ($this->getAttribute( // line 712
($context["attr"] ?? $this->getContext($context, "attr")), "class", []) . " disabled")]);
// line 714
echo " ";
}
// line 715
echo "
";
// line 716
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? $this->getContext($context, "form")), 'widget', ["attr" => ($context["attr"] ?? $this->getContext($context, "attr"))]);
echo "
<label class=\"custom-file-label\" for=\"";
// line 718
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "vars", []), "id", []), "html", null, true);
echo "\">
";
// line 719
$context["attributes"] = $this->getAttribute($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "vars", []), "attr", []);
// line 720
echo " ";
echo twig_escape_filter($this->env, (($this->getAttribute(($context["attributes"] ?? null), "placeholder", [], "any", true, true)) ? ($this->getAttribute(($context["attributes"] ?? $this->getContext($context, "attributes")), "placeholder", [])) : ($this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Choose file(s)", [], "Admin.Actions"))), "html", null, true);
echo "
</label>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 725
public function block_shop_restriction_checkbox_widget($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "shop_restriction_checkbox_widget"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "shop_restriction_checkbox_widget"));
// line 726
echo " ";
if ($this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "vars", []), "attr", []), "is_allowed_to_display", [])) {
// line 727
echo " <div class=\"md-checkbox md-checkbox-inline\">
<label>
";
// line 729
$context["type"] = (((isset($context["type"]) || array_key_exists("type", $context))) ? (_twig_default_filter(($context["type"] ?? $this->getContext($context, "type")), "checkbox")) : ("checkbox"));
// line 730
echo " <input
class=\"js-multi-store-restriction-checkbox\"
type=\"";
// line 732
echo twig_escape_filter($this->env, ($context["type"] ?? $this->getContext($context, "type")), "html", null, true);
echo "\"
";
// line 733
$this->displayBlock("widget_attributes", $context, $blocks);
echo "
value=\"";
// line 734
echo twig_escape_filter($this->env, ($context["value"] ?? $this->getContext($context, "value")), "html", null, true);
echo "\"
>
<i class=\"md-checkbox-control\"></i>
</label>
</div>
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 742
public function block_generatable_text_widget($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "generatable_text_widget"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "generatable_text_widget"));
// line 743
echo " <div class=\"input-group\">";
// line 744
$this->displayBlock("form_widget", $context, $blocks);
// line 745
echo "<span class=\"input-group-btn ml-1\">
<button class=\"btn btn-outline-secondary js-generator-btn\"
type=\"button\"
data-target-input-id=\"";
// line 748
echo twig_escape_filter($this->env, ($context["id"] ?? $this->getContext($context, "id")), "html", null, true);
echo "\"
data-generated-value-length=\"";
// line 749
echo twig_escape_filter($this->env, ($context["generated_value_length"] ?? $this->getContext($context, "generated_value_length")), "html", null, true);
echo "\"
>
";
// line 751
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Generate", [], "Admin.Actions"), "html", null, true);
echo "
</button>
</span>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 757
public function block_text_with_recommended_length_widget($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "text_with_recommended_length_widget"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "text_with_recommended_length_widget"));
// line 758
echo " ";
$context["attr"] = twig_array_merge(($context["attr"] ?? $this->getContext($context, "attr")), ["data-recommended-length-counter" => (("#" . // line 759
($context["id"] ?? $this->getContext($context, "id"))) . "_recommended_length_counter"), "class" => "js-recommended-length-input"]);
// line 763
if ((($context["input_type"] ?? $this->getContext($context, "input_type")) == "textarea")) {
// line 764
$this->displayBlock("textarea_widget", $context, $blocks);
} else {
// line 766
$this->displayBlock("form_widget_simple", $context, $blocks);
}
// line 768
echo "
<small class=\"form-text text-muted text-right\"
id=\"";
// line 770
echo twig_escape_filter($this->env, ($context["id"] ?? $this->getContext($context, "id")), "html", null, true);
echo "_recommended_length_counter\"
>
<em>
";
// line 773
echo twig_replace_filter($this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("[1][/1] of [2][/2] characters used (recommended)", [], "Admin.Catalog.Feature"), ["[1]" => ("<span class=\"js-current-length\">" . twig_length_filter($this->env, // line 774
($context["value"] ?? $this->getContext($context, "value")))), "[/1]" => "</span>", "[2]" => ("<span>" . // line 776
($context["recommended_length"] ?? $this->getContext($context, "recommended_length"))), "[/2]" => "</span>"]);
// line 778
echo "
</em>
</small>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@PrestaShop/Admin/TwigTemplateForm/bootstrap_4_layout.html.twig";
}
public function getDebugInfo()
{
return array ( 2666 => 778, 2664 => 776, 2663 => 774, 2662 => 773, 2656 => 770, 2652 => 768, 2649 => 766, 2646 => 764, 2644 => 763, 2642 => 759, 2640 => 758, 2631 => 757, 2616 => 751, 2611 => 749, 2607 => 748, 2602 => 745, 2600 => 744, 2598 => 743, 2589 => 742, 2572 => 734, 2568 => 733, 2564 => 732, 2560 => 730, 2558 => 729, 2554 => 727, 2551 => 726, 2542 => 725, 2527 => 720, 2525 => 719, 2521 => 718, 2516 => 716, 2513 => 715, 2510 => 714, 2508 => 712, 2506 => 711, 2504 => 710, 2502 => 705, 2501 => 704, 2498 => 703, 2489 => 702, 2477 => 697, 2475 => 696, 2473 => 693, 2472 => 692, 2471 => 691, 2470 => 690, 2467 => 688, 2464 => 687, 2462 => 686, 2459 => 685, 2454 => 683, 2452 => 682, 2450 => 681, 2447 => 679, 2444 => 678, 2435 => 677, 2425 => 674, 2420 => 671, 2409 => 669, 2405 => 668, 2401 => 667, 2396 => 665, 2391 => 663, 2383 => 657, 2380 => 656, 2371 => 653, 2366 => 652, 2363 => 651, 2360 => 650, 2357 => 649, 2354 => 648, 2351 => 647, 2347 => 646, 2344 => 645, 2335 => 644, 2321 => 638, 2314 => 636, 2307 => 634, 2303 => 632, 2300 => 631, 2294 => 629, 2288 => 627, 2286 => 626, 2283 => 625, 2280 => 624, 2278 => 623, 2275 => 622, 2271 => 621, 2266 => 619, 2262 => 617, 2258 => 616, 2253 => 613, 2238 => 611, 2232 => 609, 2226 => 606, 2220 => 603, 2216 => 601, 2214 => 600, 2211 => 599, 2194 => 598, 2190 => 597, 2184 => 593, 2181 => 592, 2172 => 591, 2158 => 585, 2148 => 581, 2144 => 579, 2140 => 578, 2130 => 571, 2119 => 562, 2116 => 561, 2107 => 560, 2096 => 553, 2093 => 551, 2086 => 548, 2084 => 547, 2083 => 546, 2082 => 545, 2080 => 544, 2076 => 543, 2074 => 542, 2071 => 540, 2064 => 537, 2062 => 536, 2061 => 535, 2060 => 534, 2058 => 533, 2054 => 532, 2052 => 531, 2050 => 530, 2048 => 529, 2046 => 528, 2037 => 527, 2027 => 522, 2025 => 521, 2023 => 520, 2017 => 519, 2008 => 518, 1998 => 515, 1996 => 514, 1994 => 513, 1988 => 512, 1979 => 511, 1969 => 508, 1967 => 507, 1958 => 506, 1948 => 503, 1946 => 502, 1937 => 501, 1927 => 498, 1925 => 497, 1916 => 496, 1906 => 493, 1904 => 492, 1895 => 491, 1885 => 488, 1883 => 487, 1881 => 486, 1872 => 485, 1862 => 482, 1860 => 481, 1858 => 480, 1856 => 479, 1850 => 478, 1841 => 477, 1830 => 472, 1826 => 470, 1824 => 469, 1822 => 468, 1807 => 467, 1802 => 464, 1800 => 463, 1798 => 462, 1796 => 461, 1782 => 460, 1779 => 459, 1777 => 458, 1774 => 457, 1771 => 456, 1768 => 455, 1765 => 454, 1762 => 453, 1759 => 452, 1756 => 451, 1753 => 450, 1750 => 449, 1747 => 448, 1744 => 447, 1742 => 446, 1733 => 445, 1723 => 442, 1714 => 441, 1704 => 438, 1695 => 437, 1685 => 434, 1683 => 433, 1674 => 431, 1664 => 428, 1662 => 427, 1653 => 426, 1638 => 417, 1621 => 414, 1617 => 413, 1613 => 412, 1610 => 411, 1593 => 410, 1587 => 406, 1583 => 405, 1579 => 404, 1571 => 399, 1565 => 396, 1560 => 395, 1551 => 394, 1538 => 389, 1520 => 387, 1502 => 386, 1499 => 385, 1482 => 384, 1479 => 383, 1476 => 382, 1467 => 381, 1456 => 378, 1450 => 375, 1444 => 372, 1440 => 371, 1435 => 369, 1431 => 367, 1429 => 366, 1423 => 363, 1417 => 360, 1413 => 359, 1409 => 357, 1406 => 356, 1397 => 355, 1384 => 351, 1379 => 350, 1376 => 349, 1367 => 348, 1342 => 338, 1339 => 337, 1336 => 336, 1333 => 335, 1324 => 334, 1314 => 331, 1309 => 328, 1300 => 325, 1295 => 323, 1292 => 322, 1288 => 321, 1284 => 320, 1278 => 317, 1273 => 315, 1265 => 309, 1263 => 308, 1260 => 307, 1251 => 304, 1247 => 303, 1244 => 302, 1241 => 301, 1238 => 300, 1236 => 299, 1233 => 298, 1230 => 297, 1227 => 296, 1223 => 295, 1218 => 293, 1209 => 292, 1199 => 289, 1194 => 286, 1183 => 284, 1179 => 283, 1175 => 282, 1169 => 279, 1164 => 277, 1156 => 271, 1154 => 270, 1151 => 269, 1143 => 267, 1140 => 266, 1138 => 265, 1135 => 264, 1132 => 263, 1129 => 262, 1127 => 261, 1124 => 260, 1121 => 259, 1118 => 258, 1114 => 257, 1109 => 255, 1100 => 254, 1090 => 251, 1087 => 249, 1085 => 248, 1076 => 247, 1064 => 243, 1055 => 240, 1051 => 239, 1030 => 238, 1026 => 237, 1022 => 235, 1018 => 233, 1008 => 229, 998 => 228, 995 => 227, 991 => 226, 988 => 225, 986 => 224, 982 => 223, 977 => 222, 968 => 221, 958 => 218, 954 => 216, 937 => 214, 934 => 213, 917 => 212, 914 => 211, 911 => 210, 907 => 207, 901 => 205, 899 => 204, 895 => 203, 887 => 202, 883 => 200, 879 => 197, 873 => 195, 870 => 194, 865 => 192, 860 => 190, 858 => 189, 850 => 188, 846 => 186, 843 => 185, 841 => 184, 838 => 183, 829 => 182, 818 => 178, 801 => 176, 784 => 175, 781 => 174, 775 => 172, 766 => 171, 755 => 167, 753 => 166, 751 => 165, 748 => 163, 746 => 162, 744 => 161, 735 => 160, 724 => 156, 722 => 155, 720 => 154, 717 => 152, 715 => 151, 713 => 150, 704 => 149, 693 => 145, 687 => 142, 686 => 141, 685 => 140, 681 => 139, 677 => 138, 674 => 136, 668 => 133, 667 => 132, 666 => 131, 662 => 130, 660 => 129, 658 => 128, 649 => 127, 639 => 124, 637 => 123, 628 => 122, 616 => 117, 613 => 116, 605 => 115, 600 => 113, 598 => 112, 596 => 111, 593 => 109, 591 => 108, 582 => 107, 570 => 102, 568 => 101, 566 => 99, 565 => 98, 564 => 97, 563 => 96, 558 => 94, 556 => 93, 554 => 92, 551 => 90, 549 => 89, 540 => 88, 529 => 84, 527 => 83, 525 => 82, 523 => 81, 521 => 80, 517 => 79, 515 => 78, 512 => 76, 510 => 75, 501 => 74, 488 => 68, 486 => 67, 484 => 66, 475 => 65, 465 => 62, 459 => 59, 456 => 58, 454 => 57, 452 => 56, 446 => 53, 443 => 52, 440 => 51, 438 => 50, 435 => 49, 426 => 48, 416 => 45, 414 => 44, 405 => 43, 395 => 40, 393 => 39, 384 => 38, 374 => 35, 371 => 33, 369 => 32, 360 => 31, 350 => 757, 347 => 756, 345 => 742, 342 => 741, 340 => 725, 337 => 724, 335 => 702, 332 => 701, 330 => 677, 327 => 676, 325 => 644, 322 => 643, 320 => 591, 317 => 590, 315 => 560, 312 => 559, 308 => 556, 306 => 527, 303 => 526, 300 => 524, 298 => 518, 295 => 517, 293 => 511, 290 => 510, 288 => 506, 285 => 505, 283 => 501, 280 => 500, 278 => 496, 275 => 495, 273 => 491, 270 => 490, 268 => 485, 265 => 484, 263 => 477, 260 => 476, 257 => 474, 255 => 445, 252 => 444, 250 => 441, 247 => 440, 245 => 437, 242 => 436, 240 => 431, 237 => 430, 235 => 426, 232 => 425, 229 => 423, 227 => 394, 224 => 393, 222 => 381, 219 => 380, 217 => 355, 214 => 354, 212 => 348, 209 => 347, 207 => 334, 204 => 333, 202 => 292, 199 => 291, 197 => 254, 194 => 253, 192 => 247, 189 => 246, 187 => 221, 184 => 220, 182 => 182, 179 => 181, 177 => 171, 174 => 170, 172 => 160, 169 => 159, 167 => 149, 164 => 148, 162 => 127, 159 => 126, 157 => 122, 154 => 121, 152 => 107, 149 => 106, 147 => 88, 144 => 87, 142 => 74, 139 => 73, 137 => 65, 134 => 64, 132 => 48, 129 => 47, 127 => 43, 124 => 42, 122 => 38, 119 => 37, 117 => 31, 114 => 30, 111 => 28, 39 => 27, 32 => 26, 25 => 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("{#**
* 2007-2019 PrestaShop and Contributors
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2019 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*#}
{% use '@PrestaShop/Admin/TwigTemplateForm/form_div_layout.html.twig' %}
{% use '@PrestaShop/Admin/TwigTemplateForm/typeahead.html.twig' %}
{% use '@PrestaShop/Admin/TwigTemplateForm/material.html.twig' %}
{# Widgets #}
{% block form_widget_simple -%}
{% if type is not defined or 'file' != type %}
{%- set attr = attr|merge({class: (attr.class|default('') ~ ' form-control')|trim}) -%}
{% endif %}
{{- parent() -}}
{%- endblock form_widget_simple %}
{% block textarea_widget -%}
{% set attr = attr|merge({class: (attr.class|default('') ~ ' form-control')|trim}) %}
{{- parent() -}}
{%- endblock textarea_widget %}
{% block button_widget -%}
{% set attr = attr|merge({class: (attr.class|default('btn-default') ~ ' btn')|trim}) %}
{{- parent() -}}
{%- endblock %}
{% block money_widget -%}
<div class=\"input-group money-type\">
{% set prepend = '{{' == money_pattern[0:2] %}
{% if not prepend %}
<div class=\"input-group-prepend\">
<span class=\"input-group-text\">{{ money_pattern|replace({ '{{ widget }}':''}) }}</span>
</div>
{% endif %}
{{- block('form_widget_simple') -}}
{% if prepend %}
<div class=\"input-group-append\">
<span class=\"input-group-text\">{{ money_pattern|replace({ '{{ widget }}':''}) }}</span>
</div>
{% endif %}
</div>
{%- endblock money_widget %}
{% block percent_widget -%}
<div class=\"input-group\">
{{- block('form_widget_simple') -}}
<div class=\"input-group-append\">
<span class=\"input-group-text\">%</span>
</div>
</div>
{%- endblock percent_widget %}
{% block datetime_widget -%}
{% if widget == 'single_text' %}
{{- block('form_widget_simple') -}}
{% else -%}
{% set attr = attr|merge({class: (attr.class|default('') ~ ' form-inline')|trim}) -%}
<div {{ block('widget_container_attributes') }}>
{{- form_errors(form.date) -}}
{{- form_errors(form.time) -}}
{{- form_widget(form.date, { datetime: true } ) -}}
{{- form_widget(form.time, { datetime: true } ) -}}
</div>
{%- endif %}
{%- endblock datetime_widget %}
{% block date_widget -%}
{% if widget == 'single_text' %}
{{- block('form_widget_simple') -}}
{% else -%}
{% set attr = attr|merge({class: (attr.class|default('') ~ ' form-inline')|trim}) -%}
{% if datetime is not defined or not datetime -%}
<div {{ block('widget_container_attributes') -}}>
{%- endif %}
{{- date_pattern|replace({
'{{ year }}': form_widget(form.year),
'{{ month }}': form_widget(form.month),
'{{ day }}': form_widget(form.day),
})|raw -}}
{% if datetime is not defined or not datetime -%}
</div>
{%- endif -%}
{% endif %}
{%- endblock date_widget %}
{% block time_widget -%}
{% if widget == 'single_text' %}
{{- block('form_widget_simple') -}}
{% else -%}
{% set attr = attr|merge({class: (attr.class|default('') ~ ' form-inline')|trim}) -%}
{% if datetime is not defined or false == datetime -%}
<div {{ block('widget_container_attributes') -}}>
{%- endif -%}
{{- form_widget(form.hour) }}:{{ form_widget(form.minute) }}{% if with_seconds %}:{{ form_widget(form.second) }}{% endif %}
{% if datetime is not defined or false == datetime -%}
</div>
{%- endif -%}
{% endif %}
{%- endblock time_widget %}
{% block choice_widget_collapsed -%}
{% set attr = attr|merge({class: (attr.class|default('') ~ ' custom-select')|trim}) %}
{{- parent() -}}
{%- endblock %}
{% block choice_widget_expanded -%}
{% if '-inline' in label_attr.class|default('') -%}
<div class=\"control-group\">
{%- for child in form %}
{{- form_widget(child, {
parent_label_class: label_attr.class|default(''),
translation_domain: choice_translation_domain,
}) -}}
{% endfor -%}
</div>
{%- else -%}
<div {{ block('widget_container_attributes') }}>
{%- for child in form %}
{{- form_widget(child, {
parent_label_class: label_attr.class|default(''),
translation_domain: choice_translation_domain,
}) -}}
{% endfor -%}
</div>
{%- endif %}
{%- endblock choice_widget_expanded %}
{% block checkbox_widget -%}
{% set parent_label_class = parent_label_class|default('') -%}
{% if 'checkbox-inline' in parent_label_class %}
{{- form_label(form, null, { widget: parent() }) -}}
{% else -%}
<div class=\"checkbox\">
{{- form_label(form, null, { widget: parent() }) -}}
</div>
{%- endif %}
{%- endblock checkbox_widget %}
{% block radio_widget -%}
{%- set parent_label_class = parent_label_class|default('') -%}
{% if 'radio-inline' in parent_label_class %}
{{- form_label(form, null, { widget: parent() }) -}}
{% else -%}
<div class=\"radio\">
{{- form_label(form, null, { widget: parent() }) -}}
</div>
{%- endif %}
{%- endblock radio_widget %}
{% block choice_tree_widget -%}
<div {{ block('widget_container_attributes') }} class=\"category-tree-overflow\">
<ul class=\"category-tree\">
<li class=\"form-control-label text-right main-category\">{{ \"Main category\"|trans({}, 'Admin.Catalog.Feature') }}</li>
{%- for child in choices %}
{{ block('choice_tree_item_widget') }}
{% endfor -%}
</ul>
</div>
{%- endblock choice_tree_widget %}
{% block choice_tree_item_widget -%}
<li>
{% set checked = (form.vars.submitted_values is defined and submitted_values[child.id_category] is defined) ? 'checked=\"checked\"' : '' %}
{% if multiple -%}
<div class=\"checkbox\">
<label>
<input type=\"checkbox\" name=\"{{ form.vars.full_name }}[tree][]\" value=\"{{ child.id_category }}\" class=\"category\" {{ checked }}>
{% if child.active is defined and child.active == 0 %}
<i>{{ child.name }}</i>
{%- else -%}
{{ child.name }}
{% endif %}
{% if defaultCategory is defined %}
<input type=\"radio\" value=\"{{ child.id_category }}\" name=\"ignore\" class=\"default-category\" />
{% endif %}
</label>
</div>
{%- else -%}
<div class=\"radio\">
<label>
<input type=\"radio\" name=\"form[{{ form.vars.id }}][tree]\" value=\"{{ child.id_category }}\" {{ checked }} class=\"category\">
{{ child.name }}
{% if defaultCategory is defined %}
<input type=\"radio\" value=\"{{ child.id_category }}\" name=\"ignore\" class=\"default-category\" />
{% endif %}
</label>
</div>
{%- endif %}
{% if child.children is defined %}
<ul>
{% for item in child.children %}
{% set child = item %}
{{ block('choice_tree_item_widget') }}
{% endfor -%}
</ul>
{% endif %}
</li>
{%- endblock choice_tree_item_widget %}
{% block translatefields_widget %}
{{ form_errors(form) }}
<div class=\"translations tabbable\" id=\"{{ form.vars.id }}\">
{% if hideTabs == false and form|length > 1 %}
<ul class=\"translationsLocales nav nav-pills\">
{% for translationsFields in form %}
<li class=\"nav-item\">
<a href=\"#\" data-locale=\"{{ translationsFields.vars.label }}\" class=\"{% if defaultLocale.id_lang == translationsFields.vars.name %}active{% endif %} nav-link\" data-toggle=\"tab\" data-target=\".translationsFields-{{ translationsFields.vars.id }}\">
{{ translationsFields.vars.label|capitalize }}
</a>
</li>
{% endfor %}
</ul>
{% endif %}
<div class=\"translationsFields tab-content\">
{% for translationsFields in form %}
<div data-locale=\"{{ translationsFields.vars.label }}\" class=\"translationsFields-{{ translationsFields.vars.id }} tab-pane translation-field {% if hideTabs == false and form|length > 1 %}panel panel-default{% endif %} {% if defaultLocale.id_lang == translationsFields.vars.name %}show active{% endif %} {% if not form.vars.valid %}field-error{% endif %} translation-label-{{ translationsFields.vars.label }}\">
{{ form_errors(translationsFields) }}
{{ form_widget(translationsFields) }}
</div>
{% endfor %}
</div>
</div>
{% endblock %}
{% block translate_fields_widget -%}
{% if type is not defined or 'file' != type %}
{%- set attr = attr|merge({class: (attr.class|default('') ~ ' form-control')|trim}) -%}
{% endif %}
{{- parent() -}}
{%- endblock translate_fields_widget %}
{% block translate_text_widget -%}
{{ form_errors(form) }}
<div class=\"input-group locale-input-group js-locale-input-group\">
{% for translateField in form %}
{% set classes = translateField.vars.attr.class|default('') ~ ' js-locale-input'%}
{% set classes = classes ~ ' js-locale-' ~ translateField.vars.label %}
{% if default_locale.id_lang != translateField.vars.name %}
{% set classes = classes ~ ' d-none' %}
{% endif %}
{% set attr = translateField.vars.attr %}
{{ form_widget(translateField, {attr: {'class': classes|trim}}) }}
{% endfor %}
{% if not hide_locales %}
<div class=\"dropdown\">
<button class=\"btn btn-outline-secondary dropdown-toggle js-locale-btn\"
type=\"button\"
data-toggle=\"dropdown\"
aria-haspopup=\"true\"
aria-expanded=\"false\"
id=\"{{ form.vars.id }}\"
>
{{ form.vars.default_locale.iso_code }}
</button>
<div class=\"dropdown-menu\" aria-labelledby=\"{{ form.vars.id }}\">
{% for locale in locales %}
<span class=\"dropdown-item js-locale-item\" data-locale=\"{{ locale.iso_code }}\">{{ locale.name }}</span>
{% endfor %}
</div>
</div>
{% endif %}
</div>
{%- endblock translate_text_widget %}
{% block translate_textarea_widget -%}
{{ form_errors(form) }}
<div class=\"input-group locale-input-group js-locale-input-group\">
{% for textarea in form %}
{% set classes = textarea.vars.attr.class|default('') ~ ' js-locale-input'%}
{% set classes = classes ~ ' js-locale-' ~ textarea.vars.label %}
{% if default_locale.id_lang != textarea.vars.name %}
{% set classes = classes ~ ' d-none' %}
{% endif %}
<div class=\"{{ classes }}\">
{{ form_widget(textarea, {attr: {'class': classes|trim}}) }}
</div>
{% endfor %}
{% if show_locale_select %}
<div class=\"dropdown\">
<button class=\"btn btn-outline-secondary dropdown-toggle js-locale-btn\"
type=\"button\"
data-toggle=\"dropdown\"
aria-haspopup=\"true\"
aria-expanded=\"false\"
id=\"{{ form.vars.id }}\"
>
{{ form.vars.default_locale.iso_code }}
</button>
<div class=\"dropdown-menu\" aria-labelledby=\"{{ form.vars.id }}\">
{% for locale in locales %}
<span class=\"dropdown-item js-locale-item\"
data-locale=\"{{ locale.iso_code }}\"
>
{{ locale.name }}
</span>
{% endfor %}
</div>
</div>
{% endif %}
</div>
{%- endblock translate_textarea_widget %}
{% block date_picker_widget %}
{% spaceless %}
{% set attr = attr|merge({'class': ((attr.class|default('') ~ ' datepicker')|trim)}) %}
<div class=\"input-group datepicker\">
<input type=\"text\" class=\"form-control\" {{ block('widget_attributes') }} {% if value is not empty %}value=\"{{ value }}\" {% endif %}/>
<div class=\"input-group-append\">
<div class=\"input-group-text\">
<i class=\"material-icons\">date_range</i>
</div>
</div>
</div>
{% endspaceless %}
{% endblock date_picker_widget %}
{% block date_range_widget %}
{% spaceless %}
{{ form_widget(form.from) }}
{{ form_widget(form.to) }}
{% endspaceless %}
{% endblock date_range_widget %}
{% block search_and_reset_widget %}
{% spaceless %}
<button type=\"submit\"
class=\"btn btn-primary grid-search-button d-block float-right\"
title=\"{{ 'Search'|trans({}, 'Admin.Actions') }}\"
name=\"{{ full_name }}[search]\"
>
<i class=\"material-icons\">search</i>
{{ 'Search'|trans({}, 'Admin.Actions') }}
</button>
{% if show_reset_button %}
<div class=\"clearfix\"></div>
<button type=\"reset\"
name=\"{{ full_name }}[reset]\"
class=\"btn btn-link js-reset-search btn d-block grid-reset-button float-right\"
data-url=\"{{ reset_url }}\"
data-redirect=\"{{ redirect_url }}\"
>
<i class=\"material-icons\">clear</i>
{{ 'Reset'|trans({}, 'Admin.Actions') }}
</button>
{% endif %}
{% endspaceless %}
{% endblock search_and_reset_widget %}
{% block switch_widget %}
{% spaceless %}
<span class=\"ps-switch\">
{% for choice in choices %}
{% set inputId = id ~'_' ~ choice.value %}
<input id=\"{{inputId}}\" {{ block('attributes') }} name=\"{{ full_name }}\" value=\"{{ choice.value }}\" {%- if choice is selectedchoice(value) -%}checked=\"\" {%- endif -%} {%- if disabled -%}disabled=\"\" {%- endif -%} type=\"radio\">
<label for=\"{{inputId}}\">{{ choice.label|trans({}, choice_translation_domain) }}</label>
{% endfor %}
<span class=\"slide-button\"></span>
</span>
{% endspaceless %}
{% endblock switch_widget %}
{% block _form_step6_attachments_widget %}
<div class=\"js-options-no-attachments {{ form|length > 0 ? 'hide' : '' }}\">
<small>{{ 'There is no attachment yet.'|trans({}, 'Admin.Catalog.Notification') }}</small>
</div>
<div id=\"product-attachments\" class=\"panel panel-default\">
<div class=\"panel-body js-options-with-attachments {{ form|length == 0 ? 'hide' : '' }}\">
<div>
<table id=\"product-attachment-file\" class=\"table\">
<thead class=\"thead-default\">
<tr>
<th class=\"col-md-3\"><input type=\"checkbox\" id=\"product-attachment-files-check\" /> {{ 'Title'|trans({}, 'Admin.Global') }}</th>
<th class=\"col-md-6\">{{ 'File name'|trans({}, 'Admin.Global') }}</th>
<th class=\"col-md-2\">{{ 'Type'|trans({}, 'Admin.Catalog.Feature') }}</th>
</tr>
</thead>
<tbody>
{%- for child in form %}
<tr>
<td class=\"col-md-3\">{{ form_widget(child) }}</td>
<td class=\"col-md-6 file-name\"><span>{{ form.vars.attr.data[loop.index0]['file_name'] }}</span></td>
<td class=\"col-md-2\">{{ form.vars.attr.data[loop.index0]['mime'] }}</td>
</tr>
{% endfor -%}
</tbody>
</table>
</div>
</div>
</div>
{% endblock %}
{# Labels #}
{% block form_label -%}
{%- set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' control-label')|trim}) -%}
{{- parent() -}}
{%- endblock form_label %}
{% block choice_label -%}
{# remove the checkbox-inline and radio-inline class, it's only useful for embed labels #}
{%- set label_attr = label_attr|merge({class: label_attr.class|default('')|replace({'checkbox-inline': '', 'radio-inline': ''})|trim}) -%}
{{- block('form_label') -}}
{% endblock %}
{% block checkbox_label -%}
{{- block('checkbox_radio_label') -}}
{%- endblock checkbox_label %}
{% block radio_label -%}
{{- block('checkbox_radio_label') -}}
{%- endblock radio_label %}
{% block checkbox_radio_label %}
{# Do not display the label if widget is not defined in order to prevent double label rendering #}
{% if widget is defined %}
{% if required %}
{% set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' required')|trim}) %}
{% endif %}
{% if parent_label_class is defined %}
{% set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' ' ~ parent_label_class)|trim}) %}
{% endif %}
{% if label is not same as(false) and label is empty %}
{% set label = name|humanize %}
{% endif %}
{% if material_design is defined %}
<div class=\"md-checkbox md-checkbox-inline\">
<label{% for attrname, attrvalue in label_attr %} {{ attrname }}=\"{{ attrvalue }}\"{% endfor %}>
{{- widget|raw -}}
<i class=\"md-checkbox-control\"></i>
{{- label is not same as(false) ? (translation_domain is same as(false) ? label|raw : label|raw) -}}
</label>
</div>
{% else %}
<label{% for attrname, attrvalue in label_attr %} {{ attrname }}=\"{{ attrvalue }}\"{% endfor %}>
{{- widget|raw -}}
{{- label is not same as(false) ? (translation_domain is same as(false) ? label|raw : label|raw) -}}
</label>
{% endif %}
{% endif %}
{% endblock checkbox_radio_label %}
{# Rows #}
{% block form_row -%}
<div class=\"form-group{% if (not compound or force_error|default(false)) and not valid %} has-error{% endif %}\">
{{- form_label(form) -}}
{{- form_widget(form) -}}
{{- form_errors(form) -}}
</div>
{%- endblock form_row %}
{% block button_row -%}
<div class=\"form-group\">
{{- form_widget(form) -}}
</div>
{%- endblock button_row %}
{% block choice_row -%}
{% set force_error = true %}
{{- block('form_row') }}
{%- endblock choice_row %}
{% block date_row -%}
{% set force_error = true %}
{{- block('form_row') }}
{%- endblock date_row %}
{% block time_row -%}
{% set force_error = true %}
{{- block('form_row') }}
{%- endblock time_row %}
{% block datetime_row -%}
{% set force_error = true %}
{{- block('form_row') }}
{%- endblock datetime_row %}
{% block checkbox_row -%}
<div class=\"form-group{% if not valid %} has-error{% endif %}\">
{{- form_widget(form) -}}
{{- form_errors(form) -}}
</div>
{%- endblock checkbox_row %}
{% block radio_row -%}
<div class=\"form-group{% if not valid %} has-error{% endif %}\">
{{- form_widget(form) -}}
{{- form_errors(form) -}}
</div>
{%- endblock radio_row %}
{# Errors #}
{% block form_errors -%}
{% if errors|length > 0 -%}
<div class=\"alert alert-danger\">
{%- if errors|length > 1 -%}
<ul class=\"alert-text\">
{%- for error in errors -%}
<li> {{
error.messagePluralization is null
? error.messageTemplate|trans(error.messageParameters, 'form_error')
: error.messageTemplate|transchoice(error.messagePluralization, error.messageParameters, 'form_error')
}}
</li>
{%- endfor -%}
</ul>
{%- else -%}
<div class=\"alert-text\">
{%- for error in errors -%}
<p> {{
error.messagePluralization is null
? error.messageTemplate|trans(error.messageParameters, 'form_error')
: error.messageTemplate|transchoice(error.messagePluralization, error.messageParameters, 'form_error')
}}
</p>
{%- endfor -%}
</div>
{%- endif -%}
</div>
{%- endif %}
{%- endblock form_errors %}
{# Material design widgets #}
{% block material_choice_table_widget %}
{% spaceless %}
<div class=\"choice-table\">
<table class=\"table table-bordered mb-0\">
<thead>
<tr>
<th class=\"checkbox\">
<div class=\"md-checkbox\">
<label>
<input type=\"checkbox\" class=\"js-choice-table-select-all\">
<i class=\"md-checkbox-control\"></i>
{{ 'Select all'|trans({}, 'Admin.Actions') }}
</label>
</div>
</th>
</tr>
</thead>
<tbody>
{% for child in form %}
<tr>
<td>
{{ form_widget(child, {'material_design': true}) }}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endspaceless %}
{% endblock material_choice_table_widget %}
{% block material_multiple_choice_table_widget %}
{% spaceless %}
<div class=\"choice-table table-responsive\">
<table class=\"table\">
<thead>
<tr>
<th>{{ label }}</th>
{% for child_choice in form %}
<th class=\"text-center\">
{% if child_choice.vars.multiple and child_choice.vars.name not in headers_to_disable %}
<a href=\"#\"
class=\"js-multiple-choice-table-select-column\"
data-column-num=\"{{ loop.index + 1 }}\"
data-column-checked=\"false\"
>
{{ child_choice.vars.label }}
</a>
{% else %}
{{ child_choice.vars.label }}
{% endif %}
</th>
{% endfor %}
</tr>
</thead>
<tbody>
{% for choice_name, choice_value in choices %}
<tr>
<td>
{{ choice_name }}
</td>
{% for child_choice_name, child_choice in form %}
<td class=\"text-center\">
{% if child_choice_entry_index_mapping[choice_value][child_choice_name] is defined %}
{% set entry_index = child_choice_entry_index_mapping[choice_value][child_choice_name] %}
{% if child_choice.vars.multiple %}
{{ form_widget(child_choice[entry_index], {'material_design': true}) }}
{% else %}
{{ form_widget(child_choice[entry_index]) }}
{% endif %}
{% else %}
--
{% endif %}
</td>
{% endfor %}
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endspaceless %}
{% endblock material_multiple_choice_table_widget %}
{% block translatable_widget -%}
<div class=\"input-group locale-input-group js-locale-input-group d-flex\">
{% for translateField in form %}
{% set classes = translateField.vars.attr.class|default('') ~ ' js-locale-input'%}
{% set classes = classes ~ ' js-locale-' ~ translateField.vars.label %}
{% if default_locale.id_lang != translateField.vars.name %}
{% set classes = classes ~ ' d-none' %}
{% endif %}
<div class=\"{{ classes }}\" style=\"flex-grow: 1;\">
{{ form_widget(translateField) }}
</div>
{% endfor %}
{% if not hide_locales %}
<div class=\"dropdown\">
<button class=\"btn btn-outline-secondary dropdown-toggle js-locale-btn\"
type=\"button\"
data-toggle=\"dropdown\"
aria-haspopup=\"true\"
aria-expanded=\"false\"
id=\"{{ form.vars.id }}\"
>
{{ form.vars.default_locale.iso_code }}
</button>
<div class=\"dropdown-menu\" aria-labelledby=\"{{ form.vars.id }}\">
{% for locale in locales %}
<span class=\"dropdown-item js-locale-item\" data-locale=\"{{ locale.iso_code }}\">{{ locale.name }}</span>
{% endfor %}
</div>
</div>
{% endif %}
</div>
{%- endblock translatable_widget %}
{% block birthday_widget %}
{% if widget == 'single_text' %}
{{- block('form_widget_simple') -}}
{% else -%}
{% set attr = attr|merge({class: (attr.class|default('') ~ ' form-inline')|trim}) -%}
{% if datetime is not defined or not datetime -%}
<div {{ block('widget_container_attributes') -}}>
{%- endif %}
{% set yearWidget = '<div class=\"col pl-0\">' ~ form_widget(form.year) ~ '</div>'|raw %}
{% set monthWidget = '<div class=\"col\">' ~ form_widget(form.month) ~ '</div>'|raw %}
{% set dayWidget = '<div class=\"col pr-0\">' ~ form_widget(form.day) ~ '</div>'|raw %}
{{- date_pattern|replace({
'{{ year }}': yearWidget,
'{{ month }}': monthWidget,
'{{ day }}': dayWidget,
})|raw -}}
{% if datetime is not defined or not datetime -%}
</div>
{%- endif -%}
{% endif %}
{% endblock birthday_widget %}
{% block file_widget %}
<div class=\"custom-file\">
{% set attr = attr|merge({
class: (attr.class|default('') ~ ' custom-file-input')|trim,
'data-multiple-files-text': '%count% file(s)'|trans({}, 'Admin.Global'),
'data-locale': get_context_iso_code()
}) -%}
{% if attr.disabled is defined and attr.disabled %}
{% set attr = attr|merge({
class: attr.class ~ ' disabled'
}) %}
{% endif %}
{{ form_widget(form, {'attr': attr}) }}
<label class=\"custom-file-label\" for=\"{{ form.vars.id }}\">
{% set attributes = form.vars.attr %}
{{ attributes.placeholder is defined ? attributes.placeholder : 'Choose file(s)'|trans({}, 'Admin.Actions') }}
</label>
</div>
{% endblock file_widget %}
{% block shop_restriction_checkbox_widget %}
{% if form.vars.attr.is_allowed_to_display %}
<div class=\"md-checkbox md-checkbox-inline\">
<label>
{% set type = type|default('checkbox') %}
<input
class=\"js-multi-store-restriction-checkbox\"
type=\"{{ type }}\"
{{ block('widget_attributes') }}
value=\"{{ value }}\"
>
<i class=\"md-checkbox-control\"></i>
</label>
</div>
{% endif %}
{% endblock %}
{% block generatable_text_widget %}
<div class=\"input-group\">
{{- block('form_widget') -}}
<span class=\"input-group-btn ml-1\">
<button class=\"btn btn-outline-secondary js-generator-btn\"
type=\"button\"
data-target-input-id=\"{{ id }}\"
data-generated-value-length=\"{{ generated_value_length }}\"
>
{{ 'Generate'|trans({}, 'Admin.Actions') }}
</button>
</span>
</div>
{% endblock generatable_text_widget %}
{% block text_with_recommended_length_widget %}
{% set attr = attr|merge({
'data-recommended-length-counter': '#' ~ id ~ '_recommended_length_counter',
'class': 'js-recommended-length-input'
}) -%}
{% if input_type == 'textarea' %}
{{- block('textarea_widget') -}}
{% else %}
{{- block('form_widget_simple') -}}
{% endif %}
<small class=\"form-text text-muted text-right\"
id=\"{{ id }}_recommended_length_counter\"
>
<em>
{{ '[1][/1] of [2][/2] characters used (recommended)'|trans({}, 'Admin.Catalog.Feature')|replace({
'[1]': '<span class=\"js-current-length\">' ~ value|length,
'[/1]': '</span>',
'[2]': '<span>' ~ recommended_length,
'[/2]': '</span>',
})|raw }}
</em>
</small>
{% endblock text_with_recommended_length_widget %}
", "@PrestaShop/Admin/TwigTemplateForm/bootstrap_4_layout.html.twig", "/Volumes/Dev/Sources/Clients/taome/Nouveau_site/www/src/PrestaShopBundle/Resources/views/Admin/TwigTemplateForm/bootstrap_4_layout.html.twig");
}
}