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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 54220296da730bc2b7a7851401cdc3145a748516d486d8f044b0f2c6dcd3f3a8
4
- data.tar.gz: ef1814612a9c6edb38d5fc6bc8031949764e3fa22ce21a45d06c61a2bd81ebeb
3
+ metadata.gz: '08d13bcc5c275404d1567c6f8c56a750b35a02b3d0131747b1e6809d8b6dd742'
4
+ data.tar.gz: 7b80cc97a2d72d3b549feff48b2d6d62a315d908eaf49256f9735489f88b9e32
5
5
  SHA512:
6
- metadata.gz: ff64062d4a1e7bd17ec97137e79a45c2d4d0ad6a757a80914df3095b8fd51008392279a4015408a973f0f8e854dfdc7ff3214ef0cf5a41ebe27a737a0aee30a5
7
- data.tar.gz: fa382bfee3e3afc7d81e42c6f5a44a3df615f825e03536ebb5d2e0304560d0b74ac03c48275820aad5d6bb1ab341bf54b9258b4c78468271b7f10e172c557fa2
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 => 'form-control'}) + error_message
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
 
@@ -1,3 +1,3 @@
1
1
  module Kuppayam
2
- VERSION = '0.2.10.pre.materialize'
2
+ VERSION = '0.2.11.pre.materialize'
3
3
  end
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.10.pre.materialize
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-05 00:00:00.000000000 Z
11
+ date: 2018-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails