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

@@ -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 %}