{% extends '@kohinos/common/layout.html.twig' %}

{% block content %}
	<div class='container homepage'>
		{% include '@kohinos/block/breadcrumb.html.twig' with {'label' : param.name } %}
		<div class="card mx-auto mt-2">
			<div class="card-header">{{ param.name }}</div>
			<div class="card-body">
				<p>{{ param.description|raw }}</p><br/><br/>
				<div class="mx-auto text-center" style="max-width:800px;">
					{{form_start(form)}}
						<input type="hidden" name="referer" value="{{app.request.headers.get('referer')}}"/>
						{{ form_row(form.user) }}
						{{ form_row(form.adherent) }}
						{{ form_row(form.amount) }}
						{{ form_row(form.isRecurrent) }}
						{{ form_row(form.paiementDate) }}
						{{ form_row(form.isDonation) }}
						<div class='row mt-4'>
							{% if getSolidoumeParticipation() == null %}
								<div class='col-12'>
									{{ form_widget(form.save) }}
								</div>
							{% else %}
								<div class='col-6'>
									{{ form_widget(form.save) }}
								</div>
								<div class='col-6'>
									<a class='btn btn-danger' href='{{ path('solidoume_unsubscribe') }}'>Se désinscrire</a>
								</div>
							{% endif %}
						</div>
					{{form_end(form)}}
		 		</div>
		 	</div>
		</div>
	</div>
{% endblock %}