{# Modal option picker — opens global modal instead of an inline dropdown. Usage – static options (navigate mode, e.g. pagination): {% from "_custom_select.html" import custom_select %} {{ custom_select(id="pagination-limit", options=[...], selected_value=..., selected_label=..., mode="navigate", class="...") }} Usage – form mode with data_setting_key (admin): {{ custom_select(id="smtp-encryption", data_setting_key="smtp_encryption", options=[...], ...) }} Usage – dynamic options (JS: populateCustomSelect(id, options, selectedValue)): {{ custom_select(id="source-branch-select", options=[], selected_value="", selected_label="Loading...", mode="form", dynamic=true, ...) }} #} {% macro custom_select(id, name=none, options=[], selected_value="", selected_label=none, mode="form", dynamic=false, placeholder="Select...", class="", disabled=false, data_setting_key=none, menu_position="bottom", picker_title="", show_chevron=true, compact=false) %} {% endmacro %}