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 @@ + +
+ +
+
+
查詢
+ Reset +
+
+ + + + + + + + + + + + +
+

{{table-name}}

+
+ +
{{title}}
+ +
{{text}}
+ +
{{total_entries}}
+
{{export_button}}
+ {{pagination_goes_here}} diff --git a/modules/universal_table/info.json b/modules/universal_table/info.json index 6e23365..5194592 100644 --- a/modules/universal_table/info.json +++ b/modules/universal_table/info.json @@ -14,6 +14,14 @@ "zh_tw" : "2. 含序號表格列表", "en" : "2. Index Table with serial number" }, + "thumbnail" : "thumb.png" + }, + { + "filename" : "index3", + "name" : { + "zh_tw" : "3. 含序號表格列表 + 多欄位搜尋", + "en" : "3. Index Table with serial number + Multiple Field Search" + }, "thumbnail" : "thumb.png", "default": true }