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,690 @@
<?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.html.twig */
class __TwigTemplate_2f82e02054a52e755ef06e64eb592771f3dbd5748dae56c0de440c788097caae 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.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.html.twig"));
// line 25
echo "<div class=\"row\" id=\"combinations\">
<div class=\"col-md-9\">
<h2>
";
// line 28
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Manage your product combinations", [], "Admin.Catalog.Feature"), "html", null, true);
echo "
<span
class=\"help-box\"
data-toggle=\"popover\"
data-content=\"";
// line 32
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Combinations are the different variations of a product, with attributes like its size, weight or color taking different values. To create a combination, you need to create your product attributes first. Go to Catalog > Attributes & Features for this!", [], "Admin.Catalog.Help"), "html", null, true);
echo "\"
></span>
</h2>
<div id=\"attributes-generator\">
<div class=\"alert alert-info\" role=\"alert\">
<p class=\"alert-text\">
";
// line 38
echo twig_replace_filter($this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("To add combinations, you first need to create proper attributes and values in [1]Attributes & Features[/1]. <br> When done, you may enter the wanted attributes (like \"size\" or \"color\") and their respective values (\"XS\", \"red\", \"all\", etc.) in the field below; or simply select them from the right column. Then click on \"Generate\": it will automatically create all the combinations for you!", [], "Admin.Catalog.Help"), ["[1]" => (("<a class=\"alert-link\" href=" . $this->env->getExtension('PrestaShopBundle\Twig\LayoutExtension')->getAdminLink("AdminAttributesGroups")) . " target=\"_blank\">"), "[/1]" => "</a>"]);
echo "
</p>
</div>
<div class=\"row\">
<div class=\"col-xl-10 col-lg-9\">
<fieldset class=\"form-group\">
";
// line 44
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "attributes", []), 'errors');
echo "
";
// line 45
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "attributes", []), 'widget');
echo "
</fieldset>
</div>
<div class=\"col-xl-2 col-lg-3\">
<button class=\"btn btn-outline-primary\" id=\"create-combinations\">
Generate
</button>
</div>
</div>
</div>
<div id=\"combinations-bulk-form\">
<div class=\"row\">
<div class=\"col-md-12\">
<p
class=\"form-control bulk-action\"
data-toggle=\"collapse\"
href=\"#bulk-combinations-container\"
aria-expanded=\"false\"
aria-controls=\"bulk-combinations-container\"
>
";
// line 67
echo " <strong>";
echo twig_replace_filter($this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Bulk actions ([1]/[2] combination(s) selected)", [], "Admin.Catalog.Feature"), ["[1]" => "<span class=\"js-bulk-combinations\">0</span>", "[2]" => (("<span id=\"js-bulk-combinations-total\">" . ($context["combinations_count"] ?? $this->getContext($context, "combinations_count"))) . "</span>")]);
echo "</strong>
<i class=\"material-icons float-right\">keyboard_arrow_down</i>
</p>
</div>
<div class=\"col-md-12 collapse js-collapse\" id=\"bulk-combinations-container\">
<div class=\"border p-3\">
";
// line 73
echo twig_include($this->env, $context, "@Product/ProductPage/Forms/form_combinations_bulk.html.twig", ["form" => ($context["form_combination_bulk"] ?? $this->getContext($context, "form_combination_bulk"))]);
echo "
</div>
</div>
</div>
</div>
<div class=\"combinations-list\">
<table class=\"table\">
<thead class=\"thead-default\" id=\"combinations_thead\" ";
// line 81
if ( !($context["has_combinations"] ?? $this->getContext($context, "has_combinations"))) {
echo "style=\"display: none;\"";
}
echo ">
<tr>
<th>
<input type=\"checkbox\" id=\"toggle-all-combinations\" >
</th>
<th></th>
<th>";
// line 87
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Combinations", [], "Admin.Catalog.Feature"), "html", null, true);
echo "</th>
<th>";
// line 88
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 "</th>
<th>";
// line 89
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Final price", [], "Admin.Catalog.Feature"), "html", null, true);
echo "</th>
";
// line 90
if ($this->env->getExtension('PrestaShopBundle\Twig\LayoutExtension')->getConfiguration("PS_STOCK_MANAGEMENT")) {
// line 91
echo " <th>";
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Quantity", [], "Admin.Catalog.Feature"), "html", null, true);
echo "</th>
";
}
// line 93
echo " <th colspan=\"3\" class=\"text-sm-right\">";
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Default combination", [], "Admin.Catalog.Feature"), "html", null, true);
echo "</th>
</tr>
</thead>
<tbody class=\"js-combinations-list panel-group accordion\" id=\"accordion_combinations\" data-action-delete-all=\"";
// line 96
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\RoutingExtension')->getPath("admin_delete_all_attributes", ["idProduct" => 1]);
echo "\" data-weight-unit=\"";
echo twig_escape_filter($this->env, $this->env->getExtension('PrestaShopBundle\Twig\LayoutExtension')->getConfiguration("PS_WEIGHT_UNIT"), "html", null, true);
echo "\" data-action-refresh-images=\"";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\RoutingExtension')->getPath("admin_get_form_images_combination", ["idProduct" => 1]);
echo "\" data-id-product= ";
echo twig_escape_filter($this->env, ($context["id_product"] ?? $this->getContext($context, "id_product")), "html", null, true);
echo " data-ids-product-attribute=\"";
echo twig_escape_filter($this->env, ($context["ids_product_attribute"] ?? $this->getContext($context, "ids_product_attribute")), "html", null, true);
echo "\" data-combinations-url=\"";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\RoutingExtension')->getPath("admin_combination_generate_form", ["combinationIds" => ":numbers"]);
echo "\">
";
// line 97
if (($context["has_combinations"] ?? $this->getContext($context, "has_combinations"))) {
// line 98
echo " <tr class=\"combination loading timeline-wrapper\" id=\"loading-attribute\">
<td class=\"timeline-item\" width=\"1%\">
</td>
<td class=\"timeline-item img\">
<div class=\"animated-background\"></div>
</td>
<td>
<div class=\"animated-background\"></div>
</td>
<td class=\"attribute-price\">
<div class=\"animated-background\"></div>
</td>
<td class=\"attribute-finalprice\">
<div class=\"animated-background\"></div>
</td>
";
// line 113
if ($this->env->getExtension('PrestaShopBundle\Twig\LayoutExtension')->getConfiguration("PS_STOCK_MANAGEMENT")) {
// line 114
echo " <td class=\"attribute-quantity\">
<div class=\"animated-background\"></div>
</td>
";
}
// line 118
echo " <td colspan=\"6\"></td>
</tr>
";
}
// line 121
echo " </tbody>
</table>
</div>
</div>
<div id=\"attributes-list\" class=\"col-md-3\">
";
// line 127
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["attribute_groups"] ?? $this->getContext($context, "attribute_groups")));
$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["attribute_group"]) {
// line 128
echo " <div class=\"attribute-group\">
<a
class=\"attribute-group-name ";
// line 130
if (($this->getAttribute($context["loop"], "index", []) > 3)) {
echo " collapsed ";
}
echo "\"
data-toggle=\"collapse\"
href=\"#attribute-group-";
// line 132
echo twig_escape_filter($this->env, $this->getAttribute($context["attribute_group"], "id", []), "html", null, true);
echo "\"
aria-expanded=\"";
// line 133
if (($this->getAttribute($context["loop"], "index", []) <= 3)) {
echo "true";
} else {
echo "false";
}
echo "\"
>
";
// line 135
echo twig_escape_filter($this->env, $this->getAttribute($context["attribute_group"], "name", []), "html", null, true);
echo "
</a>
<div class=\"collapse ";
// line 137
if (($this->getAttribute($context["loop"], "index", []) <= 3)) {
echo " show ";
}
echo " attributes \" id=\"attribute-group-";
echo twig_escape_filter($this->env, $this->getAttribute($context["attribute_group"], "id", []), "html", null, true);
echo "\">
<div class=\"attributes-overflow ";
// line 138
if ((twig_length_filter($this->env, $this->getAttribute($context["attribute_group"], "attributes", [])) > 7)) {
echo " two-columns ";
}
echo "\">
";
// line 139
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute($context["attribute_group"], "attributes", []));
foreach ($context['_seq'] as $context["_key"] => $context["attribute"]) {
// line 140
echo " <div class=\"attribute\">
<input
class=\"js-attribute-checkbox\"
id=\"attribute-";
// line 143
echo twig_escape_filter($this->env, $this->getAttribute($context["attribute"], "id", []), "html", null, true);
echo "\"
data-label=\"";
// line 144
echo twig_escape_filter($this->env, $this->getAttribute($context["attribute_group"], "name", []), "html", null, true);
echo " : ";
echo twig_escape_filter($this->env, $this->getAttribute($context["attribute"], "name", []), "html", null, true);
echo "\"
data-value=\"";
// line 145
echo twig_escape_filter($this->env, $this->getAttribute($context["attribute"], "id", []), "html", null, true);
echo "\"
data-group-id=\"";
// line 146
echo twig_escape_filter($this->env, $this->getAttribute($context["attribute_group"], "id", []), "html", null, true);
echo "\"
type=\"checkbox\"
>
<label class=\"attribute-label\" for=\"attribute-";
// line 149
echo twig_escape_filter($this->env, $this->getAttribute($context["attribute"], "id", []), "html", null, true);
echo "\">
<span
class=\"pretty-checkbox ";
// line 151
if ((twig_test_empty($this->getAttribute($context["attribute"], "color", [])) && twig_test_empty($this->getAttribute($context["attribute"], "texture", [])))) {
echo " not-color ";
}
echo "\"
";
// line 152
if ( !twig_test_empty($this->getAttribute($context["attribute"], "color", []))) {
echo " style=\"background-color: ";
echo twig_escape_filter($this->env, $this->getAttribute($context["attribute"], "color", []), "html", null, true);
echo "\" ";
}
// line 153
echo " ";
if ( !twig_test_empty($this->getAttribute($context["attribute"], "texture", []))) {
echo " style=\"content: url(";
echo twig_escape_filter($this->env, $this->getAttribute($context["attribute"], "texture", []), "html", null, true);
echo ")\" ";
}
// line 154
echo " >
</span>
";
// line 156
echo twig_escape_filter($this->env, $this->getAttribute($context["attribute"], "name", []), "html", null, true);
echo "
</label>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['attribute'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 160
echo " </div>
</div>
</div>
";
++$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['attribute_group'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 164
echo " </div>
</div>
<div class=\"form-group\">
<div class=\"row\">
<div class=\"col-md-12\">
<h2>";
// line 171
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Availability preferences", [], "Admin.Catalog.Feature"), "html", null, true);
echo "</h2>
</div>
";
// line 173
if ($this->env->getExtension('PrestaShopBundle\Twig\LayoutExtension')->getConfiguration("PS_STOCK_MANAGEMENT")) {
// line 174
echo " <div class=\"col-md-12\">
<label class=\"form-control-label\">";
// line 175
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Behavior when out of stock", [], "Admin.Catalog.Feature"), "html", null, true);
echo "</label>
";
// line 176
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "out_of_stock", []), 'errors');
echo "
";
// line 177
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "out_of_stock", []), 'widget');
echo "
</div>
<div class=\"col-md-4\">
<label class=\"form-control-label\">";
// line 181
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "available_now", []), "vars", []), "label", []), "html", null, true);
echo "</label>
";
// line 182
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "available_now", []), 'errors');
echo "
";
// line 183
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "available_now", []), 'widget');
echo "
</div>
<div class=\"col-md-4 \">
<label class=\"form-control-label\">";
// line 187
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "available_later", []), "vars", []), "label", []), "html", null, true);
echo "</label>
";
// line 188
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "available_later", []), 'errors');
echo "
";
// line 189
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "available_later", []), 'widget');
echo "
</div>
";
} else {
// line 192
echo " <div class=\"col-md-12\">
<h3>";
// line 193
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Stock management is disabled", [], "Admin.Catalog.Feature"), "html", null, true);
echo "</h3>
</div>
";
}
// line 196
echo "
";
// line 197
if ( !($context["has_combinations"] ?? $this->getContext($context, "has_combinations"))) {
// line 198
echo " <div class=\"col-md-4 \">
<label class=\"form-control-label\">";
// line 199
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "available_date", []), "vars", []), "label", []), "html", null, true);
echo "</label>
";
// line 200
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "available_date", []), 'errors');
echo "
";
// line 201
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "available_date", []), 'widget');
echo "
</div>
";
}
// line 204
echo "
</div>
</div>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "@Product/ProductPage/Forms/form_combinations.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 445 => 204, 439 => 201, 435 => 200, 431 => 199, 428 => 198, 426 => 197, 423 => 196, 417 => 193, 414 => 192, 408 => 189, 404 => 188, 400 => 187, 393 => 183, 389 => 182, 385 => 181, 378 => 177, 374 => 176, 370 => 175, 367 => 174, 365 => 173, 360 => 171, 351 => 164, 334 => 160, 324 => 156, 320 => 154, 313 => 153, 307 => 152, 301 => 151, 296 => 149, 290 => 146, 286 => 145, 280 => 144, 276 => 143, 271 => 140, 267 => 139, 261 => 138, 253 => 137, 248 => 135, 239 => 133, 235 => 132, 228 => 130, 224 => 128, 207 => 127, 199 => 121, 194 => 118, 188 => 114, 186 => 113, 169 => 98, 167 => 97, 153 => 96, 146 => 93, 140 => 91, 138 => 90, 134 => 89, 130 => 88, 126 => 87, 115 => 81, 104 => 73, 94 => 67, 70 => 45, 66 => 44, 57 => 38, 48 => 32, 41 => 28, 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=\"combinations\">
<div class=\"col-md-9\">
<h2>
{{ 'Manage your product combinations'|trans({}, 'Admin.Catalog.Feature') }}
<span
class=\"help-box\"
data-toggle=\"popover\"
data-content=\"{{ \"Combinations are the different variations of a product, with attributes like its size, weight or color taking different values. To create a combination, you need to create your product attributes first. Go to Catalog > Attributes & Features for this!\"|trans({}, 'Admin.Catalog.Help') }}\"
></span>
</h2>
<div id=\"attributes-generator\">
<div class=\"alert alert-info\" role=\"alert\">
<p class=\"alert-text\">
{{ 'To add combinations, you first need to create proper attributes and values in [1]Attributes & Features[/1]. <br> When done, you may enter the wanted attributes (like \"size\" or \"color\") and their respective values (\"XS\", \"red\", \"all\", etc.) in the field below; or simply select them from the right column. Then click on \"Generate\": it will automatically create all the combinations for you!'|trans({}, 'Admin.Catalog.Help')|replace({'[1]': '<a class=\"alert-link\" href=' ~ getAdminLink(\"AdminAttributesGroups\") ~ ' target=\"_blank\">', '[/1]': '</a>'})|raw }}
</p>
</div>
<div class=\"row\">
<div class=\"col-xl-10 col-lg-9\">
<fieldset class=\"form-group\">
{{ form_errors(form.attributes) }}
{{ form_widget(form.attributes) }}
</fieldset>
</div>
<div class=\"col-xl-2 col-lg-3\">
<button class=\"btn btn-outline-primary\" id=\"create-combinations\">
Generate
</button>
</div>
</div>
</div>
<div id=\"combinations-bulk-form\">
<div class=\"row\">
<div class=\"col-md-12\">
<p
class=\"form-control bulk-action\"
data-toggle=\"collapse\"
href=\"#bulk-combinations-container\"
aria-expanded=\"false\"
aria-controls=\"bulk-combinations-container\"
>
{# First tag [1] is number of combinations selected. Second tag [2] is the total of combinations available. #}
<strong>{{ 'Bulk actions ([1]/[2] combination(s) selected)'|trans({}, 'Admin.Catalog.Feature')|replace({ '[1]': '<span class=\"js-bulk-combinations\">0</span>', '[2]': '<span id=\"js-bulk-combinations-total\">' ~ combinations_count ~ '</span>' })|raw }}</strong>
<i class=\"material-icons float-right\">keyboard_arrow_down</i>
</p>
</div>
<div class=\"col-md-12 collapse js-collapse\" id=\"bulk-combinations-container\">
<div class=\"border p-3\">
{{ include('@Product/ProductPage/Forms/form_combinations_bulk.html.twig', { 'form': form_combination_bulk }) }}
</div>
</div>
</div>
</div>
<div class=\"combinations-list\">
<table class=\"table\">
<thead class=\"thead-default\" id=\"combinations_thead\" {% if not has_combinations %}style=\"display: none;\"{% endif %}>
<tr>
<th>
<input type=\"checkbox\" id=\"toggle-all-combinations\" >
</th>
<th></th>
<th>{{ 'Combinations'|trans({}, 'Admin.Catalog.Feature') }}</th>
<th>{{ 'Impact on price'|trans({}, 'Admin.Catalog.Feature') }}</th>
<th>{{ 'Final price'|trans({}, 'Admin.Catalog.Feature') }}</th>
{% if 'PS_STOCK_MANAGEMENT'|configuration %}
<th>{{ 'Quantity'|trans({}, 'Admin.Catalog.Feature') }}</th>
{% endif %}
<th colspan=\"3\" class=\"text-sm-right\">{{ 'Default combination'|trans({}, 'Admin.Catalog.Feature') }}</th>
</tr>
</thead>
<tbody class=\"js-combinations-list panel-group accordion\" id=\"accordion_combinations\" data-action-delete-all=\"{{ path('admin_delete_all_attributes', { 'idProduct': 1 }) }}\" data-weight-unit=\"{{ 'PS_WEIGHT_UNIT'|configuration }}\" data-action-refresh-images=\"{{ path('admin_get_form_images_combination', { 'idProduct': 1 }) }}\" data-id-product= {{ id_product }} data-ids-product-attribute=\"{{ ids_product_attribute }}\" data-combinations-url=\"{{ path('admin_combination_generate_form', { 'combinationIds': ':numbers' }) }}\">
{% if has_combinations %}
<tr class=\"combination loading timeline-wrapper\" id=\"loading-attribute\">
<td class=\"timeline-item\" width=\"1%\">
</td>
<td class=\"timeline-item img\">
<div class=\"animated-background\"></div>
</td>
<td>
<div class=\"animated-background\"></div>
</td>
<td class=\"attribute-price\">
<div class=\"animated-background\"></div>
</td>
<td class=\"attribute-finalprice\">
<div class=\"animated-background\"></div>
</td>
{% if 'PS_STOCK_MANAGEMENT'|configuration %}
<td class=\"attribute-quantity\">
<div class=\"animated-background\"></div>
</td>
{% endif %}
<td colspan=\"6\"></td>
</tr>
{% endif %}
</tbody>
</table>
</div>
</div>
<div id=\"attributes-list\" class=\"col-md-3\">
{% for attribute_group in attribute_groups %}
<div class=\"attribute-group\">
<a
class=\"attribute-group-name {% if loop.index > 3 %} collapsed {% endif %}\"
data-toggle=\"collapse\"
href=\"#attribute-group-{{ attribute_group.id }}\"
aria-expanded=\"{% if loop.index <= 3 %}true{% else %}false{% endif %}\"
>
{{ attribute_group.name }}
</a>
<div class=\"collapse {% if loop.index <= 3 %} show {% endif %} attributes \" id=\"attribute-group-{{ attribute_group.id }}\">
<div class=\"attributes-overflow {% if attribute_group.attributes|length > 7 %} two-columns {% endif %}\">
{% for attribute in attribute_group.attributes %}
<div class=\"attribute\">
<input
class=\"js-attribute-checkbox\"
id=\"attribute-{{ attribute.id }}\"
data-label=\"{{ attribute_group.name }} : {{ attribute.name }}\"
data-value=\"{{ attribute.id }}\"
data-group-id=\"{{ attribute_group.id }}\"
type=\"checkbox\"
>
<label class=\"attribute-label\" for=\"attribute-{{ attribute.id }}\">
<span
class=\"pretty-checkbox {% if attribute.color is empty and attribute.texture is empty %} not-color {% endif %}\"
{% if attribute.color is not empty %} style=\"background-color: {{ attribute.color }}\" {% endif %}
{% if attribute.texture is not empty %} style=\"content: url({{ attribute.texture }})\" {% endif %}
>
</span>
{{ attribute.name }}
</label>
</div>
{% endfor %}
</div>
</div>
</div>
{% endfor %}
</div>
</div>
<div class=\"form-group\">
<div class=\"row\">
<div class=\"col-md-12\">
<h2>{{ 'Availability preferences'|trans({}, 'Admin.Catalog.Feature') }}</h2>
</div>
{% if 'PS_STOCK_MANAGEMENT'|configuration %}
<div class=\"col-md-12\">
<label class=\"form-control-label\">{{ 'Behavior when out of stock'|trans({}, 'Admin.Catalog.Feature') }}</label>
{{ form_errors(form.out_of_stock) }}
{{ form_widget(form.out_of_stock) }}
</div>
<div class=\"col-md-4\">
<label class=\"form-control-label\">{{ form.available_now.vars.label }}</label>
{{ form_errors(form.available_now) }}
{{ form_widget(form.available_now) }}
</div>
<div class=\"col-md-4 \">
<label class=\"form-control-label\">{{ form.available_later.vars.label }}</label>
{{ form_errors(form.available_later) }}
{{ form_widget(form.available_later) }}
</div>
{% else %}
<div class=\"col-md-12\">
<h3>{{ 'Stock management is disabled'|trans({}, 'Admin.Catalog.Feature') }}</h3>
</div>
{% endif %}
{% if not has_combinations %}
<div class=\"col-md-4 \">
<label class=\"form-control-label\">{{ form.available_date.vars.label }}</label>
{{ form_errors(form.available_date) }}
{{ form_widget(form.available_date) }}
</div>
{% endif %}
</div>
</div>
", "@Product/ProductPage/Forms/form_combinations.html.twig", "/Volumes/Dev/Sources/Clients/taome/Nouveau_site/www/src/PrestaShopBundle/Resources/views/Admin/Product/ProductPage/Forms/form_combinations.html.twig");
}
}

View File

@@ -0,0 +1,283 @@
<?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/Common/Grid/Blocks/table.html.twig */
class __TwigTemplate_3d88ce25a627ed1f6682832d3c39663d845183ee06efacbbd170c39b33198a26 extends \Twig\Template
{
public function __construct(Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = [
'grid_table_head' => [$this, 'block_grid_table_head'],
'grid_table_body' => [$this, 'block_grid_table_body'],
'grid_table_footer' => [$this, 'block_grid_table_footer'],
];
}
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/Common/Grid/Blocks/table.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/Common/Grid/Blocks/table.html.twig"));
// line 25
echo "
";
// line 26
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock($this->getAttribute(($context["grid"] ?? $this->getContext($context, "grid")), "filter_form", []), 'form_start', ["attr" => ["id" => ($this->getAttribute(($context["grid"] ?? $this->getContext($context, "grid")), "id", []) . "_filter_form"), "class" => "table-responsive"]]);
echo "
<table class=\"grid-table js-grid-table table ";
// line 27
if ($this->env->getExtension('PrestaShopBundle\Twig\Extension\GridExtension')->isOrderingColumn(($context["grid"] ?? $this->getContext($context, "grid")))) {
echo "grid-ordering-column";
}
echo " ";
if ($this->getAttribute($this->getAttribute(($context["grid"] ?? $this->getContext($context, "grid")), "attributes", []), "is_empty_state", [])) {
echo "border-0";
}
echo "\"
id=\"";
// line 28
echo twig_escape_filter($this->env, $this->getAttribute(($context["grid"] ?? $this->getContext($context, "grid")), "id", []), "html", null, true);
echo "_grid_table\"
data-query=\"";
// line 29
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["grid"] ?? $this->getContext($context, "grid")), "data", []), "query", []), "html", null, true);
echo "\"
>
<thead class=\"thead-default\">
";
// line 32
$this->displayBlock('grid_table_head', $context, $blocks);
// line 36
echo " </thead>
<tbody>
";
// line 38
$this->displayBlock('grid_table_body', $context, $blocks);
// line 53
echo " </tbody>
";
// line 54
$this->displayBlock('grid_table_footer', $context, $blocks);
// line 55
echo "</table>
";
// line 56
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock($this->getAttribute(($context["grid"] ?? $this->getContext($context, "grid")), "filter_form", []), 'form_end');
echo "
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 32
public function block_grid_table_head($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", "grid_table_head"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "grid_table_head"));
// line 33
echo " ";
echo twig_include($this->env, $context, "@PrestaShop/Admin/Common/Grid/Blocks/Table/headers_row.html.twig", ["grid" => ($context["grid"] ?? $this->getContext($context, "grid"))]);
echo "
";
// line 34
echo twig_include($this->env, $context, "@PrestaShop/Admin/Common/Grid/Blocks/Table/filters_row.html.twig", ["grid" => ($context["grid"] ?? $this->getContext($context, "grid"))]);
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 38
public function block_grid_table_body($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", "grid_table_body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "grid_table_body"));
// line 39
echo " ";
if ( !twig_test_empty($this->getAttribute($this->getAttribute(($context["grid"] ?? $this->getContext($context, "grid")), "data", []), "records", []))) {
// line 40
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute(($context["grid"] ?? $this->getContext($context, "grid")), "data", []), "records", []));
foreach ($context['_seq'] as $context["_key"] => $context["record"]) {
// line 41
echo " <tr>
";
// line 42
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["grid"] ?? $this->getContext($context, "grid")), "columns", []));
foreach ($context['_seq'] as $context["_key"] => $context["column"]) {
// line 43
echo " <td class=\"";
echo twig_escape_filter($this->env, $this->getAttribute($context["column"], "type", []), "html", null, true);
echo "-type\">
";
// line 44
echo $this->env->getExtension('PrestaShopBundle\Twig\Extension\GridExtension')->renderColumnContent($context["record"], $context["column"], ($context["grid"] ?? $this->getContext($context, "grid")));
echo "
</td>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['column'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 47
echo " </tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['record'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 49
echo " ";
} else {
// line 50
echo " ";
echo twig_include($this->env, $context, "@PrestaShop/Admin/Common/Grid/Blocks/Table/empty_row.html.twig", ["grid" => ($context["grid"] ?? $this->getContext($context, "grid"))]);
echo "
";
}
// line 52
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 54
public function block_grid_table_footer($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", "grid_table_footer"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "grid_table_footer"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@PrestaShop/Admin/Common/Grid/Blocks/table.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 184 => 54, 174 => 52, 168 => 50, 165 => 49, 158 => 47, 149 => 44, 144 => 43, 140 => 42, 137 => 41, 132 => 40, 129 => 39, 120 => 38, 108 => 34, 103 => 33, 94 => 32, 82 => 56, 79 => 55, 77 => 54, 74 => 53, 72 => 38, 68 => 36, 66 => 32, 60 => 29, 56 => 28, 46 => 27, 42 => 26, 39 => 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
*#}
{{ form_start(grid.filter_form, {'attr': {'id': grid.id ~ '_filter_form', 'class': 'table-responsive'}}) }}
<table class=\"grid-table js-grid-table table {% if is_ordering_column(grid) %}grid-ordering-column{% endif %} {% if grid.attributes.is_empty_state %}border-0{% endif %}\"
id=\"{{ grid.id }}_grid_table\"
data-query=\"{{ grid.data.query }}\"
>
<thead class=\"thead-default\">
{% block grid_table_head %}
{{ include('@PrestaShop/Admin/Common/Grid/Blocks/Table/headers_row.html.twig', {'grid': grid}) }}
{{ include('@PrestaShop/Admin/Common/Grid/Blocks/Table/filters_row.html.twig', {'grid': grid}) }}
{% endblock %}
</thead>
<tbody>
{% block grid_table_body %}
{% if grid.data.records is not empty %}
{% for record in grid.data.records %}
<tr>
{% for column in grid.columns %}
<td class=\"{{ column.type }}-type\">
{{ column_content(record, column, grid) }}
</td>
{% endfor %}
</tr>
{% endfor %}
{% else %}
{{ include('@PrestaShop/Admin/Common/Grid/Blocks/Table/empty_row.html.twig', {'grid': grid}) }}
{% endif %}
{% endblock %}
</tbody>
{% block grid_table_footer %}{% endblock %}
</table>
{{ form_end(grid.filter_form) }}
", "@PrestaShop/Admin/Common/Grid/Blocks/table.html.twig", "/Volumes/Dev/Sources/Clients/taome/Nouveau_site/www/src/PrestaShopBundle/Resources/views/Admin/Common/Grid/Blocks/table.html.twig");
}
}