<?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;
/* backend/contact/show.html.twig */
class __TwigTemplate_323f9345125d35351b1602ba4ab2abf2 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "backend/base.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", "backend/contact/show.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "backend/contact/show.html.twig"));
$this->parent = $this->loadTemplate("backend/base.html.twig", "backend/contact/show.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 "Contact ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["contact"]) || array_key_exists("contact", $context) ? $context["contact"] : (function () { throw new RuntimeError('Variable "contact" does not exist.', 3, $this->source); })()), "fullname", [], "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_content($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", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 6
echo " ";
$this->loadTemplate("backend/partials/_breadcrumb.html.twig", "backend/contact/show.html.twig", 6)->display(twig_array_merge($context, ["datas" => [0 => ["label" => "Contacts", "url" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("advanced_search", ["entity" => "contact"])], 1 => ["label" => ("Entreprise " . ((twig_get_attribute($this->env, $this->source, // line 12
(isset($context["contact"]) || array_key_exists("contact", $context) ? $context["contact"] : (function () { throw new RuntimeError('Variable "contact" does not exist.', 12, $this->source); })()), "firm", [], "any", false, false, false, 12)) ? ((((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["contact"]) || array_key_exists("contact", $context) ? $context["contact"] : (function () { throw new RuntimeError('Variable "contact" does not exist.', 12, $this->source); })()), "firm", [], "any", false, false, false, 12), "raisonSocial", [], "any", false, false, false, 12) . " <i>(#") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["contact"]) || array_key_exists("contact", $context) ? $context["contact"] : (function () { throw new RuntimeError('Variable "contact" does not exist.', 12, $this->source); })()), "firm", [], "any", false, false, false, 12), "id", [], "any", false, false, false, 12)) . ")</i>")) : ("inconnue"))), "url" => ((twig_get_attribute($this->env, $this->source, // line 13
(isset($context["contact"]) || array_key_exists("contact", $context) ? $context["contact"] : (function () { throw new RuntimeError('Variable "contact" does not exist.', 13, $this->source); })()), "firm", [], "any", false, false, false, 13)) ? ($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("show_entreprise", ["id" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["contact"]) || array_key_exists("contact", $context) ? $context["contact"] : (function () { throw new RuntimeError('Variable "contact" does not exist.', 13, $this->source); })()), "firm", [], "any", false, false, false, 13), "id", [], "any", false, false, false, 13)])) : (null))], 2 => ["label" => (((((( !(null === twig_get_attribute($this->env, $this->source, // line 15
(isset($context["contact"]) || array_key_exists("contact", $context) ? $context["contact"] : (function () { throw new RuntimeError('Variable "contact" does not exist.', 15, $this->source); })()), "prenom", [], "any", false, false, false, 15)) || !(null === twig_get_attribute($this->env, $this->source, (isset($context["contact"]) || array_key_exists("contact", $context) ? $context["contact"] : (function () { throw new RuntimeError('Variable "contact" does not exist.', 15, $this->source); })()), "nom", [], "any", false, false, false, 15)))) ? (twig_get_attribute($this->env, $this->source, (isset($context["contact"]) || array_key_exists("contact", $context) ? $context["contact"] : (function () { throw new RuntimeError('Variable "contact" does not exist.', 15, $this->source); })()), "fullname", [], "any", false, false, false, 15)) : ("inconnu")) . " <i>(#") . twig_get_attribute($this->env, $this->source, (isset($context["contact"]) || array_key_exists("contact", $context) ? $context["contact"] : (function () { throw new RuntimeError('Variable "contact" does not exist.', 15, $this->source); })()), "id", [], "any", false, false, false, 15)) . ")</i>")]], "buttons" => [0 => ["display" => (($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_UPDATE_ENTITY")) ? (true) : (false)), "url" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("edit_contact", ["id" => twig_get_attribute($this->env, $this->source, // line 21
(isset($context["contact"]) || array_key_exists("contact", $context) ? $context["contact"] : (function () { throw new RuntimeError('Variable "contact" does not exist.', 21, $this->source); })()), "id", [], "any", false, false, false, 21)]), "class" => "btn btn-sm btn-primary", "icon" => "fas fa-edit", "label" => "Modifier"]]]));
// line 28
echo "
<div class=\"row justify-content-center\">
";
// line 30
if ( !(null === twig_get_attribute($this->env, $this->source, (isset($context["contact"]) || array_key_exists("contact", $context) ? $context["contact"] : (function () { throw new RuntimeError('Variable "contact" does not exist.', 30, $this->source); })()), "firm", [], "any", false, false, false, 30))) {
// line 31
echo " <div class=\"col-12 col-lg-6\">
<div class=\"card h-100\">
<div class=\"card-header card-header-dark\">
<div class=\"pb-2\">Entreprise</div>
</div>
<div class=\"card-body\">
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Raison social</div>
<div class=\"col-9\">";
// line 39
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["contact"]) || array_key_exists("contact", $context) ? $context["contact"] : (function () { throw new RuntimeError('Variable "contact" does not exist.', 39, $this->source); })()), "firm", [], "any", false, false, false, 39), "raisonSocial", [], "any", false, false, false, 39), "html", null, true);
echo "</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Syndicat de rattachement</div>
<div class=\"col-9\">";
// line 43
((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["contact"]) || array_key_exists("contact", $context) ? $context["contact"] : (function () { throw new RuntimeError('Variable "contact" does not exist.', 43, $this->source); })()), "firm", [], "any", false, false, false, 43), "syndicat", [], "any", false, false, false, 43)) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["contact"]) || array_key_exists("contact", $context) ? $context["contact"] : (function () { throw new RuntimeError('Variable "contact" does not exist.', 43, $this->source); })()), "firm", [], "any", false, false, false, 43), "syndicat", [], "any", false, false, false, 43), "nom", [], "any", false, false, false, 43), "html", null, true))) : (print ("")));
echo "</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Région de rattachement</div>
<div class=\"col-9\">";
// line 47
((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["contact"]) || array_key_exists("contact", $context) ? $context["contact"] : (function () { throw new RuntimeError('Variable "contact" does not exist.', 47, $this->source); })()), "firm", [], "any", false, false, false, 47), "homeRegion", [], "any", false, false, false, 47)) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["contact"]) || array_key_exists("contact", $context) ? $context["contact"] : (function () { throw new RuntimeError('Variable "contact" does not exist.', 47, $this->source); })()), "firm", [], "any", false, false, false, 47), "homeRegion", [], "any", false, false, false, 47), "nom", [], "any", false, false, false, 47), "html", null, true))) : (print ("")));
echo "</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Département</div>
<div class=\"col-9\">";
// line 51
((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["contact"]) || array_key_exists("contact", $context) ? $context["contact"] : (function () { throw new RuntimeError('Variable "contact" does not exist.', 51, $this->source); })()), "firm", [], "any", false, false, false, 51), "departement", [], "any", false, false, false, 51)) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["contact"]) || array_key_exists("contact", $context) ? $context["contact"] : (function () { throw new RuntimeError('Variable "contact" does not exist.', 51, $this->source); })()), "firm", [], "any", false, false, false, 51), "departement", [], "any", false, false, false, 51), "nom", [], "any", false, false, false, 51), "html", null, true))) : (print ("")));
echo "</div>
</div>
</div>
</div>
</div>
";
}
// line 57
echo " <div class=\"col-12 col-lg-";
echo (((null === twig_get_attribute($this->env, $this->source, (isset($context["contact"]) || array_key_exists("contact", $context) ? $context["contact"] : (function () { throw new RuntimeError('Variable "contact" does not exist.', 57, $this->source); })()), "firm", [], "any", false, false, false, 57))) ? ("12") : ("6"));
echo "\">
<div class=\"card h-100\">
<div class=\"card-header card-header-dark\">
Information générale
";
// line 62
echo $this->extensions['App\Twig\StatusExtension']->bagdeStatus(twig_get_attribute($this->env, $this->source, (isset($context["contact"]) || array_key_exists("contact", $context) ? $context["contact"] : (function () { throw new RuntimeError('Variable "contact" does not exist.', 62, $this->source); })()), "status", [], "any", false, false, false, 62), false, "float-end mx-2");
echo "
</div>
<div class=\"card-body\">
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Responsable</div>
<div class=\"col-9\">";
// line 67
echo ((twig_get_attribute($this->env, $this->source, (isset($context["contact"]) || array_key_exists("contact", $context) ? $context["contact"] : (function () { throw new RuntimeError('Variable "contact" does not exist.', 67, $this->source); })()), "isResponsible", [], "any", false, false, false, 67)) ? ("<span class=\"text-success\">Oui</span>") : ("Non"));
echo "</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Etablissement</div>
<div class=\"col-9\">";
// line 71
((twig_get_attribute($this->env, $this->source, (isset($context["contact"]) || array_key_exists("contact", $context) ? $context["contact"] : (function () { throw new RuntimeError('Variable "contact" does not exist.', 71, $this->source); })()), "etablissement", [], "any", false, false, false, 71)) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["contact"]) || array_key_exists("contact", $context) ? $context["contact"] : (function () { throw new RuntimeError('Variable "contact" does not exist.', 71, $this->source); })()), "etablissement", [], "any", false, false, false, 71), "nom", [], "any", false, false, false, 71), "html", null, true))) : (print ("")));
echo "</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Civilité</div>
<div class=\"col-9\">";
// line 75
(( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["contact"]) || array_key_exists("contact", $context) ? $context["contact"] : (function () { throw new RuntimeError('Variable "contact" does not exist.', 75, $this->source); })()), "civilite", [], "any", false, false, false, 75))) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["contact"]) || array_key_exists("contact", $context) ? $context["contact"] : (function () { throw new RuntimeError('Variable "contact" does not exist.', 75, $this->source); })()), "civilite", [], "any", false, false, false, 75), "html", null, true))) : (print ("")));
echo "</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Nom</div>
<div class=\"col-9\">";
// line 79
(( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["contact"]) || array_key_exists("contact", $context) ? $context["contact"] : (function () { throw new RuntimeError('Variable "contact" does not exist.', 79, $this->source); })()), "nom", [], "any", false, false, false, 79))) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["contact"]) || array_key_exists("contact", $context) ? $context["contact"] : (function () { throw new RuntimeError('Variable "contact" does not exist.', 79, $this->source); })()), "nom", [], "any", false, false, false, 79), "html", null, true))) : (print ("")));
echo "</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Prénom</div>
<div class=\"col-9\">";
// line 83
(( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["contact"]) || array_key_exists("contact", $context) ? $context["contact"] : (function () { throw new RuntimeError('Variable "contact" does not exist.', 83, $this->source); })()), "prenom", [], "any", false, false, false, 83))) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["contact"]) || array_key_exists("contact", $context) ? $context["contact"] : (function () { throw new RuntimeError('Variable "contact" does not exist.', 83, $this->source); })()), "prenom", [], "any", false, false, false, 83), "html", null, true))) : (print ("")));
echo "</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Tél. bureau</div>
<div class=\"col-9\">";
// line 87
(( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["contact"]) || array_key_exists("contact", $context) ? $context["contact"] : (function () { throw new RuntimeError('Variable "contact" does not exist.', 87, $this->source); })()), "telBureau", [], "any", false, false, false, 87))) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["contact"]) || array_key_exists("contact", $context) ? $context["contact"] : (function () { throw new RuntimeError('Variable "contact" does not exist.', 87, $this->source); })()), "telBureau", [], "any", false, false, false, 87), "html", null, true))) : (print ("")));
echo "</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Tél. portable</div>
<div class=\"col-9\">";
// line 91
(( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["contact"]) || array_key_exists("contact", $context) ? $context["contact"] : (function () { throw new RuntimeError('Variable "contact" does not exist.', 91, $this->source); })()), "telPortable", [], "any", false, false, false, 91))) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["contact"]) || array_key_exists("contact", $context) ? $context["contact"] : (function () { throw new RuntimeError('Variable "contact" does not exist.', 91, $this->source); })()), "telPortable", [], "any", false, false, false, 91), "html", null, true))) : (print ("")));
echo "</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Tél. portable 2</div>
<div class=\"col-9\">";
// line 95
(( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["contact"]) || array_key_exists("contact", $context) ? $context["contact"] : (function () { throw new RuntimeError('Variable "contact" does not exist.', 95, $this->source); })()), "telPortable2", [], "any", false, false, false, 95))) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["contact"]) || array_key_exists("contact", $context) ? $context["contact"] : (function () { throw new RuntimeError('Variable "contact" does not exist.', 95, $this->source); })()), "telPortable2", [], "any", false, false, false, 95), "html", null, true))) : (print ("")));
echo "</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Email</div>
<div class=\"col-9\">";
// line 99
(( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["contact"]) || array_key_exists("contact", $context) ? $context["contact"] : (function () { throw new RuntimeError('Variable "contact" does not exist.', 99, $this->source); })()), "emailContact", [], "any", false, false, false, 99))) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["contact"]) || array_key_exists("contact", $context) ? $context["contact"] : (function () { throw new RuntimeError('Variable "contact" does not exist.', 99, $this->source); })()), "emailContact", [], "any", false, false, false, 99), "html", null, true))) : (print ("")));
echo "</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Date de naissance</div>
<div class=\"col-9\">";
// line 103
(( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["contact"]) || array_key_exists("contact", $context) ? $context["contact"] : (function () { throw new RuntimeError('Variable "contact" does not exist.', 103, $this->source); })()), "dateNaissance", [], "any", false, false, false, 103))) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["contact"]) || array_key_exists("contact", $context) ? $context["contact"] : (function () { throw new RuntimeError('Variable "contact" does not exist.', 103, $this->source); })()), "dateNaissance", [], "any", false, false, false, 103), "html", null, true))) : (print ("")));
echo "</div>
</div>
</div>
</div>
</div>
</div>
<div class=\"card mt-4\">
<div class=\"card-header card-header-dark\">
Relation(s)
</div>
<div class=\"card-body\">
<h4>Commissions(s)</h4>
<div class=\"table-responsive mb-4\">
<table class=\"table\">
<thead>
<th class=\"text-bold\">Nom commission</th>
<th>Rôle</th>
</thead>
<tbody>
";
// line 124
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["contact"]) || array_key_exists("contact", $context) ? $context["contact"] : (function () { throw new RuntimeError('Variable "contact" does not exist.', 124, $this->source); })()), "commissionsContacts", [], "any", false, false, false, 124)) == 0)) {
// line 125
echo " <tr>
<td colspan=\"5\" class=\"text-sm text-center\"><i>Aucune relation</i></td>
</tr>
";
} else {
// line 129
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["contact"]) || array_key_exists("contact", $context) ? $context["contact"] : (function () { throw new RuntimeError('Variable "contact" does not exist.', 129, $this->source); })()), "commissionsContacts", [], "any", false, false, false, 129));
foreach ($context['_seq'] as $context["_key"] => $context["commissionsContact"]) {
// line 130
echo " <tr>
<td>";
// line 131
((twig_get_attribute($this->env, $this->source, $context["commissionsContact"], "commission", [], "any", false, false, false, 131)) ? (print (twig_escape_filter($this->env, twig_upper_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["commissionsContact"], "commission", [], "any", false, false, false, 131), "nom", [], "any", false, false, false, 131)), "html", null, true))) : (print ("")));
echo "</td>
<td>
";
// line 133
if (twig_get_attribute($this->env, $this->source, $context["commissionsContact"], "commissionRoles", [], "any", false, false, false, 133)) {
// line 134
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["commissionsContact"], "commissionRoles", [], "any", false, false, false, 134));
foreach ($context['_seq'] as $context["_key"] => $context["role"]) {
// line 135
echo " <div>";
echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, twig_get_attribute($this->env, $this->source, $context["role"], "nom", [], "any", false, false, false, 135)), "html", null, true);
echo "</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['role'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 137
echo " ";
}
// line 138
echo " </td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['commissionsContact'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 142
echo " ";
}
// line 143
echo " </tbody>
</table>
</div>
<h4>Conseil d'administration</h4>
<div class=\"table-responsive mb-4\">
<table class=\"table\">
<thead>
<tr>
<th class=\"text-bold\">Rôle dans le Conseil d'administration</th>
</tr>
</thead>
<tbody>
";
// line 157
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["contact"]) || array_key_exists("contact", $context) ? $context["contact"] : (function () { throw new RuntimeError('Variable "contact" does not exist.', 157, $this->source); })()), "contactConseilAdministrations", [], "any", false, false, false, 157)) == 0)) {
// line 158
echo " <tr>
<td colspan=\"4\" class=\"text-sm text-center\"><i>Aucune relation</i></td>
</tr>
";
} else {
// line 162
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["contact"]) || array_key_exists("contact", $context) ? $context["contact"] : (function () { throw new RuntimeError('Variable "contact" does not exist.', 162, $this->source); })()), "contactConseilAdministrations", [], "any", false, false, false, 162));
foreach ($context['_seq'] as $context["_key"] => $context["contactConseilAdministration"]) {
// line 163
echo " <tr>
<td>";
// line 164
((twig_get_attribute($this->env, $this->source, $context["contactConseilAdministration"], "conseilAdministration", [], "any", false, false, false, 164)) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["contactConseilAdministration"], "conseilAdministration", [], "any", false, false, false, 164), "role", [], "any", false, false, false, 164), "html", null, true))) : (print ("")));
echo "</td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['contactConseilAdministration'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 168
echo " ";
}
// line 169
echo " </tbody>
</table>
</div>
</div>
</div>
<div class=\"card mt-4\">
<div class=\"card-header card-header-dark\">
Repère(s)
</div>
<div class=\"card-body\">
<div>
";
// line 181
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["contact"]) || array_key_exists("contact", $context) ? $context["contact"] : (function () { throw new RuntimeError('Variable "contact" does not exist.', 181, $this->source); })()), "repere", [], "any", false, false, false, 181));
foreach ($context['_seq'] as $context["_key"] => $context["repere"]) {
// line 182
echo " <span class=\"badge bg-primary p-2 mx-1\">#";
echo twig_escape_filter($this->env, twig_upper_filter($this->env, twig_get_attribute($this->env, $this->source, $context["repere"], "nom", [], "any", false, false, false, 182)), "html", null, true);
echo "</span>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['repere'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 184
echo " </div>
</div>
</div>
<div class=\"card mt-4\">
<div class=\"card-header card-header-dark\">
Utilisateur extranet
</div>
<div class=\"card-body\">
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Utilisateur existant ?</div>
<div class=\"col-9\">";
// line 195
echo (((isset($context["userExists"]) || array_key_exists("userExists", $context) ? $context["userExists"] : (function () { throw new RuntimeError('Variable "userExists" does not exist.', 195, $this->source); })())) ? ((("<span class=\"text-bold text-success\">Oui (#" . twig_get_attribute($this->env, $this->source, (isset($context["userExists"]) || array_key_exists("userExists", $context) ? $context["userExists"] : (function () { throw new RuntimeError('Variable "userExists" does not exist.', 195, $this->source); })()), "id", [], "any", false, false, false, 195)) . ")</span>")) : ("Non"));
echo "</div>
</div>
";
// line 198
if ((isset($context["userExists"]) || array_key_exists("userExists", $context) ? $context["userExists"] : (function () { throw new RuntimeError('Variable "userExists" does not exist.', 198, $this->source); })())) {
// line 199
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_member_reset_password", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["userExists"]) || array_key_exists("userExists", $context) ? $context["userExists"] : (function () { throw new RuntimeError('Variable "userExists" does not exist.', 199, $this->source); })()), "id", [], "any", false, false, false, 199)]), "html", null, true);
echo "\" class=\"btn btn-sm btn-warning\">
<i class=\"fas fa-arrows-rotate\"></i> Réinitialiser le mot de passe
</a>
";
}
// line 203
echo "
";
// line 204
if (((null === (isset($context["userExists"]) || array_key_exists("userExists", $context) ? $context["userExists"] : (function () { throw new RuntimeError('Variable "userExists" does not exist.', 204, $this->source); })())) && $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN"))) {
// line 205
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_member_add_from_contact", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["contact"]) || array_key_exists("contact", $context) ? $context["contact"] : (function () { throw new RuntimeError('Variable "contact" does not exist.', 205, $this->source); })()), "id", [], "any", false, false, false, 205)]), "html", null, true);
echo "\" class=\"btn btn-sm btn-success\">
<i class=\"fas fa-plus\"></i> Créer un utilisateur
</a>
";
}
// line 209
echo " </div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "backend/contact/show.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 412 => 209, 404 => 205, 402 => 204, 399 => 203, 391 => 199, 389 => 198, 383 => 195, 370 => 184, 361 => 182, 357 => 181, 343 => 169, 340 => 168, 330 => 164, 327 => 163, 322 => 162, 316 => 158, 314 => 157, 298 => 143, 295 => 142, 286 => 138, 283 => 137, 274 => 135, 269 => 134, 267 => 133, 262 => 131, 259 => 130, 254 => 129, 248 => 125, 246 => 124, 222 => 103, 215 => 99, 208 => 95, 201 => 91, 194 => 87, 187 => 83, 180 => 79, 173 => 75, 166 => 71, 159 => 67, 151 => 62, 142 => 57, 133 => 51, 126 => 47, 119 => 43, 112 => 39, 102 => 31, 100 => 30, 96 => 28, 94 => 21, 93 => 15, 92 => 13, 91 => 12, 89 => 6, 79 => 5, 59 => 3, 36 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'backend/base.html.twig' %}
{% block title %}Contact {{ contact.fullname }}{% endblock %}
{% block content %}
{% include 'backend/partials/_breadcrumb.html.twig' with {
datas: [
{
label: 'Contacts',
url: path('advanced_search', {entity: 'contact'})
}, {
label: 'Entreprise ' ~ (contact.firm ? contact.firm.raisonSocial ~ ' <i>(#' ~ contact.firm.id ~ ')</i>' : 'inconnue'),
url: (contact.firm ? path('show_entreprise', {id: contact.firm.id}) : null)
}, {
label: (contact.prenom is not null or contact.nom is not null ? contact.fullname : 'inconnu') ~ ' <i>(#' ~ contact.id ~ ')</i>'
}
],
buttons: [
{
display: is_granted('ROLE_UPDATE_ENTITY') ? true : false,
url: path('edit_contact', {'id': contact.id}),
class: 'btn btn-sm btn-primary',
icon: 'fas fa-edit',
label: 'Modifier'
}
]
} %}
<div class=\"row justify-content-center\">
{% if contact.firm is not null %}
<div class=\"col-12 col-lg-6\">
<div class=\"card h-100\">
<div class=\"card-header card-header-dark\">
<div class=\"pb-2\">Entreprise</div>
</div>
<div class=\"card-body\">
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Raison social</div>
<div class=\"col-9\">{{ contact.firm.raisonSocial }}</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Syndicat de rattachement</div>
<div class=\"col-9\">{{ contact.firm.syndicat ? contact.firm.syndicat.nom }}</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Région de rattachement</div>
<div class=\"col-9\">{{ contact.firm.homeRegion ? contact.firm.homeRegion.nom }}</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Département</div>
<div class=\"col-9\">{{ contact.firm.departement ? contact.firm.departement.nom }}</div>
</div>
</div>
</div>
</div>
{% endif %}
<div class=\"col-12 col-lg-{{ contact.firm is null ? '12' : '6' }}\">
<div class=\"card h-100\">
<div class=\"card-header card-header-dark\">
Information générale
{{ bagdeStatus(contact.status, false, 'float-end mx-2') }}
</div>
<div class=\"card-body\">
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Responsable</div>
<div class=\"col-9\">{{ contact.isResponsible ? '<span class=\"text-success\">Oui</span>'|raw : 'Non' }}</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Etablissement</div>
<div class=\"col-9\">{{ contact.etablissement ? contact.etablissement.nom }}</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Civilité</div>
<div class=\"col-9\">{{ contact.civilite is not empty ? contact.civilite : '' }}</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Nom</div>
<div class=\"col-9\">{{ contact.nom is not empty ? contact.nom : '' }}</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Prénom</div>
<div class=\"col-9\">{{ contact.prenom is not empty ? contact.prenom : '' }}</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Tél. bureau</div>
<div class=\"col-9\">{{ contact.telBureau is not empty ? contact.telBureau : '' }}</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Tél. portable</div>
<div class=\"col-9\">{{ contact.telPortable is not empty ? contact.telPortable : '' }}</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Tél. portable 2</div>
<div class=\"col-9\">{{ contact.telPortable2 is not empty ? contact.telPortable2 : '' }}</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Email</div>
<div class=\"col-9\">{{ contact.emailContact is not empty ? contact.emailContact : '' }}</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Date de naissance</div>
<div class=\"col-9\">{{ contact.dateNaissance is not empty ? contact.dateNaissance : '' }}</div>
</div>
</div>
</div>
</div>
</div>
<div class=\"card mt-4\">
<div class=\"card-header card-header-dark\">
Relation(s)
</div>
<div class=\"card-body\">
<h4>Commissions(s)</h4>
<div class=\"table-responsive mb-4\">
<table class=\"table\">
<thead>
<th class=\"text-bold\">Nom commission</th>
<th>Rôle</th>
</thead>
<tbody>
{% if contact.commissionsContacts|length == 0 %}
<tr>
<td colspan=\"5\" class=\"text-sm text-center\"><i>Aucune relation</i></td>
</tr>
{% else %}
{% for commissionsContact in contact.commissionsContacts %}
<tr>
<td>{{ commissionsContact.commission ? commissionsContact.commission.nom|upper }}</td>
<td>
{% if commissionsContact.commissionRoles %}
{% for role in commissionsContact.commissionRoles %}
<div>{{ role.nom|capitalize }}</div>
{% endfor %}
{% endif %}
</td>
</tr>
{% endfor %}
{% endif %}
</tbody>
</table>
</div>
<h4>Conseil d'administration</h4>
<div class=\"table-responsive mb-4\">
<table class=\"table\">
<thead>
<tr>
<th class=\"text-bold\">Rôle dans le Conseil d'administration</th>
</tr>
</thead>
<tbody>
{% if contact.contactConseilAdministrations|length == 0 %}
<tr>
<td colspan=\"4\" class=\"text-sm text-center\"><i>Aucune relation</i></td>
</tr>
{% else %}
{% for contactConseilAdministration in contact.contactConseilAdministrations %}
<tr>
<td>{{ contactConseilAdministration.conseilAdministration ? contactConseilAdministration.conseilAdministration.role }}</td>
</tr>
{% endfor %}
{% endif %}
</tbody>
</table>
</div>
</div>
</div>
<div class=\"card mt-4\">
<div class=\"card-header card-header-dark\">
Repère(s)
</div>
<div class=\"card-body\">
<div>
{% for repere in contact.repere %}
<span class=\"badge bg-primary p-2 mx-1\">#{{ repere.nom|upper }}</span>
{% endfor %}
</div>
</div>
</div>
<div class=\"card mt-4\">
<div class=\"card-header card-header-dark\">
Utilisateur extranet
</div>
<div class=\"card-body\">
<div class=\"row mb-3\">
<div class=\"col-3 text-bold\">Utilisateur existant ?</div>
<div class=\"col-9\">{{ userExists ? ('<span class=\"text-bold text-success\">Oui (#' ~ userExists.id ~ ')</span>')|raw : 'Non' }}</div>
</div>
{% if userExists %}
<a href=\"{{ path('user_member_reset_password', {id: userExists.id}) }}\" class=\"btn btn-sm btn-warning\">
<i class=\"fas fa-arrows-rotate\"></i> Réinitialiser le mot de passe
</a>
{% endif %}
{% if userExists is null and is_granted('ROLE_ADMIN') %}
<a href=\"{{ path('user_member_add_from_contact', {id: contact.id}) }}\" class=\"btn btn-sm btn-success\">
<i class=\"fas fa-plus\"></i> Créer un utilisateur
</a>
{% endif %}
</div>
</div>
{% endblock %}", "backend/contact/show.html.twig", "/var/www/html/symfony/templates/backend/contact/show.html.twig");
}
}