{# Modem Search Results Partial Rendered by /api/roster/search/modems endpoint for HTMX dropdown. Variables: - modems: List of modem dicts with id, ip_address, phone_number, note, deployed, display - query: The search query string - show_empty: Boolean - show "no results" message #} {% set picker_id = request.query_params.get('picker_id', '') %} {% if modems %} {% for modem in modems %}
{{ modem.id }} {% if modem.ip_address %} - {{ modem.ip_address }} {% endif %}
{% if modem.note %}
{{ modem.note }}
{% endif %}
{% if not modem.deployed %} Benched {% endif %}
{% endfor %} {% endif %} {% if show_empty %}

No modems found matching "{{ query }}"

{% endif %} {% if not modems and not show_empty %}

Start typing to search modems...

Search by modem ID, IP address, or note

{% endif %}