kono_utils_bootstrap_view4 0.1.0 → 0.1.1

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
  SHA256:
3
- metadata.gz: 7e54f4cbc61c0d98ae9d1b58fbf27d17a96b739d3f63d481281aadee542936be
4
- data.tar.gz: df5d2ffcefd20dc75bd3a6dba4b148cb79c872c2ace672057f7f917fdfd670b2
3
+ metadata.gz: a0869fde7cdac3f227c974d670959740352a6ce8244bff8ec08439264268470f
4
+ data.tar.gz: 75ed284392e77c09b2ef9033f9f7201c176b88f95c68084c7c896b8c3a74d31b
5
5
  SHA512:
6
- metadata.gz: a8095d99d28f25bb6fdcf700ae217f922c066498b6f4b96bed7da48d17dcf5be23b85baf799357978aadd5cd30016c7aea5458f6d339ccb7b1e8e7c1bbe92cba
7
- data.tar.gz: 41c9f248d01a5313b7739aaec6f2d6ad7f34a3c42c86911dd60e41a392aed0702e99a53acf06cda674265edbdff0c2edb5709c16416b18ab3b0066226f5a5d4a
6
+ metadata.gz: def54fb4f71d919cde8adf72494d258878db8e78c5999a89a40420e14642ccf04bdb7ee40a1fba1300beb8738e8b6ca8132f7b7ad7e861eb2118ac530403ec3e
7
+ data.tar.gz: 5d92329145a3b55e5eadd638ac64f346a51c27f6143b39543870e868b011561bb1e86cf40b423172aefb5df31aa72c7222bffa0b9f205ea0877f8e999ec0c3b4
@@ -8,7 +8,7 @@ module KonoUtils
8
8
 
9
9
  def show(&block)
10
10
 
11
- bf = bf = ActiveSupport::SafeBuffer.new
11
+ bf = ActiveSupport::SafeBuffer.new
12
12
  bf << form.input(attribute_name, field_options)
13
13
 
14
14
  bf << content_tag(:script, :type => "text/javascript") do
@@ -1,11 +1,11 @@
1
1
  class TempusDominusInput < SimpleForm::Inputs::Base
2
2
  def input(wrapper_options)
3
3
 
4
- template.content_tag(:div, class: 'input-group date', data: {target_input: 'nearest'}, id: options[:date_time_picker_identifier]) do
4
+ template.content_tag(:div, class: "input-group date #{ has_errors? ? 'is-invalid' : ''}", data: { target_input: 'nearest'}, id: options[:date_time_picker_identifier]) do
5
5
 
6
6
  tmp = ActiveSupport::SafeBuffer.new
7
-
8
- tmp << @builder.text_field(attribute_name, input_html_options)
7
+ merged_input_options = merge_wrapper_options(input_html_options, wrapper_options)
8
+ tmp << @builder.text_field(attribute_name, merged_input_options)
9
9
  tmp << div_button
10
10
 
11
11
  tmp
@@ -1,3 +1,3 @@
1
1
  module KonoUtilsBootstrapView4
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kono_utils_bootstrap_view4
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marino Bonetti
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-10 00:00:00.000000000 Z
11
+ date: 2021-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails