Skip to content

Instantly share code, notes, and snippets.

@pcahard
Created October 26, 2015 09:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pcahard/53abf57cb9356bb07bfb to your computer and use it in GitHub Desktop.
Save pcahard/53abf57cb9356bb07bfb to your computer and use it in GitHub Desktop.
{% import 'OroUIBundle::macros.html.twig' as UI %}
{{ UI.renderHtmlProperty(
'm2m.marketing_event.statistics.nb_of_leads'|trans,
UI.clientLink({
'dataUrl': path( 'm2m_marketing_event_leads', {id: entity.id} ),
'aCss': parameters.aCss is defined ? parameters.aCss ~ ' no-hash' : 'no-hash',
'label' : nb_of_leads,
'widget' : {
'type' : 'dialog',
'options' : {
'alias': 'marketing_event-leads-dialog',
'dialogOptions' : {
'title' : 'm2m.marketing_event.leads'|trans,
'allowMaximize': true,
'allowMinimize': true,
'dblclick': 'maximize',
'maximizedHeightDecreaseBy': 'minimize-bar',
'width': 1000
}
}
}
})
) }}
{% extends 'OroUIBundle:actions:view.html.twig' %}
{% import 'OroUIBundle::macros.html.twig' as macros %}
{# ...some code #}
{% block content_data %}
{# ...some code #}
{% set statistics %}
{{ oro_widget_render({
'widgetType': 'block',
'title': 'm2m.marketing_event.widgets.statistics'|trans,
'url': path('m2m_marketing_event_widget_statistics', {id: entity.id})
}) }}
{% endset %}
{# ...some code #}
{{ parent() }}
{% endblock content_data %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment