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

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,123 @@
<?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/Configure/ShopParameters/product_preferences.html.twig */
class __TwigTemplate_6ab4dcce9f7294298aca05215bc5a37546170c21e908ee1fb2202e11e81ecaef extends \Twig\Template
{
public function __construct(Environment $env)
{
parent::__construct($env);
// line 25
$this->parent = $this->loadTemplate("@PrestaShop/Admin/layout.html.twig", "@PrestaShop/Admin/Configure/ShopParameters/product_preferences.html.twig", 25);
$this->blocks = [
'content' => [$this, 'block_content'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
return "@PrestaShop/Admin/layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
// line 28
list($context["generalForm"], $context["paginationForm"], $context["pageForm"], $context["stockForm"]) = [$this->getAttribute(($context["form"] ?? null), "general", []), $this->getAttribute(($context["form"] ?? null), "pagination", []), $this->getAttribute(($context["form"] ?? null), "page", []), $this->getAttribute(($context["form"] ?? null), "stock", [])];
// line 25
$this->parent->display($context, array_merge($this->blocks, $blocks));
}
// line 30
public function block_content($context, array $blocks = [])
{
// line 31
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["form"] ?? null), 'form_start', ["attr" => ["class" => "form", "id" => "configuration_form"]]);
echo "
<div class=\"row justify-content-center\">
";
// line 34
echo " ";
$this->loadTemplate("@PrestaShop/Admin/Configure/ShopParameters/Blocks/product_preferences_general.html.twig", "@PrestaShop/Admin/Configure/ShopParameters/product_preferences.html.twig", 34)->display($context);
// line 35
echo "
";
// line 37
echo " ";
$this->loadTemplate("@PrestaShop/Admin/Configure/ShopParameters/Blocks/product_preferences_page.html.twig", "@PrestaShop/Admin/Configure/ShopParameters/product_preferences.html.twig", 37)->display($context);
// line 38
echo "
";
// line 40
echo " ";
$this->loadTemplate("@PrestaShop/Admin/Configure/ShopParameters/Blocks/product_preferences_stock.html.twig", "@PrestaShop/Admin/Configure/ShopParameters/product_preferences.html.twig", 40)->display($context);
// line 41
echo "
";
// line 43
echo " ";
$this->loadTemplate("@PrestaShop/Admin/Configure/ShopParameters/Blocks/product_preferences_pagination.html.twig", "@PrestaShop/Admin/Configure/ShopParameters/product_preferences.html.twig", 43)->display($context);
// line 44
echo " </div>
";
// line 45
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["form"] ?? null), 'form_end');
echo "
";
}
// line 48
public function block_javascripts($context, array $blocks = [])
{
// line 49
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
<script src=\"";
// line 51
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\AssetExtension')->getAssetUrl("themes/new-theme/public/product_preferences.bundle.js"), "html", null, true);
echo "\"></script>
";
}
public function getTemplateName()
{
return "@PrestaShop/Admin/Configure/ShopParameters/product_preferences.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 91 => 51, 85 => 49, 82 => 48, 76 => 45, 73 => 44, 70 => 43, 67 => 41, 64 => 40, 61 => 38, 58 => 37, 55 => 35, 52 => 34, 46 => 31, 43 => 30, 39 => 25, 37 => 28, 22 => 25,);
}
/** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
public function getSource()
{
@trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
return $this->getSourceContext()->getCode();
}
public function getSourceContext()
{
return new Source("", "@PrestaShop/Admin/Configure/ShopParameters/product_preferences.html.twig", "/Volumes/Dev/Sources/Clients/taome/Nouveau_site/www/src/PrestaShopBundle/Resources/views/Admin/Configure/ShopParameters/product_preferences.html.twig");
}
}

View File

@@ -0,0 +1,406 @@
<?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_specific_price.html.twig */
class __TwigTemplate_8b6302c12745a8d1b4eceba7f10ab2ea198e030dc383c9d6b3c981244a239f8b extends \Twig\Template
{
public function __construct(Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
// line 25
if ( !(isset($context["is_modal"]) || array_key_exists("is_modal", $context))) {
// line 26
echo " ";
$context["is_modal"] = false;
}
// line 28
echo "
";
// line 29
if ((($context["is_modal"] ?? null) == false)) {
// line 30
echo " ";
$context["column_default_md_3"] = "col-md-3";
// line 31
echo " ";
$context["column_default_md_2"] = "col-md-2";
// line 32
echo " ";
$context["column_default_xl_2"] = "col-xl-2";
} else {
// line 34
echo " ";
$context["column_default_md_3"] = "col-md-9";
// line 35
echo " ";
$context["column_default_md_2"] = "col-md-4";
// line 36
echo " ";
$context["column_default_xl_2"] = "col-xl-4";
}
// line 38
echo "
<div class=\"card card-block\">
<h4><b>";
// line 40
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Specific price conditions", [], "Admin.Catalog.Feature"), "html", null, true);
echo "</b></h4>
";
// line 41
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'errors');
echo "
";
// line 43
if ($this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? null), "sp_id_shop", [], "any", false, true), "vars", [], "any", false, true), "choices", [], "any", true, true)) {
// line 44
echo " <div class=\"row\">
<div class=\"col-md-4\">
<fieldset class=\"form-group\">
<label>";
// line 47
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Shop", [], "Admin.Global"), "html", null, true);
echo "</label>
";
// line 48
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "sp_id_shop", []), 'errors');
echo "
";
// line 49
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "sp_id_shop", []), 'widget');
echo "
</fieldset>
</div>
</div>
";
} else {
// line 54
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "sp_id_shop", []), 'widget');
echo "
";
}
// line 56
echo "
<div class=\"row\">
<div class=\"";
// line 58
echo twig_escape_filter($this->env, ($context["column_default_md_3"] ?? null), "html", null, true);
echo "\">
<fieldset class=\"form-group\">
<label>";
// line 60
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("For", [], "Admin.Global"), "html", null, true);
echo "</label>
";
// line 61
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "sp_id_currency", []), 'errors');
echo "
";
// line 62
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "sp_id_currency", []), 'widget');
echo "
</fieldset>
</div>
<div class=\"";
// line 65
echo twig_escape_filter($this->env, ($context["column_default_md_3"] ?? null), "html", null, true);
echo "\">
<fieldset class=\"form-group\">
<label>&nbsp;</label>
";
// line 68
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "sp_id_country", []), 'errors');
echo "
";
// line 69
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "sp_id_country", []), 'widget');
echo "
</fieldset>
</div>
<div class=\"";
// line 72
echo twig_escape_filter($this->env, ($context["column_default_md_3"] ?? null), "html", null, true);
echo "\">
<fieldset class=\"form-group\">
<label>&nbsp;</label>
";
// line 75
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "sp_id_group", []), 'errors');
echo "
";
// line 76
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "sp_id_group", []), 'widget');
echo "
</fieldset>
</div>
<div class=\"col-md-6\">
<fieldset class=\"form-group\">
<label>";
// line 81
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Customer", [], "Admin.Global"), "html", null, true);
echo "</label>
";
// line 82
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "sp_id_customer", []), 'errors');
echo "
";
// line 83
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "sp_id_customer", []), 'widget');
echo "
</fieldset>
</div>
</div>
<div class=\"row\">
<div id=\"specific-price-combination-selector\" class=\"col-md-6 ";
// line 88
echo ((($context["has_combinations"] ?? null)) ? ("") : ("hide"));
echo "\">
<fieldset class=\"form-group\">
<label>";
// line 90
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? null), "sp_id_product_attribute", []), "vars", []), "label", []), "html", null, true);
echo "</label>
";
// line 91
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "sp_id_product_attribute", []), 'errors');
echo "
";
// line 92
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "sp_id_product_attribute", []), 'widget');
echo "
</fieldset>
</div>
<div class=\"clearfix\"></div>
<div class=\"";
// line 96
echo twig_escape_filter($this->env, ($context["column_default_md_3"] ?? null), "html", null, true);
echo "\">
<fieldset class=\"form-group\">
<label>";
// line 98
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? null), "sp_from", []), "vars", []), "label", []), "html", null, true);
echo "</label>
";
// line 99
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "sp_from", []), 'errors');
echo "
";
// line 100
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "sp_from", []), 'widget');
echo "
</fieldset>
</div>
<div class=\"";
// line 103
echo twig_escape_filter($this->env, ($context["column_default_md_3"] ?? null), "html", null, true);
echo "\">
<fieldset class=\"form-group\">
<label>";
// line 105
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("to", [], "Admin.Global");
echo "</label>
";
// line 106
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "sp_to", []), 'errors');
echo "
";
// line 107
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "sp_to", []), 'widget');
echo "
</fieldset>
</div>
";
// line 110
if ((($context["is_modal"] ?? null) == true)) {
// line 111
echo " </div>
<div class=\"row\">
";
}
// line 114
echo " <div class=\"";
echo twig_escape_filter($this->env, ($context["column_default_md_2"] ?? null), "html", null, true);
echo "\">
<fieldset class=\"form-group\">
<label>";
// line 116
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? null), "sp_from_quantity", []), "vars", []), "label", []), "html", null, true);
echo "</label>
";
// line 117
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "sp_from_quantity", []), 'errors');
echo "
<div class=\"input-group\">
";
// line 119
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "sp_from_quantity", []), 'widget');
echo "
<div class=\"input-group-append\">
<span class=\"input-group-text\">";
// line 121
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Unit(s)", [], "Admin.Catalog.Feature"), "html", null, true);
echo "</span>
</div>
</div>
</fieldset>
</div>
</div>
<br>
<h4><b>";
// line 129
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Impact on price", [], "Admin.Catalog.Feature"), "html", null, true);
echo "</b></h4>
<div class=\"row\">
<div class=\"";
// line 131
echo twig_escape_filter($this->env, ($context["column_default_md_3"] ?? null), "html", null, true);
echo "\">
<fieldset class=\"form-group\">
<label>";
// line 133
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? null), "sp_price", []), "vars", []), "label", []), "html", null, true);
echo "</label>
";
// line 134
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "sp_price", []), 'errors');
echo "
";
// line 135
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "sp_price", []), 'widget');
echo "
</fieldset>
</div>
<div class=\"";
// line 138
echo twig_escape_filter($this->env, ($context["column_default_md_3"] ?? null), "html", null, true);
echo "\">
<fieldset class=\"form-group\">
<label>&nbsp;</label>
";
// line 141
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "leave_bprice", []), 'errors');
echo "
";
// line 142
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "leave_bprice", []), 'widget');
echo "
</fieldset>
</div>
</div>
<div class=\"row\">
<div class=\"";
// line 147
echo twig_escape_filter($this->env, ($context["column_default_xl_2"] ?? null), "html", null, true);
echo " col-lg-3\">
<fieldset class=\"form-group\">
<label>";
// line 149
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Apply a discount of", [], "Admin.Catalog.Feature"), "html", null, true);
echo "</label>
";
// line 150
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "sp_reduction", []), 'errors');
echo "
";
// line 151
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "sp_reduction", []), 'widget');
echo "
</fieldset>
</div>
<div class=\"";
// line 154
echo twig_escape_filter($this->env, ($context["column_default_xl_2"] ?? null), "html", null, true);
echo " col-lg-3\">
<fieldset class=\"form-group\">
<label>&nbsp;</label>
";
// line 157
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "sp_reduction_type", []), 'errors');
echo "
";
// line 158
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "sp_reduction_type", []), 'widget');
echo "
</fieldset>
</div>
<div class=\"";
// line 161
echo twig_escape_filter($this->env, ($context["column_default_xl_2"] ?? null), "html", null, true);
echo " col-lg-3\">
<fieldset class=\"form-group\">
<label>&nbsp;</label>
";
// line 164
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "sp_reduction_tax", []), 'errors');
echo "
";
// line 165
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "sp_reduction_tax", []), 'widget');
echo "
</fieldset>
</div>
</div>
<div class=\"col-md-12 text-sm-right\">
";
// line 170
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "cancel", []), 'widget');
echo "
";
// line 171
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "save", []), 'widget');
echo "
</div>
<div class=\"clearfix\"></div>
</div>
";
}
public function getTemplateName()
{
return "@Product/ProductPage/Forms/form_specific_price.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 371 => 171, 367 => 170, 359 => 165, 355 => 164, 349 => 161, 343 => 158, 339 => 157, 333 => 154, 327 => 151, 323 => 150, 319 => 149, 314 => 147, 306 => 142, 302 => 141, 296 => 138, 290 => 135, 286 => 134, 282 => 133, 277 => 131, 272 => 129, 261 => 121, 256 => 119, 251 => 117, 247 => 116, 241 => 114, 236 => 111, 234 => 110, 228 => 107, 224 => 106, 220 => 105, 215 => 103, 209 => 100, 205 => 99, 201 => 98, 196 => 96, 189 => 92, 185 => 91, 181 => 90, 176 => 88, 168 => 83, 164 => 82, 160 => 81, 152 => 76, 148 => 75, 142 => 72, 136 => 69, 132 => 68, 126 => 65, 120 => 62, 116 => 61, 112 => 60, 107 => 58, 103 => 56, 97 => 54, 89 => 49, 85 => 48, 81 => 47, 76 => 44, 74 => 43, 69 => 41, 65 => 40, 61 => 38, 57 => 36, 54 => 35, 51 => 34, 47 => 32, 44 => 31, 41 => 30, 39 => 29, 36 => 28, 32 => 26, 30 => 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("", "@Product/ProductPage/Forms/form_specific_price.html.twig", "/Volumes/Dev/Sources/Clients/taome/Nouveau_site/www/src/PrestaShopBundle/Resources/views/Admin/Product/ProductPage/Forms/form_specific_price.html.twig");
}
}