{% extends 'base.html.twig' %}
{% block title %}S'inscrir à une activité{% endblock %}
{% block body %}
<body id="kt_app_body" data-kt-app-layout="dark-sidebar" data-kt-app-header-fixed="true" data-kt-app-sidebar-enabled="true" data-kt-app-sidebar-fixed="true" data-kt-app-sidebar-hoverable="true" data-kt-app-sidebar-push-header="true" data-kt-app-sidebar-push-toolbar="true" data-kt-app-sidebar-push-footer="true" data-kt-app-toolbar-enabled="true" class="app-default">
<div class="d-flex flex-column flex-root app-root" id="kt_app_root">
<div class="app-page flex-column flex-column-fluid" id="kt_app_page">
<div class="app-wrapper flex-column flex-row-fluid" id="kt_app_wrapper">
<div class="app-main flex-column flex-row-fluid" id="kt_app_main">
<div class="d-flex flex-column flex-column-fluid">
<!--begin::Toolbar-->
<div id="kt_app_toolbar" class="app-toolbar py-3 py-lg-6">
<!--begin::Toolbar container-->
<div id="kt_app_toolbar_container" class="app-container container-xxl d-flex flex-stack">
<!--begin::Page title-->
<div class="page-title d-flex flex-column justify-content-center flex-wrap me-3">
<!--begin::Title-->
<h1 class="page-heading d-flex text-dark fw-bold fs-3 flex-column justify-content-center my-0">{% trans %}Inscription à une activité{% endtrans %}</h1>
</br>
</div>
</div>
</div>
</div>
<div id="kt_app_content" class="app-content flex-column-fluid">
<div id="kt_app_content_container" class="app-container container-xxl">
<div class="d-flex flex-column flex-lg-row">
<div class="flex-lg-row-fluid ms-lg-15">
<div class="tab-content" id="myTabContent">
<div class="tab-pane fade show active" id="inscription_activite" role="tabpanel">
<div class="card card-flush mb-6 mb-xl-9">
<div class="card-header border-0">
<div class="modal-body py-10 px-lg-17">
<h3 class="fw-bold">{% trans %}Choisir une ou plusieurs activités{% endtrans %}</h3></br></br>
{{ form_start(form) }}
<div class="d-flex flex-column flex-md-row gap-5">
<div class="flex-row-fluid">
{{ form_row(form.activite) }}
</div>
</div>
</br>
<div class="modal-footer flex-center">
{{ form_row(form.Enregistrer) }}
</div>
</div>
</form>
{{ form_end(form) }}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="kt_app_footer" class="app-footer">
<div class="app-container container-fluid d-flex flex-column flex-md-row flex-center flex-md-stack py-3">
<div class="text-dark order-2 order-md-1">
<span class="text-muted fw-semibold me-1">2023©</span>
<a href="https://smartegy.ca/" target="_blank" class="text-gray-800 text-hover-primary">Made with <3 by smartegy</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
{% endblock %}
{% block javascript %}
<script>
for (var id = 0; id <= 200; id++) {
var myDiv = document.getElementById('activite_membre_activite_' + id);
var myLabel = document.querySelector('label[for="activite_membre_activite_' + id + '"]');
if (myDiv) {
myDiv.classList.add("form-check-input");
myDiv.style.display = "inline-block";
myDiv.style.marginRight = "20px";
myDiv.style.marginLeft = "10px";
myDiv.style.verticalAlign= "middle";
if (myLabel) {
myLabel.insertAdjacentHTML('afterend', '<br><br>');
}
}
}
</script>
{% endblock %}