kuppayam 0.1.19 → 0.1.20

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: 030e501da89df66a36012de8f146e71b4704c370
4
- data.tar.gz: 343f05621349df351ed9fb148c45b6735e510c1c
3
+ metadata.gz: 1bb65251c46a6fd13aa91b87b1a885ccfa293f5b
4
+ data.tar.gz: c1933eca8006da8da626437ec1d4381ad72bc21b
5
5
  SHA512:
6
- metadata.gz: bb537d3077c45e5d1f0b7bea6c72895b0bc1ba8e725a4ed2f0b7ec8e7a08076976e81464d409bbfa21e3cbde32a63f88d3a302c7e3cd73e4ab180d50d745a756
7
- data.tar.gz: d9a98cdf020e185cdf43a9c7cb82ef6afc98ed0ff086f67857d32e13b924bbeebafb29b18219f4c75b7722e53f24805031e7060ee4ca412c5e2541a7970d0a8b
6
+ metadata.gz: 5d1a9fcfb4117eda53364986bc736ac76bcb5618e382018851121f82f5ac91b57ccdfddc454d6b4f7934ecd417a2a2878a5fc22df7f24b382857f5ba12f5378f
7
+ data.tar.gz: 260e9aa8b403d82f1ef7de3fdea737367bc444f97ea354af09f24a3df166560bf4abadfa53e4c45c4e87878313398d70e9c582b932488ab782aeed3bddb9844d
@@ -158,8 +158,10 @@ module Kuppayam
158
158
  when :file
159
159
  file_field_tag(options[:param_name], **options[:html_options])
160
160
  when :checkbox
161
- options[:html_options][:class] = "checkbox mt-10"
162
- check_box_tag(options[:param_name], field_name, object.send(field_name.to_s), **options[:html_options])
161
+ options[:html_options][:class] = "iswitch iswitch-secondary checkbox mt-10"
162
+ current_value = object.send(field_name.to_s)
163
+ options[:html_options][:checked] = current_value
164
+ check_box_tag(options[:param_name], "1", current_value, **options[:html_options])
163
165
  end + error_message
164
166
  end
165
167
  end
@@ -248,7 +250,7 @@ module Kuppayam
248
250
  def theme_form_select_group(form, object, field_name, options_list, **options)
249
251
  options.reverse_merge!(
250
252
  label: "Label",
251
- param_name: "Param",
253
+ param_name: "desired_attribute",
252
254
  prompt: true,
253
255
  error_class: "has-error",
254
256
  required: false,
@@ -1,3 +1,3 @@
1
1
  module Kuppayam
2
- VERSION = '0.1.19'
2
+ VERSION = '0.1.20'
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.1.19
4
+ version: 0.1.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - kpvarma
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-04 00:00:00.000000000 Z
11
+ date: 2017-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails