spree-contrib/spree_contact_us

jquery validate tooltip error.

picazoH opened this issue · 3 comments

Hi after playing a bit with the extension I can't find how to fix Validation errors
with jquery.validate and the locale.

I added the message file in sprockets but i don't find the problem, see attached images. Thanks in advance and thank u for the extension.

Spree_Contact_us

Spree in the checkout has different behaviour
Spree_checkout

The contact form should use the same jquery validation as shown for checkout. I'm not sure exactly what is causing it to behave differently for you. Are you completely up to date with the extension? What's your Gemfile & Gemfile.lock show for the extension?

source 'https://rubygems.org'

gem 'rails', '3.2.12'

gem 'mysql2'

-- Gems used only for assets and not required
-- in production environments by default.
group :assets do
gem 'sass-rails', '> 3.2.3'
gem 'coffee-rails', '
> 3.2.1'

-- See https://github.com/sstephenson/execjs#readme for more supported runtimes
-- gem 'therubyracer', :platforms => :ruby

gem 'uglifier', '>= 1.0.3'
end

gem 'jquery-rails' #, '~> 2.1.4'

gem 'spree', :git => 'git://github.com/spree/spree.git', :branch => '1-3-stable'
gem 'spree_auth_devise', :git => 'git://github.com/spree/spree_auth_devise', :branch => '1-3-stable'

#i18n
gem 'rails-i18n', :git => 'git://github.com/svenfuchs/rails-i18n.git'
gem 'spree_i18n', :git => 'git://github.com/spree/spree_i18n.git', :branch => '1-3-stable'

##Spree Static Content
gem 'spree_static_content', :git => 'git://github.com/spree/spree_static_content.git', :branch => '1-3-stable'

#Related Products This extension provides a generic way for you to define different types of relationships
#between your products, by defining a RelationType for each type of relationship you'd like to maintain.
#Se define desde la administración backoffice, Spree::RelationType.create(:name => "Productos Compatibles", :applies_to => "Spree::Product")
gem 'spree_related_products', :git => 'git://github.com/spree/spree_related_products.git', :branch => '1-3-stable'

#SpreeSocialProducts
gem 'spree_social_products', :git => 'git://github.com/spree/spree_social_products.git', :branch => 'master'

#gem "spree_gateway"
gem 'spree_paypal_express', :git => 'git://github.com/spree/spree_paypal_express.git', :branch => '1-3-stable'

#Spree Volume pricing , you have to change then name of the table manually
gem 'spree_volume_pricing', :git => 'git://github.com/spree/spree_volume_pricing', :branch => '1-3-stable'

#Reviews Straightforward review/rating facility
gem 'spree_reviews', :git => 'git://github.com/spree/spree_reviews.git', :branch => '1-3-stable'

1.3 not compatible or not working properly

gem 'spree_contact_us', :git => 'git://github.com/picazoH/spree_contact_us.git', :branch => 'master'

gem 'spree_tbd_customization', :path => 'spree_tbd_customization'

gem 'spree_sermepa', :git => 'git://github.com/picazoH/spree_sermepa.git', :branch => 'master'

GEMFILE.LOCK

GIT
remote: git://github.com/picazoH/spree_contact_us.git
revision: f63d38d
branch: master
specs:
spree_contact_us (1.1.0)
spree_core (~> 1.3.1)

GIT
remote: git://github.com/spree/spree.git
revision: 7839bfa0542f2ba583d12db54fa9c1d6153dd38c
branch: 1-3-stable
specs:
spree (1.3.3.beta)
spree_api (= 1.3.3.beta)
spree_cmd (= 1.3.3.beta)
spree_core (= 1.3.3.beta)
spree_dash (= 1.3.3.beta)
spree_promo (= 1.3.3.beta)
spree_sample (= 1.3.3.beta)
spree_api (1.3.3.beta)
spree_core (= 1.3.3.beta)
versioncake (= 0.4.0)
spree_cmd (1.3.3.beta)
thor (>= 0.14.6)
spree_core (1.3.3.beta)
activemerchant (> 1.29.3)
acts_as_list (= 0.1.4)
awesome_nested_set (= 2.1.5)
aws-sdk (
> 1.3.4)
cancan (= 1.6.8)
deface (>= 0.9.0)
ffaker (> 1.12.0)
highline (= 1.6.11)
jquery-rails (
> 2.2.0)
kaminari (= 0.13.0)
money (= 5.0.0)
paperclip (> 2.8)
rabl (= 0.7.2)
rails (
> 3.2.12)
ransack (= 0.7.2)
select2-rails (> 3.2)
state_machine (= 1.1.2)
stringex (
> 1.3.2)
truncate_html (> 0.5.5)
spree_dash (1.3.3.beta)
httparty (
> 0.8.1)
spree_core (= 1.3.3.beta)
spree_promo (1.3.3.beta)
spree_core (= 1.3.3.beta)
spree_sample (1.3.3.beta)
spree_core (= 1.3.3.beta)

