Browse Source

correctif inscription de groupes (uniquement si libre > 1)

garthh 4 weeks ago
parent
commit
da39958f45
1 changed files with 4 additions and 0 deletions
  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">