diff --git a/application/forms.class.inc.php b/application/forms.class.inc.php index 20617dbd5..3e4ada259 100644 --- a/application/forms.class.inc.php +++ b/application/forms.class.inc.php @@ -234,9 +234,9 @@ class DesignerForm .$this->EndRow(); if (is_null($aRow['label'])) { - $sReturn .= $this->StartRow($sFieldId).''.$aRow['value']; + $sReturn .= $this->StartRow($sFieldId).''.$aRow['value']; } else { - $sReturn .= $this->StartRow($sFieldId).''.$aRow['label'].''.$aRow['value']; + $sReturn .= $this->StartRow($sFieldId).''.$aRow['label'].''.$aRow['value']; } if (!($oField instanceof DesignerFormSelectorField) && !($oField instanceof DesignerMultipleSubFormField)) { $sReturn .= $sValidationFields; @@ -710,7 +710,9 @@ class DesignerFormField $this->bMandatory = false; $this->bReadOnly = false; $this->bAutoApply = false; - $this->aCSSClasses = array('ibo-input'); + if (ContextTag::Check(ContextTag::TAG_CONSOLE)) { + $this->aCSSClasses = array('ibo-input'); + } $this->bDisplayed = true; $this->aWidgetExtraParams = array(); } @@ -1065,7 +1067,10 @@ class DesignerLongTextField extends DesignerTextField public function __construct($sCode, $sLabel = '', $defaultValue = '') { parent::__construct($sCode, $sLabel, $defaultValue); - $this->aCSSClasses[] = 'ibo-input-text'; + + if (ContextTag::Check(ContextTag::TAG_CONSOLE)) { + $this->aCSSClasses[] = 'ibo-input-text'; + } } /** @@ -1199,7 +1204,10 @@ class DesignerComboField extends DesignerFormField $this->bMultipleSelection = false; $this->bOtherChoices = false; $this->sNullLabel = Dict::S('UI:SelectOne'); - $this->aCSSClasses[] = 'ibo-input-select'; + + if (ContextTag::Check(ContextTag::TAG_CONSOLE)) { + $this->aCSSClasses[] = 'ibo-input-select'; + } $this->bAutoApply = true; $this->bSorted = true; // Sorted by default @@ -1356,7 +1364,9 @@ class DesignerBooleanField extends DesignerFormField { parent::__construct($sCode, $sLabel, $defaultValue); $this->bAutoApply = true; - $this->aCSSClasses[] = 'ibo-input-checkbox'; + if (ContextTag::Check(ContextTag::TAG_CONSOLE)) { + $this->aCSSClasses[] = 'ibo-input-checkbox'; + } } /** @@ -1503,7 +1513,8 @@ class DesignerIconSelectionField extends DesignerFormField $sPostUploadTo = ($this->sUploadUrl == null) ? 'null' : "'{$this->sUploadUrl}'"; if (!$this->IsReadOnly()) { $sDefaultValue = ($this->defaultValue !== '') ? $this->defaultValue : $this->aAllowedValues[$idx]['value']; - $sValue = ""; + $sCSSClasses = ContextTag::Check(ContextTag::TAG_CONSOLE) ? 'class="ibo-input-select-wrapper"' : ''; + $sValue = ""; $oP->add_ready_script( <<defaultRealValue = $defaultValue; $this->aSubForms = array(); $this->bSorted = true; - $this->aCSSClasses[] = 'ibo-input-select'; + if (ContextTag::Check(ContextTag::TAG_CONSOLE)) { + $this->aCSSClasses[] = 'ibo-input-select'; + } } /** diff --git a/css/backoffice/components/input/_input-select.scss b/css/backoffice/components/input/_input-select.scss index 0553912e6..c09991b13 100644 --- a/css/backoffice/components/input/_input-select.scss +++ b/css/backoffice/components/input/_input-select.scss @@ -47,7 +47,7 @@ $ibo-input-select--autocomplete-item-image--background-color: $ibo-color-blue-10 $ibo-input-select--autocomplete-item-image--border: 1px solid $ibo-color-grey-600 !default; .ibo-input-select { - display: inline-block; + display: inline-flex; min-width: $ibo-input-select--value--min-midth; &:not(.ibo-input-select-autocomplete):not(.ibo-input-selectize) {