-
Notifications
You must be signed in to change notification settings - Fork 69
Transforme le listing d'inscription en Controller Symfony #1776
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Hello @agallou @Mopolo @stakovicz |
76a81a4
to
312160e
Compare
$sort = $request->query->get('sort'); | ||
$filter = $request->query->get('filter'); | ||
|
||
$event = $id ? $eventActionHelper->getEventById($id) : $eventRepository->getLastEvent(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pas besoin de vérifier si l'id est null, le helper le fait déjà.
AFUP_FORUM_SPECIAL_PRICE => 0, | ||
], | ||
'event' => $event, | ||
'event_select_form' => $this->createForm(EventSelectType::class, $event)->createView(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ici tu peux utiliser \AppBundle\Event\Form\Support\EventSelectFactory
pour avoir la gestion automatique du switch d'event comme sur les autres pages.
Tu trouveras un exemple dans \AppBundle\Controller\Admin\Event\RoomAction
ℹ️ T'auras peut-être un micro conflit avec cette PR : #1822 |
…ode rapidement + remplace les liens par la fonction path de twig + corrige un bug quand on tente de générer une inscription pour une personne
230b70a
to
386f996
Compare
…ore le nouveau controller
… conversion des messages flash legacy au nouveua format des messages flash
Déplace la page de liste des inscriptions d'un évènement dans Symfony