fix the possibility to add multiple participation

ref #6
This commit is contained in:
2016-04-11 23:59:14 +02:00
parent fe8994d775
commit c1b9069138
6 changed files with 225 additions and 18 deletions

View File

@@ -32,6 +32,8 @@ Back to the event: Retour à l'événement
The participation was created: La participation a été créée
The participation was updated: La participation a été mise à jour
Participation Edit: Modifier une participation
'Any of the requested people may be added on the event: they are maybe already participating.': 'Aucune des personnes suggérées ne peut être ajoutée à l''événement: elles sont peut-être déjà inscrites comme participantes.'
'The following people have been ignored because they are already participating on the event': '{1} La personne suivante a été ignorée parce qu''elle participe déjà à l''événement | ]1,Inf] Les personnes suivantes ont été ignorées parce qu''elles participent déjà à l''événement'
#search
Event search: Recherche d'événements

View File

@@ -0,0 +1,10 @@
{% import 'ChillPersonBundle:Person:macro.html.twig' as person_macro %}
{% if ignored_participations|length > 0 %}
<p>{% transchoice ignored_participations|length %}The following people have been ignored because they are already participating on the event{% endtranschoice %}&nbsp;:</p>
<ul>
{% for p in ignored_participations %}
<li>{{ person_macro.render(p.person) }}</li>
{% endfor %}
</ul>
{% endif %}

View File

@@ -28,8 +28,8 @@
</tr>
</tbody>
</table>
{% include 'ChillEventBundle:Participation:_ignored_participations.html.twig' with ignored_participations %}
{{ form_start(form) }}
<table>
@@ -64,4 +64,5 @@
</ul>
{{ form_end(form) }}
{% endblock %}

View File

@@ -19,6 +19,8 @@
</tr>
</tbody>
</table>
{% include 'ChillEventBundle:Participation:_ignored_participations.html.twig' with ignored_participations %}
{{ form_start(form) }}
@@ -26,6 +28,8 @@
{{ form_row(form.role) }}
{{ form_row(form.status) }}
<ul class="record_actions">
<li>
@@ -40,4 +44,5 @@
</ul>
{{ form_end(form) }}
{% endblock %}