{# /************************************************************* File name: includes/villa-menu.html.twig Project: Villas3.com Copyright 2025 Michael J. Miller, All rights reserved Purpose: generate standard markup for villa selection menu including inactive villas in an option group if present. Requires: villa_list - villa records to put in menu Revision History: Date Version Details -------- -------- -------------------------------------------- 5/24/25 3.0b10 Created. **************************************************************/ #} {% set inactive = 0 %} {% for v in villa_list %} {% if v.show_villa == 1 %} {% else %} {% set inactive = 1 %} {% endif %} {% endfor %} {% if inactive == 1 %} {% for v in villa_list %} {% if v.show_villa == 0 %} {% endif %} {% endfor %} {% endif %}