Commit 27d1970d authored by Chrystel Moreau's avatar Chrystel Moreau
Browse files

ajout de la gestion des contributions (inscription, edit profil (participant & admin)

parent daca47bb
......@@ -32,14 +32,14 @@ return [
]
],
'mailer' => [
'host' => 'localhost', //localhost (dev), smtp.osupytheas.fr (prod)
'host' => 'smtp.osupytheas.fr', //localhost (dev), smtp.osupytheas.fr (prod)
'port' => 1025 // 1025 (dev), 25 (prod)
],
// JDEV settings
'jdev' => [
'label' => 'JDEV2017',
'url' => 'jdev2017.fr',
'email' => 'jdev2017-inscription@univ-amu.fr',
'email' => 'chrystel.moreau@lam.fr', // jdev2017-inscription@univ-amu.fr (prod)
'date_debut' => '2017-07-04', //'04/07/2017',
'date_fin' => '2017-07-07', //'07/07/2017',
'j1' => '2017-07-04',
......
......@@ -57,6 +57,9 @@ final class DashboardAdminParticipantFormAction
$communaute2 = $communauteRepository->findBy(array('display' => 2));
$communaute3 = $communauteRepository->findBy(array('display' => 3));
$contributionsRepository = $this->em->getRepository('App\Entity\Contribution');
$contributions = $contributionsRepository->findAll();
$a = [
'token' => $token,
'role_si'=> $roleSI,
......@@ -67,7 +70,8 @@ final class DashboardAdminParticipantFormAction
'reseaux3' => $reseaux3,
'communaute1' => $communaute1,
'communaute2' => $communaute2,
'communaute3' => $communaute3
'communaute3' => $communaute3,
'contributions' => $contributions
];
if (array_key_exists('id', $params)) {
......@@ -134,6 +138,9 @@ final class DashboardAdminParticipantFormAction
} else {
$participant->setEvenementSocial(false);
}
$this->deleteAllContributions($participant);
$this->createContributions($parsedBody, $participant);
$this->deleteAllReseaux($participant);
$this->createReseaux($parsedBody, $participant);
$this->deleteAllCommunautes($participant);
......@@ -175,6 +182,32 @@ final class DashboardAdminParticipantFormAction
}
}
private function deleteAllContributions($participant)
{
foreach($participant->getContributions() as $contribution) {
$this->em->remove($contribution);
}
$this->em->flush();
}
private function createContributions($parsedBody, $participant)
{
for ($i = 1; $i <= 7; $i++) {
if (isset($parsedBody['contribution_' . $i]) && $parsedBody['contribution_' . $i] == 'on') {
$contribution = $this->em->find('App\Entity\Contribution', $i);
$participantContribution = new \App\Entity\ParticipantContribution();
$participantContribution->setParticipant($participant);
$participantContribution->setContribution($contribution);
$this->em->persist($participantContribution);
}
}
}
private function deleteAllReseaux($participant)
{
foreach($participant->getReseaux() as $reseau) {
......@@ -198,7 +231,7 @@ final class DashboardAdminParticipantFormAction
private function deleteAllCommunautes($participant)
{
foreach($participant->getCommuanutes() as $communaute) {
foreach($participant->getCommunautes() as $communaute) {
$this->em->remove($communaute);
}
$this->em->flush();
......@@ -209,10 +242,10 @@ final class DashboardAdminParticipantFormAction
for ($i = 1; $i <= 16; $i++) {
if (isset($parsedBody['communaute_' . $i]) && $parsedBody['communaute_' . $i] == 'on') {
$communaute = $this->em->find('App\Entity\Communaute', $i);
$participantCommuanute = new \App\Entity\ParticipantCommunaute();
$participantCommuanute->setParticipant($participant);
$participantCommuanute->setCommunaute($communaute);
$this->em->persist($participantCommuanute);
$participantCommunaute = new \App\Entity\ParticipantCommunaute();
$participantCommunaute->setParticipant($participant);
$participantCommunaute->setCommunaute($communaute);
$this->em->persist($participantCommunaute);
}
}
}
......
......@@ -44,6 +44,9 @@ final class DashboardParticipantEditFormAction
$communaute2 = $communauteRepository->findBy(array('display' => 2));
$communaute3 = $communauteRepository->findBy(array('display' => 3));
$contributionsRepository = $this->em->getRepository('App\Entity\Contribution');
$contributions = $contributionsRepository->findAll();
$this->view->render($response, 'dashboard_participant_edit_form.twig', [
'page' => 'dashboard',
'token' => $token,
......@@ -55,6 +58,7 @@ final class DashboardParticipantEditFormAction
'communaute1' => $communaute1,
'communaute2' => $communaute2,
'communaute3' => $communaute3,
'contributions' => $contributions,
'jdev' => $this->settings['jdev']
]);
}
......@@ -158,7 +162,7 @@ final class DashboardParticipantEditFormAction
return $bool;
}
private function getParticipant($email)
private function getParticipant($email)
{
$participant = $this->em->getRepository('App\Entity\Participant')->findOneBy(array('email' => $email));
if(isset($participant)) {
......@@ -201,6 +205,8 @@ final class DashboardParticipantEditFormAction
$participant->setEvenementSocial(false);
}
$this->deleteAllContributions($participant);
$this->createContributions($parsedBody, $participant);
$this->deleteAllReseaux($participant);
$this->createReseaux($parsedBody, $participant);
$this->deleteAllCommunautes($participant);
......@@ -210,6 +216,31 @@ final class DashboardParticipantEditFormAction
return $participant;
}
private function deleteAllContributions($participant)
{
foreach($participant->getContributions() as $contribution) {
$this->em->remove($contribution);
}
$this->em->flush();
}
private function createContributions($parsedBody, $participant)
{
for ($i = 1; $i <= 7; $i++) {
if (isset($parsedBody['contribution_' . $i]) && $parsedBody['contribution_' . $i] == 'on') {
$contribution = $this->em->find('App\Entity\Contribution', $i);
$participantContribution = new \App\Entity\ParticipantContribution();
$participantContribution->setParticipant($participant);
$participantContribution->setContribution($contribution);
$this->em->persist($participantContribution);
}
}
}
private function deleteAllReseaux($participant)
{
foreach($participant->getReseaux() as $reseau) {
......@@ -233,7 +264,7 @@ final class DashboardParticipantEditFormAction
private function deleteAllCommunautes($participant)
{
foreach($participant->getCommuanutes() as $communaute) {
foreach($participant->getCommunautes() as $communaute) {
$this->em->remove($communaute);
}
$this->em->flush();
......@@ -244,10 +275,10 @@ final class DashboardParticipantEditFormAction
for ($i = 1; $i <= 16; $i++) {
if (isset($parsedBody['communaute_' . $i]) && $parsedBody['communaute_' . $i] == 'on') {
$communaute = $this->em->find('App\Entity\Communaute', $i);
$participantCommuanute = new \App\Entity\ParticipantCommunaute();
$participantCommuanute->setParticipant($participant);
$participantCommuanute->setCommunaute($communaute);
$this->em->persist($participantCommuanute);
$participantCommunaute = new \App\Entity\ParticipantCommunaute();
$participantCommunaute->setParticipant($participant);
$participantCommunaute->setCommunaute($communaute);
$this->em->persist($participantCommunaute);
}
}
}
......
......@@ -41,6 +41,10 @@ final class InscriptionAction
$communaute1 = $communauteRepository->findBy(array('display' => 1));
$communaute2 = $communauteRepository->findBy(array('display' => 2));
$communaute3 = $communauteRepository->findBy(array('display' => 3));
$contributionsRepository = $this->em->getRepository('App\Entity\Contribution');
$contributions = $contributionsRepository->findAll();
$this->view->render($response, 'inscription.twig', [
'page' => 'inscription',
......@@ -51,6 +55,7 @@ final class InscriptionAction
'communaute1' => $communaute1,
'communaute2' => $communaute2,
'communaute3' => $communaute3,
'contributions' => $contributions,
'jdev' => $this->settings['jdev']
]);
}
......@@ -350,7 +355,7 @@ final class InscriptionAction
private function createContributions($parsedBody, $participant)
{
for ($i = 1; $i <= 7; $i++) {
if (isset($parsedBody['contrib_' . $i]) && $parsedBody['contrib_' . $i] == 'on') {
if (isset($parsedBody['contribution_' . $i]) && $parsedBody['contribution_' . $i] == 'on') {
$contribution = $this->em->find('App\Entity\Contribution', $i);
$participantContribution = new \App\Entity\ParticipantContribution();
$participantContribution->setParticipant($participant);
......@@ -378,10 +383,10 @@ final class InscriptionAction
for ($i = 1; $i <= 16; $i++) {
if (isset($parsedBody['communaute_' . $i]) && $parsedBody['communaute_' . $i] == 'on') {
$communaute = $this->em->find('App\Entity\Communaute', $i);
$participantCommuanute = new \App\Entity\ParticipantCommunaute();
$participantCommuanute->setParticipant($participant);
$participantCommuanute->setCommunaute($communaute);
$this->em->persist($participantCommuanute);
$participantCommunaute = new \App\Entity\ParticipantCommunaute();
$participantCommunaute->setParticipant($participant);
$participantCommunaute->setCommunaute($communaute);
$this->em->persist($participantCommunaute);
}
}
}
......
......@@ -19,6 +19,14 @@ class Contribution
**/
private $label;
/**
* @Column(type="integer", nullable=true)
**/
private $display;
public function getId()
{
return $this->id;
......@@ -33,4 +41,14 @@ class Contribution
{
$this->label = $label;
}
public function getDisplay()
{
return $this->display;
}
public function setDisplay($display)
{
$this->display = $display;
}
}
......@@ -157,6 +157,11 @@ class Participant
*/
private $communautes;
/**
* @OneToMany(targetEntity="ParticipantContribution", mappedBy="participant")
*/
private $contributions;
/**
* @OneToMany(targetEntity="ParticipantPreAgenda", mappedBy="participant")
*/
......@@ -446,11 +451,16 @@ class Participant
return $this->reseaux;
}
public function getCommuanutes()
public function getCommunautes()
{
return $this->communautes;
}
public function getContributions()
{
return $this->contributions;
}
public function getRoles()
{
return $this->roles;
......
......@@ -41,7 +41,7 @@ class ParticipantCommunaute
$this->participant = $participant;
}
public function getCommuanute()
public function getCommunaute()
{
return $this->communaute;
}
......
......@@ -15,7 +15,7 @@ class ParticipantContribution
private $id;
/**
* @ManyToOne(targetEntity="Participant", inversedBy="communautes")
* @ManyToOne(targetEntity="Participant", inversedBy="contributions")
* @JoinColumn(name="id_participant", referencedColumnName="id")
*/
private $participant;
......@@ -43,7 +43,7 @@ class ParticipantContribution
public function getContribution()
{
return $this->communaute;
return $this->contribution;
}
public function setContribution($contribution)
......
......@@ -54,6 +54,31 @@
<input type="text" class="form-control" name="email" id="email" placeholder="Email" {% if participant %}value="{{ participant.getEmail() }}"{% endif %} required disabled>
</div>
{% endif %}
<div class="form-group">
<label>Rôle(s) durant les JDEVs</label> <span style="color: red;">*</span>
<div class="row">
<div class="col-xs-4">
<select class="form-control" name="role" id="role">
<option value="Participant" {% if participant.getRole() == 'Participant' %} selected {% endif %}>Participant</option>
<option value="Accompagnant" {% if participant.getRole() == 'Accompagnant' %} selected {% endif %}>Accompagnant</option>
<option value="Organisateur" {% if participant.getRole() == 'Organisateur' %} selected {% endif %}>Organisateur</option>
<option value="Invité" {% if participant.getRole() == 'Invité' %} selected {% endif %}>Invité</option>
<option value="Exposant" {% if participant.getRole() == 'Exposant' %} selected {% endif %}>Exposant</option>
<option value="Sponsor" {% if participant.getRole() == 'Sponsor' %} selected {% endif %}>Sponsor</option>
</select>
</div>
<div class="col-xs-8">
{% for contribution in contributions %}
<div class="checkbox">
<label>
<input type="checkbox" name="contribution_{{contribution.getId()}}" id="contribution_{{contribution.getId()}}" {% for contributionSelected in participant.getContributions() %} {% if contributionSelected.getContribution().getId() == contribution.getId() %}checked{% endif %} {% endfor %}> {{contribution.getLabel()}}
</label>
</div>
{% endfor %}
</div>
</div>
<div class="form-group">
<label for="statut">Statut</label> <span style="color: red;">*</span>
......@@ -87,18 +112,7 @@
<label for="unite">Nom unité/Entreprise</label> <span style="color: red;">*</span>
<input type="text" class="form-control" name="unite" id="unite" {% if participant %}value="{{ participant.getUnite() }}"{% endif %} required>
</div>
<div class="form-group">
<label for="role">Role</label> <span style="color: red;">*</span>
<select class="form-control" name="role" id="role">
<option value="Participant" {% if participant.getRole() == 'Participant' %} selected {% endif %}>Participant</option>
<option value="Accompagnant" {% if participant.getRole() == 'Accompagnant' %} selected {% endif %}>Accompagnant</option>
<option value="Organisateur" {% if participant.getRole() == 'Organisateur' %} selected {% endif %}>Organisateur</option>
<option value="Invité" {% if participant.getRole() == 'Invité' %} selected {% endif %}>Invité</option>
<option value="Exposant" {% if participant.getRole() == 'Exposant' %} selected {% endif %}>Exposant</option>
<option value="Sponsor" {% if participant.getRole() == 'Sponsor' %} selected {% endif %}>Sponsor</option>
</select>
</div>
<div class="form-group">
<label for="region">Région</label> <span style="color: red;">*</span>
<select class="form-control" name="region" id="region" required>
......@@ -159,7 +173,7 @@
{% for communaute in communaute1 %}
<div class="checkbox">
<label>
<input type="checkbox" name="communaute_{{communaute.getId()}}" id="communaute_{{communaute.getId()}}" {% for communauteSelected in participant.getCommuanutes() %} {% if communauteSelected.getCommuanute().getId() == communaute.getId() %}checked{% endif %} {% endfor %}> {{communaute.getLabel()}}
<input type="checkbox" name="communaute_{{communaute.getId()}}" id="communaute_{{communaute.getId()}}" {% for communauteSelected in participant.getCommunautes() %} {% if communauteSelected.getCommunaute().getId() == communaute.getId() %}checked{% endif %} {% endfor %}> {{communaute.getLabel()}}
</label>
</div>
{% endfor %}
......@@ -168,7 +182,7 @@
{% for communaute in communaute2 %}
<div class="checkbox">
<label>
<input type="checkbox" name="communaute_{{communaute.getId()}}" id="communaute_{{communaute.getId()}}" {% for communauteSelected in participant.getCommuanutes() %} {% if communauteSelected.getCommuanute().getId() == communaute.getId() %}checked{% endif %} {% endfor %}> {{communaute.getLabel()}}
<input type="checkbox" name="communaute_{{communaute.getId()}}" id="communaute_{{communaute.getId()}}" {% for communauteSelected in participant.getCommunautes() %} {% if communauteSelected.getCommunaute().getId() == communaute.getId() %}checked{% endif %} {% endfor %}> {{communaute.getLabel()}}
</label>
</div>
{% endfor %}
......@@ -177,7 +191,7 @@
{% for communaute in communaute3 %}
<div class="checkbox">
<label>
<input type="checkbox" name="communaute_{{communaute.getId()}}" id="communaute_{{communaute.getId()}}" {% for communauteSelected in participant.getCommuanutes() %} {% if communauteSelected.getCommuanute().getId() == communaute.getId() %}checked{% endif %} {% endfor %}> {{communaute.getLabel()}}
<input type="checkbox" name="communaute_{{communaute.getId()}}" id="communaute_{{communaute.getId()}}" {% for communauteSelected in participant.getCommunautes() %} {% if communauteSelected.getCommunaute().getId() == communaute.getId() %}checked{% endif %} {% endfor %}> {{communaute.getLabel()}}
</label>
</div>
{% endfor %}
......
......@@ -13,12 +13,21 @@
<h4><i class="fa fa-id-card-o"></i> Votre inscription</h4>
<div class='inscription'>
<p>
<b>NOM <i class="fa fa-arrow-circle-right"></i></b> {{ participant.getNom() | upper }}<br>
<b>PRENOM <i class="fa fa-arrow-circle-right"></i></b> {{ participant.getPrenom() }}<br>
<b>ROLE <i class="fa fa-arrow-circle-right"></i> {{ participant.getRole() | upper}}</b><br>
{% if participant.getContributions()[0] %}
<b> Contribution <i class="fa fa-arrow-circle-right"></i></b>
<ul>
{% for contribution in participant.getContributions() %}
<li>{{ contribution.getContribution().getLabel() }}</li>
{% endfor %}
</ul>
{% endif %}
</p>
<hr>
<p>
<b>NOM <i class="fa fa-arrow-circle-right"></i></b> {{ participant.getNom() | upper }}<br>
<b>PRENOM <i class="fa fa-arrow-circle-right"></i></b> {{ participant.getPrenom() }}<br>
<b>E-MAIL <i class="fa fa-arrow-circle-right"></i></b> {{ participant.getEmail() }}<br>
<b>STATUT <i class="fa fa-arrow-circle-right"></i></b> {{ participant.getStatut() }}<br>
<b>EMPLOI <i class="fa fa-arrow-circle-right"></i></b> {{ participant.getEmploi() }}<br>
......@@ -29,22 +38,26 @@
</p>
<hr>
<p>
<b>Appartenance à un/des réseau(x) métier(s)/technologique(s)/IT <i class="fa fa-arrow-circle-right"></i></b>
<b>Réseau/Métier/IT <i class="fa fa-arrow-circle-right"></i></b>
{% if participant.getReseaux()[0] %}
<ul>
{% for reseau in participant.getReseaux() %}
- {{ reseau.getReseau().getLabel() }}<br>
<li>{{ reseau.getReseau().getLabel() }}</li>
{% endfor %}
</ul>
{% else %}
Aucun <br>
{% endif %}
</p>
<p>
<p>
<b>Appartenance à une/des communauté(s) thématique(s)/scientifique(s) <i class="fa fa-arrow-circle-right"></i></b>
{% if participant.getCommuanutes()[0] %}
{% for communaute in participant.getCommuanutes() %}
- {{ communaute.getCommuanute().getLabel() }}<br>
<b>Communauté/Thématique scientifique <i class="fa fa-arrow-circle-right"></i></b>
{% if participant.getCommunautes()[0] %}
<ul>
{% for communaute in participant.getCommunautes() %}
<li> {{ communaute.getCommunaute().getLabel() }}</li>
{% endfor %}
</ul>
{% else %}
Aucune <br>
{% endif %}
......
......@@ -13,10 +13,6 @@
<form id="editProfilForm" role="form" data-toggle="validator">
<input type="hidden" id="token" value="{{token}}">
<div class="form-group">
<label for="statut">Rôle </label> <span style="color: red;">*</span>
<input style="width: 100%" type="text" name="role" class="form-control" id="role" value="{{participant.getRole()}}" disabled>
</div>
<div class="form-group">
<label for="nom">Nom</label> <span style="color: red;">*</span>
<input type="text" class="form-control" name="nom" id="nom" value="{{participant.getNom()}}" placeholder="Nom" required>
......@@ -81,6 +77,24 @@
<option {% if participant.getRegion() == "Provence-Alpes-Côte d'Azur" %}selected{% endif %}>Provence-Alpes-Côte d'Azur</option>
</select>
</div>
<div class="form-group">
<label>Rôle(s) durant les JDEVs</label> <span style="color: red;">*</span>
<div class="row">
<div class="col-xs-4">
<input style="width: 100%" type="text" name="role" class="form-control" id="role" value="{{participant.getRole()}}" disabled>
</div>
<div class="col-xs-8">
{% for contribution in contributions %}
<div class="checkbox">
<label>
<input type="checkbox" name="contribution_{{contribution.getId()}}" id="contribution_{{contribution.getId()}}" {% for contributionSelected in participant.getContributions() %} {% if contributionSelected.getContribution().getId() == contribution.getId() %}checked{% endif %} {% endfor %}> {{contribution.getLabel()}}
</label>
</div>
{% endfor %}
</div>
</div>
<div class="form-group">
<label>Appartenance à un/des réseau(x) métier(s)/technologique(s)/IT</label>
......@@ -122,7 +136,7 @@
{% for communaute in communaute1 %}
<div class="checkbox">
<label>
<input type="checkbox" name="communaute_{{communaute.getId()}}" id="communaute_{{communaute.getId()}}" {% for communauteSelected in participant.getCommuanutes() %} {% if communauteSelected.getCommuanute().getId() == communaute.getId() %}checked{% endif %} {% endfor %}> {{communaute.getLabel()}}
<input type="checkbox" name="communaute_{{communaute.getId()}}" id="communaute_{{communaute.getId()}}" {% for communauteSelected in participant.getCommunautes() %} {% if communauteSelected.getCommunaute().getId() == communaute.getId() %}checked{% endif %} {% endfor %}> {{communaute.getLabel()}}
</label>
</div>
{% endfor %}
......@@ -131,7 +145,7 @@
{% for communaute in communaute2 %}
<div class="checkbox">
<label>
<input type="checkbox" name="communaute_{{communaute.getId()}}" id="communaute_{{communaute.getId()}}" {% for communauteSelected in participant.getCommuanutes() %} {% if communauteSelected.getCommuanute().getId() == communaute.getId() %}checked{% endif %} {% endfor %}> {{communaute.getLabel()}}
<input type="checkbox" name="communaute_{{communaute.getId()}}" id="communaute_{{communaute.getId()}}" {% for communauteSelected in participant.getCommunautes() %} {% if communauteSelected.getCommunaute().getId() == communaute.getId() %}checked{% endif %} {% endfor %}> {{communaute.getLabel()}}
</label>
</div>
{% endfor %}
......@@ -140,7 +154,7 @@
{% for communaute in communaute3 %}
<div class="checkbox">
<label>
<input type="checkbox" name="communaute_{{communaute.getId()}}" id="communaute_{{communaute.getId()}}" {% for communauteSelected in participant.getCommuanutes() %} {% if communauteSelected.getCommuanute().getId() == communaute.getId() %}checked{% endif %} {% endfor %}> {{communaute.getLabel()}}
<input type="checkbox" name="communaute_{{communaute.getId()}}" id="communaute_{{communaute.getId()}}" {% for communauteSelected in participant.getCommunautes() %} {% if communauteSelected.getCommunaute().getId() == communaute.getId() %}checked{% endif %} {% endfor %}> {{communaute.getLabel()}}
</label>
</div>
{% endfor %}
......@@ -177,7 +191,7 @@
<center>
<a href="dashboard-home?token={{token}}" id="btn-inscription-annuler" class="btn btn-info"><i class="fa fa-arrow-left"></i> Retour accueil</a>
<button type="submit" id="btn-edit-profil-submit" class="btn btn-sea" value="Envoyer">Enregistrer les modifications</button>
<a href="mailto:jdev2017-inscription@univ-amu.fr?subject=Inscription {{participant.getPrenom()}} {{participant.getNom()}}" class="btn btn-default"><i class="fa fa-envelope"></i> Contacter le Comité d'Organisation</a>
<a href="mailto:{{jdev.email}}?subject=Inscription {{participant.getPrenom()}} {{participant.getNom()}}" class="btn btn-default"><i class="fa fa-envelope"></i> Contacter le Comité d'Organisation</a>
</center>
</form>
<br>
......
......@@ -194,42 +194,15 @@
</div>
</div>
<div class="col-xs-8">
{% for contribution in contributions %}
<div class="checkbox">
<label>
<input type="checkbox" name="contrib_1" id="contrib_pp"> Contributeur - Présentation plénière (30-45min)
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" name="contrib_2" id="contrib_pt"> Contributeur - Présentation thématique (30-45min)
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" name="contrib_3" id="contrib_pa"> Contributeur - Porteur d'atelier (3h)
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" name="contrib_7" id="contrib_sa"> Contributeur - Support d'atelier (3h)
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" name="contrib_4" id="contrib_pgt"> Contributeur - Animateur de groupe de travail (1h30)
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" name="contrib_6" id="contrib_re"> Contributeur - Retour d'expérience GT (10min)
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" name="contrib_5" id="contrib_sp"> Soumissionnaire de poster
<input type="checkbox" name="contribution_{{contribution.getId()}}" id="contribution_{{contribution.getId()}}" {% for contributionSelected in participant.getContributions() %} {% if contributionSelected.getContribution().getId() == contribution.getId() %}checked{% endif %} {% endfor %}> {{contribution.getLabel()}}
</label>
</div>
{% endfor %}
</div>
</div>
</div>
......
......@@ -18,7 +18,7 @@ $(document).ready(function(){
var form = $(this);
var token = $("#token").val();
$.ajax({
url: 'dashboard-edit-profil-form?token=' + token,
url: 'dashboard-participant-edit-form?token=' + token,
type: 'POST',