{% load django_glue %} {# Picks one glue choice widget from field metadata alone. Opt in with: #} {# {% include 'django_spire/glue/form/field/choice/adaptive_field.html' #} {# with glue_field='glue_form.company' %} #} {# #} {# cardinality x choices_searchable -> widget: #} {# single + not searchable -> select_widget.html #} {# single + searchable -> search_and_select_widget.html #} {# multiple + either -> multi_search_and_select_widget.html #} {# (its search box self-gates on searchable) #} {# #} {# The three widget templates {% extends %} widget.html; {% include %} renders #} {# them fully resolved, and the current context (glue_field included) flows in #} {# with no `with`, so each widget resolves its own field metadata -- do not #} {# pass glue_field explicitly. #}