|
46 | 46 | $links = []; |
47 | 47 | if (Session::haveRight('plugin_jamf_mobiledevice', CREATE)) { |
48 | 48 | $links[] = [ |
49 | | - 'name' => _x('menu', 'Import devices', 'jamf'), |
50 | | - 'url' => PluginJamfImport::getSearchURL(), |
| 49 | + 'name' => _x('menu', 'Import devices', 'jamf'), |
| 50 | + 'url' => PluginJamfImport::getSearchURL(), |
| 51 | + 'description' => __('Discover the devices in your Jamf Pro instance to ensure data integrity and prevent the creation of unwanted assets.', 'jamf'), |
| 52 | + 'action' => __s('Import', 'jamf'), |
| 53 | + 'pics' => $plugin_dir . '/pics/import.png', |
51 | 54 | ]; |
52 | 55 | $links[] = [ |
53 | | - 'name' => _x('menu', 'Merge existing devices', 'jamf'), |
54 | | - 'url' => "{$plugin_dir}/front/merge.php", |
55 | | - ]; |
56 | | -} |
57 | | -if (Session::haveRight('config', UPDATE)) { |
58 | | - $links[] = [ |
59 | | - 'name' => _x('menu', 'Configuration', 'jamf'), |
60 | | - 'url' => Config::getFormURL() . '?forcetab=PluginJamfConfig', |
| 56 | + 'name' => _x('menu', 'Merge existing devices', 'jamf'), |
| 57 | + 'url' => $plugin_dir . '/front/merge.php', |
| 58 | + 'description' => __('Compare imported devices with those already present in GLPI using unique identifiers and facilitate the consolidation.', 'jamf'), |
| 59 | + 'action' => __s('Merge', 'jamf'), |
| 60 | + 'pics' => $plugin_dir . '/pics/merge.png', |
61 | 61 | ]; |
62 | 62 | } |
63 | 63 |
|
64 | 64 | TemplateRenderer::getInstance()->display('@jamf/menu.html.twig', [ |
65 | | - 'links' => $links, |
| 65 | + 'links' => $links, |
| 66 | + 'can_configure' => Session::haveRight('config', UPDATE), |
| 67 | + 'config_url' => Config::getFormURL() . '?forcetab=PluginJamfConfig$1', |
66 | 68 | ]); |
| 69 | + |
67 | 70 | Html::footer(); |
0 commit comments