repres-bootstrap 1.5.2 → 1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -2
- data/app/views/repres/bootstrap/_form_field.html.erb +8 -1
- data/lib/repres/bootstrap/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 247620ffb0346a2e9e9c5c73f2091c040dfa9b2e
|
4
|
+
data.tar.gz: 20e0dff7f8a722012e302abb3fde777d4ab3a04a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb84b1dbc7adc8c9fe319b5626a26193e36f77adc867d16852822bc09bb51a50a0b731572f50e85033a572f9e6aec42bee5ade1f6b59a77f0f857ec3697af964
|
7
|
+
data.tar.gz: 6bf1a8709a0d864e9183a9d694366b1bfd3fe4c4975371c6c7cfcb62c82fd035c99a1204c511f63ed0bec90f6e574ae9036cf88cc669a6dd12ecd4315829067f
|
data/README.md
CHANGED
@@ -196,7 +196,7 @@ Here are more options:
|
|
196
196
|
|
197
197
|
- group_class: The CSS class for the form group wrapper. The .form-group class is mandatory, and can not be removed.
|
198
198
|
- label_class: the CSS class for the HTML label tag. The .control-label class is mandatory, and can not be removed.
|
199
|
-
- field_class: the CSS class for the wrapper of the form control. The .input-group class is mandatory, and can not be removed.
|
199
|
+
- field_class: the CSS class for the wrapper of the form control. The .input-group class is mandatory, and can not be removed, if the input_prefix or the input_suffix is given. The .input-group class won't appear, if both of the input_prefix and the input_suffix are not given.
|
200
200
|
- input_class: The CSS class for the HTML input tag. The .form-control class is mandatory, and can not be removed.
|
201
201
|
- error_class: the CSS class for the validation error block of this field. The .text-danger class is mandatory, and can not be removed.
|
202
202
|
|
@@ -208,10 +208,11 @@ Here are more options:
|
|
208
208
|
|
209
209
|
- disabled: the disabled attribute of a HTML input tag.
|
210
210
|
- maxlength: the maxlength attribute of a HTML input tag.
|
211
|
+
- size: the size attribute of a HTML input tag.
|
211
212
|
- placeholder: the placeholder attribute of a HTML input tag.
|
212
213
|
- readonly: the readonly attribute of a HTML input tag.
|
213
214
|
- required: the required attribute of a HTML input tag.
|
214
|
-
- rows: the rows of a HTML Text Area
|
215
|
+
- rows: the rows of a HTML Text Area.
|
215
216
|
|
216
217
|
|
217
218
|
|
@@ -35,6 +35,7 @@
|
|
35
35
|
readonly: options[:readonly],
|
36
36
|
maxlength: options[:maxlength],
|
37
37
|
required: options[:required],
|
38
|
+
size: options[:size],
|
38
39
|
data: input_data
|
39
40
|
}
|
40
41
|
input_options[:input_accept] = options[:input_accept] if options[:input_accept].present?
|
@@ -65,7 +66,13 @@
|
|
65
66
|
|
66
67
|
<% else %>
|
67
68
|
|
68
|
-
|
69
|
+
<% if options[:field_class].present? %>
|
70
|
+
<div class='<%= [ options[:field_class] ].flatten.join ' ' %>'>
|
71
|
+
<%= form.send type, name, input_options %>
|
72
|
+
</div>
|
73
|
+
<% else %>
|
74
|
+
<%= form.send type, name, input_options %>
|
75
|
+
<% end %>
|
69
76
|
|
70
77
|
<% end %>
|
71
78
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: repres-bootstrap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: '1.6'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Topbit Du
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|