platformx 0.0.8.9.9.1 → 0.0.8.9.9.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.DS_Store +0 -0
- data/lib/.DS_Store +0 -0
- data/lib/platformx/form.rb +3 -2
- data/lib/platformx/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a509b639883c9845fb1f3e161ed85b21898747b3
|
|
4
|
+
data.tar.gz: ec2ceaa04597378046f5c3d63b3de05ac62c6a55
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d9baeda5b44c0105928f3f5d49070c7c0ff1d1dc4fd9eeffb27b4c82c9416639ba8bd88cd1242b773fb60e3bdcb42f8b869f0418fcb4ffbce3a10461b1498dea
|
|
7
|
+
data.tar.gz: 22be06056ee829c9bcdc12f274c447e499ffa987d7adb2810aa910ba0fc63266460b4ffd007dbc60577d85adbba80ea17aac401361c3a31f473ddb5e80e065a7
|
data/.DS_Store
ADDED
|
Binary file
|
data/lib/.DS_Store
ADDED
|
Binary file
|
data/lib/platformx/form.rb
CHANGED
|
@@ -103,7 +103,7 @@ EOS
|
|
|
103
103
|
# @param inline [Boolean] if the radio is inline or not
|
|
104
104
|
# @param form_group [Boolean] if the radio is of form group
|
|
105
105
|
# @return [String] the compiled radio
|
|
106
|
-
def x_radio(id: "", name: "", value: "1", label: "", checked: false,
|
|
106
|
+
def x_radio(id: "", name: "", value: "1", label: "", checked: false, checked_if: "", align: false, inline: false, include_false_as_hidden: false ,form_group: true)
|
|
107
107
|
|
|
108
108
|
checked_output = ""
|
|
109
109
|
align_class = ""
|
|
@@ -112,6 +112,7 @@ EOS
|
|
|
112
112
|
form_group_end = ""
|
|
113
113
|
include_false_as_hidden_element = ""
|
|
114
114
|
|
|
115
|
+
if checked == checked_if then checked_output='checked="checked"' end
|
|
115
116
|
if checked == true then checked_output='checked="checked"' end
|
|
116
117
|
if align == "left" then align_class='pull-left' end
|
|
117
118
|
if align == "right" then align_class='pull-right' end
|
|
@@ -125,7 +126,7 @@ radio_btn = <<EOS
|
|
|
125
126
|
<label class="#{align_class} #{inline_class}">
|
|
126
127
|
#{include_false_as_hidden_element}
|
|
127
128
|
<input type="radio" id="#{id}" name="post[#{name}]" value="#{value}" #{checked_output} data-toggle="radio"/>
|
|
128
|
-
#{label}
|
|
129
|
+
#{label}</label>
|
|
129
130
|
</div>
|
|
130
131
|
#{form_group_end}
|
|
131
132
|
EOS
|
data/lib/platformx/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: platformx
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.8.9.9.
|
|
4
|
+
version: 0.0.8.9.9.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- timmushen
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-06-
|
|
11
|
+
date: 2017-06-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -409,12 +409,14 @@ executables: []
|
|
|
409
409
|
extensions: []
|
|
410
410
|
extra_rdoc_files: []
|
|
411
411
|
files:
|
|
412
|
+
- ".DS_Store"
|
|
412
413
|
- ".gitignore"
|
|
413
414
|
- ".rspec"
|
|
414
415
|
- Gemfile
|
|
415
416
|
- LICENSE.txt
|
|
416
417
|
- README.md
|
|
417
418
|
- Rakefile
|
|
419
|
+
- lib/.DS_Store
|
|
418
420
|
- lib/platformx.rb
|
|
419
421
|
- lib/platformx/auth.rb
|
|
420
422
|
- lib/platformx/aws.rb
|