Fixed locale not found contact form

This commit is contained in:
Godwin
2016-07-19 19:16:15 -07:00
parent 32a0f02db2
commit 553e412685
3 changed files with 17 additions and 8 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
- contact_reason ||= nil
= form_tag contact_send_path, class: 'contact-form' do
- locale ||= nil
= form_tag (locale.present? ? contact_send_url : url_for_locale(locale, contact_send_url)), class: 'contact-form' do
= emailfield :email, nil, big: true, required: true unless logged_in?
- if contact_reason.present?
= hidden_field_tag :reason, contact_reason
@@ -10,4 +10,4 @@
=_'translate.content.change_locale', "Read in #{locale_translation}", vars: {language: locale_translation}, locale: locale
%h2= _'error.locale_not_available.volunteer.title'
%p= _'error.locale_not_available.volunteer.description'
= render 'contact', cancel_btn: false, contact_reason: :website
= render 'contact', cancel_btn: false, contact_reason: :website, locale: :en