NodeTile: Allow to add sub nodes directly from a parent's overview

This commit is contained in:
Johannes Meyer 2019-01-08 09:51:30 +01:00
parent b2ef90b99f
commit c40a192078

View file

@ -295,6 +295,18 @@ class NodeTile extends BaseHtmlElement
],
Html::tag('i', ['class' => 'icon icon-edit'])
));
$this->actions()->add(Html::tag(
'a',
[
'href' => $renderer->getUrl()->with([
'action' => 'add',
'node' => $node->getName()
]),
'title' => mt('businessprocess', 'Add a new sub-node to this business process')
],
Html::tag('i', ['class' => 'icon icon-plus'])
));
}
$params = array(