diff --git a/flextype/core/Forms.php b/flextype/core/Forms.php index 5972e2db..c1cb557c 100644 --- a/flextype/core/Forms.php +++ b/flextype/core/Forms.php @@ -51,6 +51,14 @@ class Forms '12' => 'col-12' ]; + /** + * Field class + * + * @var string + * @access private + */ + private $field_class = 'form-control'; + /** * Constructor * @@ -101,7 +109,7 @@ class Forms $property['attributes'] = Arr::keyExists($property, 'attributes') ? $property['attributes'] : []; // Create attribute class - $property['attributes']['class'] = Arr::keyExists($property, 'attributes.class') ? 'form-control ' . $property['attributes']['class'] : 'form-control'; + $property['attributes']['class'] = Arr::keyExists($property, 'attributes.class') ? $this->field_class . ' ' . $property['attributes']['class'] : $this->field_class; // Create attribute size $property['size'] = Arr::keyExists($property, 'size') ? $this->sizes[$property['size']] : $this->sizes['12'];