effective_form_inputs 1.0.2 → 1.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: c7900d6d68d9ad85c83f13437bf38defa3ab74a5
4
- data.tar.gz: 1a420193c6931459879b81257cab65dc7f46725e
3
+ metadata.gz: b8e03c83096e289c129f08bbe6b0e18e8712ccf4
4
+ data.tar.gz: 1ae67409a59ce50bfa9f140f0da9e3f2022e10c9
5
5
  SHA512:
6
- metadata.gz: fb6e75dbcd8068f41950bbd0c37de005860470d4a7e29d2e6266424b68641280ed3aad58374faba20a418558ea5301e5ed0dea17161a6da114895e662e595034
7
- data.tar.gz: ab2d3f112626f0f2a721762b150a620140d95a8a0ad3d415dea61b97d303c9914c23ce10ebfce1957d3ba39a1c841011c8fd993a36628f74707db2bdddfe08dd
6
+ metadata.gz: 7f999ceb043bc3ebe626aec6a2879e298ded20c396f8493d0575704d086c26465e535b6a1e2f53baf176d9a8d71b4089013411165e904ae2d22a4aa0042c9c32
7
+ data.tar.gz: c779f7f7e528a692bf655770903de9cbda70d5430250daefdd83df0c810f25aedb32add51b4f2a7c53b2f87f5eec8a45d9f8c9243a0779ad5d5e7c3a5b47d37c
@@ -4,7 +4,7 @@ module Inputs
4
4
  delegate :content_tag, :text_field_tag, :to => :@template
5
5
 
6
6
  def default_input_js
7
- {:format => 'YYYY-MM-DD'}
7
+ {format: 'YYYY-MM-DD', showTodayButton: true, showClear: true}
8
8
  end
9
9
 
10
10
  def default_input_html
@@ -4,7 +4,7 @@ module Inputs
4
4
  delegate :content_tag, :text_field_tag, :to => :@template
5
5
 
6
6
  def default_input_js
7
- {format: 'YYYY-MM-DD HH:mm', sideBySide: true}
7
+ {format: 'YYYY-MM-DD HH:mm', sideBySide: true, showTodayButton: true, showClear: true}
8
8
  end
9
9
 
10
10
  def default_input_html
@@ -51,7 +51,7 @@ module Inputs
51
51
  end
52
52
 
53
53
  def item_html_options
54
- @item_html_options ||= { class: tag_options[:class] }
54
+ @item_html_options ||= { class: tag_options[:class], name: tag_options[:name] }.delete_if { |k, v| v.blank? }
55
55
  end
56
56
 
57
57
  def html_options
@@ -1,3 +1,3 @@
1
1
  module EffectiveFormInputs
2
- VERSION = '1.0.2'.freeze
2
+ VERSION = '1.0.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_form_inputs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-03 00:00:00.000000000 Z
11
+ date: 2017-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails