From 148ccf3d615d3f66170428b55cf999675ad72a15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vo=C5=99=C3=AD=C5=A1ek?= Date: Mon, 5 Jun 2023 08:55:57 +0200 Subject: [PATCH] no separator space in template class values --- src/Form/Control/Dropdown.php | 4 ++-- src/Form/Control/Lookup.php | 4 ++-- src/Form/Control/Radio.php | 4 ++-- template/form/control/dropdown.html | 2 +- template/form/control/dropdown.pug | 2 +- template/form/control/lookup.html | 2 +- template/form/control/lookup.pug | 2 +- template/form/control/radio.html | 2 +- template/form/control/radio.pug | 2 +- 9 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/Form/Control/Dropdown.php b/src/Form/Control/Dropdown.php index d28f13e6bf..ac3d41b8f1 100644 --- a/src/Form/Control/Dropdown.php +++ b/src/Form/Control/Dropdown.php @@ -232,10 +232,10 @@ protected function renderView(): void } if ($this->disabled) { - $this->template->set('disabledClass', ' disabled'); + $this->template->set('disabledClass', 'disabled'); $this->template->dangerouslySetHtml('disabled', 'disabled="disabled"'); } elseif ($this->readOnly) { - $this->template->set('disabledClass', ' read-only'); + $this->template->set('disabledClass', 'read-only'); $this->template->dangerouslySetHtml('disabled', 'readonly="readonly"'); $this->setDropdownOption('allowTab', false); diff --git a/src/Form/Control/Lookup.php b/src/Form/Control/Lookup.php index 646716be1c..bddf76923f 100644 --- a/src/Form/Control/Lookup.php +++ b/src/Form/Control/Lookup.php @@ -363,12 +363,12 @@ protected function renderView(): void } if ($this->disabled) { - $this->template->set('disabledClass', ' disabled'); + $this->template->set('disabledClass', 'disabled'); $this->template->dangerouslySetHtml('disabled', 'disabled="disabled"'); $this->settings['allowTab'] = false; } elseif ($this->readOnly) { - $this->template->set('disabledClass', ' read-only'); + $this->template->set('disabledClass', 'read-only'); $this->template->dangerouslySetHtml('disabled', 'readonly="readonly"'); $this->settings['allowTab'] = false; diff --git a/src/Form/Control/Radio.php b/src/Form/Control/Radio.php index 869c8c170e..121f71bdf3 100644 --- a/src/Form/Control/Radio.php +++ b/src/Form/Control/Radio.php @@ -40,10 +40,10 @@ protected function renderView(): void $this->lister->onHook(Lister::HOOK_BEFORE_ROW, function (Lister $lister) use ($value) { if ($this->disabled) { - $lister->tRow->dangerouslySetHtml('disabledClass', ' disabled'); + $lister->tRow->dangerouslySetHtml('disabledClass', 'disabled'); $lister->tRow->dangerouslySetHtml('disabled', 'disabled="disabled"'); } elseif ($this->readOnly) { - $lister->tRow->dangerouslySetHtml('disabledClass', ' read-only'); + $lister->tRow->dangerouslySetHtml('disabledClass', 'read-only'); $lister->tRow->dangerouslySetHtml('disabled', 'readonly="readonly"'); } diff --git a/template/form/control/dropdown.html b/template/form/control/dropdown.html index ad78d8e834..6260118996 100644 --- a/template/form/control/dropdown.html +++ b/template/form/control/dropdown.html @@ -1,7 +1,7 @@
{$BeforeInput}{$AfterBeforeInput} -