mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 15:54:03 +02:00
parent
a69179c3f2
commit
b333439b2e
@ -18,7 +18,7 @@ class CheckNowCommandForm extends ObjectsCommandForm
|
|||||||
*/
|
*/
|
||||||
public function init()
|
public function init()
|
||||||
{
|
{
|
||||||
$this->setAttrib('class', 'link');
|
$this->setAttrib('class', 'inline');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -32,15 +32,17 @@ class CheckNowCommandForm extends ObjectsCommandForm
|
|||||||
'button',
|
'button',
|
||||||
'btn_submit',
|
'btn_submit',
|
||||||
array(
|
array(
|
||||||
'ignore' => true,
|
'class' => 'link-button spinner',
|
||||||
'type' => 'submit',
|
'decorators' => array(
|
||||||
'value' => $this->translate('Check now'),
|
'ViewHelper',
|
||||||
'label' => '<i aria-hidden="true" class="icon-reschedule"></i>'
|
array('HtmlTag', array('tag' => 'div', 'class' => 'control-group form-controls'))
|
||||||
. $this->translate('Check now'),
|
),
|
||||||
'decorators' => array('ViewHelper'),
|
|
||||||
'escape' => false,
|
'escape' => false,
|
||||||
'class' => 'action-link link',
|
'ignore' => true,
|
||||||
'title' => $this->translate('Schedule the next active check to run immediately')
|
'label' => $this->getView()->icon('reschedule') . $this->translate('Check now'),
|
||||||
|
'type' => 'submit',
|
||||||
|
'title' => $this->translate('Schedule the next active check to run immediately'),
|
||||||
|
'value' => $this->translate('Check now')
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
));
|
));
|
||||||
|
@ -17,7 +17,7 @@ class DeleteCommentCommandForm extends CommandForm
|
|||||||
*/
|
*/
|
||||||
public function init()
|
public function init()
|
||||||
{
|
{
|
||||||
$this->setAttrib('class', 'link');
|
$this->setAttrib('class', 'inline');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -65,13 +65,16 @@ class DeleteCommentCommandForm extends CommandForm
|
|||||||
'button',
|
'button',
|
||||||
'btn_submit',
|
'btn_submit',
|
||||||
array(
|
array(
|
||||||
'ignore' => true,
|
'class' => 'link-button spinner',
|
||||||
|
'decorators' => array(
|
||||||
|
'ViewHelper',
|
||||||
|
array('HtmlTag', array('tag' => 'div', 'class' => 'control-group form-controls'))
|
||||||
|
),
|
||||||
'escape' => false,
|
'escape' => false,
|
||||||
'type' => 'submit',
|
'ignore' => true,
|
||||||
'class' => 'action-link link',
|
|
||||||
'label' => $this->getView()->icon('cancel'),
|
'label' => $this->getView()->icon('cancel'),
|
||||||
'title' => $this->translate('Delete this comment'),
|
'title' => $this->translate('Delete this comment'),
|
||||||
'decorators' => array('ViewHelper')
|
'type' => 'submit'
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
return $this;
|
return $this;
|
||||||
|
@ -20,6 +20,30 @@ class DeleteDowntimeCommandForm extends CommandForm
|
|||||||
$this->setAttrib('class', 'inline');
|
$this->setAttrib('class', 'inline');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*/
|
||||||
|
public function addSubmitButton()
|
||||||
|
{
|
||||||
|
$this->addElement(
|
||||||
|
'button',
|
||||||
|
'btn_submit',
|
||||||
|
array(
|
||||||
|
'class' => 'link-button spinner',
|
||||||
|
'decorators' => array(
|
||||||
|
'ViewHelper',
|
||||||
|
array('HtmlTag', array('tag' => 'div', 'class' => 'control-group form-controls'))
|
||||||
|
),
|
||||||
|
'escape' => false,
|
||||||
|
'ignore' => true,
|
||||||
|
'label' => $this->getView()->icon('cancel'),
|
||||||
|
'title' => $this->translate('Delete this downtime'),
|
||||||
|
'type' => 'submit'
|
||||||
|
)
|
||||||
|
);
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
@ -31,17 +55,17 @@ class DeleteDowntimeCommandForm extends CommandForm
|
|||||||
'hidden',
|
'hidden',
|
||||||
'downtime_id',
|
'downtime_id',
|
||||||
array(
|
array(
|
||||||
|
'decorators' => array('ViewHelper'),
|
||||||
'required' => true,
|
'required' => true,
|
||||||
'validators' => array('NotEmpty'),
|
'validators' => array('NotEmpty')
|
||||||
'decorators' => array('ViewHelper')
|
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'hidden',
|
'hidden',
|
||||||
'downtime_is_service',
|
'downtime_is_service',
|
||||||
array(
|
array(
|
||||||
'filters' => array('Boolean'),
|
'decorators' => array('ViewHelper'),
|
||||||
'decorators' => array('ViewHelper')
|
'filters' => array('Boolean')
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
@ -56,27 +80,6 @@ class DeleteDowntimeCommandForm extends CommandForm
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function addSubmitButton()
|
|
||||||
{
|
|
||||||
$this->addElement(
|
|
||||||
'button',
|
|
||||||
'btn_submit',
|
|
||||||
array(
|
|
||||||
'ignore' => true,
|
|
||||||
'escape' => false,
|
|
||||||
'type' => 'submit',
|
|
||||||
'class' => 'action-link link',
|
|
||||||
'label' => $this->getView()->icon('trash'),
|
|
||||||
'title' => $this->translate('Delete this downtime'),
|
|
||||||
'decorators' => array('ViewHelper')
|
|
||||||
)
|
|
||||||
);
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
@ -17,18 +17,35 @@ class RemoveAcknowledgementCommandForm extends ObjectsCommandForm
|
|||||||
*/
|
*/
|
||||||
public function init()
|
public function init()
|
||||||
{
|
{
|
||||||
$this->setAttrib('class', 'inline link-like');
|
$this->setAttrib('class', 'inline');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* (non-PHPDoc)
|
* {@inheritdoc}
|
||||||
* @see \Icinga\Web\Form::getSubmitLabel() For the method documentation.
|
|
||||||
*/
|
*/
|
||||||
public function getSubmitLabel()
|
public function addSubmitButton()
|
||||||
{
|
{
|
||||||
return mtp(
|
$this->addElement(
|
||||||
'monitoring', 'Remove problem acknowledgement', 'Remove problem acknowledgements', count($this->objects)
|
'button',
|
||||||
|
'btn_submit',
|
||||||
|
array(
|
||||||
|
'class' => 'link-button spinner',
|
||||||
|
'decorators' => array(
|
||||||
|
'ViewHelper',
|
||||||
|
array('HtmlTag', array('tag' => 'div', 'class' => 'control-group form-controls'))
|
||||||
|
),
|
||||||
|
'escape' => false,
|
||||||
|
'ignore' => true,
|
||||||
|
'label' => $this->getView()->icon('cancel'),
|
||||||
|
'title' => $this->translatePlural(
|
||||||
|
'Remove problem acknowledgement',
|
||||||
|
'Remove problem acknowledgements',
|
||||||
|
count($this->objects)
|
||||||
|
),
|
||||||
|
'type' => 'submit'
|
||||||
|
)
|
||||||
);
|
);
|
||||||
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user