{% extends "qommon/forms/widget.html" %}
{% block widget-control %}
<select id="form_{{widget.name}}" name="{{widget.name}}"
    data-select2-url="{{widget.get_select2_url}}"
    {% if widget.value %}data-value="{{ widget.value }}"{% endif %}
    data-required="{% if widget.is_required %}true{% endif %}"
    data-initial-display-value="{{widget.get_display_value|default_if_none:''}}">
</select>
{% endblock %}
