var/cache/dev/twig/59/590dcc1acb36e02fa7ce36a313166f64.php line 176

  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* devis/devis.form.html.twig */
  16. class __TwigTemplate_1c0e12746a19f0c6fccaf0e00f396627 extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->blocks = [
  28.             'stylesheets' => [$this'block_stylesheets'],
  29.             'javascript' => [$this'block_javascript'],
  30.             '_app_data' => [$this'block__app_data'],
  31.             'content' => [$this'block_content'],
  32.         ];
  33.     }
  34.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  35.     {
  36.         // line 1
  37.         return "base.html.twig";
  38.     }
  39.     protected function doDisplay(array $context, array $blocks = []): iterable
  40.     {
  41.         $macros $this->macros;
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""devis/devis.form.html.twig"));
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""devis/devis.form.html.twig"));
  46.         $this->parent $this->loadTemplate("base.html.twig""devis/devis.form.html.twig"1);
  47.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  48.         
  49.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  50.         
  51.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  52.     }
  53.     // line 3
  54.     /**
  55.      * @return iterable<null|scalar|\Stringable>
  56.      */
  57.     public function block_stylesheets(array $context, array $blocks = []): iterable
  58.     {
  59.         $macros $this->macros;
  60.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  61.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  62.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  63.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  64.         // line 4
  65.         yield "    ";
  66.         yield from $this->yieldParentBlock("stylesheets"$context$blocks);
  67.         yield "
  68.     <link rel=\"stylesheet\" href=\"";
  69.         // line 5
  70.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/devis.min.css"), "html"nulltrue);
  71.         yield "\" />
  72. ";
  73.         
  74.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  75.         
  76.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  77.         yield from [];
  78.     }
  79.     // line 8
  80.     /**
  81.      * @return iterable<null|scalar|\Stringable>
  82.      */
  83.     public function block_javascript(array $context, array $blocks = []): iterable
  84.     {
  85.         $macros $this->macros;
  86.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  87.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  88.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  89.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  90.         // line 9
  91.         yield "    ";
  92.         yield from $this->yieldParentBlock("javascript"$context$blocks);
  93.         yield "
  94.     <script src=\"";
  95.         // line 10
  96.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/devis/devis.js"), "html"nulltrue);
  97.         yield "\"></script>
  98. ";
  99.         
  100.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  101.         
  102.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  103.         yield from [];
  104.     }
  105.     // line 13
  106.     /**
  107.      * @return iterable<null|scalar|\Stringable>
  108.      */
  109.     public function block__app_data(array $context, array $blocks = []): iterable
  110.     {
  111.         $macros $this->macros;
  112.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  113.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""_app_data"));
  114.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  115.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""_app_data"));
  116.         // line 14
  117.         yield "    app_data.path.devisUpdate = \"";
  118.         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"nulltrue);
  119.         yield "\";
  120.     app_data.path.devisFileRemove = \"";
  121.         // line 15
  122.         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"nulltrue);
  123.         yield "\";
  124. ";
  125.         
  126.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  127.         
  128.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  129.         yield from [];
  130.     }
  131.     // line 31
  132.     /**
  133.      * @return iterable<null|scalar|\Stringable>
  134.      */
  135.     public function block_content(array $context, array $blocks = []): iterable
  136.     {
  137.         $macros $this->macros;
  138.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  139.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  140.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  141.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  142.         // line 32
  143.         yield "    <h1>Formulaire de devis</h1>
  144.     
  145.     ";
  146.         // line 34
  147.         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"]]);
  148.         yield "
  149.     ";
  150.         // line 35
  151.         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"falsefalsefalse35), 'row');
  152.         yield "
  153.     ";
  154.         // line 36
  155.         if ((isset($context["products"]) || array_key_exists("products"$context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.'36$this->source); })())) {
  156.             // line 37
  157.             yield "        <div class=\"row mb-2\">
  158.             <div class=\"col-9\">
  159.                 <div class=\"row mb-3\">
  160.                     <div class=\"col-12 col-lg-4\">
  161.                         ";
  162.             // line 41
  163.             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"falsefalsefalse41), 'label');
  164.             yield "
  165.                         ";
  166.             // line 42
  167.             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"falsefalsefalse42), 'widget', ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse42), "societe", [], "any"falsefalsefalse42)) ? (["attr" => ["class" => "invalid is-invalid"]]) : (["attr" => ["class" => ""]])));
  168.             yield "
  169.                         <div class=\"invalid-feedback\">
  170.                             La société n'est pas complété
  171.                         </div>
  172.                     </div>
  173.                     <div class=\"col-12 col-lg-4\">
  174.                         ";
  175.             // line 48
  176.             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"falsefalsefalse48), 'label');
  177.             yield "
  178.                         ";
  179.             // line 49
  180.             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"falsefalsefalse49), 'widget', ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse49), "email", [], "any"falsefalsefalse49)) ? (["attr" => ["class" => "invalid is-invalid"]]) : (["attr" => ["class" => ""]])));
  181.             yield "
  182.                         <div class=\"invalid-feedback\">
  183.                             L'email n'est pas complété
  184.                         </div>
  185.                     </div>
  186.                     <div class=\"col-12 col-lg-4\">
  187.                         ";
  188.             // line 55
  189.             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"falsefalsefalse55), 'label');
  190.             yield "
  191.                         ";
  192.             // line 56
  193.             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"falsefalsefalse56), 'widget');
  194.             yield "
  195.                     </div>
  196.                 </div>
  197.                 <div class=\"row mb-3\">
  198.                     <div class=\"col-12 col-lg-4\">
  199.                         ";
  200.             // line 61
  201.             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"falsefalsefalse61), 'label');
  202.             yield "
  203.                         ";
  204.             // line 62
  205.             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"falsefalsefalse62), 'widget', ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse62), "nom", [], "any"falsefalsefalse62)) ? (["attr" => ["class" => "invalid is-invalid"]]) : (["attr" => ["class" => ""]])));
  206.             yield "
  207.                         <div class=\"invalid-feedback\">
  208.                             Le nom n'est pas complété
  209.                         </div>
  210.                     </div>
  211.                     <div class=\"col-12 col-lg-4\">
  212.                         ";
  213.             // line 68
  214.             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"falsefalsefalse68), 'label');
  215.             yield "
  216.                         ";
  217.             // line 69
  218.             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"falsefalsefalse69), 'widget');
  219.             yield "
  220.                     </div>
  221.                     <div class=\"col-12 col-lg-4 form-group\">
  222.                         ";
  223.             // line 72
  224.             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"falsefalsefalse72), 'label');
  225.             yield "
  226.                         ";
  227.             // line 73
  228.             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"falsefalsefalse73), 'widget', ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse73), "langue", [], "any"falsefalsefalse73)) ? (["attr" => ["class" => "form-control invalid is-invalid"]]) : (["attr" => ["class" => "form-control"]])));
  229.             yield "
  230.                         <div class=\"invalid-feedback\">
  231.                             La langue n'est pas complété
  232.                         </div>
  233.                     </div>
  234.                 </div>
  235.                 <div class=\"row mb-3\">
  236.                     <div class=\"col-12 col-lg-4\">
  237.                         ";
  238.             // line 81
  239.             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"falsefalsefalse81), 'label');
  240.             yield "
  241.                         ";
  242.             // line 82
  243.             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"falsefalsefalse82), 'widget');
  244.             yield "
  245.                     </div>
  246.                     <div class=\"col-12 col-lg-4\">
  247.                         ";
  248.             // line 85
  249.             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"falsefalsefalse85), 'label');
  250.             yield "
  251.                         ";
  252.             // line 86
  253.             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"falsefalsefalse86), 'widget');
  254.             yield "
  255.                     </div>
  256.                 </div>
  257.                 <div class=\"row\">
  258.                     <div class=\"col-12 col-lg-4\">
  259.                         ";
  260.             // line 91
  261.             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"falsefalsefalse91), 'label');
  262.             yield "
  263.                         ";
  264.             // line 92
  265.             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"falsefalsefalse92), 'widget');
  266.             yield "
  267.                     </div>
  268.                 </div>
  269.                 <div class=\"row\">
  270.                     <div class=\"col-12 cards-wrapper\">
  271.                         <div class=\"visa-wrapper\">
  272.                             <img src=\"/ps/img/visa.gif\" alt=\"\">
  273.                         </div>
  274.                         <div class=\"mastercard-wrapper\">
  275.                             <img src=\"/ps/img/mastercard.png\" alt=\"\">
  276.                         </div>
  277.                     </div>
  278.                 </div>
  279.                 <div class=\"col-12\">
  280.                     <h4>";
  281.             // line 106
  282.             yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("productadded", [], "form-devis");
  283.             yield "</h4>
  284.                     <table id=\"articleDevis\" class=\"table\">
  285.                         <tbody>
  286.                             ";
  287.             // line 109
  288.             $context['_parent'] = $context;
  289.             $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); })()));
  290.             foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
  291.                 // line 110
  292.                 yield "                            <tr data-id=\"";
  293.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["product"], "id_devis", [], "any"falsefalsefalse110), "html"nulltrue);
  294.                 yield "\">
  295.                                 <td>
  296.                                     <a class=\"cart-images\" href=\"";
  297.                 // line 112
  298.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["product"], "lien_produit", [], "any"falsefalsefalse112), "html"nulltrue);
  299.                 yield "\" 
  300.                                     title=\"";
  301.                 // line 113
  302.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["product"], "titre", [], "any"falsefalsefalse113), "html"nulltrue);
  303.                 yield "\">
  304.                                         <img src=\"";
  305.                 // line 114
  306.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["product"], "img", [], "any"falsefalsefalse114), "html"nulltrue);
  307.                 yield "\" alt=\"";
  308.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["product"], "titre", [], "any"falsefalsefalse114), "html"nulltrue);
  309.                 yield "\">
  310.                                     </a>
  311.                                     <br>
  312.                                 </td>
  313.                                 <td>
  314.                                     <a class=\"quotation_block_product_name\" href=\"";
  315.                 // line 119
  316.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["product"], "lien_produit", [], "any"falsefalsefalse119), "html"nulltrue);
  317.                 yield "\" 
  318.                                     title=\"";
  319.                 // line 120
  320.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["product"], "titre", [], "any"falsefalsefalse120), "html"nulltrue);
  321.                 yield "\">
  322.                                         ";
  323.                 // line 121
  324.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["product"], "titre", [], "any"falsefalsefalse121), "html"nulltrue);
  325.                 yield "
  326.                                     </a>
  327.                                     <br>
  328.                                     <span class=\"quotation_desc\">";
  329.                 // line 124
  330.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["product"], "description", [], "any"falsefalsefalse124), "html"nulltrue);
  331.                 yield "</span>
  332.                                     <span class=\"quotation_ref\" style=\"display: none;\">";
  333.                 // line 125
  334.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["product"], "reference", [], "any"falsefalsefalse125), "html"nulltrue);
  335.                 yield "</span> 
  336.                                     <br>
  337.                                     <div style=\"line-height: 46px;\">
  338.                                         ";
  339.                 // line 128
  340.                 if (CoreExtension::getAttribute($this->env$this->source$context["product"], "files", [], "any"truetruefalse128)) {
  341.                     // line 129
  342.                     yield "                                        ";
  343.                     $context['_parent'] = $context;
  344.                     $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->source$context["product"], "files", [], "any"falsefalsefalse129));
  345.                     foreach ($context['_seq'] as $context["_key"] => $context["file"]) {
  346.                         // line 130
  347.                         yield "                                        <div>
  348.                                             <div class=\"ImageFile\" style='background-image: url(\"";
  349.                         // line 131
  350.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse131), "schemeAndHttpHost", [], "any"falsefalsefalse131), "html"nulltrue);
  351.                         yield "/upload/";
  352.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["file"], "filename", [], "any"falsefalsefalse131), "html"nulltrue);
  353.                         yield "\")'></div>
  354.                                             <a href=\"";
  355.                         // line 132
  356.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse132), "schemeAndHttpHost", [], "any"falsefalsefalse132), "html"nulltrue);
  357.                         yield "/upload/";
  358.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["file"], "filename", [], "any"falsefalsefalse132), "html"nulltrue);
  359.                         yield "\" target=\"_blank\">moins1mo.jpg</a> 
  360.                                             <i class=\"fa fa-times-circle suppr\" id=\"";
  361.                         // line 133
  362.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["file"], "id", [], "any"falsefalsefalse133), "html"nulltrue);
  363.                         yield "\" data-id=\"";
  364.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["file"], "id", [], "any"falsefalsefalse133), "html"nulltrue);
  365.                         yield "\"  title=\"Supprimer le fichier\"></i> 
  366.                                             <br>
  367.                                         </div>
  368.                                         ";
  369.                     }
  370.                     $_parent $context['_parent'];
  371.                     unset($context['_seq'], $context['_key'], $context['file'], $context['_parent']);
  372.                     $context array_intersect_key($context$_parent) + $_parent;
  373.                     // line 137
  374.                     yield "                                            <div class=\"files\" data-files=\"";
  375.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["product"], "ref", [], "any"falsefalsefalse137), "html"nulltrue);
  376.                     yield "\"></div>
  377.                                         ";
  378.                 }
  379.                 // line 139
  380.                 yield "                                    </div>
  381.                                 </td>
  382.                                 <td>
  383.                                     <input class=\"ChangeQuantity\" id=\"Qty1\" data-theshop=\"1\" data-id-quot=\"";
  384.                 // line 142
  385.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["product"], "id_devis", [], "any"falsefalsefalse142), "html"nulltrue);
  386.                 yield "\" data-idproduct=\"";
  387.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["product"], "id_product", [], "any"falsefalsefalse142), "html"nulltrue);
  388.                 yield "\" data-idcombination=\"";
  389.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["product"], "id_product_attribute", [], "any"falsefalsefalse142), "html"nulltrue);
  390.                 yield "\" type=\"text\" min=\"1\" style=\"width:40px; margin-right: 5px;\" autocomplete=\"nope\" value=\"";
  391.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["product"], "qty", [], "any"falsefalsefalse142), "html"nulltrue);
  392.                 yield "\">
  393.                                 </td>
  394.                                 <td>
  395.                                     <a class=\"ajax_quotation_block_remove_link_lines\" rel=\"nofollow\" data-id-quot=\"";
  396.                 // line 145
  397.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["product"], "id_devis", [], "any"falsefalsefalse145), "html"nulltrue);
  398.                 yield "\" title=\"Supprimer l'article\">-</a>
  399.                                 </td>
  400.                             </tr>
  401.                             ";
  402.             }
  403.             $_parent $context['_parent'];
  404.             unset($context['_seq'], $context['_key'], $context['product'], $context['_parent']);
  405.             $context array_intersect_key($context$_parent) + $_parent;
  406.             // line 149
  407.             yield "                        </tbody>
  408.                     </table>
  409.                 </div>
  410.             </div>
  411.             <div class=\"col-3 text-center\">
  412.                 <i class=\"fa fa-calculator\" id=\"Calculator\"></i>
  413.             </div>
  414.         </div>
  415.         <div class=\"row\">
  416.             <div class=\"col-12 text-center\">
  417.                 <button id=\"sendQuotationByEmail\" type=\"submit\" class=\"btn btn-lg btn-primary text-white rounded\">
  418.                 ";
  419.             // line 160
  420.             yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("envoyerdevis", [], "form-devis");
  421.             yield "
  422.                 </button>
  423.             </div>
  424.         </div>
  425.         ";
  426.             // line 164
  427.             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]);
  428.             yield "
  429.     ";
  430.         } else {
  431.             // line 166
  432.             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>
  433.     ";
  434.         }
  435.         // line 168
  436.         yield "    
  437. ";
  438.         
  439.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  440.         
  441.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  442.         yield from [];
  443.     }
  444.     /**
  445.      * @codeCoverageIgnore
  446.      */
  447.     public function getTemplateName(): string
  448.     {
  449.         return "devis/devis.form.html.twig";
  450.     }
  451.     /**
  452.      * @codeCoverageIgnore
  453.      */
  454.     public function isTraitable(): bool
  455.     {
  456.         return false;
  457.     }
  458.     /**
  459.      * @codeCoverageIgnore
  460.      */
  461.     public function getDebugInfo(): array
  462.     {
  463.         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,);
  464.     }
  465.     public function getSourceContext(): Source
  466.     {
  467.         return new Source("{% extends 'base.html.twig' %}
  468. {% block stylesheets %}
  469.     {{parent()}}
  470.     <link rel=\"stylesheet\" href=\"{{ asset('assets/css/devis.min.css') }}\" />
  471. {% endblock %}
  472. {% block javascript %}
  473.     {{parent()}}
  474.     <script src=\"{{ asset('assets/js/devis/devis.js') }}\"></script>
  475. {% endblock %}
  476. {% block _app_data %}
  477.     app_data.path.devisUpdate = \"{{ path('devis_update')|base64_encode }}\";
  478.     app_data.path.devisFileRemove = \"{{ path('devis_remove_file')|base64_encode }}\";
  479. {% endblock %}
  480. {# {% block title %}
  481.     {% for content in contents %}
  482.         {{ content.meta_title|raw }}
  483.     {% endfor %}
  484. {% endblock %} #}
  485. {# {% block description %}
  486.     {% for content in contents %}
  487.         {{ content.meta_description|raw }}
  488.     {% endfor %}
  489. {% endblock %} #}
  490. {% block content %}
  491.     <h1>Formulaire de devis</h1>
  492.     
  493.     {{ form_start(formData, { 'attr': {'novalidate': true, 'class': 'full-height', 'autocomplete': 'off' }}) }}
  494.     {{ form_row(formData._token) }}
  495.     {% if products %}
  496.         <div class=\"row mb-2\">
  497.             <div class=\"col-9\">
  498.                 <div class=\"row mb-3\">
  499.                     <div class=\"col-12 col-lg-4\">
  500.                         {{ form_label(formData.societe) }}
  501.                         {{ form_widget(formData.societe, (data.error.societe ? {'attr': {'class': 'invalid is-invalid'}} : {'attr': {'class': ''}})) }}
  502.                         <div class=\"invalid-feedback\">
  503.                             La société n'est pas complété
  504.                         </div>
  505.                     </div>
  506.                     <div class=\"col-12 col-lg-4\">
  507.                         {{ form_label(formData.email) }}
  508.                         {{ form_widget(formData.email, (data.error.email ? {'attr': {'class': 'invalid is-invalid'}} : {'attr': {'class': ''}})) }}
  509.                         <div class=\"invalid-feedback\">
  510.                             L'email n'est pas complété
  511.                         </div>
  512.                     </div>
  513.                     <div class=\"col-12 col-lg-4\">
  514.                         {{ form_label(formData.pays) }}
  515.                         {{ form_widget(formData.pays) }}
  516.                     </div>
  517.                 </div>
  518.                 <div class=\"row mb-3\">
  519.                     <div class=\"col-12 col-lg-4\">
  520.                         {{ form_label(formData.nom) }}
  521.                         {{ form_widget(formData.nom, (data.error.nom ? {'attr': {'class': 'invalid is-invalid'}} : {'attr': {'class': ''}})) }}
  522.                         <div class=\"invalid-feedback\">
  523.                             Le nom n'est pas complété
  524.                         </div>
  525.                     </div>
  526.                     <div class=\"col-12 col-lg-4\">
  527.                         {{ form_label(formData.telephone) }}
  528.                         {{ form_widget(formData.telephone) }}
  529.                     </div>
  530.                     <div class=\"col-12 col-lg-4 form-group\">
  531.                         {{ form_label(formData.langue) }}
  532.                         {{ form_widget(formData.langue, (data.error.langue ? {'attr': {'class': 'form-control invalid is-invalid'}} : {'attr': {'class': 'form-control'}})) }}
  533.                         <div class=\"invalid-feedback\">
  534.                             La langue n'est pas complété
  535.                         </div>
  536.                     </div>
  537.                 </div>
  538.                 <div class=\"row mb-3\">
  539.                     <div class=\"col-12 col-lg-4\">
  540.                         {{ form_label(formData.prenom) }}
  541.                         {{ form_widget(formData.prenom) }}
  542.                     </div>
  543.                     <div class=\"col-12 col-lg-4\">
  544.                         {{ form_label(formData.siteInternet) }}
  545.                         {{ form_widget(formData.siteInternet) }}
  546.                     </div>
  547.                 </div>
  548.                 <div class=\"row\">
  549.                     <div class=\"col-12 col-lg-4\">
  550.                         {{ form_label(formData.fonction) }}
  551.                         {{ form_widget(formData.fonction) }}
  552.                     </div>
  553.                 </div>
  554.                 <div class=\"row\">
  555.                     <div class=\"col-12 cards-wrapper\">
  556.                         <div class=\"visa-wrapper\">
  557.                             <img src=\"/ps/img/visa.gif\" alt=\"\">
  558.                         </div>
  559.                         <div class=\"mastercard-wrapper\">
  560.                             <img src=\"/ps/img/mastercard.png\" alt=\"\">
  561.                         </div>
  562.                     </div>
  563.                 </div>
  564.                 <div class=\"col-12\">
  565.                     <h4>{{ 'productadded'|trans({}, 'form-devis')|raw }}</h4>
  566.                     <table id=\"articleDevis\" class=\"table\">
  567.                         <tbody>
  568.                             {% for product in products %}
  569.                             <tr data-id=\"{{product.id_devis}}\">
  570.                                 <td>
  571.                                     <a class=\"cart-images\" href=\"{{product.lien_produit}}\" 
  572.                                     title=\"{{ product.titre }}\">
  573.                                         <img src=\"{{product.img}}\" alt=\"{{ product.titre }}\">
  574.                                     </a>
  575.                                     <br>
  576.                                 </td>
  577.                                 <td>
  578.                                     <a class=\"quotation_block_product_name\" href=\"{{product.lien_produit}}\" 
  579.                                     title=\"{{ product.titre }}\">
  580.                                         {{ product.titre }}
  581.                                     </a>
  582.                                     <br>
  583.                                     <span class=\"quotation_desc\">{{ product.description }}</span>
  584.                                     <span class=\"quotation_ref\" style=\"display: none;\">{{ product.reference}}</span> 
  585.                                     <br>
  586.                                     <div style=\"line-height: 46px;\">
  587.                                         {% if product.files is defined %}
  588.                                         {% for file in product.files %}
  589.                                         <div>
  590.                                             <div class=\"ImageFile\" style='background-image: url(\"{{ app.request.schemeAndHttpHost }}/upload/{{ file.filename }}\")'></div>
  591.                                             <a href=\"{{ app.request.schemeAndHttpHost }}/upload/{{ file.filename }}\" target=\"_blank\">moins1mo.jpg</a> 
  592.                                             <i class=\"fa fa-times-circle suppr\" id=\"{{ file.id }}\" data-id=\"{{ file.id }}\"  title=\"Supprimer le fichier\"></i> 
  593.                                             <br>
  594.                                         </div>
  595.                                         {% endfor %}
  596.                                             <div class=\"files\" data-files=\"{{ product.ref }}\"></div>
  597.                                         {% endif %}
  598.                                     </div>
  599.                                 </td>
  600.                                 <td>
  601.                                     <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}}\">
  602.                                 </td>
  603.                                 <td>
  604.                                     <a class=\"ajax_quotation_block_remove_link_lines\" rel=\"nofollow\" data-id-quot=\"{{ product.id_devis }}\" title=\"Supprimer l'article\">-</a>
  605.                                 </td>
  606.                             </tr>
  607.                             {% endfor %}
  608.                         </tbody>
  609.                     </table>
  610.                 </div>
  611.             </div>
  612.             <div class=\"col-3 text-center\">
  613.                 <i class=\"fa fa-calculator\" id=\"Calculator\"></i>
  614.             </div>
  615.         </div>
  616.         <div class=\"row\">
  617.             <div class=\"col-12 text-center\">
  618.                 <button id=\"sendQuotationByEmail\" type=\"submit\" class=\"btn btn-lg btn-primary text-white rounded\">
  619.                 {{ 'envoyerdevis'|trans({}, 'form-devis')|raw }}
  620.                 </button>
  621.             </div>
  622.         </div>
  623.         {{ form_end(formData, { 'render_rest': false }) }}
  624.     {% else %}
  625.         <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>
  626.     {% endif %}
  627.     
  628. {% endblock %}""devis/devis.form.html.twig""/home/adevo/www/sensy/templates/devis/devis.form.html.twig");
  629.     }
  630. }