Ver Fonte

correctif inscription de groupes (uniquement si libre > 1)

garthh há 1 mês atrás
pai
commit
da39958f45
1 ficheiros alterados com 4 adições e 0 exclusões
  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">