mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-02-03 16:59:27 -05:00
Drop obsolete form element class StateOverrides
This commit is contained in:
parent
0ea04f898f
commit
30d952ae0a
2 changed files with 0 additions and 78 deletions
|
|
@ -1,55 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace Icinga\Module\Businessprocess\Web\Form\Element;
|
||||
|
||||
class StateOverrides extends FormElement
|
||||
{
|
||||
public $helper = 'formStateOverrides';
|
||||
|
||||
/** @var array The overridable states */
|
||||
protected $states;
|
||||
|
||||
/**
|
||||
* Set the overridable states
|
||||
*
|
||||
* @param array $states
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setStates(array $states)
|
||||
{
|
||||
$this->states = $states;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the overridable states
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getStates()
|
||||
{
|
||||
return $this->states;
|
||||
}
|
||||
|
||||
public function init()
|
||||
{
|
||||
$this->setIsArray(true);
|
||||
}
|
||||
|
||||
public function setValue($value)
|
||||
{
|
||||
$cleanedValue = [];
|
||||
|
||||
if (! empty($value)) {
|
||||
foreach ($value as $from => $to) {
|
||||
if ((int) $from !== (int) $to) {
|
||||
$cleanedValue[$from] = $to;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return parent::setValue($cleanedValue);
|
||||
}
|
||||
}
|
||||
|
|
@ -869,29 +869,6 @@ form.bp-form {
|
|||
}
|
||||
}
|
||||
|
||||
#stateOverrides-element {
|
||||
display: inline-table;
|
||||
table-layout: fixed;
|
||||
border-spacing: .5em;
|
||||
padding: 0;
|
||||
|
||||
label {
|
||||
display: table-row;
|
||||
|
||||
span, select {
|
||||
display: table-cell;
|
||||
}
|
||||
|
||||
span {
|
||||
width: 10em;
|
||||
}
|
||||
|
||||
select {
|
||||
width: 26em;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fieldset {
|
||||
min-width: 36em;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue