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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3e63830d7c66fc0c1cbde67ee4c19cfb9603450a
4
- data.tar.gz: 164c1f7aa20fca097b458d790ed028f143fa8f1d
3
+ metadata.gz: 247620ffb0346a2e9e9c5c73f2091c040dfa9b2e
4
+ data.tar.gz: 20e0dff7f8a722012e302abb3fde777d4ab3a04a
5
5
  SHA512:
6
- metadata.gz: b96e6f844a88bc17a88f4f309be9d3bb943af4d5b96fc21d07f1f50dd1e00587fc988f362e9c1d3bd6f73c97143eec785092ec67834045f1624054418e4d1d79
7
- data.tar.gz: ceed9450f3c9e2d9df7db37309b5060b61cce4fd02a727e5f758a7cc5a72d41ec5349bda2d1034ebe257bc8b3413b83c154811c910f0e935dd7b3a4ed76f2ebb
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
- <%= form.send type, name, input_options %>
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
 
@@ -1,5 +1,5 @@
1
1
  module Repres
2
2
  module Bootstrap
3
- VERSION = '1.5.2'.freeze
3
+ VERSION = '1.6'.freeze
4
4
  end
5
5
  end
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.5.2
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-18 00:00:00.000000000 Z
11
+ date: 2016-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails