{% extends '@OroUI/actions/view.html.twig' %} {% import '@OroUI/macros.html.twig' as UI %} {% import '@OroDataGrid/macros.html.twig' as dataGrid %} {% oro_title_set({params : {"%title%": entity.__toString()}}) %} {% block pageHeader %} {% set breadcrumbs = { 'entity': entity, 'indexPath': path('oro_rfp_request_index'), 'indexLabel': 'oro.rfp.request.entity_plural_label'|trans, 'entityTitle': 'oro.rfp.request.id.label'|trans ~ entity.id } %} {{ parent() }} {% endblock pageHeader %} {% block content_data %} {% set requestInfo %} {{ oro_widget_render({ 'widgetType': 'block', 'url': path('oro_rfp_request_info', {id: entity.id}), 'alias': 'request-info-widget' }) }} {% endset %} {% set dataBlocks = [ { 'title': 'oro.rfp.sections.general'|trans, 'subblocks': [{'data' : [requestInfo]}] } ] %} {% set dataBlocks = dataBlocks|merge([{ 'title': 'oro.rfp.sections.note'|trans, 'subblocks': [{'data': [ dataGrid.renderGrid('rfp-request-additional-notes-grid', {request: entity.id}, {cssClass: 'inner-grid'}) ]}] }]) %} {% if entity.requestProducts|length %} {% set lineItems %}
{{ 'oro.product.sku.label'|trans }} | {{ 'oro.product.entity_label'|trans }} | {{ 'oro.rfp.requestproductitem.quantity.label'|trans }} | {{ 'oro.rfp.requestproductitem.price.label'|trans }} | {{ 'oro.rfp.requestproduct.comment.label'|trans }} |
---|---|---|---|---|
{{ lineItem.productSku }} | {{ lineItem.product }} | {% endif %}{% if subItem.productUnit %} {% if oro_is_unit_code_visible(subItem.productUnit.code) %} {{ quantity ? quantity|oro_format_short_product_unit_value(subItem.productUnit) : 'N/A'|trans }} {% else %} {{ quantity ? quantity|oro_format_decimal : 'N/A'|trans }} {% endif %} {% else %} {{ quantity ? quantity ~ ' ' ~ 'oro.rfp.message.requestproductitem.unit.removed'|trans({'{title}': subItem.productUnitCode}) : 'N/A'|trans }} {% endif %} | {{ price ? price|oro_format_price : ''|trans }} | {% if loop.first %}{{ lineItem.comment }} | {% endif %}