<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;
/* tri.html.twig */
class __TwigTemplate_00b1fff5fdf310d93462139c86c4a3cf extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "baseVisa.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$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", "tri.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "tri.html.twig"));
$this->parent = $this->loadTemplate("baseVisa.html.twig", "tri.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_title($context, array $blocks = [])
{
$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", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
echo "QEBOK | ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["projet"]) || array_key_exists("projet", $context) ? $context["projet"] : (function () { throw new RuntimeError('Variable "projet" does not exist.', 3, $this->source); })()), "nomDuProjet", [], "any", false, false, false, 3), "html", null, true);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 5
public function block_body($context, array $blocks = [])
{
$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", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 6
echo "
";
// line 18
echo "
<div class=\"principal\">
<div class=\"intro\">
";
// line 23
if (twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 23, $this->source); })()), "user", [], "any", false, false, false, 23)) {
// line 24
echo " <div style=\"float:right\">
<a href=\"";
// line 26
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("nouvelleExigence", ["code" => twig_get_attribute($this->env, $this->source, (isset($context["projet"]) || array_key_exists("projet", $context) ? $context["projet"] : (function () { throw new RuntimeError('Variable "projet" does not exist.', 26, $this->source); })()), "code", [], "any", false, false, false, 26)]), "html", null, true);
echo "\" class=\"bouton btn\" style=\"padding-left:40px;\"><span class=\"material-symbols-outlined\" style=\"top:unset\">Add</span>Ajouter une exigence</a>
<button class=\"btn btn-secondary dropdown-toggle\" type=\"button\" id=\"dropdownMenuButton\" data-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\">
Autres actions
</button>
<div class=\"dropdown-menu\" aria-labelledby=\"dropdownMenuButton\">
<a href=\"";
// line 32
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("listeExigences", ["code" => twig_get_attribute($this->env, $this->source, (isset($context["projet"]) || array_key_exists("projet", $context) ? $context["projet"] : (function () { throw new RuntimeError('Variable "projet" does not exist.', 32, $this->source); })()), "code", [], "any", false, false, false, 32)]), "html", null, true);
echo "\" class=\"dropdown-item\">
<i class=\"fa upload\"></i>Importer un tableau Excel d'exigences
</a>
<a href=\"";
// line 35
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("publipostage", ["code" => twig_get_attribute($this->env, $this->source, (isset($context["projet"]) || array_key_exists("projet", $context) ? $context["projet"] : (function () { throw new RuntimeError('Variable "projet" does not exist.', 35, $this->source); })()), "code", [], "any", false, false, false, 35)]), "html", null, true);
echo "\" class=\"dropdown-item\" style=\"padding-left:40px;\">
<span class=\"material-symbols-outlined\" style=\"top:unset\">visibility</span>
Faire un publipostage</a>
<a href=\"";
// line 38
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("index");
echo "\" class=\"dropdown-item\" style=\"padding-left:40px;\">
<span class=\"material-symbols-outlined\" style=\"top:unset\">visibility</span>
Voir tous les projets</a>
<a href=\"";
// line 41
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("projetZip", ["idProjet" => (isset($context["idProjet"]) || array_key_exists("idProjet", $context) ? $context["idProjet"] : (function () { throw new RuntimeError('Variable "idProjet" does not exist.', 41, $this->source); })())]), "html", null, true);
echo "\"
class=\"dropdown-item\" style=\"padding-left:40px;\"><span
class=\"material-symbols-outlined\" style=\"top:unset\">Download</span> Télécharger les
justificatifs par lot</a>
<a href=\"";
// line 45
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("projetZipCicle", ["idProjet" => (isset($context["idProjet"]) || array_key_exists("idProjet", $context) ? $context["idProjet"] : (function () { throw new RuntimeError('Variable "idProjet" does not exist.', 45, $this->source); })())]), "html", null, true);
echo "\" class=\"dropdown-item\"
style=\"padding-left:40px;\"><span class=\"material-symbols-outlined\"
style=\"top:unset\">Download</span> Télécharger les
justificatifs par cibles</a>
</div>
</div>
";
}
// line 52
echo "
<h1>Projet ";
// line 54
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["projet"]) || array_key_exists("projet", $context) ? $context["projet"] : (function () { throw new RuntimeError('Variable "projet" does not exist.', 54, $this->source); })()), "nomDuProjet", [], "any", false, false, false, 54), "html", null, true);
echo " - Liste des lots</h1>
</div>
<div class=\"row\">
<div class=\"col-sm-12\">
<table class=\"table table-borderless table-stripped table-hover\">
<thead>
<tr>
<th class=\"text-start align-middle\">N° Lot</th>
<td class=\"text-start align-middle\">Nom du lot et de l'entreprise</td>
<td class=\"text-center align-middle\">Justificatifs<br/>fournis</td>
<td class=\"text-center align-middle\">Justificatifs<br/>validés</td>
<td> </td>
</tr>
</thead>
<tbody>
";
// line 71
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["listeLots"]) || array_key_exists("listeLots", $context) ? $context["listeLots"] : (function () { throw new RuntimeError('Variable "listeLots" does not exist.', 71, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 72
echo " ";
$context["current"] = twig_get_attribute($this->env, $this->source, $context["item"], "lot", [], "any", false, false, false, 72);
// line 73
echo " <tr>
<td class=\"text-start align-middle\">
";
// line 75
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "lot", [], "any", false, false, false, 75), "html", null, true);
echo "</td>
<td style=\"max-width:200px;word-break: break-word\" class=\"text-start align-middle\">";
// line 76
echo twig_escape_filter($this->env, twig_join_filter(twig_get_attribute($this->env, $this->source, $context["item"], "sousLots", [], "any", false, false, false, 76), " / "), "html", null, true);
echo "</td>
<td class=\"text-center align-middle\">";
// line 77
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "nbJustificatifs", [], "any", false, false, false, 77), "html", null, true);
echo "
/ ";
// line 78
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "nbExigences", [], "any", false, false, false, 78), "html", null, true);
echo "</td>
<td class=\"text-center align-middle\">";
// line 79
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "nbValides", [], "any", false, false, false, 79), "html", null, true);
echo " / ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "nbExigences", [], "any", false, false, false, 79), "html", null, true);
echo "</td>
<td class=\"text-right align-middle\">
<a class=\"bouton\" ";
// line 83
echo " href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("lot", ["lot" => twig_get_attribute($this->env, $this->source, $context["item"], "lot", [], "any", false, false, false, 83), "code" => twig_get_attribute($this->env, $this->source, (isset($context["projet"]) || array_key_exists("projet", $context) ? $context["projet"] : (function () { throw new RuntimeError('Variable "projet" does not exist.', 83, $this->source); })()), "code", [], "any", false, false, false, 83)]), "html", null, true);
echo "\">";
// line 85
echo "Voir le lot</a>
</td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 89
echo " </tbody>
</table>
</div>
</div>
<BR>Taux d'éléments fournis :
<div class=\"progress col-6 mx-auto\">
<div class=\"progress-bar bg-success progress-bar-striped\" role=\"progressbar\" style=\"width: ";
// line 96
echo twig_escape_filter($this->env, (isset($context["tauxJustifTotal"]) || array_key_exists("tauxJustifTotal", $context) ? $context["tauxJustifTotal"] : (function () { throw new RuntimeError('Variable "tauxJustifTotal" does not exist.', 96, $this->source); })()), "html", null, true);
echo "%;\" aria-valuenow=";
echo twig_escape_filter($this->env, (isset($context["tauxJustifTotal"]) || array_key_exists("tauxJustifTotal", $context) ? $context["tauxJustifTotal"] : (function () { throw new RuntimeError('Variable "tauxJustifTotal" does not exist.', 96, $this->source); })()), "html", null, true);
echo " aria-valuemin=\"0\" aria-valuemax=\"100\">";
echo twig_escape_filter($this->env, (isset($context["tauxJustifTotal"]) || array_key_exists("tauxJustifTotal", $context) ? $context["tauxJustifTotal"] : (function () { throw new RuntimeError('Variable "tauxJustifTotal" does not exist.', 96, $this->source); })()), "html", null, true);
echo "%</div>
</div>
</div>
<div style=\"margin-bottom:25px\"></div>
<div class=\"principal\">
<div class=\"intro\">
<h1>Liste par cible environnementale</h1>
</div>
<div class=\"row\">
<div class=\"col-sm-12\">
<table class=\"table table-borderless table-stripped table-hover\">
<thead>
<tr>
<th class=\"text-start align-middle\">Cibles</th>
<td class=\"text-center align-middle\">Justificatifs<br/>fournis</td>
<td class=\"text-center align-middle\">Justificatifs<br/>validés</td>
</tr>
</thead>
<tbody>
";
// line 119
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["listeCibles"]) || array_key_exists("listeCibles", $context) ? $context["listeCibles"] : (function () { throw new RuntimeError('Variable "listeCibles" does not exist.', 119, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 120
echo " ";
$context["current"] = twig_get_attribute($this->env, $this->source, $context["item"], "cibles", [], "any", false, false, false, 120);
// line 121
echo " <tr>
<td class=\"text-start align-middle\">
";
// line 123
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "cibles", [], "any", false, false, false, 123), "html", null, true);
echo "</td>
<td class=\"text-center align-middle\">";
// line 124
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "nbJustificatifs", [], "any", false, false, false, 124), "html", null, true);
echo "
/ ";
// line 125
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "nbExigences", [], "any", false, false, false, 125), "html", null, true);
echo "</td>
<td class=\"text-center align-middle\">";
// line 126
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "nbValides", [], "any", false, false, false, 126), "html", null, true);
echo " / ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "nbExigences", [], "any", false, false, false, 126), "html", null, true);
echo "</td>
<td class=\"text-right align-middle\">
<a class=\"bouton\" style=\"font-size:14px;padding: 10px 25px 10px 15px !important;\"
href=\"";
// line 130
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("cible", ["ciblePropre" => twig_get_attribute($this->env, $this->source, $context["item"], "ciblePropre", [], "any", false, false, false, 130), "code" => twig_get_attribute($this->env, $this->source, (isset($context["projet"]) || array_key_exists("projet", $context) ? $context["projet"] : (function () { throw new RuntimeError('Variable "projet" does not exist.', 130, $this->source); })()), "code", [], "any", false, false, false, 130)]), "html", null, true);
echo "\">
<span
class=\"material-symbols-outlined\"
style=\"font-size:14px\">visibility</span>
</a>
</td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 138
echo " </tbody>
</table>
</div>
</div>
</div>
<div><BR><BR><BR><BR><BR></div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "tri.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 307 => 138, 293 => 130, 284 => 126, 280 => 125, 276 => 124, 272 => 123, 268 => 121, 265 => 120, 261 => 119, 231 => 96, 222 => 89, 213 => 85, 209 => 83, 201 => 79, 197 => 78, 193 => 77, 189 => 76, 185 => 75, 181 => 73, 178 => 72, 174 => 71, 154 => 54, 150 => 52, 140 => 45, 133 => 41, 127 => 38, 121 => 35, 115 => 32, 106 => 26, 102 => 24, 100 => 23, 93 => 18, 89 => 6, 79 => 5, 59 => 3, 36 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'baseVisa.html.twig' %}
{% block title %}QEBOK | {{ projet.nomDuProjet }}{% endblock %}
{% block body %}
{# {% if app.user and projet.dateFinPaiement < date() %}
<div class=\"alert alert-info\">
Le projet est en mode démo.
</div>
{% endif %}
{% if app.user and projet.dateFinPaiement <= dateDans31Jours and projet.dateFinPaiement %}
<div class=\"alert alert-info\">
Le projet passera en mode démo dans {{ diff.days }} jours.
</div>
{% endif %}#}
<div class=\"principal\">
<div class=\"intro\">
{% if app.user %}
<div style=\"float:right\">
<a href=\"{{ path('nouvelleExigence', {'code' : projet.code}) }}\" class=\"bouton btn\" style=\"padding-left:40px;\"><span class=\"material-symbols-outlined\" style=\"top:unset\">Add</span>Ajouter une exigence</a>
<button class=\"btn btn-secondary dropdown-toggle\" type=\"button\" id=\"dropdownMenuButton\" data-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\">
Autres actions
</button>
<div class=\"dropdown-menu\" aria-labelledby=\"dropdownMenuButton\">
<a href=\"{{ path('listeExigences', {'code' : projet.code}) }}\" class=\"dropdown-item\">
<i class=\"fa upload\"></i>Importer un tableau Excel d'exigences
</a>
<a href=\"{{ path('publipostage', {'code' : projet.code}) }}\" class=\"dropdown-item\" style=\"padding-left:40px;\">
<span class=\"material-symbols-outlined\" style=\"top:unset\">visibility</span>
Faire un publipostage</a>
<a href=\"{{ path('index') }}\" class=\"dropdown-item\" style=\"padding-left:40px;\">
<span class=\"material-symbols-outlined\" style=\"top:unset\">visibility</span>
Voir tous les projets</a>
<a href=\"{{ path('projetZip',{'idProjet' : idProjet}) }}\"
class=\"dropdown-item\" style=\"padding-left:40px;\"><span
class=\"material-symbols-outlined\" style=\"top:unset\">Download</span> Télécharger les
justificatifs par lot</a>
<a href=\"{{ path('projetZipCicle',{'idProjet' : idProjet}) }}\" class=\"dropdown-item\"
style=\"padding-left:40px;\"><span class=\"material-symbols-outlined\"
style=\"top:unset\">Download</span> Télécharger les
justificatifs par cibles</a>
</div>
</div>
{% endif %}
<h1>Projet {{ projet.nomDuProjet }} - Liste des lots</h1>
</div>
<div class=\"row\">
<div class=\"col-sm-12\">
<table class=\"table table-borderless table-stripped table-hover\">
<thead>
<tr>
<th class=\"text-start align-middle\">N° Lot</th>
<td class=\"text-start align-middle\">Nom du lot et de l'entreprise</td>
<td class=\"text-center align-middle\">Justificatifs<br/>fournis</td>
<td class=\"text-center align-middle\">Justificatifs<br/>validés</td>
<td> </td>
</tr>
</thead>
<tbody>
{% for item in listeLots %}
{% set current = item.lot %}
<tr>
<td class=\"text-start align-middle\">
{{ item.lot }}</td>
<td style=\"max-width:200px;word-break: break-word\" class=\"text-start align-middle\">{{ item.sousLots|join(' / ') }}</td>
<td class=\"text-center align-middle\">{{ item.nbJustificatifs }}
/ {{ item.nbExigences }}</td>
<td class=\"text-center align-middle\">{{ item.nbValides }} / {{ item.nbExigences }}</td>
<td class=\"text-right align-middle\">
<a class=\"bouton\" {#style=\"padding-left:40px;\"#}
href=\"{{ path('lot', {'lot' : item.lot, 'code' : projet.code}) }}\">{#<span
class=\"material-symbols-outlined\"
style=\"top:unset\">visibility</span>#}Voir le lot</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
<BR>Taux d'éléments fournis :
<div class=\"progress col-6 mx-auto\">
<div class=\"progress-bar bg-success progress-bar-striped\" role=\"progressbar\" style=\"width: {{tauxJustifTotal}}%;\" aria-valuenow={{tauxJustifTotal}} aria-valuemin=\"0\" aria-valuemax=\"100\">{{tauxJustifTotal}}%</div>
</div>
</div>
<div style=\"margin-bottom:25px\"></div>
<div class=\"principal\">
<div class=\"intro\">
<h1>Liste par cible environnementale</h1>
</div>
<div class=\"row\">
<div class=\"col-sm-12\">
<table class=\"table table-borderless table-stripped table-hover\">
<thead>
<tr>
<th class=\"text-start align-middle\">Cibles</th>
<td class=\"text-center align-middle\">Justificatifs<br/>fournis</td>
<td class=\"text-center align-middle\">Justificatifs<br/>validés</td>
</tr>
</thead>
<tbody>
{% for item in listeCibles %}
{% set current = item.cibles %}
<tr>
<td class=\"text-start align-middle\">
{{ item.cibles }}</td>
<td class=\"text-center align-middle\">{{ item.nbJustificatifs }}
/ {{ item.nbExigences }}</td>
<td class=\"text-center align-middle\">{{ item.nbValides }} / {{ item.nbExigences }}</td>
<td class=\"text-right align-middle\">
<a class=\"bouton\" style=\"font-size:14px;padding: 10px 25px 10px 15px !important;\"
href=\"{{ path('cible', {'ciblePropre' : item.ciblePropre, 'code' : projet.code}) }}\">
<span
class=\"material-symbols-outlined\"
style=\"font-size:14px\">visibility</span>
</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
<div><BR><BR><BR><BR><BR></div>
{% endblock %}
", "tri.html.twig", "/srv/data/web/vhosts/app.qebok.fr/templates/tri.html.twig");
}
}