diff --git a/app/controllers/universal_tables_controller.rb b/app/controllers/universal_tables_controller.rb index a773d47..11e44ff 100644 --- a/app/controllers/universal_tables_controller.rb +++ b/app/controllers/universal_tables_controller.rb @@ -84,6 +84,8 @@ class UniversalTablesController < ApplicationController title_class = title_class + "no-sort" if sort == "sort" title_class = title_class + " no-search" if search == "hide" + col_class = 'col-md-4 col-xs-12' + col = { "title" => tc.title, "type" => tc.type, @@ -93,7 +95,8 @@ class UniversalTablesController < ApplicationController "sort" => sort, "sort-class" => sort_class, "sort-url" => sort_url, - "title-class" => title_class + "title-class" => title_class, + "col-class" => col_class } if tc.is_searchable searchable_columns << col diff --git a/modules/universal_table/index3.html.erb b/modules/universal_table/index3.html.erb new file mode 100644 index 0000000..609bf0e --- /dev/null +++ b/modules/universal_table/index3.html.erb @@ -0,0 +1,118 @@ + +
+