express_admin 1.7.19 → 1.7.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/components/express_admin/smart_table.rb +2 -1
- data/lib/express_admin/version.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d829ed18a2776cfc5bbaef6de9a5c00c918816c
|
4
|
+
data.tar.gz: ea855bc12c84692ade49909823bd33ffea6efbc9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2cea0caee79bd1228b6416943f9cf7abecde193a8b88e5d817ce3d25f14152dc2174c328ea978731ee95385588f0c00a7bcddfbdd0d1a12f6e69a86c300946f
|
7
|
+
data.tar.gz: ef6795753cf3ce7f2a17d04abfd1991c513fb15f043866c18d3decdfd703608f0853c76e3b57afa08b7f9887fe0cf0272594180612ae4420d0060afeab1b005d
|
@@ -18,6 +18,7 @@ module ExpressAdmin
|
|
18
18
|
|
19
19
|
has_option :scrollable, 'Set to true if the table should be scrollable', type: :boolean, default: false
|
20
20
|
has_option :show_actions, 'Set to true if table has actions for each row'
|
21
|
+
has_option :search_action, 'The search form action containing the resource path or url.'
|
21
22
|
has_option :row_class, 'Add a class to each table row'
|
22
23
|
|
23
24
|
column_defs = {}
|
@@ -47,7 +48,7 @@ module ExpressAdmin
|
|
47
48
|
|
48
49
|
contains -> {
|
49
50
|
pagination if config[:pagination] == 'top'
|
50
|
-
express_form(config[:id], method: :get) {
|
51
|
+
express_form(config[:id], method: :get, action: config[:search_action]) {
|
51
52
|
span(class: 'inline-label') {
|
52
53
|
input type: 'text', name: 'search_string', placeholder: 'Type here...', value: helpers.params[:search_string]
|
53
54
|
submit class: 'button search', value: 'Search'
|
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: express_admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Talcott Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: express_templates
|