GIT
remote: git://github.com/spree/spree_auth_devise
revision: ab03a7a22740b52f96bf0311a1e9f18a99ee02f2
branch: 1-3-stable
specs:
spree_auth_devise (1.0.0)
cancan (> 1.6.7)
devise (
> 2.2.3)
devise-encryptable (= 0.1.1)
spree_core

GIT
remote: git://github.com/spree/spree_i18n.git
revision: 3c82a617a284f13713eff2d635c862793c86ed42
branch: 1-3-stable
specs:
spree_i18n (1.0.0)
i18n (~> 0.5)
rails-i18n
spree_core (>= 1.1)

GIT
remote: git://github.com/spree/spree_paypal_express.git
revision: d4fb0a0aa901e4dc3b9875c5ee7ae88f5a0c2f53
branch: 1-3-stable
specs:
spree_paypal_express (1.2.0)
spree_core (~> 1.3.0)

GIT
remote: git://github.com/spree/spree_related_products.git
revision: 5def88e237577d452fac3d763af7a415e34b3d0c
branch: 1-3-stable
specs:
spree_related_products (3.2)
spree_core (> 1.3.0)
spree_promo (
> 1.3.0)

GIT
remote: git://github.com/spree/spree_reviews.git
revision: 0f21aa1282eb55aabee93891bac7652198c9575f
branch: 1-3-stable
specs:
spree_reviews (1.0.0)
spree_core (~> 1.3)

GIT
remote: git://github.com/spree/spree_social_products.git
revision: 637bb6905bcebe5ce3799f5f9f8fe4af888de40c
branch: master
specs:
spree_social_products (1.2)
spree_core (~> 1.2)

GIT
remote: git://github.com/spree/spree_static_content.git
revision: 4d58cbb8729278cfe84c38adac9cc153959d5a62
branch: 1-3-stable
specs:
spree_static_content (1.1.0.beta)
spree_core (~> 1.3.0)

GIT
remote: git://github.com/spree/spree_volume_pricing
revision: 471908c9c8bffaa5ebc05ad7c968daa6b6591591
branch: 1-3-stable
specs:
spree_volume_pricing (3.3.0)
spree_core (~> 1.1)

GIT
remote: git://github.com/svenfuchs/rails-i18n.git
revision: ae191ee3dbd6a63a5bb33523f179f12c275f76d9
specs:
rails-i18n (0.7.2)
i18n (~> 0.5)

PATH
remote: ../spree_sermepa
specs:
spree_sermepa (1.2.3)
active_merchant_sermepa (>= 0.1.1)
spree_core (~> 1.3.2.beta)

PATH
remote: spree_tbd_customization
specs:
spree_tbd_customization (1.2.3.beta)

