Explorar o código

correctif inscription de groupes (uniquement si libre > 1)

garthh hai 1 mes
pai
achega
da39958f45
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      templates/participation/_modal.add.html.twig

+ 4 - 0
templates/participation/_modal.add.html.twig

@@ -99,6 +99,8 @@
       {{ form_help(form.consentImage) }}
     </div>
 
+    {% if party.getSeatsLeft > 1 %}
+
     <div class="box">
       <div class="block">
         <h3 class="title is-6">Participation de groupe</h3>
@@ -115,6 +117,8 @@
 
     </div>
 
+    {% endif %}
+
     {{ form_widget(form)}}
 
     <div class="control">