{% if results %}
  <ul style="list-style:none;padding:0;margin:0">
    {% for item in results %}
      <li style="margin:6px 0;">
        <strong>{{ item.text|escape }}</strong>
        <button type="button" onclick="setManualSupervisor({{ row }}, {{ item.id }}, '{{ item.text|escapejs }}')" style="margin-left:8px;">Select</button>
      </li>
    {% endfor %}
  </ul>
{% else %}
  <div><em>No supervisors found</em></div>
{% endif %}
