mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 16:54:06 +02:00
commit
35c6086db3
@ -304,17 +304,21 @@ class BasketController extends ActionController
|
|||||||
$this->translate('modified'),
|
$this->translate('modified'),
|
||||||
'director/basket/snapshotobject',
|
'director/basket/snapshotobject',
|
||||||
$linkParams,
|
$linkParams,
|
||||||
['style' => 'color: orange; font-weight: bold']
|
['class' => 'basket-modified']
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
$link = Html::tag('span', ['style' => 'color: green'], $this->translate('unchanged'));
|
$link = Html::tag(
|
||||||
|
'span',
|
||||||
|
['class' => 'basket-unchanged'],
|
||||||
|
$this->translate('unchanged')
|
||||||
|
);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$link = Link::create(
|
$link = Link::create(
|
||||||
$this->translate('new'),
|
$this->translate('new'),
|
||||||
'director/basket/snapshotobject',
|
'director/basket/snapshotobject',
|
||||||
$linkParams,
|
$linkParams,
|
||||||
['style' => 'color: green; font-weight: bold']
|
['class' => 'basket-new']
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
$table->addNameValueRow($key, $link);
|
$table->addNameValueRow($key, $link);
|
||||||
@ -333,7 +337,6 @@ class BasketController extends ActionController
|
|||||||
$this->content()->add(Html::tag('h2', $type));
|
$this->content()->add(Html::tag('h2', $type));
|
||||||
$this->content()->add($table);
|
$this->content()->add($table);
|
||||||
}
|
}
|
||||||
$this->content()->add(Html::tag('div', ['style' => 'height: 5em']));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -376,11 +376,12 @@ class ConfigController extends ActionController
|
|||||||
}
|
}
|
||||||
|
|
||||||
$baseUrl = $this->url()->without(['left', 'right']);
|
$baseUrl = $this->url()->without(['left', 'right']);
|
||||||
$this->content()->add(Html::tag('form', ['action' => (string) $baseUrl, 'method' => 'GET'], [
|
$this->content()->add(
|
||||||
|
Html::tag('form', ['action' => (string) $baseUrl, 'method' => 'GET', 'class' => 'director-form'], [
|
||||||
new HtmlString($this->view->formSelect(
|
new HtmlString($this->view->formSelect(
|
||||||
'left',
|
'left',
|
||||||
$leftSum,
|
$leftSum,
|
||||||
['class' => 'autosubmit', 'style' => 'width: 37%'],
|
['class' => ['autosubmit', 'config-diff']],
|
||||||
[null => $this->translate('- please choose -')] + $configs
|
[null => $this->translate('- please choose -')] + $configs
|
||||||
)),
|
)),
|
||||||
Link::create(
|
Link::create(
|
||||||
@ -391,10 +392,11 @@ class ConfigController extends ActionController
|
|||||||
new HtmlString($this->view->formSelect(
|
new HtmlString($this->view->formSelect(
|
||||||
'right',
|
'right',
|
||||||
$rightSum,
|
$rightSum,
|
||||||
['class' => 'autosubmit', 'style' => 'width: 37%'],
|
['class' => ['autosubmit', 'config-diff']],
|
||||||
[null => $this->translate('- please choose -')] + $configs
|
[null => $this->translate('- please choose -')] + $configs
|
||||||
)),
|
)),
|
||||||
]));
|
])
|
||||||
|
);
|
||||||
|
|
||||||
if ($rightSum === null || $leftSum === null || ! strlen($rightSum) || ! strlen($leftSum)) {
|
if ($rightSum === null || $leftSum === null || ! strlen($rightSum) || ! strlen($leftSum)) {
|
||||||
return;
|
return;
|
||||||
|
@ -216,7 +216,7 @@ class DataController extends ActionController
|
|||||||
$subTitle = $this->translate('Add a new instance');
|
$subTitle = $this->translate('Add a new instance');
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->content()->add(Html::tag('h2', ['style' => 'margin-top: 2em'], $subTitle));
|
$this->content()->add(Html::tag('h2', ['class' => 'dictionary-header'], $subTitle));
|
||||||
$form->handleRequest($this->getRequest());
|
$form->handleRequest($this->getRequest());
|
||||||
$this->content()->add($form);
|
$this->content()->add($form);
|
||||||
if ($form->succeeded()) {
|
if ($form->succeeded()) {
|
||||||
@ -326,7 +326,7 @@ class DataController extends ActionController
|
|||||||
Table::row([
|
Table::row([
|
||||||
$this->translate('Key / Instance'),
|
$this->translate('Key / Instance'),
|
||||||
$this->translate('Properties')
|
$this->translate('Properties')
|
||||||
], ['style' => 'text-align: left'], 'th')
|
], ['class' => 'text-align-left'], 'th')
|
||||||
);
|
);
|
||||||
foreach ($currentValue as $key => $item) {
|
foreach ($currentValue as $key => $item) {
|
||||||
$table->add(Table::row([
|
$table->add(Table::row([
|
||||||
|
@ -180,9 +180,7 @@ class ImportsourceController extends ActionController
|
|||||||
'target' => '_blank',
|
'target' => '_blank',
|
||||||
'class' => 'icon-download',
|
'class' => 'icon-download',
|
||||||
]
|
]
|
||||||
))->add(Link::create('[..]', '#', null, [
|
));
|
||||||
'onclick' => 'javascript:$("table.raw-data-table").toggleClass("collapsed");'
|
|
||||||
]));
|
|
||||||
try {
|
try {
|
||||||
(new ImportsourceHookTable())->setImportSource($source)->renderTo($this);
|
(new ImportsourceHookTable())->setImportSource($source)->renderTo($this);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
|
@ -380,10 +380,7 @@ class SyncruleController extends ActionController
|
|||||||
protected function firstNames($objects, $max = 50)
|
protected function firstNames($objects, $max = 50)
|
||||||
{
|
{
|
||||||
$names = [];
|
$names = [];
|
||||||
$list = new UnorderedList();
|
$list = new UnorderedList([], ['class' => 'unordred-list']);
|
||||||
$list->addAttributes([
|
|
||||||
'style' => 'list-style-type: none; marign: 0; padding: 0',
|
|
||||||
]);
|
|
||||||
$total = count($objects);
|
$total = count($objects);
|
||||||
$i = 0;
|
$i = 0;
|
||||||
PrefetchCache::forget();
|
PrefetchCache::forget();
|
||||||
|
@ -11,9 +11,6 @@ use Icinga\Module\Director\Web\Form\DirectorForm;
|
|||||||
|
|
||||||
class AddToBasketForm extends DirectorForm
|
class AddToBasketForm extends DirectorForm
|
||||||
{
|
{
|
||||||
/** @var Basket */
|
|
||||||
private $basket;
|
|
||||||
|
|
||||||
private $type = '(has not been set)';
|
private $type = '(has not been set)';
|
||||||
|
|
||||||
private $names = [];
|
private $names = [];
|
||||||
@ -30,7 +27,6 @@ class AddToBasketForm extends DirectorForm
|
|||||||
'b' => 'basket_name',
|
'b' => 'basket_name',
|
||||||
])->order('basket_name'));
|
])->order('basket_name'));
|
||||||
|
|
||||||
$names = [];
|
|
||||||
$basket = null;
|
$basket = null;
|
||||||
if ($this->hasBeenSent()) {
|
if ($this->hasBeenSent()) {
|
||||||
$basketName = $this->getSentValue('basket');
|
$basketName = $this->getSentValue('basket');
|
||||||
@ -38,25 +34,17 @@ class AddToBasketForm extends DirectorForm
|
|||||||
$basket = Basket::load($basketName, $this->getDb());
|
$basket = Basket::load($basketName, $this->getDb());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$count = 0;
|
|
||||||
$type = $this->type;
|
$names = [];
|
||||||
foreach ($this->names as $name) {
|
foreach ($this->names as $name) {
|
||||||
if (! empty($names)) {
|
if (! $basket || ! $basket->hasObject($this->type, $name)) {
|
||||||
$names[] = ', ';
|
|
||||||
}
|
|
||||||
if ($basket && $basket->hasObject($type, $name)) {
|
|
||||||
$names[] = Html::tag('span', [
|
|
||||||
'style' => 'text-decoration: line-through'
|
|
||||||
], $name);
|
|
||||||
} else {
|
|
||||||
$count++;
|
|
||||||
$names[] = $name;
|
$names[] = $name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$this->addHtmlHint((new HtmlDocument())->add([
|
$this->addHtmlHint(
|
||||||
'The following objects will be added: ',
|
(new HtmlDocument())
|
||||||
$names
|
->add(sprintf('The following objects will be added: %s', implode(", ", $names)))
|
||||||
]));
|
);
|
||||||
$this->addElement('select', 'basket', [
|
$this->addElement('select', 'basket', [
|
||||||
'label' => $this->translate('Basket'),
|
'label' => $this->translate('Basket'),
|
||||||
'multiOptions' => $this->optionalEnum($enum),
|
'multiOptions' => $this->optionalEnum($enum),
|
||||||
@ -64,10 +52,10 @@ class AddToBasketForm extends DirectorForm
|
|||||||
'class' => 'autosubmit',
|
'class' => 'autosubmit',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
if ($count > 0) {
|
if (! empty($names)) {
|
||||||
$this->setSubmitLabel(sprintf(
|
$this->setSubmitLabel(sprintf(
|
||||||
$this->translate('Add %s objects'),
|
$this->translate('Add %s objects'),
|
||||||
$count
|
count($names)
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
$this->setSubmitLabel($this->translate('Add'));
|
$this->setSubmitLabel($this->translate('Add'));
|
||||||
@ -112,7 +100,8 @@ class AddToBasketForm extends DirectorForm
|
|||||||
'Configuration objects have been added to the chosen basket "%s"'
|
'Configuration objects have been added to the chosen basket "%s"'
|
||||||
), $basketName));
|
), $basketName));
|
||||||
return parent::onSuccess();
|
return parent::onSuccess();
|
||||||
} else {
|
}
|
||||||
|
|
||||||
$this->addHtmlHint(Hint::error(Html::sprintf($this->translate(
|
$this->addHtmlHint(Hint::error(Html::sprintf($this->translate(
|
||||||
'Please check your Basket configuration, %s does not support'
|
'Please check your Basket configuration, %s does not support'
|
||||||
. ' single "%s" configuration objects'
|
. ' single "%s" configuration objects'
|
||||||
@ -125,5 +114,4 @@ class AddToBasketForm extends DirectorForm
|
|||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -264,15 +264,6 @@ class IcingaHostForm extends DirectorObjectForm
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function strikeGroupLinks(BaseHtmlElement $links)
|
|
||||||
{
|
|
||||||
/** @var BaseHtmlElement $link */
|
|
||||||
foreach ($links->getContent() as $link) {
|
|
||||||
$link->getAttributes()->add('style', 'text-decoration: strike');
|
|
||||||
}
|
|
||||||
$links->add('aha');
|
|
||||||
}
|
|
||||||
|
|
||||||
protected function getInheritedGroups()
|
protected function getInheritedGroups()
|
||||||
{
|
{
|
||||||
if ($this->hasObject()) {
|
if ($this->hasObject()) {
|
||||||
@ -297,9 +288,7 @@ class IcingaHostForm extends DirectorObjectForm
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return Html::tag('span', [
|
return Html::tag('span', ['class' => 'host-group-links'], $links);
|
||||||
'style' => 'line-height: 2.5em; padding-left: 0.5em'
|
|
||||||
], $links);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function getAppliedGroups()
|
protected function getAppliedGroups()
|
||||||
|
@ -17,10 +17,7 @@ class RemoveLinkForm extends DirectorForm
|
|||||||
{
|
{
|
||||||
// Required to detect the right instance
|
// Required to detect the right instance
|
||||||
$this->formName = 'RemoveSet' . sha1(json_encode($params));
|
$this->formName = 'RemoveSet' . sha1(json_encode($params));
|
||||||
parent::__construct([
|
parent::__construct(['data-base-target' => '_self']);
|
||||||
'style' => 'float: right',
|
|
||||||
'data-base-target' => '_self'
|
|
||||||
]);
|
|
||||||
$this->label = $label;
|
$this->label = $label;
|
||||||
$this->title = $title;
|
$this->title = $title;
|
||||||
foreach ($params as $name => $value) {
|
foreach ($params as $name => $value) {
|
||||||
@ -38,7 +35,7 @@ class RemoveLinkForm extends DirectorForm
|
|||||||
|
|
||||||
public function setup()
|
public function setup()
|
||||||
{
|
{
|
||||||
$this->setAttrib('class', 'inline');
|
$this->addAttribs(['class' => ['inline', 'remove-link-form']]);
|
||||||
$this->addHtml(Icon::create('cancel'));
|
$this->addHtml(Icon::create('cancel'));
|
||||||
$this->addSubmitButton($this->label, [
|
$this->addSubmitButton($this->label, [
|
||||||
'class' => 'link-button',
|
'class' => 'link-button',
|
||||||
|
@ -223,7 +223,7 @@ abstract class ActionController extends Controller implements ControlsAndContent
|
|||||||
// Hint -> $this->view->compact is the only way since v2.8.0
|
// Hint -> $this->view->compact is the only way since v2.8.0
|
||||||
if ($this->view->compact || $this->getOriginalUrl()->getParam('view') === 'compact') {
|
if ($this->view->compact || $this->getOriginalUrl()->getParam('view') === 'compact') {
|
||||||
if ($this->view->controls) {
|
if ($this->view->controls) {
|
||||||
$this->controls()->getAttributes()->add('style', 'display: none;');
|
$this->controls()->getAttributes()->add('class', 'compact');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -219,8 +219,7 @@ class IcingaServiceSetServiceTable extends ZfQueryBasedTable
|
|||||||
protected function createFakeRemoveLinkForReadonlyView()
|
protected function createFakeRemoveLinkForReadonlyView()
|
||||||
{
|
{
|
||||||
return Html::tag('span', [
|
return Html::tag('span', [
|
||||||
'class' => 'icon-paste',
|
'class' => ['icon-paste', 'seviceset-obj-link'],
|
||||||
'style' => 'float: right; font-weight: normal',
|
|
||||||
], $this->host->getObjectName());
|
], $this->host->getObjectName());
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -228,8 +227,7 @@ class IcingaServiceSetServiceTable extends ZfQueryBasedTable
|
|||||||
{
|
{
|
||||||
$hostname = $host->getObjectName();
|
$hostname = $host->getObjectName();
|
||||||
return Link::create($hostname, 'director/host/services', ['name' => $hostname], [
|
return Link::create($hostname, 'director/host/services', ['name' => $hostname], [
|
||||||
'class' => 'icon-paste',
|
'class' => ['icon-paste', 'seviceset-obj-link'],
|
||||||
'style' => 'float: right; font-weight: normal',
|
|
||||||
'data-base-target' => '_next',
|
'data-base-target' => '_next',
|
||||||
'title' => sprintf(
|
'title' => sprintf(
|
||||||
$this->translate('This set has been inherited from %s'),
|
$this->translate('This set has been inherited from %s'),
|
||||||
|
@ -1,113 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace Icinga\Module\Director\Web\Table;
|
|
||||||
|
|
||||||
use Icinga\Module\Director\PlainObjectRenderer;
|
|
||||||
use Icinga\Module\Director\Web\Form\QuickForm;
|
|
||||||
use Zend_Form_Element as ZfElement;
|
|
||||||
use Zend_Form_DisplayGroup as ZfDisplayGroup;
|
|
||||||
|
|
||||||
class ReadOnlyFormAvpTable
|
|
||||||
{
|
|
||||||
protected $form;
|
|
||||||
|
|
||||||
public function __construct(QuickForm $form)
|
|
||||||
{
|
|
||||||
$this->form = $form;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected function renderDisplayGroups(QuickForm $form)
|
|
||||||
{
|
|
||||||
$html = '';
|
|
||||||
|
|
||||||
foreach ($form->getDisplayGroups() as $group) {
|
|
||||||
$elements = $this->filterGroupElements($group);
|
|
||||||
|
|
||||||
if (empty($elements)) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
$html .= '<tr><th colspan="2" style="text-align: right">' . $group->getLegend() . '</th></tr>';
|
|
||||||
$html .= $this->renderElements($elements);
|
|
||||||
}
|
|
||||||
|
|
||||||
return $html;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param ZfDisplayGroup $group
|
|
||||||
* @return ZfElement[]
|
|
||||||
*/
|
|
||||||
protected function filterGroupElements(ZfDisplayGroup $group)
|
|
||||||
{
|
|
||||||
$blacklist = array('disabled', 'assign_filter');
|
|
||||||
$elements = array();
|
|
||||||
/** @var ZfElement $element */
|
|
||||||
foreach ($group->getElements() as $element) {
|
|
||||||
if ($element->getValue() === null) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($element->getType() === 'Zend_Form_Element_Hidden') {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (in_array($element->getName(), $blacklist)) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
$elements[] = $element;
|
|
||||||
}
|
|
||||||
|
|
||||||
return $elements;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected function renderElements($elements)
|
|
||||||
{
|
|
||||||
$html = '';
|
|
||||||
foreach ($elements as $element) {
|
|
||||||
$html .= $this->renderElement($element);
|
|
||||||
}
|
|
||||||
|
|
||||||
return $html;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param ZfElement $element
|
|
||||||
*
|
|
||||||
* @return string
|
|
||||||
*/
|
|
||||||
protected function renderElement(ZfElement $element)
|
|
||||||
{
|
|
||||||
$value = $element->getValue();
|
|
||||||
return '<tr><th>'
|
|
||||||
. $this->escape($element->getLabel())
|
|
||||||
. '</th><td>'
|
|
||||||
. $this->renderValue($value)
|
|
||||||
. '</td></tr>';
|
|
||||||
}
|
|
||||||
|
|
||||||
protected function renderValue($value)
|
|
||||||
{
|
|
||||||
if (is_string($value)) {
|
|
||||||
return $this->escape($value);
|
|
||||||
} elseif (is_array($value)) {
|
|
||||||
return $this->escape(implode(', ', $value));
|
|
||||||
}
|
|
||||||
return $this->escape(PlainObjectRenderer::render($value));
|
|
||||||
}
|
|
||||||
|
|
||||||
protected function escape($string)
|
|
||||||
{
|
|
||||||
return htmlspecialchars($string);
|
|
||||||
}
|
|
||||||
|
|
||||||
public function render()
|
|
||||||
{
|
|
||||||
$this->form->initializeForObject();
|
|
||||||
return '<table class="name-value-table">' . "\n"
|
|
||||||
. $this->renderDisplayGroups($this->form)
|
|
||||||
. '</table>';
|
|
||||||
}
|
|
||||||
}
|
|
@ -60,7 +60,7 @@ class TemplatesTable extends ZfQueryBasedTable implements FilterableByUsage
|
|||||||
$name,
|
$name,
|
||||||
Html::tag(
|
Html::tag(
|
||||||
'span',
|
'span',
|
||||||
['style' => 'font-style: italic'],
|
['class' => 'font-italic'],
|
||||||
$this->translate(' - not in use -')
|
$this->translate(' - not in use -')
|
||||||
)
|
)
|
||||||
];
|
];
|
||||||
|
@ -83,8 +83,7 @@ class ActivityLogInfo extends HtmlDocument
|
|||||||
/** @var Url $url */
|
/** @var Url $url */
|
||||||
$url = $url->without('checksum')->without('show');
|
$url = $url->without('checksum')->without('show');
|
||||||
$div = Html::tag('div', [
|
$div = Html::tag('div', [
|
||||||
'class' => 'pagination-control',
|
'class' => ['pagination-control', 'activity-log-control'],
|
||||||
'style' => 'float: right; width: 5em'
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$ul = Html::tag('ul', ['class' => 'nav tab-nav']);
|
$ul = Html::tag('ul', ['class' => 'nav tab-nav']);
|
||||||
|
@ -73,7 +73,8 @@ class DeploymentInfo extends HtmlDocument
|
|||||||
protected function createInfoTable()
|
protected function createInfoTable()
|
||||||
{
|
{
|
||||||
$dep = $this->deployment;
|
$dep = $this->deployment;
|
||||||
$table = new NameValueTable();
|
$table = (new NameValueTable())
|
||||||
|
->addAttributes(['class' => 'deployment-details']);
|
||||||
$table->addNameValuePairs([
|
$table->addNameValuePairs([
|
||||||
$this->translate('Deployment time') => $dep->start_time,
|
$this->translate('Deployment time') => $dep->start_time,
|
||||||
$this->translate('Sent to') => $dep->peer_identity,
|
$this->translate('Sent to') => $dep->peer_identity,
|
||||||
@ -136,16 +137,21 @@ class DeploymentInfo extends HtmlDocument
|
|||||||
} else {
|
} else {
|
||||||
return [$this->translate('Unknown, failed to collect related information'), new Icon('help')];
|
return [$this->translate('Unknown, failed to collect related information'), new Icon('help')];
|
||||||
}
|
}
|
||||||
} elseif ($dep->startup_succeeded === 'y') {
|
|
||||||
return $this->colored('green', [$this->translate('Succeeded'), new Icon('ok')]);
|
|
||||||
} else {
|
} else {
|
||||||
return $this->colored('red', [$this->translate('Failed'), new Icon('cancel')]);
|
$div = Html::tag('div')->setSeparator(' ');
|
||||||
}
|
|
||||||
|
if ($dep->startup_succeeded === 'y') {
|
||||||
|
$div
|
||||||
|
->addAttributes(['class' => 'succeeded'])
|
||||||
|
->add([$this->translate('Succeeded'), new Icon('ok')]);
|
||||||
|
} else {
|
||||||
|
$div
|
||||||
|
->addAttributes(['class' => 'failed'])
|
||||||
|
->add([$this->translate('Failed'), new Icon('cancel')]);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function colored($color, array $content)
|
return $div;
|
||||||
{
|
}
|
||||||
return Html::tag('div', ['style' => "color: $color;"], $content)->setSeparator(' ');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function render()
|
public function render()
|
||||||
|
@ -49,6 +49,15 @@ div.action-bar > a {
|
|||||||
margin-right: 1em;
|
margin-right: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.controls.compact {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.controls > .pagination-control.activity-log-control {
|
||||||
|
float: right;
|
||||||
|
width: 5em;
|
||||||
|
}
|
||||||
|
|
||||||
.controls > .pagination-control li > a {
|
.controls > .pagination-control li > a {
|
||||||
padding: 0.5em 0 0.5em 0;
|
padding: 0.5em 0 0.5em 0;
|
||||||
}
|
}
|
||||||
@ -337,6 +346,10 @@ table.avp th {
|
|||||||
left: -100%;
|
left: -100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
form.remove-link-form {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
|
||||||
form.director-form input[type=file] {
|
form.director-form input[type=file] {
|
||||||
padding-right: 1em;
|
padding-right: 1em;
|
||||||
}
|
}
|
||||||
@ -462,6 +475,11 @@ form.director-form dl {
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
form.director-form .host-group-links {
|
||||||
|
line-height: 2.5em;
|
||||||
|
padding-left: 0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
.strike-links a, table.common-table .strike-links a {
|
.strike-links a, table.common-table .strike-links a {
|
||||||
text-decoration: line-through;
|
text-decoration: line-through;
|
||||||
&:hover {
|
&:hover {
|
||||||
@ -502,6 +520,12 @@ form.director-form.editor {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ul.unordred-list {
|
||||||
|
list-style-type: none;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
ul.extensible-set {
|
ul.extensible-set {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
@ -917,6 +941,10 @@ form.director-form dd.active li.active input.related-action[type='submit'] {
|
|||||||
}
|
}
|
||||||
|
|
||||||
form.director-form {
|
form.director-form {
|
||||||
|
select.config-diff {
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
|
||||||
p.description {
|
p.description {
|
||||||
color: @gray;
|
color: @gray;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
@ -1223,6 +1251,17 @@ div.content.compact table.icinga-objects thead {
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
table.deployment-details {
|
||||||
|
.succeeded {
|
||||||
|
color: @state-ok;
|
||||||
|
}
|
||||||
|
|
||||||
|
.failed {
|
||||||
|
color: @color-critical;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
table.deployment-log {
|
table.deployment-log {
|
||||||
|
|
||||||
tr td:nth-child(2), tr th:nth-child(2) {
|
tr td:nth-child(2), tr th:nth-child(2) {
|
||||||
@ -1833,3 +1872,36 @@ table.table-basket-changes {
|
|||||||
min-width: 10em;
|
min-width: 10em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.font-italic {
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table-basket-changes {
|
||||||
|
.basket-new {
|
||||||
|
color: green;
|
||||||
|
font-weight: bold
|
||||||
|
}
|
||||||
|
|
||||||
|
.basket-modified {
|
||||||
|
color: orange;
|
||||||
|
font-weight: bold
|
||||||
|
}
|
||||||
|
|
||||||
|
.basket-unchanged {
|
||||||
|
color: green;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.seviceset-obj-link {
|
||||||
|
float: right;
|
||||||
|
font-weight: normal
|
||||||
|
}
|
||||||
|
|
||||||
|
.dictionary-header {
|
||||||
|
margin-top: 2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-align-left {
|
||||||
|
text-align: left
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user