var/cache/dev/twig/59/590dcc1acb36e02fa7ce36a313166f64.php line 176
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
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;
use Twig\TemplateWrapper;
/* devis/devis.form.html.twig */
class __TwigTemplate_1c0e12746a19f0c6fccaf0e00f396627 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'stylesheets' => [$this, 'block_stylesheets'],
'javascript' => [$this, 'block_javascript'],
'_app_data' => [$this, 'block__app_data'],
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "base.html.twig";
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "devis/devis.form.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "devis/devis.form.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "devis/devis.form.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_stylesheets(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 4
yield " ";
yield from $this->yieldParentBlock("stylesheets", $context, $blocks);
yield "
<link rel=\"stylesheet\" href=\"";
// line 5
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/devis.min.css"), "html", null, true);
yield "\" />
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 8
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_javascript(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
// line 9
yield " ";
yield from $this->yieldParentBlock("javascript", $context, $blocks);
yield "
<script src=\"";
// line 10
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/devis/devis.js"), "html", null, true);
yield "\"></script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 13
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block__app_data(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "_app_data"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "_app_data"));
// line 14
yield " app_data.path.devisUpdate = \"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Services\Base64Encode']->base64_encode($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("devis_update")), "html", null, true);
yield "\";
app_data.path.devisFileRemove = \"";
// line 15
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Services\Base64Encode']->base64_encode($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("devis_remove_file")), "html", null, true);
yield "\";
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 31
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_content(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 32
yield " <h1>Formulaire de devis</h1>
";
// line 34
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["formData"]) || array_key_exists("formData", $context) ? $context["formData"] : (function () { throw new RuntimeError('Variable "formData" does not exist.', 34, $this->source); })()), 'form_start', ["attr" => ["novalidate" => true, "class" => "full-height", "autocomplete" => "off"]]);
yield "
";
// line 35
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formData"]) || array_key_exists("formData", $context) ? $context["formData"] : (function () { throw new RuntimeError('Variable "formData" does not exist.', 35, $this->source); })()), "_token", [], "any", false, false, false, 35), 'row');
yield "
";
// line 36
if ((isset($context["products"]) || array_key_exists("products", $context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.', 36, $this->source); })())) {
// line 37
yield " <div class=\"row mb-2\">
<div class=\"col-9\">
<div class=\"row mb-3\">
<div class=\"col-12 col-lg-4\">
";
// line 41
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formData"]) || array_key_exists("formData", $context) ? $context["formData"] : (function () { throw new RuntimeError('Variable "formData" does not exist.', 41, $this->source); })()), "societe", [], "any", false, false, false, 41), 'label');
yield "
";
// line 42
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formData"]) || array_key_exists("formData", $context) ? $context["formData"] : (function () { throw new RuntimeError('Variable "formData" does not exist.', 42, $this->source); })()), "societe", [], "any", false, false, false, 42), 'widget', ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 42, $this->source); })()), "error", [], "any", false, false, false, 42), "societe", [], "any", false, false, false, 42)) ? (["attr" => ["class" => "invalid is-invalid"]]) : (["attr" => ["class" => ""]])));
yield "
<div class=\"invalid-feedback\">
La société n'est pas complété
</div>
</div>
<div class=\"col-12 col-lg-4\">
";
// line 48
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formData"]) || array_key_exists("formData", $context) ? $context["formData"] : (function () { throw new RuntimeError('Variable "formData" does not exist.', 48, $this->source); })()), "email", [], "any", false, false, false, 48), 'label');
yield "
";
// line 49
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formData"]) || array_key_exists("formData", $context) ? $context["formData"] : (function () { throw new RuntimeError('Variable "formData" does not exist.', 49, $this->source); })()), "email", [], "any", false, false, false, 49), 'widget', ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 49, $this->source); })()), "error", [], "any", false, false, false, 49), "email", [], "any", false, false, false, 49)) ? (["attr" => ["class" => "invalid is-invalid"]]) : (["attr" => ["class" => ""]])));
yield "
<div class=\"invalid-feedback\">
L'email n'est pas complété
</div>
</div>
<div class=\"col-12 col-lg-4\">
";
// line 55
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formData"]) || array_key_exists("formData", $context) ? $context["formData"] : (function () { throw new RuntimeError('Variable "formData" does not exist.', 55, $this->source); })()), "pays", [], "any", false, false, false, 55), 'label');
yield "
";
// line 56
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formData"]) || array_key_exists("formData", $context) ? $context["formData"] : (function () { throw new RuntimeError('Variable "formData" does not exist.', 56, $this->source); })()), "pays", [], "any", false, false, false, 56), 'widget');
yield "
</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-12 col-lg-4\">
";
// line 61
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formData"]) || array_key_exists("formData", $context) ? $context["formData"] : (function () { throw new RuntimeError('Variable "formData" does not exist.', 61, $this->source); })()), "nom", [], "any", false, false, false, 61), 'label');
yield "
";
// line 62
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formData"]) || array_key_exists("formData", $context) ? $context["formData"] : (function () { throw new RuntimeError('Variable "formData" does not exist.', 62, $this->source); })()), "nom", [], "any", false, false, false, 62), 'widget', ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 62, $this->source); })()), "error", [], "any", false, false, false, 62), "nom", [], "any", false, false, false, 62)) ? (["attr" => ["class" => "invalid is-invalid"]]) : (["attr" => ["class" => ""]])));
yield "
<div class=\"invalid-feedback\">
Le nom n'est pas complété
</div>
</div>
<div class=\"col-12 col-lg-4\">
";
// line 68
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formData"]) || array_key_exists("formData", $context) ? $context["formData"] : (function () { throw new RuntimeError('Variable "formData" does not exist.', 68, $this->source); })()), "telephone", [], "any", false, false, false, 68), 'label');
yield "
";
// line 69
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formData"]) || array_key_exists("formData", $context) ? $context["formData"] : (function () { throw new RuntimeError('Variable "formData" does not exist.', 69, $this->source); })()), "telephone", [], "any", false, false, false, 69), 'widget');
yield "
</div>
<div class=\"col-12 col-lg-4 form-group\">
";
// line 72
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formData"]) || array_key_exists("formData", $context) ? $context["formData"] : (function () { throw new RuntimeError('Variable "formData" does not exist.', 72, $this->source); })()), "langue", [], "any", false, false, false, 72), 'label');
yield "
";
// line 73
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formData"]) || array_key_exists("formData", $context) ? $context["formData"] : (function () { throw new RuntimeError('Variable "formData" does not exist.', 73, $this->source); })()), "langue", [], "any", false, false, false, 73), 'widget', ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 73, $this->source); })()), "error", [], "any", false, false, false, 73), "langue", [], "any", false, false, false, 73)) ? (["attr" => ["class" => "form-control invalid is-invalid"]]) : (["attr" => ["class" => "form-control"]])));
yield "
<div class=\"invalid-feedback\">
La langue n'est pas complété
</div>
</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-12 col-lg-4\">
";
// line 81
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formData"]) || array_key_exists("formData", $context) ? $context["formData"] : (function () { throw new RuntimeError('Variable "formData" does not exist.', 81, $this->source); })()), "prenom", [], "any", false, false, false, 81), 'label');
yield "
";
// line 82
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formData"]) || array_key_exists("formData", $context) ? $context["formData"] : (function () { throw new RuntimeError('Variable "formData" does not exist.', 82, $this->source); })()), "prenom", [], "any", false, false, false, 82), 'widget');
yield "
</div>
<div class=\"col-12 col-lg-4\">
";
// line 85
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formData"]) || array_key_exists("formData", $context) ? $context["formData"] : (function () { throw new RuntimeError('Variable "formData" does not exist.', 85, $this->source); })()), "siteInternet", [], "any", false, false, false, 85), 'label');
yield "
";
// line 86
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formData"]) || array_key_exists("formData", $context) ? $context["formData"] : (function () { throw new RuntimeError('Variable "formData" does not exist.', 86, $this->source); })()), "siteInternet", [], "any", false, false, false, 86), 'widget');
yield "
</div>
</div>
<div class=\"row\">
<div class=\"col-12 col-lg-4\">
";
// line 91
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formData"]) || array_key_exists("formData", $context) ? $context["formData"] : (function () { throw new RuntimeError('Variable "formData" does not exist.', 91, $this->source); })()), "fonction", [], "any", false, false, false, 91), 'label');
yield "
";
// line 92
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formData"]) || array_key_exists("formData", $context) ? $context["formData"] : (function () { throw new RuntimeError('Variable "formData" does not exist.', 92, $this->source); })()), "fonction", [], "any", false, false, false, 92), 'widget');
yield "
</div>
</div>
<div class=\"row\">
<div class=\"col-12 cards-wrapper\">
<div class=\"visa-wrapper\">
<img src=\"/ps/img/visa.gif\" alt=\"\">
</div>
<div class=\"mastercard-wrapper\">
<img src=\"/ps/img/mastercard.png\" alt=\"\">
</div>
</div>
</div>
<div class=\"col-12\">
<h4>";
// line 106
yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("productadded", [], "form-devis");
yield "</h4>
<table id=\"articleDevis\" class=\"table\">
<tbody>
";
// line 109
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["products"]) || array_key_exists("products", $context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.', 109, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
// line 110
yield " <tr data-id=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "id_devis", [], "any", false, false, false, 110), "html", null, true);
yield "\">
<td>
<a class=\"cart-images\" href=\"";
// line 112
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "lien_produit", [], "any", false, false, false, 112), "html", null, true);
yield "\"
title=\"";
// line 113
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "titre", [], "any", false, false, false, 113), "html", null, true);
yield "\">
<img src=\"";
// line 114
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "img", [], "any", false, false, false, 114), "html", null, true);
yield "\" alt=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "titre", [], "any", false, false, false, 114), "html", null, true);
yield "\">
</a>
<br>
</td>
<td>
<a class=\"quotation_block_product_name\" href=\"";
// line 119
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "lien_produit", [], "any", false, false, false, 119), "html", null, true);
yield "\"
title=\"";
// line 120
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "titre", [], "any", false, false, false, 120), "html", null, true);
yield "\">
";
// line 121
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "titre", [], "any", false, false, false, 121), "html", null, true);
yield "
</a>
<br>
<span class=\"quotation_desc\">";
// line 124
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "description", [], "any", false, false, false, 124), "html", null, true);
yield "</span>
<span class=\"quotation_ref\" style=\"display: none;\">";
// line 125
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "reference", [], "any", false, false, false, 125), "html", null, true);
yield "</span>
<br>
<div style=\"line-height: 46px;\">
";
// line 128
if (CoreExtension::getAttribute($this->env, $this->source, $context["product"], "files", [], "any", true, true, false, 128)) {
// line 129
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "files", [], "any", false, false, false, 129));
foreach ($context['_seq'] as $context["_key"] => $context["file"]) {
// line 130
yield " <div>
<div class=\"ImageFile\" style='background-image: url(\"";
// line 131
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 131, $this->source); })()), "request", [], "any", false, false, false, 131), "schemeAndHttpHost", [], "any", false, false, false, 131), "html", null, true);
yield "/upload/";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["file"], "filename", [], "any", false, false, false, 131), "html", null, true);
yield "\")'></div>
<a href=\"";
// line 132
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 132, $this->source); })()), "request", [], "any", false, false, false, 132), "schemeAndHttpHost", [], "any", false, false, false, 132), "html", null, true);
yield "/upload/";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["file"], "filename", [], "any", false, false, false, 132), "html", null, true);
yield "\" target=\"_blank\">moins1mo.jpg</a>
<i class=\"fa fa-times-circle suppr\" id=\"";
// line 133
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["file"], "id", [], "any", false, false, false, 133), "html", null, true);
yield "\" data-id=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["file"], "id", [], "any", false, false, false, 133), "html", null, true);
yield "\" title=\"Supprimer le fichier\"></i>
<br>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['file'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 137
yield " <div class=\"files\" data-files=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "ref", [], "any", false, false, false, 137), "html", null, true);
yield "\"></div>
";
}
// line 139
yield " </div>
</td>
<td>
<input class=\"ChangeQuantity\" id=\"Qty1\" data-theshop=\"1\" data-id-quot=\"";
// line 142
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "id_devis", [], "any", false, false, false, 142), "html", null, true);
yield "\" data-idproduct=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "id_product", [], "any", false, false, false, 142), "html", null, true);
yield "\" data-idcombination=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "id_product_attribute", [], "any", false, false, false, 142), "html", null, true);
yield "\" type=\"text\" min=\"1\" style=\"width:40px; margin-right: 5px;\" autocomplete=\"nope\" value=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "qty", [], "any", false, false, false, 142), "html", null, true);
yield "\">
</td>
<td>
<a class=\"ajax_quotation_block_remove_link_lines\" rel=\"nofollow\" data-id-quot=\"";
// line 145
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "id_devis", [], "any", false, false, false, 145), "html", null, true);
yield "\" title=\"Supprimer l'article\">-</a>
</td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['product'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 149
yield " </tbody>
</table>
</div>
</div>
<div class=\"col-3 text-center\">
<i class=\"fa fa-calculator\" id=\"Calculator\"></i>
</div>
</div>
<div class=\"row\">
<div class=\"col-12 text-center\">
<button id=\"sendQuotationByEmail\" type=\"submit\" class=\"btn btn-lg btn-primary text-white rounded\">
";
// line 160
yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("envoyerdevis", [], "form-devis");
yield "
</button>
</div>
</div>
";
// line 164
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["formData"]) || array_key_exists("formData", $context) ? $context["formData"] : (function () { throw new RuntimeError('Variable "formData" does not exist.', 164, $this->source); })()), 'form_end', ["render_rest" => false]);
yield "
";
} else {
// line 166
yield " <div class=\"alert alert-danger\" role=\"alert\"> <i class=\"fas fa-exclamation-circle\"></i> <span class=\"sr-only\">Erreur : </span> Vous devez ajouter au moins un produit à votre devis</div>
";
}
// line 168
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "devis/devis.form.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 465 => 168, 461 => 166, 456 => 164, 449 => 160, 436 => 149, 426 => 145, 414 => 142, 409 => 139, 403 => 137, 391 => 133, 385 => 132, 379 => 131, 376 => 130, 371 => 129, 369 => 128, 363 => 125, 359 => 124, 353 => 121, 349 => 120, 345 => 119, 335 => 114, 331 => 113, 327 => 112, 321 => 110, 317 => 109, 311 => 106, 294 => 92, 290 => 91, 282 => 86, 278 => 85, 272 => 82, 268 => 81, 257 => 73, 253 => 72, 247 => 69, 243 => 68, 234 => 62, 230 => 61, 222 => 56, 218 => 55, 209 => 49, 205 => 48, 196 => 42, 192 => 41, 186 => 37, 184 => 36, 180 => 35, 176 => 34, 172 => 32, 159 => 31, 146 => 15, 141 => 14, 128 => 13, 115 => 10, 110 => 9, 97 => 8, 84 => 5, 79 => 4, 66 => 3, 43 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends 'base.html.twig' %}
{% block stylesheets %}
{{parent()}}
<link rel=\"stylesheet\" href=\"{{ asset('assets/css/devis.min.css') }}\" />
{% endblock %}
{% block javascript %}
{{parent()}}
<script src=\"{{ asset('assets/js/devis/devis.js') }}\"></script>
{% endblock %}
{% block _app_data %}
app_data.path.devisUpdate = \"{{ path('devis_update')|base64_encode }}\";
app_data.path.devisFileRemove = \"{{ path('devis_remove_file')|base64_encode }}\";
{% endblock %}
{# {% block title %}
{% for content in contents %}
{{ content.meta_title|raw }}
{% endfor %}
{% endblock %} #}
{# {% block description %}
{% for content in contents %}
{{ content.meta_description|raw }}
{% endfor %}
{% endblock %} #}
{% block content %}
<h1>Formulaire de devis</h1>
{{ form_start(formData, { 'attr': {'novalidate': true, 'class': 'full-height', 'autocomplete': 'off' }}) }}
{{ form_row(formData._token) }}
{% if products %}
<div class=\"row mb-2\">
<div class=\"col-9\">
<div class=\"row mb-3\">
<div class=\"col-12 col-lg-4\">
{{ form_label(formData.societe) }}
{{ form_widget(formData.societe, (data.error.societe ? {'attr': {'class': 'invalid is-invalid'}} : {'attr': {'class': ''}})) }}
<div class=\"invalid-feedback\">
La société n'est pas complété
</div>
</div>
<div class=\"col-12 col-lg-4\">
{{ form_label(formData.email) }}
{{ form_widget(formData.email, (data.error.email ? {'attr': {'class': 'invalid is-invalid'}} : {'attr': {'class': ''}})) }}
<div class=\"invalid-feedback\">
L'email n'est pas complété
</div>
</div>
<div class=\"col-12 col-lg-4\">
{{ form_label(formData.pays) }}
{{ form_widget(formData.pays) }}
</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-12 col-lg-4\">
{{ form_label(formData.nom) }}
{{ form_widget(formData.nom, (data.error.nom ? {'attr': {'class': 'invalid is-invalid'}} : {'attr': {'class': ''}})) }}
<div class=\"invalid-feedback\">
Le nom n'est pas complété
</div>
</div>
<div class=\"col-12 col-lg-4\">
{{ form_label(formData.telephone) }}
{{ form_widget(formData.telephone) }}
</div>
<div class=\"col-12 col-lg-4 form-group\">
{{ form_label(formData.langue) }}
{{ form_widget(formData.langue, (data.error.langue ? {'attr': {'class': 'form-control invalid is-invalid'}} : {'attr': {'class': 'form-control'}})) }}
<div class=\"invalid-feedback\">
La langue n'est pas complété
</div>
</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-12 col-lg-4\">
{{ form_label(formData.prenom) }}
{{ form_widget(formData.prenom) }}
</div>
<div class=\"col-12 col-lg-4\">
{{ form_label(formData.siteInternet) }}
{{ form_widget(formData.siteInternet) }}
</div>
</div>
<div class=\"row\">
<div class=\"col-12 col-lg-4\">
{{ form_label(formData.fonction) }}
{{ form_widget(formData.fonction) }}
</div>
</div>
<div class=\"row\">
<div class=\"col-12 cards-wrapper\">
<div class=\"visa-wrapper\">
<img src=\"/ps/img/visa.gif\" alt=\"\">
</div>
<div class=\"mastercard-wrapper\">
<img src=\"/ps/img/mastercard.png\" alt=\"\">
</div>
</div>
</div>
<div class=\"col-12\">
<h4>{{ 'productadded'|trans({}, 'form-devis')|raw }}</h4>
<table id=\"articleDevis\" class=\"table\">
<tbody>
{% for product in products %}
<tr data-id=\"{{product.id_devis}}\">
<td>
<a class=\"cart-images\" href=\"{{product.lien_produit}}\"
title=\"{{ product.titre }}\">
<img src=\"{{product.img}}\" alt=\"{{ product.titre }}\">
</a>
<br>
</td>
<td>
<a class=\"quotation_block_product_name\" href=\"{{product.lien_produit}}\"
title=\"{{ product.titre }}\">
{{ product.titre }}
</a>
<br>
<span class=\"quotation_desc\">{{ product.description }}</span>
<span class=\"quotation_ref\" style=\"display: none;\">{{ product.reference}}</span>
<br>
<div style=\"line-height: 46px;\">
{% if product.files is defined %}
{% for file in product.files %}
<div>
<div class=\"ImageFile\" style='background-image: url(\"{{ app.request.schemeAndHttpHost }}/upload/{{ file.filename }}\")'></div>
<a href=\"{{ app.request.schemeAndHttpHost }}/upload/{{ file.filename }}\" target=\"_blank\">moins1mo.jpg</a>
<i class=\"fa fa-times-circle suppr\" id=\"{{ file.id }}\" data-id=\"{{ file.id }}\" title=\"Supprimer le fichier\"></i>
<br>
</div>
{% endfor %}
<div class=\"files\" data-files=\"{{ product.ref }}\"></div>
{% endif %}
</div>
</td>
<td>
<input class=\"ChangeQuantity\" id=\"Qty1\" data-theshop=\"1\" data-id-quot=\"{{ product.id_devis }}\" data-idproduct=\"{{product.id_product}}\" data-idcombination=\"{{ product.id_product_attribute}}\" type=\"text\" min=\"1\" style=\"width:40px; margin-right: 5px;\" autocomplete=\"nope\" value=\"{{ product.qty}}\">
</td>
<td>
<a class=\"ajax_quotation_block_remove_link_lines\" rel=\"nofollow\" data-id-quot=\"{{ product.id_devis }}\" title=\"Supprimer l'article\">-</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
<div class=\"col-3 text-center\">
<i class=\"fa fa-calculator\" id=\"Calculator\"></i>
</div>
</div>
<div class=\"row\">
<div class=\"col-12 text-center\">
<button id=\"sendQuotationByEmail\" type=\"submit\" class=\"btn btn-lg btn-primary text-white rounded\">
{{ 'envoyerdevis'|trans({}, 'form-devis')|raw }}
</button>
</div>
</div>
{{ form_end(formData, { 'render_rest': false }) }}
{% else %}
<div class=\"alert alert-danger\" role=\"alert\"> <i class=\"fas fa-exclamation-circle\"></i> <span class=\"sr-only\">Erreur : </span> Vous devez ajouter au moins un produit à votre devis</div>
{% endif %}
{% endblock %}", "devis/devis.form.html.twig", "/home/adevo/www/sensy/templates/devis/devis.form.html.twig");
}
}