GEM
remote: https://rubygems.org/
specs:
actionmailer (3.2.12)
actionpack (= 3.2.12)
mail (> 2.4.4)
actionpack (3.2.12)
activemodel (= 3.2.12)
activesupport (= 3.2.12)
builder (
> 3.0.0)
erubis (> 2.7.0)
journey (
> 1.0.4)
rack (> 1.4.5)
rack-cache (
> 1.2)
rack-test (> 0.6.1)
sprockets (
> 2.2.1)
active_merchant_sermepa (0.1.1)
activemerchant (>= 1.9.4)
active_utils (1.0.5)
activesupport (>= 2.3.11)
i18n
activemerchant (1.29.3)
active_utils (>= 1.0.2)
activesupport (>= 2.3.14)
builder (>= 2.0.0)
i18n
json (>= 1.5.1)
money
nokogiri
activemodel (3.2.12)
activesupport (= 3.2.12)
builder (> 3.0.0)
activerecord (3.2.12)
activemodel (= 3.2.12)
activesupport (= 3.2.12)
arel (
> 3.0.2)
tzinfo (> 0.3.29)
activeresource (3.2.12)
activemodel (= 3.2.12)
activesupport (= 3.2.12)
activesupport (3.2.12)
i18n (
> 0.6)
multi_json (> 1.0)
acts_as_list (0.1.4)
arel (3.0.2)
awesome_nested_set (2.1.5)
activerecord (>= 3.0.0)
aws-sdk (1.3.9)
httparty (
> 0.7)
json (> 1.4)
nokogiri (>= 1.4.4)
uuidtools (
> 2.1)
bcrypt-ruby (3.0.1)
builder (3.0.4)
cancan (1.6.8)
climate_control (0.0.3)
activesupport (>= 3.0)
cocaine (0.5.1)
climate_control (>= 0.0.3, < 1.0)
coffee-rails (3.2.2)
coffee-script (>= 2.2.0)
railties (> 3.2.0)
coffee-script (2.2.0)
coffee-script-source
execjs
coffee-script-source (1.4.0)
deface (0.9.1)
nokogiri (
> 1.5.0)
rails (> 3.1)
devise (2.2.3)
bcrypt-ruby (
> 3.0)
orm_adapter (> 0.1)
railties (
> 3.1)
warden (> 1.2.1)
devise-encryptable (0.1.1)
devise (>= 2.1.0.rc)
erubis (2.7.0)
execjs (1.4.0)
multi_json (
> 1.0)
ffaker (1.12.1)
highline (1.6.11)
hike (1.2.1)
httparty (0.8.3)
multi_json (> 1.0)
multi_xml
i18n (0.6.1)
journey (1.0.4)
jquery-rails (2.2.1)
railties (>= 3.0, < 5.0)
thor (>= 0.14, < 2.0)
json (1.7.7)
kaminari (0.13.0)
actionpack (>= 3.0.0)
activesupport (>= 3.0.0)
railties (>= 3.0.0)
mail (2.4.4)
i18n (>= 0.4.0)
mime-types (
> 1.16)
treetop (> 1.4.8)
mime-types (1.21)
money (5.0.0)
i18n (
> 0.4)
json
multi_json (1.6.1)
multi_xml (0.5.3)
mysql2 (0.3.11)
nokogiri (1.5.6)
orm_adapter (0.4.0)
paperclip (2.8.0)
activerecord (>= 2.3.0)
activesupport (>= 2.3.2)
cocaine (>= 0.0.2)
mime-types
polyamorous (0.5.0)
activerecord (> 3.0)
polyglot (0.3.3)
rabl (0.7.2)
activesupport (>= 2.3.14)
multi_json (
> 1.0)
rack (1.4.5)
rack-cache (1.2)
rack (>= 0.4)
rack-ssl (1.3.3)
rack
rack-test (0.6.2)
rack (>= 1.0)
rails (3.2.12)
actionmailer (= 3.2.12)
actionpack (= 3.2.12)
activerecord (= 3.2.12)
activeresource (= 3.2.12)
activesupport (= 3.2.12)
bundler (> 1.0)
railties (= 3.2.12)
railties (3.2.12)
actionpack (= 3.2.12)
activesupport (= 3.2.12)
rack-ssl (
> 1.3.2)
rake (>= 0.8.7)
rdoc (> 3.4)
thor (>= 0.14.6, < 2.0)
rake (10.0.3)
ransack (0.7.2)
actionpack (
> 3.0)
activerecord (> 3.0)
polyamorous (
> 0.5.0)
rdoc (3.12.1)
json (> 1.4)
sass (3.2.5)
sass-rails (3.2.6)
railties (
> 3.2.0)
sass (>= 3.1.10)
tilt (> 1.3)
select2-rails (3.2.1)
thor (
> 0.14)
sprockets (2.2.2)
hike (> 1.2)
multi_json (
> 1.0)
rack (> 1.0)
tilt (
> 1.1, != 1.3.0)
state_machine (1.1.2)
stringex (1.3.3)
thor (0.17.0)
tilt (1.3.3)
treetop (1.4.12)
polyglot
polyglot (>= 0.3.1)
truncate_html (0.5.5)
tzinfo (0.3.35)
uglifier (1.3.0)
execjs (>= 0.3.0)
multi_json (~> 1.0, >= 1.0.2)
uuidtools (2.1.3)
versioncake (0.4.0)
actionpack (>= 3.0)
activesupport (>= 3.0)
railties (>= 3.0)
warden (1.2.1)
rack (>= 1.0)

PLATFORMS
ruby

DEPENDENCIES
coffee-rails (> 3.2.1)
jquery-rails
mysql2
rails (= 3.2.12)
rails-i18n!
sass-rails (
> 3.2.3)
spree!
spree_auth_devise!
spree_contact_us!
spree_i18n!
spree_paypal_express!
spree_related_products!
spree_reviews!
spree_sermepa!
spree_social_products!
spree_static_content!
spree_tbd_customization!
spree_volume_pricing!
uglifier (>= 1.0.3)

This was actually caused by your browser as it is a new html5 standard to validate certain inputs. Since we are using jquery.validate I've gone ahead and set the novalidate attribute on the form to prevent this issue as suggested in http://stackoverflow.com/questions/3090369/disable-validation-of-html5-form-elements