index.html.twig 1.23 KB
Newer Older
Julien Jorry committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
{% 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 %}