simple_form_awesome 2.4.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +1 -1
- data/lib/generators/simple_form/install_generator.rb +2 -1
- data/lib/generators/simple_form/templates/AUI_README +2 -2
- data/lib/generators/simple_form/templates/config/initializers/simple_form_aui.rb +1 -0
- data/lib/simple_form/form_builder.rb +0 -1
- data/lib/simple_form/inputs.rb +0 -1
- data/lib/simple_form/version.rb +1 -1
- metadata +2 -3
- data/lib/simple_form/inputs/text_area_input.rb +0 -12
data/README.md
CHANGED
@@ -16,7 +16,6 @@ module SimpleForm
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def copy_config
|
19
|
-
template "config/initializers/simple_form.rb"
|
20
19
|
|
21
20
|
if options[:bootstrap]
|
22
21
|
template "config/initializers/simple_form_bootstrap.rb"
|
@@ -24,6 +23,8 @@ module SimpleForm
|
|
24
23
|
template "config/initializers/simple_form_foundation.rb"
|
25
24
|
elsif options[:aui]
|
26
25
|
template "config/initializers/simple_form_aui.rb"
|
26
|
+
else
|
27
|
+
template "config/initializers/simple_form.rb"
|
27
28
|
end
|
28
29
|
|
29
30
|
directory 'config/locales'
|
@@ -9,8 +9,8 @@
|
|
9
9
|
|
10
10
|
= simple_form_for @user do |form|
|
11
11
|
%fieldset
|
12
|
-
= f.input :name
|
13
|
-
= f.input :description, :
|
12
|
+
= f.input :name, :require => true
|
13
|
+
= f.input :description, :require => true
|
14
14
|
|
15
15
|
.field_group
|
16
16
|
= f.submit :class => "aui-button aui-button-primary"
|
@@ -26,7 +26,6 @@ module SimpleForm
|
|
26
26
|
map_type :date, :time, :datetime, :to => SimpleForm::Inputs::DateTimeInput
|
27
27
|
map_type :country, :time_zone, :to => SimpleForm::Inputs::PriorityInput
|
28
28
|
map_type :boolean, :to => SimpleForm::Inputs::BooleanInput
|
29
|
-
map_type :text_area, :to => SimpleForm::Inputs::TextAreaInput
|
30
29
|
|
31
30
|
|
32
31
|
def self.discovery_cache
|
data/lib/simple_form/inputs.rb
CHANGED
@@ -17,6 +17,5 @@ module SimpleForm
|
|
17
17
|
autoload :RangeInput, 'simple_form/inputs/range_input'
|
18
18
|
autoload :StringInput, 'simple_form/inputs/string_input'
|
19
19
|
autoload :TextInput, 'simple_form/inputs/text_input'
|
20
|
-
autoload :TextAreaInput, 'simple_form/inputs/text_area_input'
|
21
20
|
end
|
22
21
|
end
|
data/lib/simple_form/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_form_awesome
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.5.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2013-06-
|
15
|
+
date: 2013-06-06 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: activemodel
|
@@ -76,7 +76,6 @@ files:
|
|
76
76
|
- lib/simple_form/inputs/string_input.rb
|
77
77
|
- lib/simple_form/inputs/block_input.rb
|
78
78
|
- lib/simple_form/inputs/collection_check_boxes_input.rb
|
79
|
-
- lib/simple_form/inputs/text_area_input.rb
|
80
79
|
- lib/simple_form/inputs/password_input.rb
|
81
80
|
- lib/simple_form/inputs/text_input.rb
|
82
81
|
- lib/simple_form/inputs/numeric_input.rb
|
@@ -1,12 +0,0 @@
|
|
1
|
-
module SimpleForm
|
2
|
-
module Inputs
|
3
|
-
class TextAreaInput < TextInput
|
4
|
-
def input
|
5
|
-
input_html_classes.unshift(:textarea).delete(:text_area)
|
6
|
-
input_html_options[:style] ||= ""
|
7
|
-
input_html_options[:style] += ";height: 61px; width: 251px;"
|
8
|
-
super
|
9
|
-
end
|
10
|
-
end
|
11
|
-
end
|
12
|
-
end
|