cama_contact_form 0.0.16 → 0.0.17
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77fcf526dc5134b44e56bc49b2a3056fff29fbd2
|
4
|
+
data.tar.gz: c8c288dda9748f6a9741a4e996e2f902f732c531
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cdcfe4f89961cb549ff25351236a47884d0b740cb6e12c5518f049b964cd29fb1d4220e7dd5e1d269b5153875247611e4f89c7bca0954a39f5cec25dbfb8c143
|
7
|
+
data.tar.gz: fb3a960d7168120aa5daeae40c9752b6775e045617a8963bd84c986a91ac44f2c008f706a0b013afe897b3319b08993ab4eb4847a6456fb82e8be2f22bc91f3d
|
@@ -41,18 +41,18 @@ module Plugins::CamaContactForm::ContactFormControllerConcern
|
|
41
41
|
case f[:field_type].to_s
|
42
42
|
when 'text', 'website', 'paragraph', 'textarea', 'email', 'radio', 'checkboxes', 'dropdown', 'file'
|
43
43
|
if f[:required].to_s.cama_true? && !fields[cid].present?
|
44
|
-
errors << "#{label}: #{form.the_message('invalid_required', t('.error_validation_val', default: 'This value is required'))}"
|
44
|
+
errors << "#{label.to_s.translate}: #{form.the_message('invalid_required', t('.error_validation_val', default: 'This value is required'))}"
|
45
45
|
validate = false
|
46
46
|
end
|
47
47
|
if f[:field_type].to_s == "email"
|
48
48
|
if !fields[cid].match(/@/)
|
49
|
-
errors << "#{label}: #{form.the_message('invalid_email', t('.email_invalid_val', default: 'The e-mail address appears invalid'))}"
|
49
|
+
errors << "#{label.to_s.translate}: #{form.the_message('invalid_email', t('.email_invalid_val', default: 'The e-mail address appears invalid'))}"
|
50
50
|
validate = false
|
51
51
|
end
|
52
52
|
end
|
53
53
|
when 'captcha'
|
54
54
|
unless cama_captcha_verified?
|
55
|
-
errors << "#{label}: #{form.the_message('captcha_not_match', t('.captch_error_val', default: 'The entered code is incorrect'))}"
|
55
|
+
errors << "#{label.to_s.translate}: #{form.the_message('captcha_not_match', t('.captch_error_val', default: 'The entered code is incorrect'))}"
|
56
56
|
validate = false
|
57
57
|
end
|
58
58
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cama_contact_form
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Owen Peredo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-11-
|
11
|
+
date: 2016-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|