{% extends 'forms/base_widget.html' %} {% macro render_section(id, title=none, placeholder=none) %} {% if title is not none %}
{{ title }}
{% endif %} {% if placeholder is not none %}
{{ placeholder }}
{% endif %}
{% endmacro %} {% block html %} {% set list_in_custom_order = field._value()|selectattr('displayOrder')|list|length > 0 %} {% set use_custom_order = list_in_custom_order if field._value() else not field.default_sort_alpha %} {% endblock %} {% block javascript %} {% endblock %}