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 +4 -4
- data/lib/kuppayam/action_view/form_helper.rb +5 -3
- data/lib/kuppayam/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: 1bb65251c46a6fd13aa91b87b1a885ccfa293f5b
|
4
|
+
data.tar.gz: c1933eca8006da8da626437ec1d4381ad72bc21b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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: "
|
253
|
+
param_name: "desired_attribute",
|
252
254
|
prompt: true,
|
253
255
|
error_class: "has-error",
|
254
256
|
required: false,
|
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.1.
|
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-
|
11
|
+
date: 2017-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|