mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
rename method
This commit is contained in:
parent
55afcc2184
commit
bd19110ecd
@ -385,13 +385,13 @@ class EventController extends Controller
|
|||||||
));
|
));
|
||||||
$this->eventDispatcher->dispatch(PrivacyEvent::PERSON_PRIVACY_EVENT, $privacyEvent);
|
$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(
|
return $this->render('ChillEventBundle:Event:listByPerson.html.twig', array(
|
||||||
'participations' => $participations,
|
'participations' => $participations,
|
||||||
'person' => $person,
|
'person' => $person,
|
||||||
'paginator' => $paginator,
|
'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
|
* @param Person $person
|
||||||
* @return \Symfony\Component\Form\FormInterface
|
* @return \Symfony\Component\Form\FormInterface
|
||||||
*/
|
*/
|
||||||
protected function createAddParticipationByEventForm(Person $person)
|
protected function createAddEventParticipationByPersonForm(Person $person)
|
||||||
{
|
{
|
||||||
/* @var $builder \Symfony\Component\Form\FormBuilderInterface */
|
/* @var $builder \Symfony\Component\Form\FormBuilderInterface */
|
||||||
$builder = $this
|
$builder = $this
|
||||||
|
@ -104,11 +104,11 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div style="margin-bottom: 1.5em; margin-top: 2.5em;">
|
<div style="margin-bottom: 1.5em; margin-top: 2.5em;">
|
||||||
{{ form_start(form_add_participation_by_event) }}
|
{{ form_start(form_add_event_participation_by_person) }}
|
||||||
{{ form_widget(form_add_participation_by_event.event_id, { 'attr' : { 'style' : 'width: 25em; display:inline-block; ' } } ) }}
|
{{ form_widget(form_add_event_participation_by_person.event_id, { 'attr' : { 'style' : 'width: 25em; display:inline-block; ' } } ) }}
|
||||||
{{ form_widget(form_add_participation_by_event.submit, { 'attr' : { 'class' : 'sc-button bt-create' } } ) }}
|
{{ form_widget(form_add_event_participation_by_person.submit, { 'attr' : { 'class' : 'sc-button bt-create' } } ) }}
|
||||||
{{ form_rest(form_add_participation_by_event) }}
|
{{ form_rest(form_add_event_participation_by_person) }}
|
||||||
{{ form_end(form_add_participation_by_event) }}
|
{{ form_end(form_add_event_participation_by_person) }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
Loading…
x
Reference in New Issue
Block a user