-
-
Save pcahard/53abf57cb9356bb07bfb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% 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 | |
} | |
} | |
} | |
}) | |
) }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% 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