kuppayam 0.2.10.pre.materialize → 0.2.11.pre.materialize
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kuppayam/action_view/form_helper.rb +3 -1
- data/lib/kuppayam/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '08d13bcc5c275404d1567c6f8c56a750b35a02b3d0131747b1e6809d8b6dd742'
|
4
|
+
data.tar.gz: 7b80cc97a2d72d3b549feff48b2d6d62a315d908eaf49256f9735489f88b9e32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 127ac62ebc10bf35d73cffc0c77b137c060880844e7ed00367e8ef273dbeac4c065e0f8cc15bea3407e73bb12e1c251ea44ffe363ecb9dad2501591005b33bc9
|
7
|
+
data.tar.gz: 4833555b1ecf5756ceaef13c04f801049ff2c7d898efafa619a0cfbd7f4f955d0373422bb064c3c2a4311206b71a8e4ca356f876211f0c50949f785995675c56
|
@@ -269,9 +269,11 @@ module Kuppayam
|
|
269
269
|
param_name: field_name,
|
270
270
|
prompt: "Select",
|
271
271
|
error_class: "has-error",
|
272
|
+
select_class: "form-control",
|
272
273
|
required: false,
|
273
274
|
form_style: "left-right"
|
274
275
|
)
|
276
|
+
|
275
277
|
error_class = object.errors[field_name.to_s].any? ? options[:error_class] : ""
|
276
278
|
if object.errors[field_name.to_s].any?
|
277
279
|
error_class = options[:error_class]
|
@@ -289,7 +291,7 @@ module Kuppayam
|
|
289
291
|
selected = nil
|
290
292
|
end
|
291
293
|
theme_form_group(options[:label], required: options[:required], error_class: error_class, form_style: options[:form_style]) do
|
292
|
-
select_tag(options[:param_name], options_for_select(options_list, :selected => selected), {:prompt=>options[:prompt], :class =>
|
294
|
+
select_tag(options[:param_name], options_for_select(options_list, :selected => selected), {:prompt=>options[:prompt], :class => options[:select_class]}) + error_message
|
293
295
|
end
|
294
296
|
end
|
295
297
|
|
data/lib/kuppayam/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kuppayam
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.11.pre.materialize
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kpvarma
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-06-
|
11
|
+
date: 2018-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|