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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f9e124f442dece25bbafa3263cef4b834e4d99f7
4
- data.tar.gz: 81b223d4b2cdea0215e8c7755407d46f5cde73cd
3
+ metadata.gz: eda79972d060db5378540490e1c0b9a6f23df850
4
+ data.tar.gz: b54fdb4d98c34329f72bd1ccb3e6a3bb0bedb054
5
5
  SHA512:
6
- metadata.gz: fb7341f1f7995b412d42627d4b0289fbda9f4ed697b6ba28f0ac95eab6163c70211518c88c219ca8b0ead9f8cbf20d2c6c23efe57ccd3318c6e28529f0101f4e
7
- data.tar.gz: b2a7f568de0d463a052575e79077b6846d19d1032edd7310f252f265ddbc7e49c6b25f8dfa88c7cba0cf7f415c95325ef02e3540957bc44204546bd027106fa3
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 " : "") +
@@ -1,3 +1,3 @@
1
1
  module JsonFormFields
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
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.2
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-23 00:00:00.000000000 Z
11
+ date: 2015-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler