ecm_tags 0.0.2 → 0.0.3

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: 902feda1f571a2a855d154b0880a4edf327bba90
4
- data.tar.gz: 983206c028942e23e81e8c64d2bf3138029ffd28
3
+ metadata.gz: a3522f7bfcb6693a09f5ed45558f5545941276bd
4
+ data.tar.gz: f1662ae833f4925b29f4fb6b60a12bdb24a01370
5
5
  SHA512:
6
- metadata.gz: 9c877adcfc8ce166ea73a893a33d10045461f7d635a03358e7ed39a4295760d601010d09204c28fc2fc8e6340e540f321cb8c4aef17fc378457fd0efda2da1b2
7
- data.tar.gz: e772bd9f2420638b3b158f1a501a6e961534845f1b2fde5ca2b2bdcfc5c93e89673ffd00623fe5a6441f82faefe55903708d10e5bf4283852aa02ecac3f7259b
6
+ metadata.gz: f90f932d33f1f85530b78f9ca0468ecb6b3fc58b8efa17801711f05701f2553cb25d6ceeadacef9c936b7ff0796da83a03a42eb1e57b46167c11883a50d6af35
7
+ data.tar.gz: e32fcbb5e32ab43a67929ba8322c1c23b5ae0a9fcea2fbbfc9f4e86d1f603f6bae79ab83897aa3aebd52493dcfe678df76e43214cecb064f1541b6c10cc2b6df
@@ -1,2 +1,4 @@
1
1
  = simple_form_for(@tag_search, url: ecm_tags.tag_searchs_path, html: { class: 'navbar-form navbar-left' }) do |f|
2
- = f.input :tag_list, label: false, placeholder: t('.search')
2
+ = f.input :tag_list, label: false, placeholder: t('.search')
3
+ - if Ecm::Tags::Configuration.add_submit_button_to_search_box
4
+ = f.button :submit, class: 'btn btn-success', id: 'new_tag_search_submit'
@@ -9,6 +9,7 @@ module Ecm
9
9
  yield self
10
10
  end
11
11
  mattr_accessor(:base_controller) { 'FrontendController' }
12
+ mattr_accessor(:add_submit_button_to_search_box) { true }
12
13
  end
13
14
  end
14
15
  end
@@ -1,5 +1,5 @@
1
1
  module Ecm
2
2
  module Tags
3
- VERSION = '0.0.2'.freeze
3
+ VERSION = '0.0.3'.freeze
4
4
  end
5
5
  end
@@ -4,4 +4,10 @@ Ecm::Tags.configure do |config|
4
4
  # Default: config.base_controller = 'FrontendController'
5
5
  #
6
6
  config.base_controller = 'FrontendController'
7
+
8
+ # Add a submit button to the tag search box.
9
+ #
10
+ # Default: config.add_submit_button_to_search_box = true
11
+ #
12
+ config.add_submit_button_to_search_box = true
7
13
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecm_tags
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Vasquez Angel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-11 00:00:00.000000000 Z
11
+ date: 2016-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails