platformx 0.0.8.9.9.8 → 0.0.8.9.9.9
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/lib/platformx/form.rb +2 -2
- data/lib/platformx/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: 8837a4af0320c8c25dcb3ecbfc974ea84a360d56
|
|
4
|
+
data.tar.gz: dd3a863c250966e6df78c959e7e33a734e6e01f0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ee20e01cae0001aada6bb1c298d7ea861581c9dc64d33ae61cd8dbbcb876c71dcbe19777ff4fced6aae701db0e888a8d1e18ba699e7661f157ee7c02f990dc2c
|
|
7
|
+
data.tar.gz: 25c5550f564932e6a534297cfbb8264cde1c117a9faa12462c5df71f40dee69b283e31df0bb7756165323bbd9ca50534adee196d6f3d835f141d347a76386b02
|
data/lib/platformx/form.rb
CHANGED
|
@@ -158,7 +158,7 @@ end
|
|
|
158
158
|
# @param mask [String] input element mask
|
|
159
159
|
# @param maxlength [String] input element max length
|
|
160
160
|
# @return [String] compiled input element
|
|
161
|
-
def x_input(id: "", name: "", value: "", label: "", required: false, placeholder: "", mask: "", maxlength: "")
|
|
161
|
+
def x_input(id: "", name: "", value: "", label: "", required: false, placeholder: "", mask: "", maxlength: "", css:"")
|
|
162
162
|
|
|
163
163
|
id = name unless id != ""
|
|
164
164
|
if required
|
|
@@ -188,7 +188,7 @@ def x_input(id: "", name: "", value: "", label: "", required: false, placeholder
|
|
|
188
188
|
tb = <<EOS
|
|
189
189
|
<div class="form-group">
|
|
190
190
|
#{label}#{required_output}
|
|
191
|
-
<input type="text" class="form-control" id="#{id}" name="post[#{name}]" value="#{value}" placeholder="#{placeholder}" #{required_tag} #{mask} #{maxlength} />
|
|
191
|
+
<input type="text" class="form-control" id="#{id}" name="post[#{name}]" value="#{value}" placeholder="#{placeholder}" css="#{css}" #{required_tag} #{mask} #{maxlength} />
|
|
192
192
|
</div>
|
|
193
193
|
EOS
|
|
194
194
|
return tb
|
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.9
|
|
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-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|