effective_form_inputs 0.6.1 → 0.6.2
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/app/models/inputs/effective_tel/input.rb +3 -3
- data/lib/effective_form_inputs/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1427216fa5d8b8644610448626b6516ef3032cc
|
4
|
+
data.tar.gz: 6b3d905b747e633efc2f2845bd89780fdb52a85c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37230c84b459df6757d427de23b41f2483907354330c195a6d77f9b22e9816f1108c4a339e544c7e9bbced401ac90b0085c7fa05b682c38c815ba3d50d3e1cee
|
7
|
+
data.tar.gz: f1cfaceaa7fcbac7a2e92d1bf032c10c093416594fc98d6290ea00e7d21a96294019bb28feb16f1c388b5c29084fece9d44477b893883de415dad37b4278552f
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Inputs
|
2
2
|
module EffectiveTel
|
3
3
|
class Input < Effective::FormInput
|
4
|
-
delegate :content_tag, :
|
4
|
+
delegate :content_tag, :telephone_field_tag, :to => :@template
|
5
5
|
|
6
6
|
DEFAULT_TEL_MASK = '(999) 999-9999? x99999'
|
7
7
|
DEFAULT_CELL_MASK = '(999) 999-9999'
|
@@ -20,14 +20,14 @@ module Inputs
|
|
20
20
|
|
21
21
|
def to_html
|
22
22
|
if options[:input_group] == false
|
23
|
-
return
|
23
|
+
return telephone_field_tag(field_name, value, tag_options)
|
24
24
|
end
|
25
25
|
|
26
26
|
content_tag(:div, class: 'input-group') do
|
27
27
|
content_tag(:span, class: 'input-group-addon') do
|
28
28
|
content_tag(:i, '', class: "glyphicon glyphicon-#{glyphicon}").html_safe
|
29
29
|
end +
|
30
|
-
|
30
|
+
telephone_field_tag(field_name, value, tag_options)
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|