formtastic-bootstrap 2.1.3 → 3.0.0.rc.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +43 -56
- data/VERSION +1 -1
- data/lib/action_view/helpers/text_field_date_helper.rb +7 -7
- data/lib/formtastic-bootstrap/actions/base.rb +11 -6
- data/lib/formtastic-bootstrap/form_builder.rb +5 -5
- data/lib/formtastic-bootstrap/helpers.rb +1 -1
- data/lib/formtastic-bootstrap/helpers/actions_helper.rb +4 -4
- data/lib/formtastic-bootstrap/helpers/errors_helper.rb +1 -1
- data/lib/formtastic-bootstrap/helpers/fieldset_wrapper.rb +2 -2
- data/lib/formtastic-bootstrap/helpers/input_helper.rb +3 -3
- data/lib/formtastic-bootstrap/helpers/inputs_helper.rb +3 -3
- data/lib/formtastic-bootstrap/inputs.rb +19 -19
- data/lib/formtastic-bootstrap/inputs/base.rb +1 -1
- data/lib/formtastic-bootstrap/inputs/base/errors.rb +2 -2
- data/lib/formtastic-bootstrap/inputs/base/hints.rb +3 -3
- data/lib/formtastic-bootstrap/inputs/base/html.rb +8 -2
- data/lib/formtastic-bootstrap/inputs/base/labelling.rb +6 -11
- data/lib/formtastic-bootstrap/inputs/base/stringish.rb +4 -4
- data/lib/formtastic-bootstrap/inputs/base/timeish.rb +24 -18
- data/lib/formtastic-bootstrap/inputs/base/wrapping.rb +30 -52
- data/lib/formtastic-bootstrap/inputs/boolean_input.rb +18 -10
- data/lib/formtastic-bootstrap/inputs/check_boxes_input.rb +19 -18
- data/lib/formtastic-bootstrap/inputs/email_input.rb +1 -1
- data/lib/formtastic-bootstrap/inputs/number_input.rb +3 -3
- data/lib/formtastic-bootstrap/inputs/password_input.rb +1 -1
- data/lib/formtastic-bootstrap/inputs/phone_input.rb +1 -1
- data/lib/formtastic-bootstrap/inputs/radio_input.rb +19 -18
- data/lib/formtastic-bootstrap/inputs/range_input.rb +1 -1
- data/lib/formtastic-bootstrap/inputs/search_input.rb +1 -1
- data/lib/formtastic-bootstrap/inputs/select_input.rb +17 -0
- data/lib/formtastic-bootstrap/inputs/text_input.rb +4 -4
- data/lib/formtastic-bootstrap/inputs/url_input.rb +1 -1
- data/lib/formtastic-bootstrap/version.rb +1 -1
- data/vendor/assets/stylesheets/formtastic-bootstrap.css +32 -0
- metadata +51 -55
@@ -5,6 +5,23 @@ module FormtasticBootstrap
|
|
5
5
|
include Base::Collections
|
6
6
|
include Base::GroupedCollections
|
7
7
|
|
8
|
+
def select_html
|
9
|
+
builder.select(input_name, collection, input_options, form_control_input_html_options)
|
10
|
+
end
|
11
|
+
|
12
|
+
def grouped_select_html
|
13
|
+
builder.grouped_collection_select(
|
14
|
+
input_name,
|
15
|
+
grouped_collection,
|
16
|
+
group_association,
|
17
|
+
group_label_method,
|
18
|
+
value_method,
|
19
|
+
label_method,
|
20
|
+
input_options,
|
21
|
+
form_control_input_html_options
|
22
|
+
)
|
23
|
+
end
|
24
|
+
|
8
25
|
def to_html
|
9
26
|
bootstrap_wrapping do
|
10
27
|
options[:group_by] ? grouped_select_html : select_html
|
@@ -1,14 +1,14 @@
|
|
1
1
|
module FormtasticBootstrap
|
2
2
|
module Inputs
|
3
3
|
class TextInput < Formtastic::Inputs::TextInput
|
4
|
-
include Base
|
5
|
-
|
4
|
+
include Base
|
5
|
+
|
6
6
|
def to_html
|
7
7
|
bootstrap_wrapping do
|
8
|
-
builder.text_area(method,
|
8
|
+
builder.text_area(method, form_control_input_html_options)
|
9
9
|
end
|
10
10
|
end
|
11
11
|
|
12
12
|
end
|
13
13
|
end
|
14
|
-
end
|
14
|
+
end
|
@@ -5,3 +5,35 @@
|
|
5
5
|
.alert.alert-error > ul.error-list {
|
6
6
|
margin-bottom: 0px;
|
7
7
|
}
|
8
|
+
|
9
|
+
|
10
|
+
/*
|
11
|
+
** Timeish fixes.
|
12
|
+
*/
|
13
|
+
|
14
|
+
.datetime_select .form-control,
|
15
|
+
.date_select .form-control,
|
16
|
+
.time_select .form-control,
|
17
|
+
.datetime .form-control,
|
18
|
+
.date .form-control,
|
19
|
+
.time .form-control
|
20
|
+
{
|
21
|
+
border: none;
|
22
|
+
-webkit-box-shadow: none;
|
23
|
+
box-shadow: none;
|
24
|
+
padding: 0px 0px;
|
25
|
+
}
|
26
|
+
|
27
|
+
.datetime_select .form-control select,
|
28
|
+
.date_select .form-control select,
|
29
|
+
.time_select .form-control select,
|
30
|
+
.datetime .form-control select,
|
31
|
+
.date .form-control select,
|
32
|
+
.time .form-control select
|
33
|
+
{
|
34
|
+
/* This works for me in FireFox but does not work in
|
35
|
+
Safari or Chrome (31.) If I set a background-color
|
36
|
+
it will suddenly work in both of those browsers.
|
37
|
+
*/
|
38
|
+
height: 34px;
|
39
|
+
}
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: formtastic-bootstrap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
5
|
-
prerelease:
|
4
|
+
version: 3.0.0.rc.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Matthew Bellantoni
|
@@ -10,134 +9,132 @@ authors:
|
|
10
9
|
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date: 2013-
|
12
|
+
date: 2013-11-25 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: formtastic
|
17
16
|
requirement: !ruby/object:Gem::Requirement
|
18
|
-
none: false
|
19
17
|
requirements:
|
20
|
-
- -
|
18
|
+
- - '>='
|
21
19
|
- !ruby/object:Gem::Version
|
22
20
|
version: '2.2'
|
23
21
|
type: :runtime
|
24
22
|
prerelease: false
|
25
23
|
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
none: false
|
27
24
|
requirements:
|
28
|
-
- -
|
25
|
+
- - '>='
|
29
26
|
- !ruby/object:Gem::Version
|
30
27
|
version: '2.2'
|
31
28
|
- !ruby/object:Gem::Dependency
|
32
|
-
name:
|
29
|
+
name: rake
|
33
30
|
requirement: !ruby/object:Gem::Requirement
|
34
|
-
none: false
|
35
31
|
requirements:
|
36
|
-
- -
|
32
|
+
- - '>='
|
37
33
|
- !ruby/object:Gem::Version
|
38
34
|
version: '0'
|
39
35
|
type: :development
|
40
36
|
prerelease: false
|
41
37
|
version_requirements: !ruby/object:Gem::Requirement
|
42
|
-
none: false
|
43
38
|
requirements:
|
44
|
-
- -
|
39
|
+
- - '>='
|
45
40
|
- !ruby/object:Gem::Version
|
46
41
|
version: '0'
|
47
42
|
- !ruby/object:Gem::Dependency
|
48
|
-
name:
|
43
|
+
name: tzinfo
|
49
44
|
requirement: !ruby/object:Gem::Requirement
|
50
|
-
none: false
|
51
45
|
requirements:
|
52
|
-
- -
|
46
|
+
- - '>='
|
53
47
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
48
|
+
version: '0'
|
55
49
|
type: :development
|
56
50
|
prerelease: false
|
57
51
|
version_requirements: !ruby/object:Gem::Requirement
|
58
|
-
none: false
|
59
52
|
requirements:
|
60
|
-
- -
|
53
|
+
- - '>='
|
61
54
|
- !ruby/object:Gem::Version
|
62
|
-
version: '
|
55
|
+
version: '0'
|
63
56
|
- !ruby/object:Gem::Dependency
|
64
|
-
name:
|
57
|
+
name: bundler
|
65
58
|
requirement: !ruby/object:Gem::Requirement
|
66
|
-
none: false
|
67
59
|
requirements:
|
68
|
-
- -
|
60
|
+
- - '>='
|
69
61
|
- !ruby/object:Gem::Version
|
70
|
-
version: '
|
62
|
+
version: '0'
|
71
63
|
type: :development
|
72
64
|
prerelease: false
|
73
65
|
version_requirements: !ruby/object:Gem::Requirement
|
74
|
-
none: false
|
75
66
|
requirements:
|
76
|
-
- -
|
67
|
+
- - '>='
|
77
68
|
- !ruby/object:Gem::Version
|
78
|
-
version: '
|
69
|
+
version: '0'
|
79
70
|
- !ruby/object:Gem::Dependency
|
80
|
-
name:
|
71
|
+
name: nokogiri
|
81
72
|
requirement: !ruby/object:Gem::Requirement
|
82
|
-
none: false
|
83
73
|
requirements:
|
84
74
|
- - <
|
85
75
|
- !ruby/object:Gem::Version
|
86
|
-
version:
|
76
|
+
version: 1.6.0
|
87
77
|
type: :development
|
88
78
|
prerelease: false
|
89
79
|
version_requirements: !ruby/object:Gem::Requirement
|
90
|
-
none: false
|
91
80
|
requirements:
|
92
81
|
- - <
|
93
82
|
- !ruby/object:Gem::Version
|
94
|
-
version:
|
83
|
+
version: 1.6.0
|
95
84
|
- !ruby/object:Gem::Dependency
|
96
85
|
name: rspec-rails
|
97
86
|
requirement: !ruby/object:Gem::Requirement
|
98
|
-
none: false
|
99
87
|
requirements:
|
100
|
-
- -
|
88
|
+
- - '>='
|
101
89
|
- !ruby/object:Gem::Version
|
102
|
-
version:
|
90
|
+
version: '0'
|
103
91
|
type: :development
|
104
92
|
prerelease: false
|
105
93
|
version_requirements: !ruby/object:Gem::Requirement
|
106
|
-
none: false
|
107
94
|
requirements:
|
108
|
-
- -
|
95
|
+
- - '>='
|
109
96
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
97
|
+
version: '0'
|
111
98
|
- !ruby/object:Gem::Dependency
|
112
99
|
name: rspec_tag_matchers
|
113
100
|
requirement: !ruby/object:Gem::Requirement
|
114
|
-
none: false
|
115
101
|
requirements:
|
116
|
-
- -
|
102
|
+
- - '>='
|
117
103
|
- !ruby/object:Gem::Version
|
118
|
-
version:
|
104
|
+
version: 1.0.0
|
119
105
|
type: :development
|
120
106
|
prerelease: false
|
121
107
|
version_requirements: !ruby/object:Gem::Requirement
|
122
|
-
none: false
|
123
108
|
requirements:
|
124
|
-
- -
|
109
|
+
- - '>='
|
125
110
|
- !ruby/object:Gem::Version
|
126
|
-
version:
|
111
|
+
version: 1.0.0
|
127
112
|
- !ruby/object:Gem::Dependency
|
128
|
-
name:
|
113
|
+
name: ammeter
|
114
|
+
requirement: !ruby/object:Gem::Requirement
|
115
|
+
requirements:
|
116
|
+
- - ~>
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: 0.2.5
|
119
|
+
type: :development
|
120
|
+
prerelease: false
|
121
|
+
version_requirements: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - ~>
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: 0.2.5
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: actionpack
|
129
128
|
requirement: !ruby/object:Gem::Requirement
|
130
|
-
none: false
|
131
129
|
requirements:
|
132
|
-
- -
|
130
|
+
- - '>='
|
133
131
|
- !ruby/object:Gem::Version
|
134
132
|
version: '0'
|
135
133
|
type: :development
|
136
134
|
prerelease: false
|
137
135
|
version_requirements: !ruby/object:Gem::Requirement
|
138
|
-
none: false
|
139
136
|
requirements:
|
140
|
-
- -
|
137
|
+
- - '>='
|
141
138
|
- !ruby/object:Gem::Version
|
142
139
|
version: '0'
|
143
140
|
description: Formtastic form builder to generate Twitter Bootstrap-friendly markup.
|
@@ -215,26 +212,25 @@ files:
|
|
215
212
|
homepage: http://github.com/mjbellantoni/formtastic-bootstrap
|
216
213
|
licenses:
|
217
214
|
- MIT
|
215
|
+
metadata: {}
|
218
216
|
post_install_message:
|
219
217
|
rdoc_options: []
|
220
218
|
require_paths:
|
221
219
|
- lib
|
222
220
|
required_ruby_version: !ruby/object:Gem::Requirement
|
223
|
-
none: false
|
224
221
|
requirements:
|
225
|
-
- -
|
222
|
+
- - '>='
|
226
223
|
- !ruby/object:Gem::Version
|
227
224
|
version: '0'
|
228
225
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
229
|
-
none: false
|
230
226
|
requirements:
|
231
|
-
- -
|
227
|
+
- - '>'
|
232
228
|
- !ruby/object:Gem::Version
|
233
|
-
version:
|
229
|
+
version: 1.3.1
|
234
230
|
requirements: []
|
235
231
|
rubyforge_project:
|
236
|
-
rubygems_version: 1.
|
232
|
+
rubygems_version: 2.1.11
|
237
233
|
signing_key:
|
238
|
-
specification_version:
|
234
|
+
specification_version: 4
|
239
235
|
summary: Formtastic form builder to generate Twitter Bootstrap-friendly markup.
|
240
236
|
test_files: []
|