platformx 0.0.8.9 → 0.0.8.9.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b08fcc1ee6d0d62b6721b0e8876139255a0803c5
4
- data.tar.gz: 67ffce324e4c8bdcacb277b663650da5730fe2ae
3
+ metadata.gz: 7cdeef5c0a22c1c61adac6af440154ab128cefaf
4
+ data.tar.gz: 3178c76d7cfd7b5d8a4d45c381927c708ec36e44
5
5
  SHA512:
6
- metadata.gz: 69c7b607d77bc1e587750ee39318de63fd9390a863e82a18333cd5820bd729fa9756da64aac76cdb4722c17cdc319238055004b66a051956c0f9a473b2245091
7
- data.tar.gz: f26f72821fa5872c8203ad8b3bfce9961f1f44d2b2e95e05b7656b2b33dbc2092dc340d0a8abfa828bed305ffb87d287cc573aa6c05dd548d9c65a4d1dc7c4a3
6
+ metadata.gz: f1d4f376f8f0e36b5c3aaa04ce0e9e7ca4b1a89f056a48b2cbe57947347d2ac8a8940be309d4d3b6bf5d79cec47251f2149a2d1b0d189d8ae4ae1111f4a55359
7
+ data.tar.gz: be6f58376d81b2323d3ef0df0664521b20183f64357e6f9e2447f46c5faa8f2098881af45e0520b1af32b326eb324ddd0bf2271b6c785001a739518efe867987
@@ -402,7 +402,7 @@ EOS
402
402
  # @param mask [String] phone input mask
403
403
  # @param maxlength [String] nuber input max length
404
404
  # @return [String] compiled html of phone input
405
- def x_phone(id: "", name: "", value: "", label: "", required: false, placeholder: "", mask: "(999) 999-9999? x99999", maxlength: "12")
405
+ def x_phone(id: "", name: "", value: "", label: "", required: false, placeholder: "", mask: "(999) 999-9999 x99999", maxlength: "12")
406
406
 
407
407
  if required
408
408
  if label != ""
@@ -1315,10 +1315,11 @@ EOS
1315
1315
  # @param title [String] title of the select
1316
1316
  # @param multple [Boolean] if multiple selection is enabled
1317
1317
  # @return [String] compiled select drop down
1318
- def x_select(id: "", name: "", value: "",name_col: "name", value_col: "id", label: "", css: "selectpicker", menu_style: "dropdown-blue", style: "btn-default btn-block", option_data: "", option_name: "name", option_value: "id", selected_value: "", title: "", multiple: false)
1318
+ def x_select(id: "", name: "", value: "",name_col: "name", value_col: "id", label: "", css: "selectpicker", menu_style: "dropdown-blue", style: "btn-default btn-block", option_data: "", option_name: "name", option_value: "id", selected_value: "", title: "", multiple: false, add_none: false)
1319
1319
 
1320
1320
  options_html = ""
1321
1321
  show_multiple = ""
1322
+ add_none_option = ""
1322
1323
 
1323
1324
  if multiple == true
1324
1325
  show_multiple = "Multiple"
@@ -1353,11 +1354,15 @@ EOS
1353
1354
  options_html << "<option value=''>No available selections</option>"
1354
1355
  end
1355
1356
 
1357
+ if add_none == true
1358
+ add_none_option = "<option value=''>None</option>"
1359
+ end
1356
1360
 
1357
1361
  select = <<EOS
1358
1362
  <div class="form-group">
1359
1363
  <label>#{label}</label>
1360
1364
  <select id="#{id}" name="post[#{name}]#{multiple_name}" class="#{css}" data-title="#{title}" title="#{title}" data-style="#{style}" data-menu-style="#{menu_style}" #{show_multiple}">
1365
+ #{add_none_option}
1361
1366
  #{options_html}
1362
1367
  </select>
1363
1368
  </div>
@@ -1,3 +1,3 @@
1
1
  module Platformx
2
- VERSION = "0.0.8.9"
2
+ VERSION = "0.0.8.9.1"
3
3
  end
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
4
+ version: 0.0.8.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - timmushen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-10 00:00:00.000000000 Z
11
+ date: 2017-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler