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,175 @@
<?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_supplier_combination.html.twig */
class __TwigTemplate_471670039d405ad0fa5d47160dbee0037ea562a02be417e4e30a4e30128d774c 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 ((twig_length_filter($this->env, ($context["suppliers"] ?? null)) > 0)) {
// line 26
echo " <h4>";
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Supplier reference(s)", [], "Admin.Catalog.Feature"), "html", null, true);
echo "</h4>
<div class=\"row\">
<div class=\"col-md-12\">
<div class=\"alert alert-info\" role=\"alert\">
<p class=\"alert-text\">
";
// line 31
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("You can specify product reference(s) for each associated supplier. Click \"Save\" after changing selected suppliers to display the associated product references.", [], "Admin.Catalog.Help");
echo "
</p>
</div>
</div>
</div>
";
}
// line 37
echo "
";
// line 38
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["suppliers"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["supplierId"]) {
// line 39
echo " ";
$context["collectionName"] = ("supplier_combination_" . $context["supplierId"]);
// line 40
echo " <div class=\"panel panel-default\">
<div class=\"panel-heading\"><strong>";
// line 41
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? null), ($context["collectionName"] ?? null), [], "array"), "vars", []), "label", []), "html", null, true);
echo "</strong></div>
<div class=\"panel-body\" id=\"supplier_combination_";
// line 42
echo twig_escape_filter($this->env, $context["supplierId"], "html", null, true);
echo "\">
<div>
";
// line 44
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), ($context["collectionName"] ?? null), [], "array"), 'errors');
echo "
<table class=\"table\">
<thead class=\"thead-default\">
<tr >
<th width=\"30%\">";
// line 48
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Product name", [], "Admin.Catalog.Feature"), "html", null, true);
echo "</th>
<th width=\"30%\">";
// line 49
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Supplier reference", [], "Admin.Catalog.Feature"), "html", null, true);
echo "</th>
<th width=\"20%\">";
// line 50
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Price (tax excl.)", [], "Admin.Catalog.Feature"), "html", null, true);
echo "</th>
<th width=\"20%\">";
// line 51
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Currency", [], "Admin.Global"), "html", null, true);
echo "</th>
</tr>
</thead>
<tbody>
";
// line 55
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["form"] ?? null), ($context["collectionName"] ?? null), [], "array"));
foreach ($context['_seq'] as $context["_key"] => $context["supplier_combination"]) {
// line 56
echo " <tr>
<td>";
// line 57
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($context["supplier_combination"], "vars", []), "value", []), "label", []), "html", null, true);
echo "</td>
<td>";
// line 58
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute($context["supplier_combination"], "supplier_reference", []), 'widget');
echo "</td>
<td>";
// line 59
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute($context["supplier_combination"], "product_price", []), 'widget');
echo "</td>
<td>
";
// line 61
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute($context["supplier_combination"], "product_price_currency", []), 'widget');
echo "
";
// line 62
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute($context["supplier_combination"], "id_product_attribute", []), 'widget');
echo "
";
// line 63
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute($context["supplier_combination"], "supplier_id", []), 'widget');
echo "
</td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['supplier_combination'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 67
echo " </tbody>
</table>
</div>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['supplierId'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
}
public function getTemplateName()
{
return "@Product/ProductPage/Forms/form_supplier_combination.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 136 => 67, 126 => 63, 122 => 62, 118 => 61, 113 => 59, 109 => 58, 105 => 57, 102 => 56, 98 => 55, 91 => 51, 87 => 50, 83 => 49, 79 => 48, 72 => 44, 67 => 42, 63 => 41, 60 => 40, 57 => 39, 53 => 38, 50 => 37, 41 => 31, 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_supplier_combination.html.twig", "/Volumes/Dev/Sources/Clients/taome/Nouveau_site/www/src/PrestaShopBundle/Resources/views/Admin/Product/ProductPage/Forms/form_supplier_combination.html.twig");
}
}

View File

