<?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;

/* tarif/_popup_prestation_tarif.html.twig */
class __TwigTemplate_95a2c3bc0fbc085868b2496577273bb168247ed7e29f41a3711d3d42577b933c extends Template
{
    private $source;
    private $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->parent = false;

        $this->blocks = [
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "tarif/_popup_prestation_tarif.html.twig"));

        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "tarif/_popup_prestation_tarif.html.twig"));

        // line 1
        yield "<div id=\"";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 1, $this->source); })()), "html", null, true);
        yield "\" style=\"display:none\" >
    <div id=\"body-add-periode-";
        // line 2
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 2, $this->source); })()), "html", null, true);
        yield "\" class=\"p-3\">
        <form  style=\"font-size: 1rem;\" action=\"";
        // line 3
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["path"]) || array_key_exists("path", $context) ? $context["path"] : (function () { throw new RuntimeError('Variable "path" does not exist.', 3, $this->source); })()), "html", null, true);
        yield "\"  method=\"post\"  data-turbo=\"false\">
            <div class=\"form-group mb-2\">
                <label for=\"dateDebut\" class=\"col-form-label\" style=\"font-weight: 600\">Date de début</label>
                <input type=\"date\" class=\"form-control-sm mx-2\" name=\"date_debut\" id=\"dateDebut\" class=\"me-2\" value=\"";
        // line 6
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((array_key_exists("periode", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["periode"]) || array_key_exists("periode", $context) ? $context["periode"] : (function () { throw new RuntimeError('Variable "periode" does not exist.', 6, $this->source); })()), "")) : ("")), "html", null, true);
        yield "\" required min=\"";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate($this->extensions['Twig\Extension\CoreExtension']->modifyDate("now", "+1 day"), "Y-m-d"), "html", null, true);
        yield "\">
                <i style=\"font-size: 0.9rem;\">La date de fin de cette période sera automatiquement calculée lors du prochain ajout de période</i>
                <input type=\"hidden\" name=\"old_date\" value=\"";
        // line 8
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((array_key_exists("periode", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["periode"]) || array_key_exists("periode", $context) ? $context["periode"] : (function () { throw new RuntimeError('Variable "periode" does not exist.', 8, $this->source); })()), null)) : (null)), "html", null, true);
        yield "\">
            </div>
            ";
        // line 10
        yield Twig\Extension\CoreExtension::include($this->env, $context, "tarif/_table_prestation_tarif.html.twig");
        yield "
            <div class=\"form-group d-flex justify-content-center mt-4\">
                <div class=\"form-actions-row\">
                    <button  class=\"btn btn-danger btn-close-popup\"  data-dxpopup-id=\"popup-add-periode-pres\" type=\"button\" >Annuler</button>
                    <button  id=\"btn-submit-popupadd\" class=\"btn btn-success me-3 \" type=\"submit\">Valider</button>
                </div>
            </div>
        </form>
    </div>
</div>";
        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        return; yield '';
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName()
    {
        return "tarif/_popup_prestation_tarif.html.twig";
    }

    /**
     * @codeCoverageIgnore
     */
    public function isTraitable()
    {
        return false;
    }

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  71 => 10,  66 => 8,  59 => 6,  53 => 3,  49 => 2,  44 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("<div id=\"{{ id }}\" style=\"display:none\" >
    <div id=\"body-add-periode-{{ type }}\" class=\"p-3\">
        <form  style=\"font-size: 1rem;\" action=\"{{ path }}\"  method=\"post\"  data-turbo=\"false\">
            <div class=\"form-group mb-2\">
                <label for=\"dateDebut\" class=\"col-form-label\" style=\"font-weight: 600\">Date de début</label>
                <input type=\"date\" class=\"form-control-sm mx-2\" name=\"date_debut\" id=\"dateDebut\" class=\"me-2\" value=\"{{ periode|default('') }}\" required min=\"{{\"now\"|date_modify(\"+1 day\")|date(\"Y-m-d\")  }}\">
                <i style=\"font-size: 0.9rem;\">La date de fin de cette période sera automatiquement calculée lors du prochain ajout de période</i>
                <input type=\"hidden\" name=\"old_date\" value=\"{{ periode|default(null) }}\">
            </div>
            {{ include('tarif/_table_prestation_tarif.html.twig') }}
            <div class=\"form-group d-flex justify-content-center mt-4\">
                <div class=\"form-actions-row\">
                    <button  class=\"btn btn-danger btn-close-popup\"  data-dxpopup-id=\"popup-add-periode-pres\" type=\"button\" >Annuler</button>
                    <button  id=\"btn-submit-popupadd\" class=\"btn btn-success me-3 \" type=\"submit\">Valider</button>
                </div>
            </div>
        </form>
    </div>
</div>", "tarif/_popup_prestation_tarif.html.twig", "/builds/dev/refonte_sav/templates/tarif/_popup_prestation_tarif.html.twig");
    }
}
