{% for field in search_form %} {% include "wagtailadmin/shared/field_as_li.html" with field=field %} {% endfor %}