effective_bootstrap 0.6.3 → 0.6.4
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5fb933178be2c7995252f146a2b8229b705f076fdda00f1bab4c439c398a18fb
|
4
|
+
data.tar.gz: caa3cf323586a4779bc974b4f0a7020bedd5edd3bd18fc9c37a9b6782d7258e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9bc6b00310c306747ef40e6129427a4ba25f55da882c1375970350d191843580528a8311627cfea89e8fa555cde0ea41ef62dcb63e32150dd585723d4dba62e
|
7
|
+
data.tar.gz: 6394f4f90fe49863073e047d8eff18b1cb2d3c8066795788491cb1ecf34fd61276437cec3327b0e9604080484acd68bf384923a5376b8d48dab4f91de09bf806
|
@@ -86,6 +86,10 @@ module Effective
|
|
86
86
|
Effective::FormInputs::RemoteLinkTo.new(name, options, builder: self).to_html(&block)
|
87
87
|
end
|
88
88
|
|
89
|
+
def search_field(name, options = {})
|
90
|
+
Effective::FormInputs::SearchField.new(name, options, builder: self).to_html { super(name, options) }
|
91
|
+
end
|
92
|
+
|
89
93
|
def number_field(name, options = {})
|
90
94
|
Effective::FormInputs::NumberField.new(name, options, builder: self).to_html { super(name, options) }
|
91
95
|
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module Effective
|
2
|
+
module FormInputs
|
3
|
+
class SearchField < Effective::FormInput
|
4
|
+
|
5
|
+
def input_html_options
|
6
|
+
{ class: 'form-control', placeholder: 'Search...' }
|
7
|
+
end
|
8
|
+
|
9
|
+
def input_group_options
|
10
|
+
{ input_group: { class: 'input-group' }, prepend: content_tag(:span, icon('search'), class: 'input-group-text') }
|
11
|
+
end
|
12
|
+
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_bootstrap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-07-
|
11
|
+
date: 2019-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -595,6 +595,7 @@ files:
|
|
595
595
|
- app/models/effective/form_inputs/remote_link_to.rb
|
596
596
|
- app/models/effective/form_inputs/reset.rb
|
597
597
|
- app/models/effective/form_inputs/save.rb
|
598
|
+
- app/models/effective/form_inputs/search_field.rb
|
598
599
|
- app/models/effective/form_inputs/select.rb
|
599
600
|
- app/models/effective/form_inputs/select_or_text.rb
|
600
601
|
- app/models/effective/form_inputs/static_field.rb
|