From bd19110ecd974ccedb5ed18eac7d1abada89c402 Mon Sep 17 00:00:00 2001 From: Tchama Date: Thu, 2 May 2019 15:20:02 +0200 Subject: [PATCH] rename method --- Controller/EventController.php | 6 +++--- Resources/views/Event/listByPerson.html.twig | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Controller/EventController.php b/Controller/EventController.php index 3b0d2e93e..08eee5590 100644 --- a/Controller/EventController.php +++ b/Controller/EventController.php @@ -385,13 +385,13 @@ class EventController extends Controller )); $this->eventDispatcher->dispatch(PrivacyEvent::PERSON_PRIVACY_EVENT, $privacyEvent); - $addParticipationByEventForm = $this->createAddParticipationByEventForm($person); + $addEventParticipationByPersonForm = $this->createAddEventParticipationByPersonForm($person); return $this->render('ChillEventBundle:Event:listByPerson.html.twig', array( 'participations' => $participations, 'person' => $person, 'paginator' => $paginator, - 'form_add_participation_by_event' => $addParticipationByEventForm->createView() + 'form_add_event_participation_by_person' => $addEventParticipationByPersonForm->createView() )); } @@ -401,7 +401,7 @@ class EventController extends Controller * @param Person $person * @return \Symfony\Component\Form\FormInterface */ - protected function createAddParticipationByEventForm(Person $person) + protected function createAddEventParticipationByPersonForm(Person $person) { /* @var $builder \Symfony\Component\Form\FormBuilderInterface */ $builder = $this diff --git a/Resources/views/Event/listByPerson.html.twig b/Resources/views/Event/listByPerson.html.twig index b8ae0b326..7277b4c1b 100644 --- a/Resources/views/Event/listByPerson.html.twig +++ b/Resources/views/Event/listByPerson.html.twig @@ -104,11 +104,11 @@ {% endif %}
- {{ form_start(form_add_participation_by_event) }} - {{ form_widget(form_add_participation_by_event.event_id, { 'attr' : { 'style' : 'width: 25em; display:inline-block; ' } } ) }} - {{ form_widget(form_add_participation_by_event.submit, { 'attr' : { 'class' : 'sc-button bt-create' } } ) }} - {{ form_rest(form_add_participation_by_event) }} - {{ form_end(form_add_participation_by_event) }} + {{ form_start(form_add_event_participation_by_person) }} + {{ form_widget(form_add_event_participation_by_person.event_id, { 'attr' : { 'style' : 'width: 25em; display:inline-block; ' } } ) }} + {{ form_widget(form_add_event_participation_by_person.submit, { 'attr' : { 'class' : 'sc-button bt-create' } } ) }} + {{ form_rest(form_add_event_participation_by_person) }} + {{ form_end(form_add_event_participation_by_person) }}
{% endblock %} \ No newline at end of file