json_form_fields 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/json_form_fields/generator.rb +2 -2
- data/lib/json_form_fields/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: eda79972d060db5378540490e1c0b9a6f23df850
|
4
|
+
data.tar.gz: b54fdb4d98c34329f72bd1ccb3e6a3bb0bedb054
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a23fca8696a9d4f5b766aef7c7d449fcec9dd1b99b900e4af42b6c5e6e9c4c201fc0c1e7df699db86c536ab6d2f20db224f797e8c0f2082646f38dba3ca225d2
|
7
|
+
data.tar.gz: dfba7f7b7c321498b068352a70b5244e8c5ed518b72c8f36aa9a9035f332540685038aedcb9172a158abb92b5c5d779ff7c8a4830500f99cd5d4a900886d61cc
|
@@ -17,12 +17,12 @@ module JsonFormFields
|
|
17
17
|
if json[key].delete "_checkbox"
|
18
18
|
json[key].each do |value|
|
19
19
|
name = multiple ? "#{key}[]" : "#{key}"
|
20
|
-
str += "<input type=\"checkbox\" name=\"#{name}\" "\
|
20
|
+
str += "<input id=\"#{key}\" type=\"checkbox\" name=\"#{name}\" "\
|
21
21
|
"value=\"#{value}\" />#{value}"
|
22
22
|
end
|
23
23
|
elsif json[key].delete "_radio"
|
24
24
|
json[key].each do |value|
|
25
|
-
str += "<input type=\"radio\" name=\"#{key}\" value=\"#{value}\" />#{value}"
|
25
|
+
str += "<input id=\"#{key}\" type=\"radio\" name=\"#{key}\" value=\"#{value}\" />#{value}"
|
26
26
|
end
|
27
27
|
else
|
28
28
|
str += "<select name=\"#{key}\" " + (multiple ? "multiple " : "") +
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: json_form_fields
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lucas Oliveira
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|