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;
|
||||
|
||||
/**
|
||||
* Whether the form's inline
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
protected $inline = false;
|
||||
|
||||
/**
|
||||
* Set the monitoring backend
|
||||
*
|
||||
|
@ -51,27 +44,6 @@ abstract class CommandForm extends Form
|
|||
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
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue