mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-03 21:34:59 +00:00
add export button, route and controller method
This commit is contained in:
@@ -25,6 +25,7 @@ namespace Chill\EventBundle\Controller;
|
||||
use Chill\EventBundle\Entity\Participation;
|
||||
use Chill\EventBundle\Form\Type\PickEventType;
|
||||
use Chill\EventBundle\Repository\ParticipationRepository;
|
||||
use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;
|
||||
use Chill\EventBundle\Security\Authorization\EventVoter;
|
||||
use Chill\MainBundle\Security\Authorization\AuthorizationHelper;
|
||||
use Chill\PersonBundle\Entity\Person;
|
||||
@@ -442,6 +443,24 @@ class EventController extends Controller
|
||||
return $builder->getForm();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @paramConverter("event", options={"id" = "event_id"})
|
||||
* @param Event $event
|
||||
* @return \Symfony\Component\HttpFoundation\Response
|
||||
*/
|
||||
public function exportParticipationsAction(Event $event)
|
||||
{
|
||||
dump($event);
|
||||
|
||||
return $this->render('ChillEventBundle:Event:exportParticipations.html.twig', [
|
||||
'event' => $event,
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// pour aller plus loin
|
||||
// TODO ?? inclure le type d'événement et la date dans les résultats de recherche (ex: on tape 'vis' --> il affiche les visites )
|
||||
// TODO ?? exclure des résultats les événement déjà sélectionnés pour une personne. empêcher d'inscrire 2x une personne !
|
||||
|
Reference in New Issue
Block a user