Initial commit

This commit is contained in:
2020-10-07 10:37:15 +02:00
commit ce5f440392
28157 changed files with 4429172 additions and 0 deletions

View File

@@ -0,0 +1,360 @@
<?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;
/* @Product/ProductPage/Forms/form_combinations_bulk.html.twig */
class __TwigTemplate_667d416a24ed38fe013fd46c41beb2542a36153dbee22dfaa8a4c7a3a51e20f3 extends \Twig\Template
{
public function __construct(Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = [
];
}
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", "@Product/ProductPage/Forms/form_combinations_bulk.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", "@Product/ProductPage/Forms/form_combinations_bulk.html.twig"));
// line 25
echo "<div class=\"row\" id=\"bulk-combinations-container-fields\">
";
// line 26
if ($this->env->getExtension('PrestaShopBundle\Twig\LayoutExtension')->getConfiguration("PS_STOCK_MANAGEMENT")) {
// line 27
echo " <div class=\"col-lg-4 col-md-3 col-sm-6\">
<label class=\"form-control-label\">";
// line 28
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "quantity", []), "vars", []), "label", []), "html", null, true);
echo "</label>
";
// line 29
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "quantity", []), 'errors');
echo "
";
// line 30
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "quantity", []), 'widget');
echo "
</div>
";
}
// line 33
echo "
<div class=\"col-lg-4 col-md-3 col-sm-6\">
<label class=\"form-control-label\">";
// line 35
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "cost_price", []), "vars", []), "label", []), "html", null, true);
echo "</label>
";
// line 36
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "cost_price", []), 'errors');
echo "
";
// line 37
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "cost_price", []), 'widget');
echo "
</div>
<div class=\"col-lg-4 col-md-3 col-sm-6\">
<label class=\"form-control-label\">";
// line 41
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "impact_on_weight", []), "vars", []), "label", []), "html", null, true);
echo "</label>
";
// line 42
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "impact_on_weight", []), 'errors');
echo "
";
// line 43
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "impact_on_weight", []), 'widget');
echo "
</div>
<div class=\"col-lg-4 col-md-3 col-sm-6\">
<label class=\"form-control-label\">";
// line 47
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "impact_on_price_te", []), "vars", []), "label", []), "html", null, true);
echo "</label>
";
// line 48
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "impact_on_price_te", []), 'errors');
echo "
";
// line 49
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "impact_on_price_te", []), 'widget');
echo "
</div>
<div class=\"col-lg-4 col-md-3 col-sm-6\">
<label class=\"form-control-label\">";
// line 53
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "impact_on_price_ti", []), "vars", []), "label", []), "html", null, true);
echo "</label>
";
// line 54
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "impact_on_price_ti", []), 'errors');
echo "
";
// line 55
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "impact_on_price_ti", []), 'widget');
echo "
</div>
<div class=\"col-lg-4 col-md-3 col-sm-6\">
<label class=\"form-control-label\">";
// line 59
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "date_availability", []), "vars", []), "label", []), "html", null, true);
echo "</label>
";
// line 60
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "date_availability", []), 'errors');
echo "
";
// line 61
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "date_availability", []), 'widget');
echo "
</div>
<div class=\"col-lg-4 col-md-3 col-sm-6\">
<label class=\"form-control-label\">";
// line 65
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "reference", []), "vars", []), "label", []), "html", null, true);
echo "</label>
";
// line 66
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "reference", []), 'errors');
echo "
";
// line 67
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "reference", []), 'widget');
echo "
</div>
<div class=\"col-lg-4 col-md-3 col-sm-6\">
<label class=\"form-control-label\">";
// line 71
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "minimal_quantity", []), "vars", []), "label", []), "html", null, true);
echo "</label>
";
// line 72
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "minimal_quantity", []), 'errors');
echo "
";
// line 73
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "minimal_quantity", []), 'widget');
echo "
</div>
<div class=\"col-lg-4 col-md-3 col-sm-6\">
<label class=\"form-control-label\">";
// line 77
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "low_stock_threshold", []), "vars", []), "label", []), "html", null, true);
echo "
<span class=\"help-box\" data-toggle=\"popover\" data-content=\"";
// line 78
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("You can increase or decrease low stock levels in bulk. You cannot disable them in bulk: you have to do it on a per-combination basis.", [], "Admin.Catalog.Feature"), "html", null, true);
echo "\" ></span>
</label>
";
// line 80
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "low_stock_threshold", []), 'errors');
echo "
";
// line 81
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "low_stock_threshold", []), 'widget');
echo "
</div>
<div class=\"col-lg-4 col-md-3 col-sm-6 widget-checkbox-inline\">
<div class=\"widget-checkbox-inline\">
";
// line 86
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "low_stock_alert", []), 'errors');
echo "
";
// line 87
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "low_stock_alert", []), 'widget');
echo "
<span class=\"help-box\" data-toggle=\"popover\" data-content=\"";
// line 88
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("The email will be sent to all the users who have the right to run the stock page. To modify the permissions, go to Advanced Parameters > Team", [], "Admin.Catalog.Feature"), "html", null, true);
echo "\" ></span>
</div>
</div>
</div>
<div class=\"row justify-content-end mt-3\">
<button id=\"delete-combinations\" class=\"btn btn-outline-secondary mr-3\" data=\"";
// line 93
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\RoutingExtension')->getPath("admin_delete_attribute", ["idProduct" => ($context["id_product"] ?? $this->getContext($context, "id_product"))]), "html", null, true);
echo "\">
<i class=\"material-icons\">delete</i>
";
// line 95
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Delete combinations", [], "Admin.Catalog.Feature"), "html", null, true);
echo "
</button>
<button id=\"apply-on-combinations\" class=\"btn btn-outline-primary mr-3\">
";
// line 98
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Apply", [], "Admin.Actions"), "html", null, true);
echo "
</button>
";
// line 100
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? $this->getContext($context, "form")), 'widget');
echo "
</div>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "@Product/ProductPage/Forms/form_combinations_bulk.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 220 => 100, 215 => 98, 209 => 95, 204 => 93, 196 => 88, 192 => 87, 188 => 86, 180 => 81, 176 => 80, 171 => 78, 167 => 77, 160 => 73, 156 => 72, 152 => 71, 145 => 67, 141 => 66, 137 => 65, 130 => 61, 126 => 60, 122 => 59, 115 => 55, 111 => 54, 107 => 53, 100 => 49, 96 => 48, 92 => 47, 85 => 43, 81 => 42, 77 => 41, 70 => 37, 66 => 36, 62 => 35, 58 => 33, 52 => 30, 48 => 29, 44 => 28, 41 => 27, 39 => 26, 36 => 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
*#}
<div class=\"row\" id=\"bulk-combinations-container-fields\">
{% if 'PS_STOCK_MANAGEMENT'|configuration %}
<div class=\"col-lg-4 col-md-3 col-sm-6\">
<label class=\"form-control-label\">{{ form.quantity.vars.label }}</label>
{{ form_errors(form.quantity) }}
{{ form_widget(form.quantity) }}
</div>
{% endif %}
<div class=\"col-lg-4 col-md-3 col-sm-6\">
<label class=\"form-control-label\">{{ form.cost_price.vars.label }}</label>
{{ form_errors(form.cost_price) }}
{{ form_widget(form.cost_price) }}
</div>
<div class=\"col-lg-4 col-md-3 col-sm-6\">
<label class=\"form-control-label\">{{ form.impact_on_weight.vars.label }}</label>
{{ form_errors(form.impact_on_weight) }}
{{ form_widget(form.impact_on_weight) }}
</div>
<div class=\"col-lg-4 col-md-3 col-sm-6\">
<label class=\"form-control-label\">{{ form.impact_on_price_te.vars.label }}</label>
{{ form_errors(form.impact_on_price_te) }}
{{ form_widget(form.impact_on_price_te) }}
</div>
<div class=\"col-lg-4 col-md-3 col-sm-6\">
<label class=\"form-control-label\">{{ form.impact_on_price_ti.vars.label }}</label>
{{ form_errors(form.impact_on_price_ti) }}
{{ form_widget(form.impact_on_price_ti) }}
</div>
<div class=\"col-lg-4 col-md-3 col-sm-6\">
<label class=\"form-control-label\">{{ form.date_availability.vars.label }}</label>
{{ form_errors(form.date_availability) }}
{{ form_widget(form.date_availability) }}
</div>
<div class=\"col-lg-4 col-md-3 col-sm-6\">
<label class=\"form-control-label\">{{ form.reference.vars.label }}</label>
{{ form_errors(form.reference) }}
{{ form_widget(form.reference) }}
</div>
<div class=\"col-lg-4 col-md-3 col-sm-6\">
<label class=\"form-control-label\">{{ form.minimal_quantity.vars.label }}</label>
{{ form_errors(form.minimal_quantity) }}
{{ form_widget(form.minimal_quantity) }}
</div>
<div class=\"col-lg-4 col-md-3 col-sm-6\">
<label class=\"form-control-label\">{{ form.low_stock_threshold.vars.label }}
<span class=\"help-box\" data-toggle=\"popover\" data-content=\"{{ 'You can increase or decrease low stock levels in bulk. You cannot disable them in bulk: you have to do it on a per-combination basis.'|trans({}, 'Admin.Catalog.Feature') }}\" ></span>
</label>
{{ form_errors(form.low_stock_threshold) }}
{{ form_widget(form.low_stock_threshold) }}
</div>
<div class=\"col-lg-4 col-md-3 col-sm-6 widget-checkbox-inline\">
<div class=\"widget-checkbox-inline\">
{{ form_errors(form.low_stock_alert) }}
{{ form_widget(form.low_stock_alert) }}
<span class=\"help-box\" data-toggle=\"popover\" data-content=\"{{ 'The email will be sent to all the users who have the right to run the stock page. To modify the permissions, go to Advanced Parameters > Team'|trans({}, 'Admin.Catalog.Feature') }}\" ></span>
</div>
</div>
</div>
<div class=\"row justify-content-end mt-3\">
<button id=\"delete-combinations\" class=\"btn btn-outline-secondary mr-3\" data=\"{{ path('admin_delete_attribute', {'idProduct': id_product}) }}\">
<i class=\"material-icons\">delete</i>
{{ 'Delete combinations'|trans({}, 'Admin.Catalog.Feature') }}
</button>
<button id=\"apply-on-combinations\" class=\"btn btn-outline-primary mr-3\">
{{ 'Apply'|trans({}, 'Admin.Actions') }}
</button>
{{ form_widget(form) }}
</div>
", "@Product/ProductPage/Forms/form_combinations_bulk.html.twig", "/Volumes/Dev/Sources/Clients/taome/Nouveau_site/www/src/PrestaShopBundle/Resources/views/Admin/Product/ProductPage/Forms/form_combinations_bulk.html.twig");
}
}