{% for entity in field.value %}
    {% if field.customOption('crudControllerFqcn') is not null and  entity is not null%}
        <a href="{{ ea_url_short(field.customOption('crudControllerFqcn'), 'edit', entity.id) }}">
            <span class="badge badge-secondary">
            {{ entity }}
            </span>
        </a>
    {% else %}
        <span class="badge badge-secondary">{{ entity }}</span>
    {% endif %}
{% endfor %}