add a first step to pick center in new event form

This commit is contained in:
2019-01-28 17:51:51 +01:00
parent 6d2ea8caab
commit fda14a52e0
5 changed files with 105 additions and 6 deletions

View File

@@ -12,9 +12,9 @@ chill_event__event_show:
path: /{event_id}/show
defaults: { _controller: "ChillEventBundle:Event:show" }
chill_event__event_new:
path: /new
defaults: { _controller: "ChillEventBundle:Event:new" }
chill_event__event_new_pickcenter:
path: /new/pick-center
defaults: { _controller: "ChillEventBundle:Event:newPickCenter" }
options:
menus:
section:
@@ -22,6 +22,10 @@ chill_event__event_new:
label: Add an event
icons: [plus, calendar-o]
chill_event__event_new:
path: /new
defaults: { _controller: "ChillEventBundle:Event:new" }
chill_event__event_create:
path: /create
defaults: { _controller: "ChillEventBundle:Event:create" }

View File

@@ -3,4 +3,5 @@ services:
arguments:
$eventDispatcher: '@Symfony\Component\EventDispatcher\EventDispatcherInterface'
$authorizationHelper: '@Chill\MainBundle\Security\Authorization\AuthorizationHelper'
$formFactoryInterface: '@Symfony\Component\Form\FormFactoryInterface'
tags: ['controller.service_arguments']

View File

@@ -56,3 +56,8 @@ CHILL_EVENT_PARTICIPATION_CREATE: Créer une participation à un événement
CHILL_EVENT_PARTICIPATION_UPDATE: Modifier une participation à un événement
CHILL_EVENT_SEE: Voir un événement
CHILL_EVENT_SEE_DETAILS: Voir les détails d'un événement
# TODO check place to put this
Next step: Étape suivante
To which centre should the event be associated ?: À quel centre doit être associé l'événement ?

View File

@@ -0,0 +1,26 @@
{% extends 'ChillEventBundle::layout.html.twig' %}
{% block title 'Event creation'|trans %}
{% block event_content -%}
<h1>{{ 'Event creation'|trans }}</h1>
{{ form_start(form) }}
{{ form_errors(form) }}
{{ form_row(form.center_id) }}
<ul class="record_actions">
<li class="cancel">
<a href="{{ path('chill_event_list_most_recent') }}" class="sc-button bt-cancel">
{{ 'Back to the most recent events'|trans }}
</a>
</li>
<li>
{{ form_widget(form.submit, { 'attr' : { 'class' : 'sc-button green' } }) }}
</li>
</ul>
{{ form_end(form) }}
{% endblock %}