simple_form_password_with_hints 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/app/assets/stylesheets/simple_form_password_with_hints.sass +2 -0
- data/lib/simple_form_password_with_hints/password_with_hints_input.rb +3 -1
- data/lib/simple_form_password_with_hints/password_with_sync_input.rb +3 -1
- data/lib/simple_form_password_with_hints/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5aacdfa3a0f99c34974b176267e506ed86722dfff724a3264fcf6d3b9fb03e1
|
4
|
+
data.tar.gz: 6ed8bb691cf776ffa1765305e60c6fc333331438c3207d34efdb88f460ef1ef8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44349627a8469df0a56f72d722bb5d7c09b42d9627b5df48d1b484e4bf99a5b8fb89d9c5de33cb50711203bf4b4daa1c5e7f52700dd51bfa701681b8e7f6a422
|
7
|
+
data.tar.gz: 742cde6b786eb9257f6c884d643d0c1ad1047705bed383519e5a1ee31eeefd48a8eeff0e87757b4540852c83570b06dc4c3a514fa471a79f62a710809c09f922
|
data/Gemfile.lock
CHANGED
@@ -4,7 +4,9 @@ class PasswordWithHintsInput < ::SimpleForm::Inputs::Base
|
|
4
4
|
def input(wrapper_options = nil)
|
5
5
|
merged_input_options = merge_wrapper_options(input_html_options, wrapper_options)
|
6
6
|
merged_input_options[:class] << " js-sfpwh-input js-sfpwh-hints-input "
|
7
|
-
|
7
|
+
input_wrapper_class = 'sfpwh-input-div'
|
8
|
+
input_wrapper_class += ' sfpwh-input-div-invalid' if has_errors?
|
9
|
+
( template.content_tag(:div, '', class: input_wrapper_class) do
|
8
10
|
[
|
9
11
|
@builder.password_field(attribute_name, merged_input_options),
|
10
12
|
password_uncloaking_div
|
@@ -4,13 +4,15 @@ class PasswordWithSyncInput < ::SimpleForm::Inputs::Base
|
|
4
4
|
def input(wrapper_options = nil)
|
5
5
|
merged_input_options = merge_wrapper_options(input_html_options, wrapper_options)
|
6
6
|
merged_input_options[:class] << " js-sfpwh-input js-sfpwh-sync-input "
|
7
|
+
input_wrapper_class = 'sfpwh-input-div'
|
8
|
+
input_wrapper_class += ' sfpwh-input-div-invalid' if has_errors?
|
7
9
|
if options[:compare_with_field]
|
8
10
|
if merged_input_options[:data].nil?
|
9
11
|
merged_input_options[:data] = { link_to: linked_field_name }
|
10
12
|
else
|
11
13
|
merged_input_options[:data][:link_to] = linked_field_name
|
12
14
|
end
|
13
|
-
( template.content_tag(:div, '', class:
|
15
|
+
( template.content_tag(:div, '', class: input_wrapper_class) do
|
14
16
|
[
|
15
17
|
@builder.password_field(attribute_name, merged_input_options) +
|
16
18
|
password_uncloaking_div
|