Commit 02999afd authored by Chrystel Moreau's avatar Chrystel Moreau
Browse files

gestion des Intervenant dans les visualisation de l'agenda (participant / admin)

parent 36f1fbb7
......@@ -35,12 +35,14 @@ final class DashboardAdminAgendaAction
}
$salles = $this->getSalles();
$thematiques = $this->getThematiques();
$intervenants = $this->getIntervenants();
$a = [
'token' => $token,
'role_si'=> $roleSI,
'salles' => $salles,
'thematiques' => $thematiques,
'intervenants' => $intervenants,
'jdev' => $this->settings['jdev']
];
......@@ -58,14 +60,14 @@ final class DashboardAdminAgendaAction
$inscrits= $this->getInscrits();
$a['tot_inscrits'] = count($inscrits);
$a['pa_4_am'] = $this->getAgendas($this->settings['jdev']['j1'],'08:00:00','13:00:00');
$a['pa_4_pm'] = $this->getAgendas($this->settings['jdev']['j1'],'12:00:00','19:00:00');
$a['pa_5_am'] = $this->getAgendas($this->settings['jdev']['j2'],'08:00:00','13:00:00');
$a['pa_5_pm'] = $this->getAgendas($this->settings['jdev']['j2'],'12:00:00','19:00:00');
$a['pa_6_am'] = $this->getAgendas($this->settings['jdev']['j3'],'08:00:00','13:00:00');
$a['pa_6_pm'] = $this->getAgendas($this->settings['jdev']['j3'],'12:00:00','19:00:00');
$a['pa_7_am'] = $this->getAgendas($this->settings['jdev']['j4'],'08:00:00','13:00:00');
$a['pa_7_pm'] = $this->getAgendas($this->settings['jdev']['j4'],'12:00:00','19:00:00');
$a['pa_am'][0] = $this->getAgendas($this->settings['jdev']['j1'],'08:00:00','13:00:00');
$a['pa_pm'][0] = $this->getAgendas($this->settings['jdev']['j1'],'12:00:00','19:00:00');
$a['pa_am'][1] = $this->getAgendas($this->settings['jdev']['j2'],'08:00:00','13:00:00');
$a['pa_pm'][1] = $this->getAgendas($this->settings['jdev']['j2'],'12:00:00','19:00:00');
$a['pa_am'][2] = $this->getAgendas($this->settings['jdev']['j3'],'08:00:00','13:00:00');
$a['pa_pm'][2] = $this->getAgendas($this->settings['jdev']['j3'],'12:00:00','19:00:00');
$a['pa_am'][3] = $this->getAgendas($this->settings['jdev']['j4'],'08:00:00','13:00:00');
$a['pa_pm'][3] = $this->getAgendas($this->settings['jdev']['j4'],'12:00:00','19:00:00');
$this->view->render($response, 'dashboard_admin_agenda.twig', $a);
......@@ -102,5 +104,14 @@ final class DashboardAdminAgendaAction
$dql = "SELECT s FROM App\Entity\Salle s ORDER BY s.etage ASC";
$query = $this->em->createQuery($dql);
return $query->getResult();
}
}
private function getIntervenants()
{
$dql = "SELECT distinct p.nom,p.id,p.prenom FROM App\Entity\ParticipantContribution pc LEFT JOIN pc.participant p where pc.contribution != 5 ORDER BY p.nom ASC";
$query = $this->em->createQuery($dql);
return $query->getResult();
}
}
......@@ -52,7 +52,9 @@ final class DashboardAdminParticipantGestionAction
private function getParticipants()
{
$dql = "SELECT p as participant, ";
$dql .= "(select count(pa) from App\Entity\ParticipantAgenda pa where p.id=pa.participant) as inscrit ";
$dql .= "(select count(pa) from App\Entity\ParticipantAgenda pa where p.id=pa.participant) as inscrit, ";
$dql .= "(select count(pc) from App\Entity\ParticipantContribution pc where p.id=pc.participant and pc.contribution != 5) as contribution, ";
$dql .= "(select count(pp) from App\Entity\ParticipantContribution pp where p.id=pp.participant and pp.contribution = 5) as poster ";
$dql .= " FROM App\Entity\Participant p";
$dql .= " WHERE p.emailValide='t' ORDER BY p.nom";
$query = $this->em->createQuery($dql);
......@@ -67,7 +69,5 @@ final class DashboardAdminParticipantGestionAction
$query = $this->em->createQuery($dql);
return $query->getResult();
}
}
......@@ -44,14 +44,14 @@ final class DashboardAdminThematiqueAgendaAction
$a['thematique'] = $this->em->find('App\Entity\Thematique', $params['them_id']);
$a['pa_4_am'] = $this->getAgendas($this->settings['jdev']['j1'],'08:00:00','13:00:00');
$a['pa_4_pm'] = $this->getAgendas($this->settings['jdev']['j1'],'12:00:00','19:00:00');
$a['pa_5_am'] = $this->getAgendas($this->settings['jdev']['j2'],'08:00:00','13:00:00');
$a['pa_5_pm'] = $this->getAgendas($this->settings['jdev']['j2'],'12:00:00','19:00:00');
$a['pa_6_am'] = $this->getAgendas($this->settings['jdev']['j3'],'08:00:00','13:00:00');
$a['pa_6_pm'] = $this->getAgendas($this->settings['jdev']['j3'],'12:00:00','19:00:00');
$a['pa_7_am'] = $this->getAgendas($this->settings['jdev']['j4'],'08:00:00','13:00:00');
$a['pa_7_pm'] = $this->getAgendas($this->settings['jdev']['j4'],'12:00:00','19:00:00');
$a['pa_am'][0] = $this->getAgendas($this->settings['jdev']['j1'],'08:00:00','13:00:00');
$a['pa_pm'][0] = $this->getAgendas($this->settings['jdev']['j1'],'12:00:00','19:00:00');
$a['pa_am'][1] = $this->getAgendas($this->settings['jdev']['j2'],'08:00:00','13:00:00');
$a['pa_pm'][1] = $this->getAgendas($this->settings['jdev']['j2'],'12:00:00','19:00:00');
$a['pa_am'][2] = $this->getAgendas($this->settings['jdev']['j3'],'08:00:00','13:00:00');
$a['pa_pm'][2] = $this->getAgendas($this->settings['jdev']['j3'],'12:00:00','19:00:00');
$a['pa_am'][3] = $this->getAgendas($this->settings['jdev']['j4'],'08:00:00','13:00:00');
$a['pa_pm'][3] = $this->getAgendas($this->settings['jdev']['j4'],'12:00:00','19:00:00');
$this->view->render($response, 'dashboard_admin_thematique_agenda.twig',$a);
......
......@@ -31,11 +31,13 @@ final class DashboardParticipantAgendaAction
$roleSI = $request->getAttribute('roleSI');
$thematiques = $this->getThematiques();
$intervenants = $this->getIntervenants();
$a = [
'token' => $token,
'role_si'=> $roleSI,
'thematiques' => $thematiques,
'intervenants' => $intervenants,
'jdev' => $this->settings['jdev']
];
......@@ -49,14 +51,14 @@ final class DashboardParticipantAgendaAction
$a['agendas'] = $agendas;
}
$a['pa_4_am'] = $this->getAgendas($this->settings['jdev']['j1'],'08:00:00','13:00:00');
$a['pa_4_pm'] = $this->getAgendas($this->settings['jdev']['j1'],'12:00:00','19:00:00');
$a['pa_5_am'] = $this->getAgendas($this->settings['jdev']['j2'],'08:00:00','13:00:00');
$a['pa_5_pm'] = $this->getAgendas($this->settings['jdev']['j2'],'12:00:00','19:00:00');
$a['pa_6_am'] = $this->getAgendas($this->settings['jdev']['j3'],'08:00:00','13:00:00');
$a['pa_6_pm'] = $this->getAgendas($this->settings['jdev']['j3'],'12:00:00','19:00:00');
$a['pa_7_am'] = $this->getAgendas($this->settings['jdev']['j4'],'08:00:00','13:00:00');
$a['pa_7_pm'] = $this->getAgendas($this->settings['jdev']['j4'],'12:00:00','19:00:00');
$a['pa_am'][0] = $this->getAgendas($this->settings['jdev']['j1'],'08:00:00','13:00:00');
$a['pa_pm'][0] = $this->getAgendas($this->settings['jdev']['j1'],'12:00:00','19:00:00');
$a['pa_am'][1] = $this->getAgendas($this->settings['jdev']['j2'],'08:00:00','13:00:00');
$a['pa_pm'][1] = $this->getAgendas($this->settings['jdev']['j2'],'12:00:00','19:00:00');
$a['pa_am'][2] = $this->getAgendas($this->settings['jdev']['j3'],'08:00:00','13:00:00');
$a['pa_pm'][2] = $this->getAgendas($this->settings['jdev']['j3'],'12:00:00','19:00:00');
$a['pa_am'][3] = $this->getAgendas($this->settings['jdev']['j4'],'08:00:00','13:00:00');
$a['pa_pm'][3] = $this->getAgendas($this->settings['jdev']['j4'],'12:00:00','19:00:00');
$this->view->render($response, 'dashboard_participant_agenda.twig', $a);
......@@ -80,5 +82,13 @@ final class DashboardParticipantAgendaAction
$dql = "SELECT t FROM App\Entity\Thematique t ORDER BY t.label";
$query = $this->em->createQuery($dql);
return $query->getResult();
}
}
private function getIntervenants()
{
$dql = "SELECT distinct p.nom,p.id,p.prenom FROM App\Entity\ParticipantContribution pc LEFT JOIN pc.participant p where pc.contribution != 5 ORDER BY p.nom ASC";
$query = $this->em->createQuery($dql);
return $query->getResult();
}
}
......@@ -31,24 +31,25 @@ final class DashboardParticipantParcoursAction
$roleSI = $request->getAttribute('roleSI');
$email = $request->getAttribute('email');
$participant = $this->getParticipant($email);
$intervenants = $this->getIntervenants();
$a = [
'page' => 'dashboard-participant-parcours',
'token' => $token,
'role_si'=> $roleSI,
'participant' => $participant,
'intervenants' => $intervenants,
'jdev' => $this->settings['jdev']
];
$a['pa_4_am'] = $this->getParcours($this->settings['jdev']['j1'],'08:00:00','13:00:00',$participant->getId());
$a['pa_4_pm'] = $this->getParcours($this->settings['jdev']['j1'],'12:00:00','19:00:00',$participant->getId());
$a['pa_5_am'] = $this->getParcours($this->settings['jdev']['j2'],'08:00:00','13:00:00',$participant->getId());
$a['pa_5_pm'] = $this->getParcours($this->settings['jdev']['j2'],'12:00:00','19:00:00',$participant->getId());
$a['pa_6_am'] = $this->getParcours($this->settings['jdev']['j3'],'08:00:00','13:00:00',$participant->getId());
$a['pa_6_pm'] = $this->getParcours($this->settings['jdev']['j3'],'12:00:00','19:00:00',$participant->getId());
$a['pa_7_am'] = $this->getParcours($this->settings['jdev']['j4'],'08:00:00','13:00:00',$participant->getId());
$a['pa_7_pm'] = $this->getParcours($this->settings['jdev']['j4'],'12:00:00','19:00:00',$participant->getId());
$a['pa_am'][0] = $this->getParcours($this->settings['jdev']['j1'],'08:00:00','13:00:00',$participant->getId());
$a['pa_pm'][0] = $this->getParcours($this->settings['jdev']['j1'],'12:00:00','19:00:00',$participant->getId());
$a['pa_am'][1] = $this->getParcours($this->settings['jdev']['j2'],'08:00:00','13:00:00',$participant->getId());
$a['pa_pm'][1] = $this->getParcours($this->settings['jdev']['j2'],'12:00:00','19:00:00',$participant->getId());
$a['pa_am'][2] = $this->getParcours($this->settings['jdev']['j3'],'08:00:00','13:00:00',$participant->getId());
$a['pa_pm'][2] = $this->getParcours($this->settings['jdev']['j3'],'12:00:00','19:00:00',$participant->getId());
$a['pa_am'][3] = $this->getParcours($this->settings['jdev']['j4'],'08:00:00','13:00:00',$participant->getId());
$a['pa_pm'][3] = $this->getParcours($this->settings['jdev']['j4'],'12:00:00','19:00:00',$participant->getId());
if (array_key_exists('jour', $params)) {
$agendas = $this->getAgendas($params['jour'],$params['debut'],$params['fin'],$participant->getId());
......@@ -151,5 +152,12 @@ final class DashboardParticipantParcoursAction
return $query->getResult();
}
private function getIntervenants()
{
$dql = "SELECT distinct p.nom,p.id,p.prenom FROM App\Entity\ParticipantContribution pc LEFT JOIN pc.participant p where pc.contribution != 5 ORDER BY p.nom ASC";
$query = $this->em->createQuery($dql);
return $query->getResult();
}
}
This diff is collapsed.
......@@ -41,55 +41,21 @@
<th class="td1-parcours"><a href="dashboard-participant-parcours?token={{ token }}&jour={{ jdev.j4 }}&debut=08:00:00&fin=13:30:00" class="btn btn-info btn-sm btn-block btn-jour" value="04 Juillet 2017 - Matin">Matin</a><br></th>
</tr>
<tr>
<td class="td-parcours">
{% if pa_4_am %}
{% for p in pa_4_am %}
<b>Formation</b> : {{ p.getAgenda().getFormation().getNom() }}<br>
<b>Intitulé</b> : {{ p.getAgenda().getFormation().getTitre() }}<br>
<b>Horaire</b> : {{ p.getAgenda().getDateDebut() | date("H:i") }} - {{ p.getAgenda().getDateFin() | date("H:i") }}<br>
<b>Salle</b> : {{ p.getAgenda().getSalle().getNom() }}<br>
{% endfor %}
{% else %}
pas d'inscription
{% endif %}
</td>
<td class="td-parcours">
{% if pa_5_am %}
{% for p in pa_5_am %}
<b>Formation</b> : {{ p.getAgenda().getFormation().getNom() }}<br>
<b>Intitulé</b> : {{ p.getAgenda().getFormation().getTitre() }}<br>
<b>Horaire</b> : {{ p.getAgenda().getDateDebut() | date("H:i") }} - {{ p.getAgenda().getDateFin() | date("H:i") }}<br>
<b>Salle</b> : {{ p.getAgenda().getSalle().getNom() }}<br>
{% endfor %}
{% else %}
pas d'inscription
{% endif %}
</td>
<td class="td-parcours">
{% if pa_6_am %}
{% for p in pa_6_am %}
<b>Formation</b> : {{ p.getAgenda().getFormation().getNom() }}<br>
<b>Intitulé</b> : {{ p.getAgenda().getFormation().getTitre() }}<br>
<b>Horaire</b> : {{ p.getAgenda().getDateDebut() | date("H:i") }} - {{ p.getAgenda().getDateFin() | date("H:i") }}<br>
<b>Salle</b> : {{ p.getAgenda().getSalle().getNom() }}<br>
{% endfor %}
{% else %}
pas d'inscription
{% endif %}
</td>
<td class="td-parcours">
{% if pa_7_am %}
{% for p in pa_7_am %}
<b>Formation</b> : {{ p.getAgenda().getFormation().getNom() }}<br>
<b>Intitulé</b> : {{ p.getAgenda().getFormation().getTitre() }}<br>
<b>Horaire</b> : {{ p.getAgenda().getDateDebut() | date("H:i") }} - {{ p.getAgenda().getDateFin() | date("H:i") }}<br>
<b>Salle</b> : {{ p.getAgenda().getSalle().getNom() }}<br>
{% endfor %}
{% else %}
pas d'inscription
{% endif %}
</td>
{% for i in 0..3 %}
<td class="td-parcours">
{% if pa_am[i] %}
{% for p in pa_am[i] %}
<b>Formation</b> : {{ p.getAgenda().getFormation().getNom() }}<br>
<b>Intitulé</b> : {{ p.getAgenda().getFormation().getTitre() }}<br>
<b>Horaire</b> : {{ p.getAgenda().getDateDebut() | date("H:i") }} - {{ p.getAgenda().getDateFin() | date("H:i") }}<br>
<b>Salle</b> : {{ p.getAgenda().getSalle().getNom() }}<br>
<p></p>
{% endfor %}
{% else %}
pas d'inscription
{% endif %}
</td>
{% endfor %}
</tr>
<tr>
<th class="td1-parcours"><a href="dashboard-participant-parcours?token={{ token }}&jour={{ jdev.j1 }}&debut=13:00:00&fin=19:00:00" class="btn btn-info btn-sm btn-block btn-jour" value="04 Juillet 2017 - Après-Midi">Après-Midi</a><br></th>
......@@ -98,53 +64,21 @@
<th class="td1-parcours"><a href="dashboard-participant-parcours?token={{ token }}&jour={{ jdev.j4 }}&debut=13:00:00&fin=19:00:00" class="btn btn-info btn-sm btn-block btn-jour" value="04 Juillet 2017 - Après-Midi">Après-Midi</a><br></th>
</tr>
<tr>
<td class="td-parcours">
{% if pa_4_pm %}
{% for p in pa_4_pm %}
<b>Formation</b> : {{ p.getAgenda().getFormation().getNom() }}<br>
<b>Horaire</b> : {{ p.getAgenda().getDateDebut() | date("H:i") }} - {{ p.getAgenda().getDateFin() | date("H:i") }}<br>
<b>Salle</b> : {{ p.getAgenda().getSalle().getNom() }}<br>
{% endfor %}
{% else %}
pas d'inscription
{% endif %}
</td>
<td class="td-parcours">
{% if pa_5_pm %}
{% for p in pa_5_pm %}
<b>Formation</b> : {{ p.getAgenda().getFormation().getNom() }}<br>
<b>Intitulé</b> : {{ p.getAgenda().getFormation().getTitre() }}<br>
<b>Horaire</b> : {{ p.getAgenda().getDateDebut() | date("H:i") }} - {{ p.getAgenda().getDateFin() | date("H:i") }}<br>
<b>Salle</b> : {{ p.getAgenda().getSalle().getNom() }}<br>
{% endfor %}
{% else %}
pas d'inscription
{% endif %}
</td>
<td class="td-parcours">
{% if pa_6_pm %}
{% for p in pa_6_pm %}
<b>Formation</b> : {{ p.getAgenda().getFormation().getNom() }}<br>
<b>Intitulé</b> : {{ p.getAgenda().getFormation().getTitre() }}<br>
<b>Horaire</b> : {{ p.getAgenda().getDateDebut() | date("H:i") }} - {{ p.getAgenda().getDateFin() | date("H:i") }}<br>
<b>Salle</b> : {{ p.getAgenda().getSalle().getNom() }}<br>
{% endfor %}
{% else %}
pas d'inscription
{% endif %}
</td>
<td class="td-parcours">
{% if pa_7_pm %}
{% for p in pa_7_pm %}
<b>Formation</b> : {{ p.getAgenda().getFormation().getNom() }}<br>
<b>Intitulé</b> : {{ p.getAgenda().getFormation().getTitre() }}<br>
<b>Horaire</b> : {{ p.getAgenda().getDateDebut() | date("H:i") }} - {{ p.getAgenda().getDateFin() | date("H:i") }}<br>
<b>Salle</b> : {{ p.getAgenda().getSalle().getNom() }}<br>
{% endfor %}
{% else %}
pas d'inscription
{% endif %}
</td>
{% for i in 0..3 %}
<td class="td-parcours">
{% if pa_pm[i] %}
{% for p in pa_pm[i] %}
<b>Formation</b> : {{ p.getAgenda().getFormation().getNom() }}<br>
<b>Intitulé</b> : {{ p.getAgenda().getFormation().getTitre() }}<br>
<b>Horaire</b> : {{ p.getAgenda().getDateDebut() | date("H:i") }} - {{ p.getAgenda().getDateFin() | date("H:i") }}<br>
<b>Salle</b> : {{ p.getAgenda().getSalle().getNom() }}<br>
<p></p>
{% endfor %}
{% else %}
pas d'inscription
{% endif %}
</td>
{% endfor %}
</tr>
</tbody>
</table>
......
......@@ -19,6 +19,11 @@
<div class="panel-heading" id="panel-inscription">Liste des Sessions proposées à l'agenda {% if journee %}<b> <i class="fa fa-arrow-circle-right"></i> {{ jour |date("d/m/Y")}} {{ journee }} </b>{% endif %}</div>
<div class="panel-body">
<a href="dashboard-participant-parcours?token={{token}}" id="btn-back-parcours" class="btn btn-info">
<i class="fa fa-arrow-left"></i> Retour à Mon Parcours
</a>
<div>
{% if agendas %}
<table id="tab_agenda" class="table table-striped table-bordered" data-token="{{ token }}" data-jour="{{ jour }}" data-debut="{{ debut }}" data-fin="{{ fin }}">
......@@ -46,7 +51,21 @@
{% set id_agenda=a.getId() %}
<td>{{ a.getFormation().getNom() }}</td>
<td>{{ a.getFormation().getTitre() }}</td>
<td>{{ a.getFormation().getIntervenant() }}</td>
<td>
{% set liste=a.getFormation().getIntervenant()|split(',') %}
{% for i in 1..a.getFormation().getNbIntervenant() %}
{% if liste[i-1] == 0 %}
Pas encore défini
{% else %}
{% for intervenant in intervenants %}
{% if liste[i-1] == intervenant.id %}
{% if i > 1 %} / {% endif %}
{{ intervenant.nom | upper}} {{ intervenant.prenom }}
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
</td>
<td>{{ a.getDateDebut() | date("H:i") }}</td>
<td>{{ a.getDateFin() | date("H:i") }}</td>
{% endfor %}
......
......@@ -65,7 +65,7 @@
{# <td><a href="mailto:{{ participant['participant'].getEmail() }}"><span class="email">{{ participant['participant'].getEmail() }}</span></a></td>
#} <td>{{ participant['participant'].getEmail() }}</td>
<td>{{ participant['participant'].getRole() }}</td>
<td>{{ participant['participant'].getRole() }} {% if participant['contribution'] > 0%} (C){% endif %} {% if participant['poster'] > 0%} (P){% endif %}</td>
{% if participant['participant'].getAccesValide() == true %}
<td><i class="fa fa-check-circle-o"></i></td>
{% else %}
......
......@@ -24,7 +24,7 @@
<div id="tabs_them_{{thematique.getId()}}">
<h4>{{thematique.getLabel()}} - {{thematique.getNom()}} <a href="http://devlog.cnrs.fr/{{jdev.label | lower}}/t{{ thematique.getId() }}" target="_blank" data-toggle="tooltip" title="Lien vers le wiki"><span class="email"><i class="fa fa-external-link"></i></span></a></h4>
<table id="tab_sondage" class="table table-striped table-bordered">
<table id="table_sondage" class="table table-striped table-bordered">
<thead>
<tr>
<th>Session de formation</th>
......
......@@ -30,113 +30,89 @@
<th class="td-parcours">Matin</th>
<th class="td-parcours">Matin</th>
</tr>
<tr>
<td>
{% if pa_4_am %}
{% for p in pa_4_am %}
{% set label = p.agenda.getFormation().getNom() | split('.') %}
{% if label[0]| upper == thematique.getLabel()| upper %}
{% set prct = ((p.nb_inscrits / p.agenda.getFormation().getQuota()) * 100) | round %}
<a href="dashboard-admin-session-agenda?token={{ token }}&agenda_id={{ p.agenda.getId() }}" class="{{label[0]}} btn btn-sm btn-session btn-jour" data-toggle="tooltip" data-placement="right" data-html="true" title="<b>{{ p.agenda.getFormation().getNom() }}</b><p>Intitulé : {{ p.agenda.getFormation().getTitre() }}<br>Intervenant : {{ p.agenda.getFormation().getIntervenant() }}<br><b>Horaire</b> : {{ p.agenda.getDateDebut() | date("H:i") }} - {{ p.agenda.getDateFin() | date("H:i") }}<br><b>Salle</b> : {{ p.agenda.getSalle().getNom() }}<br>">{{ p.agenda.getFormation().getNom() }} ({{ p.nb_inscrits }}/{{ p.agenda.getFormation().getQuota() }} <i class="fa fa-user" aria-hidden="true"></i>)</a>
<span id="nb_inscrits_prct_{{ p.agenda.getId() }}" class="badge badge-{% if prct <= 50 %}vert{% elseif prct > 50 and prct <= 75 %}orange{% else %}rouge{% endif %}">{{ prct }}%</span><br>
{% endif %}
{% endfor %}
{% endif %}
</td>
<td>
{% if pa_5_am %}
{% for p in pa_5_am %}
{% set label = p.agenda.getFormation().getNom() | split('.') %}
{% if label[0]| upper == thematique.getLabel()| upper %}
{% set prct = ((p.nb_inscrits / p.agenda.getFormation().getQuota()) * 100) | round %}
<a href="dashboard-admin-session-agenda?token={{ token }}&agenda_id={{ p.agenda.getId() }}" class="{{label[0]}} btn btn-sm btn-session btn-jour" data-toggle="tooltip" data-placement="right" data-html="true" title="<b>{{ p.agenda.getFormation().getNom() }}</b><p>Intitulé : {{ p.agenda.getFormation().getTitre() }}<br>Intervenant : {{ p.agenda.getFormation().getIntervenant() }}<br><b>Horaire</b> : {{ p.agenda.getDateDebut() | date("H:i") }} - {{ p.agenda.getDateFin() | date("H:i") }}<br><b>Salle</b> : {{ p.agenda.getSalle().getNom() }}<br>">{{ p.agenda.getFormation().getNom() }} ({{ p.nb_inscrits }}/{{ p.agenda.getFormation().getQuota() }} <i class="fa fa-user" aria-hidden="true"></i>)</a>
<span id="nb_inscrits_prct_{{ p.agenda.getId() }}" class="badge badge-{% if prct <= 50 %}vert{% elseif prct > 50 and prct <= 75 %}orange{% else %}rouge{% endif %}">{{ prct }}%</span><br>
{% endif %}
{% endfor %}
{% endif %}
</td>
<td>
{% if pa_6_am %}
{% for p in pa_6_am %}
{% set label = p.agenda.getFormation().getNom() | split('.') %}
{% if label[0]| upper == thematique.getLabel()| upper %}
{% set prct = ((p.nb_inscrits / p.agenda.getFormation().getQuota()) * 100) | round %}
<a href="dashboard-admin-session-agenda?token={{ token }}&agenda_id={{ p.agenda.getId() }}" class="{{label[0]}} btn btn-sm btn-session btn-jour" data-toggle="tooltip" data-placement="right" data-html="true" title="<b>{{ p.agenda.getFormation().getNom() }}</b><p>Intitulé : {{ p.agenda.getFormation().getTitre() }}<br>Intervenant : {{ p.agenda.getFormation().getIntervenant() }}<br><b>Horaire</b> : {{ p.agenda.getDateDebut() | date("H:i") }} - {{ p.agenda.getDateFin() | date("H:i") }}<br><b>Salle</b> : {{ p.agenda.getSalle().getNom() }}<br>">{{ p.agenda.getFormation().getNom() }} ({{ p.nb_inscrits }}/{{ p.agenda.getFormation().getQuota() }} <i class="fa fa-user" aria-hidden="true"></i>)</a>
<span id="nb_inscrits_prct_{{ p.agenda.getId() }}" class="badge badge-{% if prct <= 50 %}vert{% elseif prct > 50 and prct <= 75 %}orange{% else %}rouge{% endif %}">{{ prct }}%</span><br>
{% endif %}
{% endfor %}
{% endif %}
</td>
<td>
{% if pa_7_am %}
{% for p in pa_7_am %}
{% set label = p.agenda.getFormation().getNom() | split('.') %}
{% if label[0]| upper == thematique.getLabel()| upper %}
{% for i in 0..3 %}
<td>
{% if pa_am[i] %}
{% for p in pa_am[i] %}
{% set label = p.agenda.getFormation().getNom() | split('.') %}
{% if label[0]| upper == thematique.getLabel()| upper %}
{% set liste=p.agenda.getFormation().getIntervenant()|split(',') %}
{% set formateur='' %}
{% for i in 1..p.agenda.getFormation().getNbIntervenant() %}
{% if liste[i-1] == 0 %}
{% set formateur = formateur ~ 'Pas encore défini' %}
{% else %}
{% for intervenant in intervenants %}
{% if liste[i-1] == intervenant.id %}
{% if i > 1 %} {% set formateur= formateur ~ '/' %} {% endif %}
{% set formateur = formateur ~ intervenant.nom | upper ~ ' ' ~ intervenant.prenom %}
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
{% set prct = ((p.nb_inscrits / p.agenda.getFormation().getQuota()) * 100) | round %}
<a href="dashboard-admin-session-agenda?token={{ token }}&agenda_id={{ p.agenda.getId() }}"
class="{{label[0]}} btn btn-sm btn-session btn-jour"
data-toggle="tooltip" data-placement="right"
data-html="true"
title="<b>{{ p.agenda.getFormation().getNom() }}</b><p>Intitulé : {{ p.agenda.getFormation().getTitre() }}<br>Intervenant : {{ formateur }}<br><b>Horaire</b> : {{ p.agenda.getDateDebut() | date("H:i") }} - {{ p.agenda.getDateFin() | date("H:i") }}<br><b>Salle</b> : {{ p.agenda.getSalle().getNom() }}<br>">{{ p.agenda.getFormation().getNom() }}
(<span id="nb_inscrits_{{ p.agenda.getId()}}">{{ p.nb_inscrits }}</span>/{{ p.agenda.getFormation().getQuota() }} <i class="fa fa-user"></i>)
</a>
<span id="nb_inscrits_prct_{{ p.agenda.getId() }}" class="badge badge-{% if prct <= 50 %}vert{% elseif prct > 50 and prct <= 75 %}orange{% else %}rouge{% endif %}">{{ prct }}%</span><br>
{% endif %}
{% set prct = ((p.nb_inscrits / p.agenda.getFormation().getQuota()) * 100) | round %}
<a href="dashboard-admin-session-agenda?token={{ token }}&agenda_id={{ p.agenda.getId() }}" class="{{label[0]}} btn btn-sm btn-session btn-jour" data-toggle="tooltip" data-placement="right" data-html="true" title="<b>{{ p.agenda.getFormation().getNom() }}</b><p>Intitulé : {{ p.agenda.getFormation().getTitre() }}<br>Intervenant : {{ p.agenda.getFormation().getIntervenant() }}<br><b>Horaire</b> : {{ p.agenda.getDateDebut() | date("H:i") }} - {{ p.agenda.getDateFin() | date("H:i") }}<br><b>Salle</b> : {{ p.agenda.getSalle().getNom() }}<br>">{{ p.agenda.getFormation().getNom() }} ({{ p.nb_inscrits }}/{{ p.agenda.getFormation().getQuota() }} <i class="fa fa-user" aria-hidden="true"></i>)</a>
<span id="nb_inscrits_prct_{{ p.agenda.getId() }}" class="badge badge-{% if prct <= 50 %}vert{% elseif prct > 50 and prct <= 75 %}orange{% else %}rouge{% endif %}">{{ prct }}%</span><br>
{% endif %}
{% endfor %}
{% endif %}
</td>
</tr>
{% endfor %}
{% endif %}
</td>
{% endfor %}
</tr>
<tr>
<th class="td-parcours">Après-Midi</th>
<th class="td-parcours">Après-Midi</th>
<th class="td-parcours">Après-Midi</th>
<th class="td-parcours">Après-Midi</th>
</tr>
<tr>
<td>
{% if pa_4_pm %}
{% for p in pa_4_pm %}
{% set label = p.agenda.getFormation().getNom() | split('.') %}
{% if label[0]| upper == thematique.getLabel()| upper %}
{% set prct = ((p.nb_inscrits / p.agenda.getFormation().getQuota()) * 100) | round %}
<a href="dashboard-admin-session-agenda?token={{ token }}&agenda_id={{ p.agenda.getId() }}" class="{{label[0]}} btn btn-sm btn-session btn-jour" data-toggle="tooltip" data-placement="right" data-html="true" title="<b>{{ p.agenda.getFormation().getNom() }}</b><p>Intitulé : {{ p.agenda.getFormation().getTitre() }}<br>Intervenant : {{ p.agenda.getFormation().getIntervenant() }}<br><b>Horaire</b> : {{ p.agenda.getDateDebut() | date("H:i") }} - {{ p.agenda.getDateFin() | date("H:i") }}<br><b>Salle</b> : {{ p.agenda.getSalle().getNom() }}<br>">{{ p.agenda.getFormation().getNom() }} ({{ p.nb_inscrits }}/{{ p.agenda.getFormation().getQuota() }} <i class="fa fa-user" aria-hidden="true"></i>)</a>
<span id="nb_inscrits_prct_{{ p.agenda.getId() }}" class="badge badge-{% if prct <= 50 %}vert{% elseif prct > 50 and prct <= 75 %}orange{% else %}rouge{% endif %}">{{ prct }}%</span><br>
{% endif %}
{% endfor %}
{% endif %}
</td>
<td>
{% if pa_5_pm %}
{% for p in pa_5_pm %}
{% set label = p.agenda.getFormation().getNom() | split('.') %}
{% if label[0]| upper == thematique.getLabel()| upper %}
{% set prct = ((p.nb_inscrits / p.agenda.getFormation().getQuota()) * 100) | round %}
<a href="dashboard-admin-session-agenda?token={{ token }}&agenda_id={{ p.agenda.getId() }}" class="{{label[0]}} btn btn-sm btn-session btn-jour" data-toggle="tooltip" data-placement="right" data-html="true" title="<b>{{ p.agenda.getFormation().getNom() }}</b><p>Intitulé : {{ p.agenda.getFormation().getTitre() }}<br>Intervenant : {{ p.agenda.getFormation().getIntervenant() }}<br><b>Horaire</b> : {{ p.agenda.getDateDebut() | date("H:i") }} - {{ p.agenda.getDateFin() | date("H:i") }}<br><b>Salle</b> : {{ p.agenda.getSalle().getNom() }}<br>">{{ p.agenda.getFormation().getNom() }} ({{ p.nb_inscrits }}/{{ p.agenda.getFormation().getQuota() }} <i class="fa fa-user" aria-hidden="true"></i>)</a>
<span id="nb_inscrits_prct_{{ p.agenda.getId() }}" class="badge badge-{% if prct <= 50 %}vert{% elseif prct > 50 and prct <= 75 %}orange{% else %}rouge{% endif %}">{{ prct }}%</span><br>
{% endif %}
{% endfor %}
{% endif %}
</td>
<td>
{% if pa_6_pm %}
{% for p in pa_6_pm %}
{% set label = p.agenda.getFormation().getNom() | split('.') %}
{% if label[0]| upper == thematique.getLabel()| upper %}
{% set prct = ((p.nb_inscrits / p.agenda.getFormation().getQuota()) * 100) | round %}
<a href="dashboard-admin-session-agenda?token={{ token }}&agenda_id={{ p.agenda.getId() }}" class="{{label[0]}} btn btn-sm btn-session btn-jour" data-toggle="tooltip" data-placement="right" data-html="true" title="<b>{{ p.agenda.getFormation().getNom() }}</b><p>Intitulé : {{ p.agenda.getFormation().getTitre() }}<br>Intervenant : {{ p.agenda.getFormation().getIntervenant() }}<br><b>Horaire</b> : {{ p.agenda.getDateDebut() | date("H:i") }} - {{ p.agenda.getDateFin() | date("H:i") }}<br><b>Salle</b> : {{ p.agenda.getSalle().getNom() }}<br>">{{ p.agenda.getFormation().getNom() }} ({{ p.nb_inscrits }}/{{ p.agenda.getFormation().getQuota() }} <i class="fa fa-user" aria-hidden="true"></i>)</a>
<span id="nb_inscrits_prct_{{ p.agenda.getId() }}" class="badge badge-{% if prct <= 50 %}vert{% elseif prct > 50 and prct <= 75 %}orange{% else %}rouge{% endif %}">{{ prct }}%</span><br>
{% endif %}
{% endfor %}
{% endif %}
</td>
<td>