This topic contains 6 replies, has 3 voices, and was last updated by Mike Kudelya 7 years, 4 months ago.
- Topic
Hi everyone!
Yesterday i faced a problem. I have an entity template. In this template i render a list of some related entities.
For each of these entities i want to render available workflow transition buttons.I do it like that:
12345678910111213141516{% for stage in entity.stages %}<div class="well">{{ ui.renderProperty('some_translation'|trans, stage.name) }}{{ oro_widget_render({'widgetType': 'block','url': path('oro_workflow_widget_buttons', {entityClass: stageEntityClass, entityId:stage.id}),}) }}</div>{% endfor %}So, buttons renders successfully. But when i click to any transition button – im redirected to corresponding workflow api url. And entity workflowStep is not changed.
If i open this entity in separate template (where the transition buttons rendered in the head of the page, by default) – all transition handled correctly.So, how to render these buttons in any place and make em work?
Thanks!Docker environment for Symfony2/OroCRM/OroBAP development on Windows platform
https://github.com/stepansib/sf-oro-docker
The forum ‘OroPlatform – How do I? Questions’ is closed to new topics and replies.