mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-24 10:49:00 +02:00
Added basic label generation dialog.
This commit is contained in:
parent
ea0d72bfbb
commit
a4e1a17b4a
12 changed files with 230 additions and 5 deletions
|
@ -104,6 +104,7 @@ class ToolsTreeBuilder
|
|||
$item->tag(['tree_tools', 'groups', $this->keyGenerator->generateKey()]);
|
||||
|
||||
$tree = [];
|
||||
$tree[] = new TreeViewNode($this->translator->trans('tree.tools.tools'), null, $this->getToolsNode());
|
||||
$tree[] = new TreeViewNode($this->translator->trans('tree.tools.edit'), null, $this->getEditNodes());
|
||||
$tree[] = new TreeViewNode($this->translator->trans('tree.tools.show'), null, $this->getShowNodes());
|
||||
$tree[] = new TreeViewNode($this->translator->trans('tree.tools.system'), null, $this->getSystemNodes());
|
||||
|
@ -112,6 +113,18 @@ class ToolsTreeBuilder
|
|||
});
|
||||
}
|
||||
|
||||
protected function getToolsNode(): array
|
||||
{
|
||||
$nodes = [];
|
||||
|
||||
$nodes[] = new TreeViewNode(
|
||||
$this->translator->trans('tree.tools.tools.label_dialog'),
|
||||
$this->urlGenerator->generate('label_dialog')
|
||||
);
|
||||
|
||||
return $nodes;
|
||||
}
|
||||
|
||||
/**
|
||||
* This functions creates a tree entries for the "edit" node of the tool's tree.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue