platformx 0.0.9.6.6.6 → 0.0.9.6.6.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/lib/platformx/form.rb +28 -28
- 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: f339d7b99d317c082601578f0f92d4307635c4a4
|
4
|
+
data.tar.gz: 0f4d59adc7218e4a1d972efc2dbb81fd6ded9fea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10f137347d2877ea2b217a7a52205bbfb45e2b5d052a739fde21fa15738ec8004870256e3037e74e125264be968edb87757d322c61d2d89daaaf4e4e460c47e6
|
7
|
+
data.tar.gz: bb0b00fb4fecdeb6bb378ebae008bafd82878d459dbab4977cd23100e029fee7ead40aa8770c7aae2e0b6ffc4f3ff688f387c3ac5839462ca631f03e114fd33c
|
data/lib/platformx/form.rb
CHANGED
@@ -174,7 +174,7 @@ def x_input(id: "", name: "", value: "", label: "", required: false, placeholder
|
|
174
174
|
end
|
175
175
|
|
176
176
|
if label != ""
|
177
|
-
label = "<label>#{label}</label>"
|
177
|
+
label = "<label>#{label}#{required_output}</label>"
|
178
178
|
end
|
179
179
|
|
180
180
|
if maxlength != ""
|
@@ -187,7 +187,7 @@ def x_input(id: "", name: "", value: "", label: "", required: false, placeholder
|
|
187
187
|
|
188
188
|
tb = <<EOS
|
189
189
|
<div class="form-group">
|
190
|
-
#{label}
|
190
|
+
#{label}
|
191
191
|
<input type="text" class="form-control #{css}" id="#{id}" name="post[#{name}]" value="#{value}" placeholder="#{placeholder}" #{required_tag} #{mask} #{maxlength} />
|
192
192
|
</div>
|
193
193
|
EOS
|
@@ -220,7 +220,7 @@ EOS
|
|
220
220
|
end
|
221
221
|
|
222
222
|
if label != ""
|
223
|
-
label = "<label>#{label}</label>"
|
223
|
+
label = "<label>#{label}#{required_output}</label>"
|
224
224
|
end
|
225
225
|
|
226
226
|
if maxlength != ""
|
@@ -239,7 +239,7 @@ EOS
|
|
239
239
|
|
240
240
|
tb = <<EOS
|
241
241
|
<div class="form-group">
|
242
|
-
#{label}
|
242
|
+
#{label}
|
243
243
|
<div class="input-group">
|
244
244
|
<span class="input-group-addon">$</span>
|
245
245
|
<input type="text" class="form-control money" id="#{id}" name="post[#{name}]" value="#{value}" placeholder="#{placeholder}" data-parsley-type="number" #{required_tag} #{mask} #{maxlength} />
|
@@ -274,7 +274,7 @@ EOS
|
|
274
274
|
end
|
275
275
|
|
276
276
|
if label != ""
|
277
|
-
label = "<label>#{label}</label>"
|
277
|
+
label = "<label>#{label}#{required_output}</label>"
|
278
278
|
end
|
279
279
|
|
280
280
|
if maxlength != ""
|
@@ -287,7 +287,7 @@ EOS
|
|
287
287
|
|
288
288
|
tb = <<EOS
|
289
289
|
<div class="form-group">
|
290
|
-
#{label}
|
290
|
+
#{label}
|
291
291
|
<div class="input-group">
|
292
292
|
<span class="input-group-addon">%</span>
|
293
293
|
<input type="text" class="form-control" id="#{id}" name="post[#{name}]" value="#{value}" placeholder="#{placeholder}" data-parsley-type="number" #{required_tag} #{mask} #{maxlength} />
|
@@ -322,7 +322,7 @@ def x_sqft(id: "", name: "", value: "", label: "", required: false, placeholder:
|
|
322
322
|
end
|
323
323
|
|
324
324
|
if label != ""
|
325
|
-
label = "<label>#{label}</label>"
|
325
|
+
label = "<label>#{label}#{required_output}</label>"
|
326
326
|
end
|
327
327
|
|
328
328
|
if maxlength != ""
|
@@ -335,7 +335,7 @@ def x_sqft(id: "", name: "", value: "", label: "", required: false, placeholder:
|
|
335
335
|
|
336
336
|
tb = <<EOS
|
337
337
|
<div class="form-group">
|
338
|
-
#{label}
|
338
|
+
#{label}
|
339
339
|
<div class="input-group">
|
340
340
|
<input type="text" class="form-control sq_ft" id="#{id}" name="post[#{name}]" value="#{value}" placeholder="#{placeholder}" data-parsley-type="number" #{required_tag} #{mask} #{maxlength} />
|
341
341
|
<span class="input-group-addon">sqft</span>
|
@@ -687,7 +687,7 @@ EOS
|
|
687
687
|
required_tag = ""
|
688
688
|
end
|
689
689
|
if label != ""
|
690
|
-
label = "<label>#{label}</label>"
|
690
|
+
label = "<label>#{label}#{required_output}</label>"
|
691
691
|
end
|
692
692
|
|
693
693
|
if mask != ""
|
@@ -700,7 +700,7 @@ EOS
|
|
700
700
|
|
701
701
|
tb = <<EOS
|
702
702
|
<div class="form-group">
|
703
|
-
#{label}
|
703
|
+
#{label}
|
704
704
|
<input type="number" pattern="[0-9]{3,4}" class="form-control" id="#{id}" name="post[#{name}]" value="#{value}" #{required_tag} data-parsley-type="integer" data-parsley-length="[3, 4]" placeholder="#{placeholder}" #{mask} #{maxlength} />
|
705
705
|
</div>
|
706
706
|
EOS
|
@@ -729,12 +729,12 @@ EOS
|
|
729
729
|
required_tag = ""
|
730
730
|
end
|
731
731
|
if label != ""
|
732
|
-
label = "<label>#{label}</label>"
|
732
|
+
label = "<label>#{label}#{required_output}</label>"
|
733
733
|
end
|
734
734
|
|
735
735
|
tb = <<EOS
|
736
736
|
<div class="form-group">
|
737
|
-
#{label}
|
737
|
+
#{label}
|
738
738
|
<input type="email" class="form-control" id="#{id}" name="post[#{name}]" value="#{value}" #{required_tag} data-parsley-type="email" placeholder="#{placeholder}" />
|
739
739
|
</div>
|
740
740
|
EOS
|
@@ -764,12 +764,12 @@ EOS
|
|
764
764
|
required_tag = ""
|
765
765
|
end
|
766
766
|
if label != ""
|
767
|
-
label = "<label>#{label}</label>"
|
767
|
+
label = "<label>#{label}#{required_output}</label>"
|
768
768
|
end
|
769
769
|
|
770
770
|
tb = <<EOS
|
771
771
|
<div class="form-group">
|
772
|
-
#{label}
|
772
|
+
#{label}
|
773
773
|
<input type="url" class="form-control" id="#{id}" name="post[#{name}]" value="#{value}" #{required_tag} data-parsley-type="url" placeholder="#{placeholder}" />
|
774
774
|
</div>
|
775
775
|
EOS
|
@@ -799,11 +799,11 @@ EOS
|
|
799
799
|
required_tag = ""
|
800
800
|
end
|
801
801
|
if label != ""
|
802
|
-
label = "<label>#{label}</label>"
|
802
|
+
label = "<label>#{label}#{required_output}</label>"
|
803
803
|
end
|
804
804
|
tb = <<EOS
|
805
805
|
<div class="form-group">
|
806
|
-
#{label}
|
806
|
+
#{label}
|
807
807
|
<input type="file" class="form-control file #{css}" id="#{id}" name="filename" value="#{value}" #{required_tag} placeholder="#{placeholder}" />
|
808
808
|
</div>
|
809
809
|
EOS
|
@@ -867,12 +867,12 @@ EOS
|
|
867
867
|
required_tag = ""
|
868
868
|
end
|
869
869
|
if label != ""
|
870
|
-
label = "<label for='#{id}' class='control-label'>#{label}</label>"
|
870
|
+
label = "<label for='#{id}' class='control-label'>#{label}#{required_output}</label>"
|
871
871
|
end
|
872
872
|
|
873
873
|
tb = <<EOS
|
874
874
|
<div class="form-group">
|
875
|
-
#{label}
|
875
|
+
#{label}
|
876
876
|
<div class="input-group">
|
877
877
|
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
878
878
|
<input type="text" class="form-control datepicker" id="#{id}" name="post[#{name}]" value="#{value}" #{required_tag} placeholder="#{placeholder}" />
|
@@ -904,12 +904,12 @@ EOS
|
|
904
904
|
required_tag = ""
|
905
905
|
end
|
906
906
|
if label != ""
|
907
|
-
label = "<label for='#{id}' class='control-label'>#{label}</label>"
|
907
|
+
label = "<label for='#{id}' class='control-label'>#{label}#{required_output}</label>"
|
908
908
|
end
|
909
909
|
|
910
910
|
tb = <<EOS
|
911
911
|
<div class="form-group">
|
912
|
-
#{label}
|
912
|
+
#{label}
|
913
913
|
<div class="input-group">
|
914
914
|
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
915
915
|
<input type="text" class="form-control datetimepicker" id="#{id}" name="post[#{name}]" value="#{value}" #{required_tag} placeholder="#{placeholder}" />
|
@@ -941,12 +941,12 @@ EOS
|
|
941
941
|
required_tag = ""
|
942
942
|
end
|
943
943
|
if label != ""
|
944
|
-
label = "<label for='#{id}' class='control-label'>#{label}</label>"
|
944
|
+
label = "<label for='#{id}' class='control-label'>#{label}#{required_output}</label>"
|
945
945
|
end
|
946
946
|
|
947
947
|
tb = <<EOS
|
948
948
|
<div class="form-group">
|
949
|
-
#{label}
|
949
|
+
#{label}
|
950
950
|
<div class="input-group">
|
951
951
|
<span class="input-group-addon"><i class="fa fa fa-clock-o"></i></span>
|
952
952
|
<input type="text" class="form-control timepicker" id="#{id}" name="post[#{name}]" value="#{value}" #{required_tag} placeholder="#{placeholder}" />
|
@@ -979,12 +979,12 @@ EOS
|
|
979
979
|
required_tag = ""
|
980
980
|
end
|
981
981
|
if label != ""
|
982
|
-
label = "<label>#{label}</label>"
|
982
|
+
label = "<label>#{label}#{required_output}</label>"
|
983
983
|
end
|
984
984
|
|
985
985
|
tb = <<EOS
|
986
986
|
<div class="form-group">
|
987
|
-
#{label}
|
987
|
+
#{label}
|
988
988
|
<input type="password" class="form-control" id="#{id}" name="post[#{name}]" value="#{value}" #{required_tag} data-parsley-length="[6, 34]" placeholder="#{placeholder}" />
|
989
989
|
</div>
|
990
990
|
EOS
|
@@ -1044,7 +1044,7 @@ EOS
|
|
1044
1044
|
end
|
1045
1045
|
|
1046
1046
|
if label != ""
|
1047
|
-
label = "<label for='#{id}'>#{label}</label>"
|
1047
|
+
label = "<label for='#{id}'>#{label}#{required_output}</label>"
|
1048
1048
|
end
|
1049
1049
|
|
1050
1050
|
if maxlength != ""
|
@@ -1053,7 +1053,7 @@ EOS
|
|
1053
1053
|
|
1054
1054
|
ta = <<EOS
|
1055
1055
|
<div class="form-group">
|
1056
|
-
#{label}
|
1056
|
+
#{label}
|
1057
1057
|
<textarea name="post[#{name}]" id="#{id}" rows="4" class="form-control" placeholder="#{placeholder}" #{maxlength} #{required_tag}>#{value}</textarea>
|
1058
1058
|
</div>
|
1059
1059
|
EOS
|
@@ -1253,11 +1253,11 @@ EOS
|
|
1253
1253
|
end
|
1254
1254
|
|
1255
1255
|
if label != ""
|
1256
|
-
label = "<label>#{label}</label>"
|
1256
|
+
label = "<label>#{label}#{required_output}</label>"
|
1257
1257
|
end
|
1258
1258
|
tb = <<EOS
|
1259
1259
|
<div class="form-group">
|
1260
|
-
#{label}
|
1260
|
+
#{label}
|
1261
1261
|
<input type="text" class="form-control typeahead #{css}" autocomplete="off" id="#{id}" name="post[#{name}]" value="#{value}" placeholder="#{placeholder}" #{required_tag}/>
|
1262
1262
|
</div>
|
1263
1263
|
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.9.6.6.
|
4
|
+
version: 0.0.9.6.6.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- timmushen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-05-
|
11
|
+
date: 2018-05-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|