{% macro option(id='', title='', index=None) %} {% endmacro %}
{% for v in options %} {%- if v.existing is not defined or v.existing %} {{ widget.item_row(v, loop.cycle('odd', 'even')) }} {%- endif -%} {% endfor %}
{%- if not readonly -%}
{% if widget.allow_select %} {{ widget.open_btn_text }} {% endif %} {% if widget.show_create_button %} {{ widget.create_btn_text }} {% endif %} {% block extra_buttons %}{% endblock %}
{%- endif %}