mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 16:54:04 +02:00
monitroing/commands: Remove method `CommandForm::inline()'
Inline forms will set themselves as inline. refs #6593
This commit is contained in:
parent
3845301dfb
commit
746e75e5ed
@ -21,13 +21,6 @@ abstract class CommandForm extends Form
|
|||||||
*/
|
*/
|
||||||
protected $backend;
|
protected $backend;
|
||||||
|
|
||||||
/**
|
|
||||||
* Whether the form's inline
|
|
||||||
*
|
|
||||||
* @var bool
|
|
||||||
*/
|
|
||||||
protected $inline = false;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the monitoring backend
|
* Set the monitoring backend
|
||||||
*
|
*
|
||||||
@ -51,27 +44,6 @@ abstract class CommandForm extends Form
|
|||||||
return $this->backend;
|
return $this->backend;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Set the form as inline
|
|
||||||
*
|
|
||||||
* @return $this
|
|
||||||
*/
|
|
||||||
public function inline()
|
|
||||||
{
|
|
||||||
$this->inline = true;
|
|
||||||
$this->submitLabel = null; // Inline forms must not have a submit button
|
|
||||||
$class = $this->getAttrib('class');
|
|
||||||
if (is_array($class)) {
|
|
||||||
$class[] = 'inline';
|
|
||||||
} elseif ($class === null) {
|
|
||||||
$class = 'inline';
|
|
||||||
} else {
|
|
||||||
$class .= 'inline';
|
|
||||||
}
|
|
||||||
$this->setAttrib('class', $class);
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the transport used to send commands
|
* Get the transport used to send commands
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user