DigitalState/Platform-Transport-Bundle

View on GitHub
Resources/views/Profile/widget/entity.html.twig

Summary

Maintainability
Test Coverage
{% import 'OroUIBundle::macros.html.twig' as UI %}

<div class="widget-content">
    <div class="row-fluid form-horizontal">
        <div class="responsive-block">
            {{ UI.renderProperty('ds.transport.profile.id.label'|trans, entity.id) }}
            {{ UI.renderProperty('ds.transport.profile.title.label'|trans, entity.title) }}
            {{ UI.renderHtmlProperty('ds.transport.profile.transport.label'|trans, '<a href="' ~ path('ds_transport_transport_view', { id: entity.transport.id }) ~ '">' ~ entity.transport.title ~ '</a>') }}
            {{ UI.renderProperty('ds.transport.profile.data.label'|trans, entity.data|keys|join(', ')) }}
        </div>
    </div>
    {% for widget in ds_widgets({ position: 'ds_transport_profile_entity_profile', context: context }, { entity: entity }) %}
        {{ widget.content|raw }}
    {% endfor %}
</div>