diff --git a/classes/ControlLibrary.php b/classes/ControlLibrary.php index 0a0001f..4aef42c 100644 --- a/classes/ControlLibrary.php +++ b/classes/ControlLibrary.php @@ -141,7 +141,8 @@ public function getStandardProperties($excludeProperties = [], $addProperties = 'left' => Lang::get('winter.builder::lang.form.span_left'), 'right' => Lang::get('winter.builder::lang.form.span_right'), 'full' => Lang::get('winter.builder::lang.form.span_full'), - 'auto' => Lang::get('winter.builder::lang.form.span_auto') + 'auto' => Lang::get('winter.builder::lang.form.span_auto'), + 'storm' => Lang::get('winter.builder::lang.form.span_storm'), ] ], 'placeholder' => [ diff --git a/formwidgets/formbuilder/partials/_controllist.htm b/formwidgets/formbuilder/partials/_controllist.htm index 2c0c651..d8dd248 100644 --- a/formwidgets/formbuilder/partials/_controllist.htm +++ b/formwidgets/formbuilder/partials/_controllist.htm @@ -2,15 +2,20 @@ $controlConfig): $controlRenderingInfo = $this->getControlRenderingInfo($controlName, $controlConfig, $prevConfig); $prevSpan = $controlConfig['span'] = $controlRenderingInfo['span']; $prevConfig = $controlConfig; + $cssClass = ( + ($controlRenderingInfo['span'] == 'storm' && isset($controlRenderingInfo['properties']['cssClass'])) ? + $controlRenderingInfo['properties']['cssClass'] : 'col-sx-12 col-md-6' + ); ?>