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,259 @@
<?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_502eeec0b1b43a66d9faed5f65c27e2e379a200d6f6aa4602110cc66da099924 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_supplier_combination.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_supplier_combination.html.twig"));
// line 25
if ((twig_length_filter($this->env, ($context["suppliers"] ?? $this->getContext($context, "suppliers"))) > 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"] ?? $this->getContext($context, "suppliers")));
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"] ?? $this->getContext($context, "form")), ($context["collectionName"] ?? $this->getContext($context, "collectionName")), [], "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"] ?? $this->getContext($context, "form")), ($context["collectionName"] ?? $this->getContext($context, "collectionName")), [], "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"] ?? $this->getContext($context, "form")), ($context["collectionName"] ?? $this->getContext($context, "collectionName")), [], "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;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "@Product/ProductPage/Forms/form_supplier_combination.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 142 => 67, 132 => 63, 128 => 62, 124 => 61, 119 => 59, 115 => 58, 111 => 57, 108 => 56, 104 => 55, 97 => 51, 93 => 50, 89 => 49, 85 => 48, 78 => 44, 73 => 42, 69 => 41, 66 => 40, 63 => 39, 59 => 38, 56 => 37, 47 => 31, 38 => 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
*#}
{% if suppliers|length > 0 %}
<h4>{{ 'Supplier reference(s)'|trans({}, 'Admin.Catalog.Feature') }}</h4>
<div class=\"row\">
<div class=\"col-md-12\">
<div class=\"alert alert-info\" role=\"alert\">
<p class=\"alert-text\">
{{ 'You can specify product reference(s) for each associated supplier. Click \"Save\" after changing selected suppliers to display the associated product references.'|trans({}, 'Admin.Catalog.Help')|raw }}
</p>
</div>
</div>
</div>
{% endif %}
{% for supplierId in suppliers %}
{% set collectionName = 'supplier_combination_' ~ supplierId %}
<div class=\"panel panel-default\">
<div class=\"panel-heading\"><strong>{{ form[collectionName].vars.label }}</strong></div>
<div class=\"panel-body\" id=\"supplier_combination_{{ supplierId }}\">
<div>
{{ form_errors(form[collectionName]) }}
<table class=\"table\">
<thead class=\"thead-default\">
<tr >
<th width=\"30%\">{{ 'Product name'|trans({}, 'Admin.Catalog.Feature') }}</th>
<th width=\"30%\">{{ 'Supplier reference'|trans({}, 'Admin.Catalog.Feature') }}</th>
<th width=\"20%\">{{ 'Price (tax excl.)'|trans({}, 'Admin.Catalog.Feature') }}</th>
<th width=\"20%\">{{ 'Currency'|trans({}, 'Admin.Global') }}</th>
</tr>
</thead>
<tbody>
{% for supplier_combination in form[collectionName] %}
<tr>
<td>{{ supplier_combination.vars.value.label }}</td>
<td>{{ form_widget(supplier_combination.supplier_reference) }}</td>
<td>{{ form_widget(supplier_combination.product_price) }}</td>
<td>
{{ form_widget(supplier_combination.product_price_currency) }}
{{ form_widget(supplier_combination.id_product_attribute) }}
{{ form_widget(supplier_combination.supplier_id) }}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
{% endfor %}
", "@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");
}
}