templates/inscrire_parent_activite_espace_membre/index.html.twig line 1

Open in your IDE?
  1.     {% extends 'base.html.twig' %}
  2. {% block title %}S'inscrir à une activité{% endblock %}
  3. {% block body %}                                    
  4.                                         
  5.     <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">
  6.         <div class="d-flex flex-column flex-root app-root" id="kt_app_root">
  7.             <div class="app-page flex-column flex-column-fluid" id="kt_app_page">
  8.                 <div class="app-wrapper flex-column flex-row-fluid" id="kt_app_wrapper">
  9.                     <div class="app-main flex-column flex-row-fluid" id="kt_app_main">
  10.                     <div class="d-flex flex-column flex-column-fluid">
  11.                             <!--begin::Toolbar-->
  12.                             <div id="kt_app_toolbar" class="app-toolbar py-3 py-lg-6">
  13.                                 <!--begin::Toolbar container-->
  14.                                 <div id="kt_app_toolbar_container" class="app-container container-xxl d-flex flex-stack">
  15.                                     <!--begin::Page title-->
  16.                                     <div class="page-title d-flex flex-column justify-content-center flex-wrap me-3">
  17.                                         <!--begin::Title-->
  18.                                         <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>
  19.                                         
  20.                                         
  21.                                         </br>
  22.                                     
  23.                                     
  24.                                     </div>    
  25.                                     </div>
  26.                                     
  27.                                 </div>
  28.                             </div>
  29.                             <div id="kt_app_content" class="app-content flex-column-fluid">
  30.                                 <div id="kt_app_content_container" class="app-container container-xxl">
  31.                                     <div class="d-flex flex-column flex-lg-row">
  32.                                     
  33.                                         <div class="flex-lg-row-fluid ms-lg-15">
  34.                                             
  35.                                             <div class="tab-content" id="myTabContent">
  36.                                                 <div class="tab-pane fade show active" id="inscription_activite" role="tabpanel">
  37.                                                 
  38.                                                     <div class="card card-flush mb-6 mb-xl-9">
  39.                                                     <div class="card-header border-0">
  40.                                                         <div class="modal-body py-10 px-lg-17">
  41.                                                     <h3 class="fw-bold">{% trans %}Choisir une ou plusieurs activités{% endtrans %}</h3></br></br>
  42.                                             {{ form_start(form) }}
  43.                                             <div class="d-flex flex-column flex-md-row gap-5">
  44.                                                 <div class="flex-row-fluid">
  45.                                                     {{ form_row(form.activite) }}
  46.                                                 </div>
  47.     
  48.                                                 
  49.                                             </div>
  50.                                             </br>
  51.                                             
  52.                                             <div class="modal-footer flex-center">
  53.                                                 {{ form_row(form.Enregistrer) }}
  54.                                             </div>
  55.                                         </div>            
  56.     
  57.                                         </form>    
  58.                                     {{ form_end(form) }}
  59.                                 </div>    
  60.                             </div>
  61.                         </div>
  62.                     
  63.                     </div>
  64.                     
  65.                 </div>
  66.                 </div>
  67.             </div>
  68.             </div>
  69.             </div>
  70.             
  71.                     <div id="kt_app_footer" class="app-footer">
  72.                         <div class="app-container container-fluid d-flex flex-column flex-md-row flex-center flex-md-stack py-3">
  73.                             <div class="text-dark order-2 order-md-1">
  74.                                 <span class="text-muted fw-semibold me-1">2023&copy;</span>
  75.                                 <a href="https://smartegy.ca/" target="_blank" class="text-gray-800 text-hover-primary">Made with <3 by smartegy</a>
  76.                             </div>
  77.                                         
  78.                         </div>
  79.                     </div>
  80.                                                     
  81.                 </div>                                
  82.             </div>
  83.         </div>
  84.     </div>             
  85. </body>
  86. {% endblock %}
  87. {% block javascript %}
  88. <script>
  89. for (var id = 0; id <= 200; id++) {
  90.     var myDiv = document.getElementById('activite_membre_activite_' + id);
  91.     var myLabel = document.querySelector('label[for="activite_membre_activite_' + id + '"]');
  92.     if (myDiv) {
  93.         myDiv.classList.add("form-check-input");
  94.         myDiv.style.display = "inline-block";
  95.         myDiv.style.marginRight = "20px";
  96.         myDiv.style.marginLeft = "10px";
  97.         myDiv.style.verticalAlign= "middle";
  98.         if (myLabel) {
  99.             
  100.              myLabel.insertAdjacentHTML('afterend', '<br><br>');
  101.         }
  102.         
  103.         
  104.     }
  105.     
  106. }
  107. </script>
  108. {% endblock %}