mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-24 08:33:49 +00:00
add a form to make a ling with 'add a participant' page
This commit is contained in:
@@ -13,3 +13,7 @@ chill_event_admin_role:
|
||||
chill_event_admin_event_type:
|
||||
resource: "@ChillEventBundle/Resources/config/routing/eventtype.yml"
|
||||
prefix: /{_locale}/admin/event/event_type
|
||||
|
||||
chill_event_participation:
|
||||
resource: "@ChillEventBundle/Resources/config/routing/participation.yml"
|
||||
prefix: /{_locale}/event/participation
|
||||
|
3
Resources/config/routing/participation.yml
Normal file
3
Resources/config/routing/participation.yml
Normal file
@@ -0,0 +1,3 @@
|
||||
chill_event_participation_new:
|
||||
path: /new
|
||||
defaults: { _controller: ChillEventBundle:Participation:new }
|
@@ -14,6 +14,7 @@ Last update: Dernière mise à jour
|
||||
Details of an event: Détails d'un événement
|
||||
|
||||
Edit all the participations: Modifier toutes les participations
|
||||
Add a participation: Ajouter un participant
|
||||
|
||||
#search
|
||||
Event search: Recherche d'événements
|
||||
|
@@ -36,7 +36,7 @@
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<h2>{{ 'Participation'|trans }}</h2>
|
||||
<h2>{{ 'Participations'|trans }}</h2>
|
||||
{% set count = event.participations|length %}
|
||||
<p>{% transchoice count %}%count% participations to this event{% endtranschoice %}</p>
|
||||
|
||||
@@ -74,6 +74,12 @@
|
||||
|
||||
<ul class="record_actions">
|
||||
<li><a href="#" class="sc-button btn-edit">{{ 'Edit all the participations'|trans }}</a></li>
|
||||
<li><div style="padding-left: 3em;">
|
||||
{{ form_widget(form_add_participation_by_person.person_id, { 'attr' : { 'style' : 'width: 20em; display:inline-block; ' } } ) }}
|
||||
{{ form_widget(form_add_participation_by_person.submit, { 'attr' : { 'class' : 'sc-button btn-create' } } ) }}
|
||||
{{ form_rest(form_add_participation_by_person) }}
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
{% endif %}
|
||||
|
||||
|
Reference in New Issue
Block a user