@@ -0,0 +1,252 @@
<?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/Helpers/range_inputs.html.twig */
class __TwigTemplate_f13552a70ec994147c66ddf3cd4536db9c444685ae04f40e15d06dd7f64d0010 extends \Twig\Template
{
public function __construct(Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
// line 26
echo "<script>
\$(document).ready(function() {
var sliderInput = \$('#";
// line 28
echo twig_escape_filter($this->env, ($context["input_name"] ?? null), "html", null, true);
echo "');
var minInput = \$('#";
// line 29
echo twig_escape_filter($this->env, ($context["input_name"] ?? null), "html", null, true);
echo "_min');
var maxInput = \$('#";
// line 30
echo twig_escape_filter($this->env, ($context["input_name"] ?? null), "html", null, true);
echo "_max');
// parse and fix init value
var value = sliderInput.attr('sql');
if (value != '') {
value = value.replace('BETWEEN ', '');
value = value.replace(' AND ', ',');
value = value.replace('<=', '";
// line 37
echo twig_escape_filter($this->env, (((isset($context["min"]) || array_key_exists("min", $context))) ? (_twig_default_filter(($context["min"] ?? null), "0")) : ("0")), "html", null, true);
echo ",');
value = value.replace('>=', '";
// line 38
echo twig_escape_filter($this->env, (((isset($context["max"]) || array_key_exists("max", $context))) ? (_twig_default_filter(($context["max"] ?? null), "1000000000")) : ("1000000000")), "html", null, true);
echo ",');
value = value.split(',');
value[0] = Number(value[0]);
value[1] = Number(value[1]);
} else {
value = [";
// line 43
echo twig_escape_filter($this->env, (((isset($context["min"]) || array_key_exists("min", $context))) ? (_twig_default_filter(($context["min"] ?? null), "0")) : ("0")), "html", null, true);
echo ", ";
echo twig_escape_filter($this->env, (((isset($context["max"]) || array_key_exists("max", $context))) ? (_twig_default_filter(($context["max"] ?? null), "1000000000")) : ("1000000000")), "html", null, true);
echo "];
}
value = value.sort(function sortNumber(a,b) {
return a - b;
});
// Init inputs
if (value[0] > ";
// line 50
echo twig_escape_filter($this->env, (((isset($context["min"]) || array_key_exists("min", $context))) ? (_twig_default_filter(($context["min"] ?? null), "0")) : ("0")), "html", null, true);
echo ")
minInput.val(value[0]);
if (value[1] < ";
// line 52
echo twig_escape_filter($this->env, (((isset($context["max"]) || array_key_exists("max", $context))) ? (_twig_default_filter(($context["max"] ?? null), "1000000000")) : ("1000000000")), "html", null, true);
echo ")
maxInput.val(value[1]);
// Change events
var inputFlasher = function(input) {
// animate input to highlight it (like a pulsate effect on jqueryUI)
\$(input).stop().delay(100)
.fadeIn(100).fadeOut(100)
.queue(function() { \$(this).css(\"background-color\", \"#FF5555\").dequeue(); })
.fadeIn(160).fadeOut(160).fadeIn(160).fadeOut(160).fadeIn(160)
.animate({ backgroundColor: \"#FFFFFF\"}, 800);
};
var updater = function(srcElement) {
var isMinModified = (srcElement.attr('id') == minInput.attr('id'));
// retrieve values, replace ',' by '.', cast them into numbers (float/int)
var newValues = [(minInput.val()!='')?Number(minInput.val().replace(',', '.')):";
// line 68
echo twig_escape_filter($this->env, (((isset($context["min"]) || array_key_exists("min", $context))) ? (_twig_default_filter(($context["min"] ?? null), "0")) : ("0")), "html", null, true);
echo ", (maxInput.val()!='')?Number(maxInput.val().replace(',', '.')):";
echo twig_escape_filter($this->env, (((isset($context["max"]) || array_key_exists("max", $context))) ? (_twig_default_filter(($context["max"] ?? null), "1000000000")) : ("1000000000")), "html", null, true);
echo "];
// if newValues are out of bounds, or not valid, fix the element.
if (isMinModified && !(newValues[0] >= ";
// line 71
echo twig_escape_filter($this->env, (((isset($context["min"]) || array_key_exists("min", $context))) ? (_twig_default_filter(($context["min"] ?? null), "0")) : ("0")), "html", null, true);
echo " && newValues[0] <= ";
echo twig_escape_filter($this->env, (((isset($context["max"]) || array_key_exists("max", $context))) ? (_twig_default_filter(($context["max"] ?? null), "1000000000")) : ("1000000000")), "html", null, true);
echo ")) {
newValues[0] = ";
// line 72
echo twig_escape_filter($this->env, (((isset($context["min"]) || array_key_exists("min", $context))) ? (_twig_default_filter(($context["min"] ?? null), "0")) : ("0")), "html", null, true);
echo ";
minInput.val('');
inputFlasher(minInput);
}
if (!isMinModified && !(newValues[1] >= ";
// line 76
echo twig_escape_filter($this->env, (((isset($context["min"]) || array_key_exists("min", $context))) ? (_twig_default_filter(($context["min"] ?? null), "0")) : ("0")), "html", null, true);
echo " && newValues[1] <= ";
echo twig_escape_filter($this->env, (((isset($context["max"]) || array_key_exists("max", $context))) ? (_twig_default_filter(($context["max"] ?? null), "1000000000")) : ("1000000000")), "html", null, true);
echo ")) {
newValues[1] = ";
// line 77
echo twig_escape_filter($this->env, (((isset($context["max"]) || array_key_exists("max", $context))) ? (_twig_default_filter(($context["max"] ?? null), "1000000000")) : ("1000000000")), "html", null, true);
echo ";
maxInput.val('');
inputFlasher(maxInput);
}
// if newValues are not ordered, fix the opposite input.
if (isMinModified && newValues[0] > newValues[1]) {
newValues[1] = newValues[0];
maxInput.val(newValues[0]);
inputFlasher(maxInput);
}
if (!isMinModified && newValues[0] > newValues[1]) {
newValues[0] = newValues[1];
minInput.val(newValues[0]);
inputFlasher(minInput);
}
if (newValues[0] == ";
// line 94
echo twig_escape_filter($this->env, (((isset($context["min"]) || array_key_exists("min", $context))) ? (_twig_default_filter(($context["min"] ?? null), "0")) : ("0")), "html", null, true);
echo " && newValues[1] == ";
echo twig_escape_filter($this->env, (((isset($context["max"]) || array_key_exists("max", $context))) ? (_twig_default_filter(($context["max"] ?? null), "1000000000")) : ("1000000000")), "html", null, true);
echo ") {
sliderInput.attr('sql', '');
} else if (newValues[0] == ";
// line 96
echo twig_escape_filter($this->env, (((isset($context["min"]) || array_key_exists("min", $context))) ? (_twig_default_filter(($context["min"] ?? null), "0")) : ("0")), "html", null, true);
echo ") {
sliderInput.attr('sql', '<='+newValues[1]);
} else if (newValues[1] == ";
// line 98
echo twig_escape_filter($this->env, (((isset($context["max"]) || array_key_exists("max", $context))) ? (_twig_default_filter(($context["max"] ?? null), "1000000000")) : ("1000000000")), "html", null, true);
echo ") {
sliderInput.attr('sql', '>='+newValues[0]);
} else {
sliderInput.attr('sql', 'BETWEEN ' + newValues[0] + ' AND ' + newValues[1]);
}
";
// line 104
if ((isset($context["on_change_func_name"]) || array_key_exists("on_change_func_name", $context))) {
// line 105
echo " var afterUpdate = function() {
";
// line 106
echo ($context["on_change_func_name"] ?? null);
echo "
};
afterUpdate();
";
}
// line 110
echo " }
minInput.on('change', function(event) {
updater(\$(event.srcElement));
});
maxInput.on('change', function(event) {
updater(\$(event.srcElement));
});
});
</script>
<div id=\"";
// line 119
echo twig_escape_filter($this->env, ($context["input_name"] ?? null), "html", null, true);
echo "_div\">
<input type=\"hidden\" id=\"";
// line 120
echo twig_escape_filter($this->env, ($context["input_name"] ?? null), "html", null, true);
echo "\" name=\"";
echo twig_escape_filter($this->env, ($context["input_name"] ?? null), "html", null, true);
echo "\" value=\"\" sql=\"";
echo twig_escape_filter($this->env, ($context["value"] ?? null), "html", null, true);
echo "\" />
<input class=\"form-control form-min-max\" type=\"text\" id=\"";
// line 121
echo twig_escape_filter($this->env, ($context["input_name"] ?? null), "html", null, true);
echo "_min\" value=\"\" placeholder=\"";
echo twig_escape_filter($this->env, (((isset($context["minLabel"]) || array_key_exists("minLabel", $context))) ? (_twig_default_filter(($context["minLabel"] ?? null), "Min")) : ("Min")), "html", null, true);
echo "\" ";
if ((((isset($context["disabled"]) || array_key_exists("disabled", $context))) ? (_twig_default_filter(($context["disabled"] ?? null), false)) : (false))) {
echo "disabled";
}
echo " />
<input class=\"form-control form-min-max\" type=\"text\" id=\"";
// line 122
echo twig_escape_filter($this->env, ($context["input_name"] ?? null), "html", null, true);
echo "_max\" value=\"\" placeholder=\"";
echo twig_escape_filter($this->env, (((isset($context["maxLabel"]) || array_key_exists("maxLabel", $context))) ? (_twig_default_filter(($context["maxLabel"] ?? null), "Max")) : ("Max")), "html", null, true);
echo "\" ";
if ((((isset($context["disabled"]) || array_key_exists("disabled", $context))) ? (_twig_default_filter(($context["disabled"] ?? null), false)) : (false))) {
echo "disabled";
}
echo " />
</div>
";
}
public function getTemplateName()
{
return "@PrestaShop/Admin/Helpers/range_inputs.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 213 => 122, 203 => 121, 195 => 120, 191 => 119, 180 => 110, 173 => 106, 170 => 105, 168 => 104, 159 => 98, 154 => 96, 147 => 94, 127 => 77, 121 => 76, 114 => 72, 108 => 71, 100 => 68, 81 => 52, 76 => 50, 64 => 43, 56 => 38, 52 => 37, 42 => 30, 38 => 29, 34 => 28, 30 => 26,);
}
/** @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/Helpers/range_inputs.html.twig", "/Volumes/Dev/Sources/Clients/taome/Nouveau_site/www/src/PrestaShopBundle/Resources/views/Admin/Helpers/range_inputs.html.twig");
}
}