<?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/contrat_tarif.html.twig */
class __TwigTemplate_1aee45ab43346fc7353c1792fe9eba4f9ffa19844ed19da9d96406b5462b58c3 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/contrat_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/contrat_tarif.html.twig"));

        // line 1
        $context["type"] = "contrat";
        // line 2
        yield "<div class=\"d-flex customtab-periode\" id=\"tab-";
        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 "-tarif\">
    <div class=\"col-sm-3 color-primary\" style=\"position:relative;width:20%\">
        <p class=\"mb-2\" style=\"font-size:24px\">Période</p> <a class=\"\" data-popup-id=\"popup-add-periode-";
        // line 4
        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.', 4, $this->source); })()), "html", null, true);
        yield "\" data-dxpopup=\"\" data-popup-title=\"Ajouter une période tarifaire\" data-popup-width=\"auto\"><i class=\"fa fa-plus add-icon\" style=\"right: 2px\" ></i></a>
        <ul class=\"nav nav-tabs flex-colum column-tab\" role=\"tablist\" data-tabs=\"tabs\">
            ";
        // line 6
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(Twig\Extension\CoreExtension::keys(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["tab"]) || array_key_exists("tab", $context) ? $context["tab"] : (function () { throw new RuntimeError('Variable "tab" does not exist.', 6, $this->source); })()), "datas", [], "any", false, false, false, 6), "result", [], "any", false, false, false, 6)));
        $context['loop'] = [
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        ];
        if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
            $length = count($context['_seq']);
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context["_key"] => $context["periode"]) {
            // line 7
            yield "                <li class=\"nav-item px-2 w-100 d-flex\" role=\"presentation\">
                    <button class=\"nav-link ";
            // line 8
            yield (((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 8), 1))) ? ("active") : (""));
            yield " w-100 text-start px-1 d-flex justify-content-between\" id=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 8), "html", null, true);
            yield "-tab\" data-bs-toggle=\"tab\" data-bs-target=\"#tabdata-";
            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.', 8, $this->source); })()), "html", null, true);
            yield "-";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 8), "html", null, true);
            yield "\" type=\"button\" role=\"tab\"  aria-selected=\"true\">
                        <span class=\"periode_nom\">";
            // line 9
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["periode"], "html", null, true);
            yield "</span>
                        <span class=\"icons d-flex align-items-center\">
                            ";
            // line 11
            if (CoreExtension::inFilter($context["periode"], CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["tab"]) || array_key_exists("tab", $context) ? $context["tab"] : (function () { throw new RuntimeError('Variable "tab" does not exist.', 11, $this->source); })()), "datas", [], "any", false, false, false, 11), "tabPeriode", [], "any", false, false, false, 11))) {
                // line 12
                yield "                                <a data-popup-id=\"popup-update-periode-contrat-";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 12), "html", null, true);
                yield "\" data-dxpopup=\"\" data-popup-title=\"Modifier une période tarifaire\" data-popup-width=\"auto\"><i class=\"fa fa-edit \"></i></a>
                                <a><i class=\"fa fa-trash \" data-periode=\"";
                // line 13
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["periode"], "html", null, true);
                yield "\" data-type=\"contrat\"></i></a>
                            ";
            }
            // line 15
            yield "                        </span>
                    </button>
                </li>
            ";
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if (isset($context['loop']['length'])) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['periode'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 19
        yield "        </ul>
    </div>

    <div class=\"tab-content bg-white px-3 py-3 col-sm-9\" style=\"max-height:calc(100vh - 142px);overflow: auto;width:80%\">
        ";
        // line 23
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["tab"]) || array_key_exists("tab", $context) ? $context["tab"] : (function () { throw new RuntimeError('Variable "tab" does not exist.', 23, $this->source); })()), "datas", [], "any", false, false, false, 23), "result", [], "any", false, false, false, 23));
        $context['loop'] = [
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        ];
        if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
            $length = count($context['_seq']);
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context["keyperiode"] => $context["data"]) {
            // line 24
            yield "            <div class=\"tab-pane fade show ";
            yield (((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 24), 1))) ? ("active") : (""));
            yield "\" id=\"tabdata-";
            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.', 24, $this->source); })()), "html", null, true);
            yield "-";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 24), "html", null, true);
            yield "\" role=\"tabpanel\" aria-labelledby=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 24), "html", null, true);
            yield "-tab\" style=\"padding-right:59px !important;position:relative\">
                <table class=\"table table-responsive table-bordered table-striped table-sm\">
                    <thead  align=\"center\" style=\"vertical-align: middle!important;\">
                        <th>Famille</th>
                        <th>Type</th>
                        <th>Puissance</th>
                        <th>MOD 1</th>
                        <th>GT 1<br/>3-5 ans</th>
                        <th>GT 1<br/>6-20 ans</th>
                        <th class=\"bg-grey-dark\">MOD 2</th>
                        <th class=\"bg-grey-dark\">GT 2<br/>3-5 ans</th>
                        <th class=\"bg-grey-dark\">GT 2<br/>6-20 ans</th>
                    </thead>
                    <tr>
                        ";
            // line 38
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable($context["data"]);
            foreach ($context['_seq'] as $context["familleName"] => $context["types"]) {
                // line 39
                yield "                            <tr>
                            <td rowspan=\"";
                // line 40
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["tab"]) || array_key_exists("tab", $context) ? $context["tab"] : (function () { throw new RuntimeError('Variable "tab" does not exist.', 40, $this->source); })()), "datas", [], "any", false, false, false, 40), "tabCount", [], "any", false, false, false, 40), $context["keyperiode"], [], "array", false, false, false, 40), $context["familleName"], [], "array", false, false, false, 40), "html", null, true);
                yield "\" class=\"bg-primary\" valign=\"middle\" align=\"center\">";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["familleName"], "html", null, true);
                yield "</td>
                                ";
                // line 41
                $context['_parent'] = $context;
                $context['_seq'] = CoreExtension::ensureTraversable($context["types"]);
                $context['loop'] = [
                  'parent' => $context['_parent'],
                  'index0' => 0,
                  'index'  => 1,
                  'first'  => true,
                ];
                if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
                    $length = count($context['_seq']);
                    $context['loop']['revindex0'] = $length - 1;
                    $context['loop']['revindex'] = $length;
                    $context['loop']['length'] = $length;
                    $context['loop']['last'] = 1 === $length;
                }
                foreach ($context['_seq'] as $context["typeName"] => $context["puissances"]) {
                    // line 42
                    yield "                                    ";
                    if ((1 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 42), 1))) {
                        // line 43
                        yield "                                        <tr>
                                    ";
                    }
                    // line 45
                    yield "                                    <td rowspan=\"";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::length($this->env->getCharset(), $context["puissances"]), "html", null, true);
                    yield "\"  valign=\"middle\" align=\"center\">";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["typeName"], "html", null, true);
                    yield "</td>
                                    ";
                    // line 46
                    $context['_parent'] = $context;
                    $context['_seq'] = CoreExtension::ensureTraversable($context["puissances"]);
                    $context['loop'] = [
                      'parent' => $context['_parent'],
                      'index0' => 0,
                      'index'  => 1,
                      'first'  => true,
                    ];
                    if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
                        $length = count($context['_seq']);
                        $context['loop']['revindex0'] = $length - 1;
                        $context['loop']['revindex'] = $length;
                        $context['loop']['length'] = $length;
                        $context['loop']['last'] = 1 === $length;
                    }
                    foreach ($context['_seq'] as $context["puissanceName"] => $context["puissanceTarif"]) {
                        // line 47
                        yield "                                        ";
                        if ((1 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 47), 1))) {
                            // line 48
                            yield "                                            <tr>
                                        ";
                        }
                        // line 50
                        yield "                                        <td align=\"center\">";
                        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["puissanceName"], "html", null, true);
                        yield "</td>
                                        <td align=\"right\">";
                        // line 51
                        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["puissanceTarif"], "MOD 1", [], "array", false, false, false, 51), "tarif", [], "array", false, false, false, 51), "html", null, true);
                        yield "</td>
                                        <td align=\"right\">";
                        // line 52
                        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["puissanceTarif"], "GT 1 <br/> 3-5 ans", [], "array", false, false, false, 52), "tarif", [], "array", false, false, false, 52), "html", null, true);
                        yield "</td>
                                        <td align=\"right\">";
                        // line 53
                        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["puissanceTarif"], "GT 1 <br/> 6-20 ans", [], "array", false, false, false, 53), "tarif", [], "array", false, false, false, 53), "html", null, true);
                        yield "</td>
                                        <td class=\"bg-grey-medium\" align=\"right\" disabled=\"disabled\">";
                        // line 54
                        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["puissanceTarif"], "MOD 2", [], "array", false, false, false, 54), "tarif", [], "array", false, false, false, 54), "html", null, true);
                        yield "</td>
                                        <td class=\"bg-grey-medium\" align=\"right\">";
                        // line 55
                        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["puissanceTarif"], "GT 2 <br/> 3-5 ans", [], "array", false, false, false, 55), "tarif", [], "array", false, false, false, 55), "html", null, true);
                        yield "</td>
                                        <td class=\"bg-grey-medium\" align=\"right\">";
                        // line 56
                        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["puissanceTarif"], "GT 2 <br/> 6-20 ans", [], "array", false, false, false, 56), "tarif", [], "array", false, false, false, 56), "html", null, true);
                        yield "</td>
                                        </tr>
                                    ";
                        ++$context['loop']['index0'];
                        ++$context['loop']['index'];
                        $context['loop']['first'] = false;
                        if (isset($context['loop']['length'])) {
                            --$context['loop']['revindex0'];
                            --$context['loop']['revindex'];
                            $context['loop']['last'] = 0 === $context['loop']['revindex0'];
                        }
                    }
                    $_parent = $context['_parent'];
                    unset($context['_seq'], $context['_iterated'], $context['puissanceName'], $context['puissanceTarif'], $context['_parent'], $context['loop']);
                    $context = array_intersect_key($context, $_parent) + $_parent;
                    // line 59
                    yield "                            ";
                    ++$context['loop']['index0'];
                    ++$context['loop']['index'];
                    $context['loop']['first'] = false;
                    if (isset($context['loop']['length'])) {
                        --$context['loop']['revindex0'];
                        --$context['loop']['revindex'];
                        $context['loop']['last'] = 0 === $context['loop']['revindex0'];
                    }
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['typeName'], $context['puissances'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 60
                yield "                        ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['familleName'], $context['types'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 61
            yield "                    </tbody>
                </table>
                <a style=\"position: absolute;top:0px;right:0;\" target=\"_blank\" href=\"";
            // line 63
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("export_tarif_periode_type", ["type" => (isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 63, $this->source); })()), "periode" => $context["keyperiode"]]), "html", null, true);
            yield "\"><i class=\"fa fa-download color-primary\" style=\"font-size:2.5em;margin-right:0;\"></i></a>
            </div>
            ";
            // line 65
            yield Twig\Extension\CoreExtension::include($this->env, $context, "tarif/_popup_update_tarif.html.twig");
            yield "
        ";
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if (isset($context['loop']['length'])) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['keyperiode'], $context['data'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 67
        yield "    </div>
</div>
";
        // line 69
        yield Twig\Extension\CoreExtension::include($this->env, $context, "tarif/_popup_add_periode.html.twig");
        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        return; yield '';
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  327 => 69,  323 => 67,  307 => 65,  302 => 63,  298 => 61,  292 => 60,  278 => 59,  261 => 56,  257 => 55,  253 => 54,  249 => 53,  245 => 52,  241 => 51,  236 => 50,  232 => 48,  229 => 47,  212 => 46,  205 => 45,  201 => 43,  198 => 42,  181 => 41,  175 => 40,  172 => 39,  168 => 38,  144 => 24,  127 => 23,  121 => 19,  104 => 15,  99 => 13,  94 => 12,  92 => 11,  87 => 9,  77 => 8,  74 => 7,  57 => 6,  52 => 4,  46 => 2,  44 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("{% set type = 'contrat' %}
<div class=\"d-flex customtab-periode\" id=\"tab-{{ type }}-tarif\">
    <div class=\"col-sm-3 color-primary\" style=\"position:relative;width:20%\">
        <p class=\"mb-2\" style=\"font-size:24px\">Période</p> <a class=\"\" data-popup-id=\"popup-add-periode-{{ type }}\" data-dxpopup=\"\" data-popup-title=\"Ajouter une période tarifaire\" data-popup-width=\"auto\"><i class=\"fa fa-plus add-icon\" style=\"right: 2px\" ></i></a>
        <ul class=\"nav nav-tabs flex-colum column-tab\" role=\"tablist\" data-tabs=\"tabs\">
            {% for periode in tab.datas.result|keys %}
                <li class=\"nav-item px-2 w-100 d-flex\" role=\"presentation\">
                    <button class=\"nav-link {{ loop.index == 1 ? 'active' : '' }} w-100 text-start px-1 d-flex justify-content-between\" id=\"{{ loop.index }}-tab\" data-bs-toggle=\"tab\" data-bs-target=\"#tabdata-{{ type}}-{{ loop.index }}\" type=\"button\" role=\"tab\"  aria-selected=\"true\">
                        <span class=\"periode_nom\">{{ periode}}</span>
                        <span class=\"icons d-flex align-items-center\">
                            {% if periode in tab.datas.tabPeriode %}
                                <a data-popup-id=\"popup-update-periode-contrat-{{ loop.index }}\" data-dxpopup=\"\" data-popup-title=\"Modifier une période tarifaire\" data-popup-width=\"auto\"><i class=\"fa fa-edit \"></i></a>
                                <a><i class=\"fa fa-trash \" data-periode=\"{{ periode }}\" data-type=\"contrat\"></i></a>
                            {% endif %}
                        </span>
                    </button>
                </li>
            {% endfor %}
        </ul>
    </div>

    <div class=\"tab-content bg-white px-3 py-3 col-sm-9\" style=\"max-height:calc(100vh - 142px);overflow: auto;width:80%\">
        {% for keyperiode, data in tab.datas.result %}
            <div class=\"tab-pane fade show {{ loop.index == 1 ? 'active' : '' }}\" id=\"tabdata-{{ type }}-{{ loop.index }}\" role=\"tabpanel\" aria-labelledby=\"{{ loop.index }}-tab\" style=\"padding-right:59px !important;position:relative\">
                <table class=\"table table-responsive table-bordered table-striped table-sm\">
                    <thead  align=\"center\" style=\"vertical-align: middle!important;\">
                        <th>Famille</th>
                        <th>Type</th>
                        <th>Puissance</th>
                        <th>MOD 1</th>
                        <th>GT 1<br/>3-5 ans</th>
                        <th>GT 1<br/>6-20 ans</th>
                        <th class=\"bg-grey-dark\">MOD 2</th>
                        <th class=\"bg-grey-dark\">GT 2<br/>3-5 ans</th>
                        <th class=\"bg-grey-dark\">GT 2<br/>6-20 ans</th>
                    </thead>
                    <tr>
                        {% for familleName,types in data %}
                            <tr>
                            <td rowspan=\"{{ tab.datas.tabCount[keyperiode][familleName] }}\" class=\"bg-primary\" valign=\"middle\" align=\"center\">{{ familleName }}</td>
                                {% for typeName, puissances in types %}
                                    {% if loop.index > 1 %}
                                        <tr>
                                    {% endif %}
                                    <td rowspan=\"{{ puissances|length }}\"  valign=\"middle\" align=\"center\">{{ typeName }}</td>
                                    {% for puissanceName, puissanceTarif in puissances %}
                                        {% if loop.index > 1 %}
                                            <tr>
                                        {% endif %}
                                        <td align=\"center\">{{ puissanceName }}</td>
                                        <td align=\"right\">{{ puissanceTarif['MOD 1']['tarif'] }}</td>
                                        <td align=\"right\">{{ puissanceTarif['GT 1 <br/> 3-5 ans']['tarif'] }}</td>
                                        <td align=\"right\">{{ puissanceTarif['GT 1 <br/> 6-20 ans']['tarif'] }}</td>
                                        <td class=\"bg-grey-medium\" align=\"right\" disabled=\"disabled\">{{ puissanceTarif['MOD 2']['tarif'] }}</td>
                                        <td class=\"bg-grey-medium\" align=\"right\">{{ puissanceTarif['GT 2 <br/> 3-5 ans']['tarif'] }}</td>
                                        <td class=\"bg-grey-medium\" align=\"right\">{{ puissanceTarif['GT 2 <br/> 6-20 ans']['tarif'] }}</td>
                                        </tr>
                                    {% endfor %}
                            {% endfor %}
                        {% endfor %}
                    </tbody>
                </table>
                <a style=\"position: absolute;top:0px;right:0;\" target=\"_blank\" href=\"{{ path('export_tarif_periode_type', {type:type,periode: keyperiode}) }}\"><i class=\"fa fa-download color-primary\" style=\"font-size:2.5em;margin-right:0;\"></i></a>
            </div>
            {{ include('tarif/_popup_update_tarif.html.twig') }}
        {% endfor %}
    </div>
</div>
{{ include('tarif/_popup_add_periode.html.twig') }}", "tarif/contrat_tarif.html.twig", "/builds/dev/refonte_sav/templates/tarif/contrat_tarif.html.twig");
    }
}
