first task omnishell and minor style checks
This commit is contained in:
parent
9b1a3a9cd1
commit
672ce6db22
|
@ -0,0 +1,56 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Omnishell first task.
|
||||||
|
*
|
||||||
|
* @category Omnishell
|
||||||
|
* @package Pandora FMS
|
||||||
|
* @subpackage Enterprise
|
||||||
|
* @version 1.0.0
|
||||||
|
* @license See below
|
||||||
|
*
|
||||||
|
* ______ ___ _______ _______ ________
|
||||||
|
* | __ \.-----.--.--.--| |.-----.----.-----. | ___| | | __|
|
||||||
|
* | __/| _ | | _ || _ | _| _ | | ___| |__ |
|
||||||
|
* |___| |___._|__|__|_____||_____|__| |___._| |___| |__|_|__|_______|
|
||||||
|
*
|
||||||
|
* ============================================================================
|
||||||
|
* Copyright (c) 2007-2019 Artica Soluciones Tecnologicas, http://www.artica.es
|
||||||
|
* This code is NOT free software. This code is NOT licenced under GPL2 licence
|
||||||
|
* You cannnot redistribute it without written permission of copyright holder.
|
||||||
|
* ============================================================================
|
||||||
|
*/
|
||||||
|
|
||||||
|
global $config;
|
||||||
|
check_login();
|
||||||
|
ui_require_css_file('first_task');
|
||||||
|
?>
|
||||||
|
<?php ui_print_info_message(['no_close' => true, 'message' => __('There is no command defined yet.') ]); ?>
|
||||||
|
|
||||||
|
<div class="new_task">
|
||||||
|
<div class="image_task">
|
||||||
|
<?php echo html_print_image('images/first_task/omnishell.png', true, ['title' => __('Omnishell')]); ?>
|
||||||
|
</div>
|
||||||
|
<div class="text_task">
|
||||||
|
<h3> <?php echo __('Omnishell'); ?></h3><p id="description_task">
|
||||||
|
<?php
|
||||||
|
echo '<p>'.__(
|
||||||
|
'Omnishell is an enterprise feature which allows you to execute a structured command along any agent in your %s. The only requirement is to have remote configuration enabled in your agent.',
|
||||||
|
io_safe_output(get_product_name())
|
||||||
|
).'</p>';
|
||||||
|
|
||||||
|
echo '<p>'.__(
|
||||||
|
'You can execute any command on as many agents you need, and check the execution on all of them using the Omnishell Command View'
|
||||||
|
).'</p>';
|
||||||
|
?>
|
||||||
|
</p>
|
||||||
|
<?php
|
||||||
|
if (enterprise_installed()) {
|
||||||
|
?>
|
||||||
|
<form action="index.php?sec=gextensions&sec2=enterprise/tools/omnishell&page=1" method="post">
|
||||||
|
<input type="submit" class="button_task" value="<?php echo __('Define a command'); ?>" />
|
||||||
|
</form>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</div>
|
||||||
|
</div>
|
Binary file not shown.
After Width: | Height: | Size: 54 KiB |
|
@ -1,5 +1,11 @@
|
||||||
|
.new_task p,
|
||||||
|
.new_task div {
|
||||||
|
font-family: "lato-lighter", "Open Sans", sans-serif;
|
||||||
|
font-weight: lighter;
|
||||||
|
}
|
||||||
.new_task {
|
.new_task {
|
||||||
margin-top: 30px;
|
margin-top: 30px;
|
||||||
|
min-width: 600px;
|
||||||
left: 20px;
|
left: 20px;
|
||||||
width: 60%;
|
width: 60%;
|
||||||
height: 300px;
|
height: 300px;
|
||||||
|
@ -30,6 +36,7 @@ div.new_task_cluster > div {
|
||||||
|
|
||||||
.image_task {
|
.image_task {
|
||||||
width: 20%;
|
width: 20%;
|
||||||
|
min-width: 175px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
|
@ -47,7 +54,7 @@ div.new_task_cluster > div {
|
||||||
|
|
||||||
.text_task {
|
.text_task {
|
||||||
width: 70%;
|
width: 70%;
|
||||||
float: right;
|
float: left;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
padding-right: 25px;
|
padding-right: 25px;
|
||||||
}
|
}
|
Loading…
Reference in New Issue