diff --git a/flextype/core/Forms.php b/flextype/core/Forms.php
index 26c47129..a3e342e2 100644
--- a/flextype/core/Forms.php
+++ b/flextype/core/Forms.php
@@ -40,18 +40,18 @@ class Forms
* @access private
*/
private $sizes = [
- '1/12' => 'col-1',
- '2/12' => 'col-2',
- '3/12' => 'col-3',
- '4/12' => 'col-4',
- '5/12' => 'col-5',
- '6/12' => 'col-6',
- '7/12' => 'col-7',
- '8/12' => 'col-8',
- '9/12' => 'col-9',
- '10/12' => 'col-19',
- '12/12' => 'col-11',
- '12' => 'col-12',
+ '1/12' => 'w-1/12',
+ '2/12' => 'w-2/12',
+ '3/12' => 'w-3/12',
+ '4/12' => 'w-4/12',
+ '5/12' => 'w-5/12',
+ '6/12' => 'w-6/12',
+ '7/12' => 'w-7/12',
+ '8/12' => 'w-8/12',
+ '9/12' => 'w-9/12',
+ '10/12' => 'w-10/12',
+ '12/12' => 'w-full',
+ '12' => 'w-full',
];
/**
@@ -91,28 +91,13 @@ class Forms
// Go through all sections
if (count($fieldset['sections']) > 0) {
- $form .= '
';
+ $form .= '
';
// Go through all sections and create nav tabs
foreach ($fieldset['sections'] as $key => $section) {
- $form .= '
';
- $form .= '
';
+ $form .= '
';
+ $form .= '
';
foreach ($section['fields'] as $element => $properties) {
// Set empty form field element
@@ -172,6 +157,17 @@ class Forms
$form .= '
';
$form .= '
';
}
+
+
+ $form .= '
';
+
$form .= '
';
}
@@ -276,7 +272,7 @@ class Forms
$attributes = isset($properties['attributes']) ? $properties['attributes'] : [];
$attributes['id'] = isset($attributes['id']) ? $attributes['id'] : $field_id;
- $attributes['class'] = isset($attributes['class']) ? $attributes['class'] : $this->field_class;
+ $attributes['class'] = isset($attributes['class']) ? $attributes['class'] : $this->field_class . ' js-select';
$field = '