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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 189fb047da152baed87da60e04d5fb2ace0dff00
4
- data.tar.gz: 423f34d2c2a9c624db1bbec3dabe5121e8ae8009
3
+ metadata.gz: 9d829ed18a2776cfc5bbaef6de9a5c00c918816c
4
+ data.tar.gz: ea855bc12c84692ade49909823bd33ffea6efbc9
5
5
  SHA512:
6
- metadata.gz: d3705406ceb2c4c08af357059cba69e0c9ad10b975a7a240144309998cff1a6e0858071a27b647f8a1ec2c81401da3f614672ec77ff1892ce35dda0f56c406dd
7
- data.tar.gz: 4e793825be7263eb20c413becbfb6cf4f0abb1b3e4fde722008622080a847fa0782abac6feafb81507501309b3e517d72b46ce5dad4f287a6ce98a50ecb7d7bf
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'
@@ -1,3 +1,3 @@
1
1
  module ExpressAdmin
2
- VERSION = "1.7.19"
2
+ VERSION = "1.7.20"
3
3
  end
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.19
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-04 00:00:00.000000000 Z
11
+ date: 2015-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: express_templates