make form accessible
This commit is contained in:
@@ -12,7 +12,7 @@ class SupportersController < ApplicationController
|
|||||||
mailchimp_registration
|
mailchimp_registration
|
||||||
redirect_to thanks_path
|
redirect_to thanks_path
|
||||||
else
|
else
|
||||||
flash.now[:danger] = t '.timeout' if input_to_fast?
|
flash.now[:danger] = input_to_fast? ? t('.timeout') : t('input_error')
|
||||||
render :new
|
render :new
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
html lang="#{I18n.locale}"
|
html lang="#{I18n.locale}"
|
||||||
head
|
head
|
||||||
title #CH420 - #{content_for(:title)}
|
title
|
||||||
|
- flash.each do |type, message|
|
||||||
|
= message
|
||||||
|
| #CH420 - #{content_for(:title)}
|
||||||
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true
|
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true
|
||||||
= javascript_include_tag 'application', 'data-turbolinks-track' => true
|
= javascript_include_tag 'application', 'data-turbolinks-track' => true
|
||||||
= csrf_meta_tags
|
= csrf_meta_tags
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
de:
|
de:
|
||||||
|
input_error: Deine Eingaben konnte nicht gespeichert werden. Überprüfe deine Eingaben.
|
||||||
|
|
||||||
welcome_email:
|
welcome_email:
|
||||||
subject: Besten Dank für deine Unterstützung!
|
subject: Besten Dank für deine Unterstützung!
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
fr:
|
fr:
|
||||||
|
input_error: Vos entrées ne peuvent pas être enregistrées. Vérifiez les entrées.
|
||||||
|
|
||||||
welcome_email:
|
welcome_email:
|
||||||
subject: Merci beaucoup pour ton soutien!
|
subject: Merci beaucoup pour ton soutien!
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
it:
|
it:
|
||||||
|
input_error: I dati immessi non potevano essere salvati. Verificare i dati immessi.
|
||||||
|
|
||||||
welcome_email:
|
welcome_email:
|
||||||
subject: Grazie mille per il tuo sostegno!
|
subject: Grazie mille per il tuo sostegno!
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user