From 30d952ae0a12f70f5a9fcf47a76b1bc8732103e2 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Fri, 4 Aug 2023 14:08:17 +0200 Subject: [PATCH] Drop obsolete form element class `StateOverrides` --- .../Web/Form/Element/StateOverrides.php | 55 ------------------- public/css/module.less | 23 -------- 2 files changed, 78 deletions(-) delete mode 100644 library/Businessprocess/Web/Form/Element/StateOverrides.php diff --git a/library/Businessprocess/Web/Form/Element/StateOverrides.php b/library/Businessprocess/Web/Form/Element/StateOverrides.php deleted file mode 100644 index c2216c0..0000000 --- a/library/Businessprocess/Web/Form/Element/StateOverrides.php +++ /dev/null @@ -1,55 +0,0 @@ -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); - } -} diff --git a/public/css/module.less b/public/css/module.less index 500a137..f048863 100644 --- a/public/css/module.less +++ b/public/css/module.less @@ -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; }