<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;
/* layout.html.twig */
class __TwigTemplate_747ae733e0d7f9eed94ab1741c248d9e extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'title' => [$this, 'block_title'],
'stylesheets' => [$this, 'block_stylesheets'],
'body' => [$this, 'block_body'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "layout.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "layout.html.twig"));
// line 1
yield "<!DOCTYPE html>
<html>
<head>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />
<meta charset=\"UTF-8\" />
<base href=\"";
// line 6
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 6, $this->source); })()), "request", [], "any", false, false, false, 6), "schemeAndHttpHost", [], "any", false, false, false, 6), "html", null, true);
yield "\">
<title>";
// line 7
yield from $this->unwrap()->yieldBlock('title', $context, $blocks);
yield "</title>
<script type=\"text/javascript\" src=\"js/jquery.js\"></script>
";
// line 11
yield from $this->unwrap()->yieldBlock('stylesheets', $context, $blocks);
// line 19
yield "</head>
<body>
<table align=\"center\" cellspacing=\"0\" class=\"site\">
<!-- message d'accueil -->
<tr>
<td class=\"siteentete\">
<a href=\"";
// line 25
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("homepage");
yield "\"><img src=\"images/logo_extranet.png\" alt=\"logo malys extranet\" width=\"522\" height=\"90\" border=\"0\" style=\"float:left\" /></a>
<div class=\"IdentHeader\">
<strong>Bonjour ";
// line 27
if ((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 27, $this->source); })()), "user", [], "any", false, false, false, 27), "contact", [], "any", false, false, false, 27), "html", null, true);
}
yield "</strong><br />
<table align=\"right\">
<tr>
<td><strong>";
// line 30
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate("now", "d/m/Y"), "html", null, true);
yield "</strong> - <td>
<td><div id='d' name='d' style='font-weight:bold;text-align:right;'></div></td>
</tr></table>
</div>
</td>
</tr>
<!-- menu d'administration -->
<tr>
<td class=\"sitemenunav\">";
// line 40
yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\User\\UserController::menuAction"));
yield "</td>
</tr>
<table width=\"1190px\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<!-- bordure gauche -->
<td align=\"center\" valign=\"top\" class=\"site_bordure_g\"><a href=\"";
// line 47
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("homepage");
yield "\"><img src=\"images/icones/ic_accueil.png\" alt=\"Accueil\" vspace=\"20\" border=\"0\" /></a><br />
<a href=\"";
// line 48
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("malys_client_modify");
yield "\"><img src=\"images/icones/ic_prospect.png\" alt=\"Nouveau Prospect\" width=\"26\" height=\"33\" vspace=\"4\" border=\"0\" /></a><br />
<a href=\"";
// line 49
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("malys_user_globalreport");
yield "\"><img src=\"images/icones/ic_activite.png\" alt=\"Activité\" width=\"29\" height=\"31\" vspace=\"4\" border=\"0\" /></a><br />
<a href=\"";
// line 50
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("malys_user_planning", ["annee" => $this->extensions['Twig\Extension\CoreExtension']->formatDate("now", "Y"), "mois" => $this->extensions['Twig\Extension\CoreExtension']->formatDate("now", "m"), "semaine" => $this->extensions['Twig\Extension\CoreExtension']->formatDate("now", "W")]), "html", null, true);
yield "\"><img src=\"images/icones/ic_agenda.png\" alt=\"Agenda\" width=\"31\" height=\"32\" vspace=\"4\" border=\"0\" /></a><br />
<a href=\"";
// line 51
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("logout");
yield "\"><img src=\"images/icones/ic_deconnexion.png\" alt=\"Déconnexion\" width=\"28\" height=\"38\" vspace=\"20\" border=\"0\" /></a>
</td>
<td valign=\"top\">
<!-- 850-->
<table width=\"1190px\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"margin-left:10px\">
";
// line 57
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 57, $this->source); })()), "session", [], "any", false, false, false, 57), "flashbag", [], "any", false, false, false, 57), "all", [], "any", false, false, false, 57));
foreach ($context['_seq'] as $context["label"] => $context["messages"]) {
// line 58
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable($context["messages"]);
foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
// line 59
yield " <div class=\"alert alert-";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["label"], "html", null, true);
yield "\">
";
// line 60
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["message"], "html", null, true);
yield "
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['message'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 63
yield " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['label'], $context['messages'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 64
yield "
";
// line 66
yield " <!-- coprs de la page -->
";
// line 67
yield from $this->unwrap()->yieldBlock('body', $context, $blocks);
// line 68
yield " </table>
</td>
<td valign=\"top\" class=\"site_bordure_d\"> </td>
</tr>
</table>
<!-- javascripts -->
";
// line 76
yield from $this->unwrap()->yieldBlock('javascripts', $context, $blocks);
// line 124
yield "</table>
</body>
</html>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
yield from [];
}
// line 7
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_title(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
yield "Extranet Malys";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 11
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_stylesheets(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 12
yield " <link rel=\"stylesheet\" href=\"css/general.css\" type=\"text/css\" />
<link href=\"https://cdn.jsdelivr.net/npm/select2@4.0.13/dist/css/select2.min.css\" rel=\"stylesheet\" />
<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.css\">
<link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css\">
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 67
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_body(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 76
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_javascripts(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 77
yield " <script type=\"text/javascript\" src=\"js/tools.js\"></script>
<script src=\"https://code.jquery.com/jquery-3.6.0.min.js\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js\"></script>
<script src=\"https://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.22/i18n/jquery-ui-i18n.min.js\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.13/js/select2.min.js\"></script>
<script src=\"";
// line 83
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/tetranzselect2entity/js/select2entity.js"), "html", null, true);
yield "\"></script>
<script>
\$(document).ready(function() {
\$.datepicker.setDefaults( \$.datepicker.regional[ \"fr\" ] );
\$('.js-datepicker').each(function () {
console.log(\"Applying datepicker to:\", this);
\$(this).datepicker({
dateFormat: 'dd/mm/yy',
closeText: 'Fermer',
prevText: 'Précédent',
nextText: 'Suivant',
currentText: 'Aujourd\\'hui',
monthNames: ['Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre'],
monthNamesShort: ['Janv.', 'Févr.', 'Mars', 'Avril', 'Mai', 'Juin', 'Juil.', 'Août', 'Sept.', 'Oct.', 'Nov.', 'Déc.'],
dayNames: ['Dimanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi'],
dayNamesShort: ['Dim.', 'Lun.', 'Mar.', 'Mer.', 'Jeu.', 'Ven.', 'Sam.'],
dayNamesMin: ['D', 'L', 'M', 'M', 'J', 'V', 'S'],
weekHeader: 'Sem.',
});
});
console.log(\"Datepicker applied!\");
// Cibler le champ Select2
\$('#fournisseur').on('select2:select', function (e) {
// Récupérer l'ID du fournisseur sélectionné
var fournisseurId = e.params.data.id;
// Construire l'URL pour rediriger
var redirectUrl = '/fournisseur/admin/' + fournisseurId;
// Rediriger vers l'URL
window.location.href = redirectUrl;
});
});
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "layout.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 300 => 83, 292 => 77, 279 => 76, 257 => 67, 240 => 12, 227 => 11, 204 => 7, 190 => 124, 188 => 76, 178 => 68, 176 => 67, 173 => 66, 170 => 64, 164 => 63, 155 => 60, 150 => 59, 145 => 58, 140 => 57, 132 => 51, 128 => 50, 124 => 49, 120 => 48, 116 => 47, 106 => 40, 93 => 30, 85 => 27, 80 => 25, 72 => 19, 70 => 11, 63 => 7, 59 => 6, 52 => 1,);
}
public function getSourceContext(): Source
{
return new Source("<!DOCTYPE html>
<html>
<head>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />
<meta charset=\"UTF-8\" />
<base href=\"{{ app.request.schemeAndHttpHost }}\">
<title>{% block title %}Extranet Malys{% endblock %}</title>
<script type=\"text/javascript\" src=\"js/jquery.js\"></script>
{% block stylesheets %}
<link rel=\"stylesheet\" href=\"css/general.css\" type=\"text/css\" />
<link href=\"https://cdn.jsdelivr.net/npm/select2@4.0.13/dist/css/select2.min.css\" rel=\"stylesheet\" />
<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.css\">
<link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css\">
{% endblock %}
</head>
<body>
<table align=\"center\" cellspacing=\"0\" class=\"site\">
<!-- message d'accueil -->
<tr>
<td class=\"siteentete\">
<a href=\"{{ path('homepage') }}\"><img src=\"images/logo_extranet.png\" alt=\"logo malys extranet\" width=\"522\" height=\"90\" border=\"0\" style=\"float:left\" /></a>
<div class=\"IdentHeader\">
<strong>Bonjour {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}{{ app.user.contact }}{% endif %}</strong><br />
<table align=\"right\">
<tr>
<td><strong>{{ \"now\"|date(\"d/m/Y\") }}</strong> - <td>
<td><div id='d' name='d' style='font-weight:bold;text-align:right;'></div></td>
</tr></table>
</div>
</td>
</tr>
<!-- menu d'administration -->
<tr>
<td class=\"sitemenunav\">{{ render(controller('App\\\\Controller\\\\User\\\\UserController::menuAction')) }}</td>
</tr>
<table width=\"1190px\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<!-- bordure gauche -->
<td align=\"center\" valign=\"top\" class=\"site_bordure_g\"><a href=\"{{ path('homepage')}}\"><img src=\"images/icones/ic_accueil.png\" alt=\"Accueil\" vspace=\"20\" border=\"0\" /></a><br />
<a href=\"{{ path('malys_client_modify') }}\"><img src=\"images/icones/ic_prospect.png\" alt=\"Nouveau Prospect\" width=\"26\" height=\"33\" vspace=\"4\" border=\"0\" /></a><br />
<a href=\"{{ path('malys_user_globalreport') }}\"><img src=\"images/icones/ic_activite.png\" alt=\"Activité\" width=\"29\" height=\"31\" vspace=\"4\" border=\"0\" /></a><br />
<a href=\"{{ path('malys_user_planning', {'annee' : ('now'|date(\"Y\")), 'mois' : ('now'|date('m')), 'semaine' : ('now'|date('W')) })}}\"><img src=\"images/icones/ic_agenda.png\" alt=\"Agenda\" width=\"31\" height=\"32\" vspace=\"4\" border=\"0\" /></a><br />
<a href=\"{{ path('logout')}}\"><img src=\"images/icones/ic_deconnexion.png\" alt=\"Déconnexion\" width=\"28\" height=\"38\" vspace=\"20\" border=\"0\" /></a>
</td>
<td valign=\"top\">
<!-- 850-->
<table width=\"1190px\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"margin-left:10px\">
{# Affichage des messages flash ici AVANT le block body #}
{% for label, messages in app.session.flashbag.all %}
{% for message in messages %}
<div class=\"alert alert-{{ label }}\">
{{ message }}
</div>
{% endfor %}
{% endfor %}
{# Contenu des pages filles #}
<!-- coprs de la page -->
{% block body %}{% endblock %}
</table>
</td>
<td valign=\"top\" class=\"site_bordure_d\"> </td>
</tr>
</table>
<!-- javascripts -->
{% block javascripts %}
<script type=\"text/javascript\" src=\"js/tools.js\"></script>
<script src=\"https://code.jquery.com/jquery-3.6.0.min.js\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js\"></script>
<script src=\"https://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.22/i18n/jquery-ui-i18n.min.js\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.13/js/select2.min.js\"></script>
<script src=\"{{ asset('bundles/tetranzselect2entity/js/select2entity.js') }}\"></script>
<script>
\$(document).ready(function() {
\$.datepicker.setDefaults( \$.datepicker.regional[ \"fr\" ] );
\$('.js-datepicker').each(function () {
console.log(\"Applying datepicker to:\", this);
\$(this).datepicker({
dateFormat: 'dd/mm/yy',
closeText: 'Fermer',
prevText: 'Précédent',
nextText: 'Suivant',
currentText: 'Aujourd\\'hui',
monthNames: ['Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre'],
monthNamesShort: ['Janv.', 'Févr.', 'Mars', 'Avril', 'Mai', 'Juin', 'Juil.', 'Août', 'Sept.', 'Oct.', 'Nov.', 'Déc.'],
dayNames: ['Dimanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi'],
dayNamesShort: ['Dim.', 'Lun.', 'Mar.', 'Mer.', 'Jeu.', 'Ven.', 'Sam.'],
dayNamesMin: ['D', 'L', 'M', 'M', 'J', 'V', 'S'],
weekHeader: 'Sem.',
});
});
console.log(\"Datepicker applied!\");
// Cibler le champ Select2
\$('#fournisseur').on('select2:select', function (e) {
// Récupérer l'ID du fournisseur sélectionné
var fournisseurId = e.params.data.id;
// Construire l'URL pour rediriger
var redirectUrl = '/fournisseur/admin/' + fournisseurId;
// Rediriger vers l'URL
window.location.href = redirectUrl;
});
});
</script>
{% endblock %}
</table>
</body>
</html>
", "layout.html.twig", "/var/www/malys_alpha/templates/layout.html.twig");
}
}