{# Project override of Flask-Admin's bootstrap4 inline_list_base.html. Same shape as the upstream macro (`render_inline_fields`) so all downstream templates keep working — only the "remove this entry" affordance is changed: render a plain Unicode "✕" button instead of the upstream FontAwesome , which did not display reliably with the FA build this admin loads. #} {% macro render_inline_fields(field, template, render, check=None) %}
{% for subfield in field %}
{%- if not check or check(subfield) %} {{ field.label.text }} #{{ loop.index }}
{% if subfield.get_pk and subfield.get_pk() %} {% else %} {% endif %}
{%- endif -%} {{ render(subfield) }}
{% endfor %}
{% filter forceescape %}
{{ _gettext('New') }} {{ field.label.text }}
{{ render(template) }}
{% endfilter %}
{{ _gettext('Add') }} {{ field.label.text }}
{% endmacro %}