Stable
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
|
||||
use GlpiPlugin\Urbackup\Profile;
|
||||
use GlpiPlugin\Urbackup\Server;
|
||||
use Html;
|
||||
use Search;
|
||||
|
||||
if (!defined('GLPI_ROOT')) {
|
||||
define('GLPI_ROOT', dirname(__DIR__, 4));
|
||||
}
|
||||
|
||||
include_once GLPI_ROOT . "/inc/includes.php";
|
||||
|
||||
if (!Profile::canCurrentUser(READ)) {
|
||||
Html::displayRightError();
|
||||
}
|
||||
|
||||
$can_read = Profile::canCurrentUser(READ);
|
||||
$can_create = Profile::canCurrentUser(CREATE);
|
||||
|
||||
Html::header(
|
||||
'UrBackup Servers',
|
||||
'',
|
||||
'Assets',
|
||||
''
|
||||
);
|
||||
|
||||
if ($can_create) {
|
||||
echo "<div class='center'>";
|
||||
echo Html::link(
|
||||
__('Add UrBackup server', 'urbackup'),
|
||||
'/plugins/urbackup/front/server.form.php',
|
||||
['class' => 'btn btn-primary']
|
||||
);
|
||||
echo "</div>";
|
||||
echo "<br>";
|
||||
}
|
||||
|
||||
Search::show('GlpiPlugin\Urbackup\Server', [
|
||||
'is_deleted' => 0,
|
||||
'massiveaction' => true,
|
||||
'start' => 0,
|
||||
'additional_actions' => [
|
||||
'view' => __('View', 'urbackup'),
|
||||
],
|
||||
]);
|
||||
|
||||
Html::footer();
|
||||
Reference in New Issue
Block a user