show always the form "add a participant" even if no participation yet

This commit is contained in:
Julien Fastré 2016-03-24 15:18:50 +01:00
parent 937c6269a1
commit 372cae7008

View File

@ -75,9 +75,14 @@
</tbody>
</table>
{% endif %}
<ul class="record_actions">
{% if count > 0 %}
<li><a href="#" class="sc-button btn-edit">{{ 'Edit all the participations'|trans }}</a></li>
<li><div style="padding-left: 3em;">
{% endif %}
<li><div style="margin-left: 3em;">
{{ form_start(form_add_participation_by_person) }}
{{ 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' } } ) }}
@ -86,7 +91,6 @@
</div>
</li>
</ul>
{% endif %}
{% endblock %}