On crée un template enfant
This commit is contained in:
@@ -1,349 +0,0 @@
|
||||
<?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_shipping.html.twig */
|
||||
class __TwigTemplate_4547321ad335219e060dd052ac8637f761d68e7f832f695966753ea6a9d34a2c 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
|
||||
list($context["dimension_unit"], $context["weight_unit"]) = [$this->env->getExtension('PrestaShopBundle\Twig\LayoutExtension')->getConfiguration("PS_DIMENSION_UNIT"), $this->env->getExtension('PrestaShopBundle\Twig\LayoutExtension')->getConfiguration("PS_WEIGHT_UNIT")];
|
||||
// line 26
|
||||
echo "
|
||||
<div class=\"col-md-12 pb-1\">
|
||||
<h2>";
|
||||
// line 28
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Package dimension", [], "Admin.Catalog.Feature"), "html", null, true);
|
||||
echo "</h2>
|
||||
<p class=\"subtitle\">";
|
||||
// line 29
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Adjust your shipping costs by filling in the product dimensions.", [], "Admin.Catalog.Feature"), "html", null, true);
|
||||
echo "</p>
|
||||
</div>
|
||||
|
||||
<div class=\"col-xl-2 col-lg-3\">
|
||||
<div class=\"form-group\">
|
||||
<label class=\"form-control-label\">";
|
||||
// line 34
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? null), "width", []), "vars", []), "label", []), "html", null, true);
|
||||
echo "</label>
|
||||
";
|
||||
// line 35
|
||||
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "width", []), 'errors');
|
||||
echo "
|
||||
<div class=\"input-group\">
|
||||
";
|
||||
// line 37
|
||||
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "width", []), 'widget');
|
||||
echo "
|
||||
<div class=\"input-group-append\">
|
||||
<span class=\"input-group-text\">";
|
||||
// line 39
|
||||
echo twig_escape_filter($this->env, ($context["dimension_unit"] ?? null), "html", null, true);
|
||||
echo "</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class=\"col-xl-2 col-lg-3\">
|
||||
<div class=\"form-group\">
|
||||
<label class=\"form-control-label\">";
|
||||
// line 46
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? null), "height", []), "vars", []), "label", []), "html", null, true);
|
||||
echo "</label>
|
||||
";
|
||||
// line 47
|
||||
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "height", []), 'errors');
|
||||
echo "
|
||||
<div class=\"input-group\">
|
||||
";
|
||||
// line 49
|
||||
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "height", []), 'widget');
|
||||
echo "
|
||||
<div class=\"input-group-append\">
|
||||
<span class=\"input-group-text\">";
|
||||
// line 51
|
||||
echo twig_escape_filter($this->env, ($context["dimension_unit"] ?? null), "html", null, true);
|
||||
echo "</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class=\"col-xl-2 col-lg-3\">
|
||||
<div class=\"form-group\">
|
||||
<label class=\"form-control-label\">";
|
||||
// line 58
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? null), "depth", []), "vars", []), "label", []), "html", null, true);
|
||||
echo "</label>
|
||||
";
|
||||
// line 59
|
||||
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "depth", []), 'errors');
|
||||
echo "
|
||||
<div class=\"input-group\">
|
||||
";
|
||||
// line 61
|
||||
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "depth", []), 'widget');
|
||||
echo "
|
||||
<div class=\"input-group-append\">
|
||||
<span class=\"input-group-text\">";
|
||||
// line 63
|
||||
echo twig_escape_filter($this->env, ($context["dimension_unit"] ?? null), "html", null, true);
|
||||
echo "</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class=\"col-xl-2 col-lg-3\">
|
||||
<div class=\"form-group\">
|
||||
<label class=\"form-control-label\">";
|
||||
// line 70
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? null), "weight", []), "vars", []), "label", []), "html", null, true);
|
||||
echo "</label>
|
||||
";
|
||||
// line 71
|
||||
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "weight", []), 'errors');
|
||||
echo "
|
||||
<div class=\"input-group\">
|
||||
";
|
||||
// line 73
|
||||
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "weight", []), 'widget');
|
||||
echo "
|
||||
<div class=\"input-group-append\">
|
||||
<span class=\"input-group-text\">";
|
||||
// line 75
|
||||
echo twig_escape_filter($this->env, ($context["weight_unit"] ?? null), "html", null, true);
|
||||
echo "</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class=\"col-md-12\">
|
||||
<div class=\"form-group\">
|
||||
<h2>
|
||||
";
|
||||
// line 84
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? null), "additional_delivery_times", []), "vars", []), "label", []), "html", null, true);
|
||||
echo "
|
||||
<span class=\"help-box\" data-toggle=\"popover\"
|
||||
data-content=\"";
|
||||
// line 86
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Display delivery time for a product is advised for merchants selling in Europe to comply with the local laws.", [], "Admin.Catalog.Help"), "html", null, true);
|
||||
echo "\" ></span>
|
||||
</h2>
|
||||
<div class=\"row\">
|
||||
<div class=\"col-md-12\" ";
|
||||
// line 89
|
||||
if ( $this->hasBlock("widget_container_attributes", $context, $blocks)) {
|
||||
echo " ";
|
||||
$this->displayBlock("widget_container_attributes", $context, $blocks);
|
||||
echo " ";
|
||||
}
|
||||
echo ">
|
||||
";
|
||||
// line 90
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["form"] ?? null), "additional_delivery_times", []));
|
||||
foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
|
||||
// line 91
|
||||
echo " ";
|
||||
if (($this->getAttribute($this->getAttribute($context["child"], "vars", []), "value", []) == 1)) {
|
||||
// line 92
|
||||
echo " <div class=\"widget-radio-inline\">
|
||||
";
|
||||
// line 93
|
||||
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["child"], 'widget');
|
||||
echo "
|
||||
<a href=\"";
|
||||
// line 94
|
||||
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\RoutingExtension')->getPath("admin_product_preferences");
|
||||
echo "\" class=\"btn sensitive px-0\" target=_blank><i class=\"material-icons\">open_in_new</i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("edit", [], "Admin.Catalog.Help"), "html", null, true);
|
||||
echo "</a>
|
||||
</div>
|
||||
";
|
||||
} else {
|
||||
// line 97
|
||||
echo " ";
|
||||
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["child"], 'widget');
|
||||
echo "
|
||||
";
|
||||
}
|
||||
// line 99
|
||||
echo " ";
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 100
|
||||
echo " </div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class=\"col-xl-6 col-lg-6\">
|
||||
<div class=\"form-group\">
|
||||
<label class=\"form-control-label\">";
|
||||
// line 107
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? null), "delivery_in_stock", []), "vars", []), "label", []), "html", null, true);
|
||||
echo "</label>
|
||||
";
|
||||
// line 108
|
||||
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "delivery_in_stock", []), 'errors');
|
||||
echo "
|
||||
";
|
||||
// line 109
|
||||
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "delivery_in_stock", []), 'widget');
|
||||
echo "
|
||||
<p class=\"subtitle italic\">";
|
||||
// line 110
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Leave empty to disable.", [], "Admin.Catalog.Feature"), "html", null, true);
|
||||
echo "</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class=\"col-xl-6 col-lg-6\">
|
||||
<div class=\"form-group\">
|
||||
<label class=\"form-control-label\">";
|
||||
// line 115
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? null), "delivery_out_stock", []), "vars", []), "label", []), "html", null, true);
|
||||
echo "</label>
|
||||
";
|
||||
// line 116
|
||||
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "delivery_out_stock", []), 'errors');
|
||||
echo "
|
||||
";
|
||||
// line 117
|
||||
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "delivery_out_stock", []), 'widget');
|
||||
echo "
|
||||
<p class=\"subtitle italic\">";
|
||||
// line 118
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Leave empty to disable.", [], "Admin.Catalog.Feature"), "html", null, true);
|
||||
echo "</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class=\"col-md-12\">
|
||||
<div class=\"form-group\">
|
||||
<h2>
|
||||
";
|
||||
// line 125
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? null), "additional_shipping_cost", []), "vars", []), "label", []), "html", null, true);
|
||||
echo "
|
||||
<span class=\"help-box\" data-toggle=\"popover\"
|
||||
data-content=\"";
|
||||
// line 127
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("If a carrier has a tax, it will be added to the shipping fees. Does not apply to free shipping.", [], "Admin.Catalog.Help"), "html", null, true);
|
||||
echo "\" ></span>
|
||||
</h2>
|
||||
<label class=\"form-control-label\">";
|
||||
// line 129
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Does this product incur additional shipping costs?", [], "Admin.Catalog.Feature"), "html", null, true);
|
||||
echo "</label>
|
||||
<div class=\"row\">
|
||||
<div class=\"col-md-2\">
|
||||
";
|
||||
// line 132
|
||||
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "additional_shipping_cost", []), 'widget');
|
||||
echo "
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class=\"col-md-12\">
|
||||
<div class=\"form-group\">
|
||||
<h2>";
|
||||
// line 140
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? null), "selectedCarriers", []), "vars", []), "label", []), "html", null, true);
|
||||
echo "</h2>
|
||||
";
|
||||
// line 141
|
||||
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "selectedCarriers", []), 'widget');
|
||||
echo "
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class=\"col-md-12\">
|
||||
<div class=\"alert alert-warning\" role=\"alert\">
|
||||
<p class=\"alert-text\">
|
||||
";
|
||||
// line 148
|
||||
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("If no carrier is selected then all the carriers will be available for customers orders.", [], "Admin.Catalog.Notification");
|
||||
echo "
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class=\"col-md-12\">
|
||||
<div id=\"warehouse_combination_collection\" class=\"col-md-12 form-group\" data-url=\"";
|
||||
// line 154
|
||||
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\RoutingExtension')->getPath("admin_warehouse_refresh_product_warehouse_combination_form");
|
||||
echo "\">
|
||||
";
|
||||
// line 155
|
||||
if (((($context["asm_globally_activated"] ?? null) && ($context["isNotVirtual"] ?? null)) && ($context["isChecked"] ?? null))) {
|
||||
// line 156
|
||||
echo " ";
|
||||
echo twig_include($this->env, $context, "@PrestaShop/Admin:Product/ProductPage/Forms/form_warehouse_combination.html.twig", ["warehouses" => ($context["warehouses"] ?? null), "form" => ($context["form"] ?? null)]);
|
||||
echo "
|
||||
";
|
||||
}
|
||||
// line 158
|
||||
echo " </div>
|
||||
</div>
|
||||
|
||||
";
|
||||
// line 161
|
||||
echo $this->env->getExtension('PrestaShopBundle\Twig\HookExtension')->renderHook("displayAdminProductsShippingStepBottom", ["id_product" => ($context["id_product"] ?? null)]);
|
||||
echo "
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "@Product/ProductPage/Forms/form_shipping.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 317 => 161, 312 => 158, 306 => 156, 304 => 155, 300 => 154, 291 => 148, 281 => 141, 277 => 140, 266 => 132, 260 => 129, 255 => 127, 250 => 125, 240 => 118, 236 => 117, 232 => 116, 228 => 115, 220 => 110, 216 => 109, 212 => 108, 208 => 107, 199 => 100, 193 => 99, 187 => 97, 179 => 94, 175 => 93, 172 => 92, 169 => 91, 165 => 90, 157 => 89, 151 => 86, 146 => 84, 134 => 75, 129 => 73, 124 => 71, 120 => 70, 110 => 63, 105 => 61, 100 => 59, 96 => 58, 86 => 51, 81 => 49, 76 => 47, 72 => 46, 62 => 39, 57 => 37, 52 => 35, 48 => 34, 40 => 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_shipping.html.twig", "/Volumes/Dev/Sources/Clients/taome/Nouveau_site/www/src/PrestaShopBundle/Resources/views/Admin/Product/ProductPage/Forms/form_shipping.html.twig");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user