瀏覽代碼

correction supprission du dropdown quand un seul élément

garthh 1 天之前
父節點
當前提交
dadcce5d2b
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      templates/main/booking.html.twig

+ 2 - 0
templates/main/booking.html.twig

@@ -24,6 +24,7 @@
       <button>
         <span><strong>{{ event.name }}</strong></span>        
       </button>
+      {% if events|length > 1 %}
       <span class="icon is-small">
         <twig:ux:icon name="bi:chevron-down" />&nbsp;
       </span>
@@ -36,6 +37,7 @@
           {% endfor %}
         </div>
       </div>
+      {% endif %}
     </div>
   </div>