make form accessible

This commit is contained in:
2017-02-26 18:18:37 +01:00
parent ca9ab667a8
commit b56fc79f81
5 changed files with 11 additions and 2 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ class SupportersController < ApplicationController
mailchimp_registration
redirect_to thanks_path
else
flash.now[:danger] = t '.timeout' if input_to_fast?
flash.now[:danger] = input_to_fast? ? t('.timeout') : t('input_error')
render :new
end
end
+4 -1
View File
@@ -1,6 +1,9 @@
html lang="#{I18n.locale}"
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
= javascript_include_tag 'application', 'data-turbolinks-track' => true
= csrf_meta_tags
+2
View File
@@ -1,4 +1,6 @@
de:
input_error: Deine Eingaben konnte nicht gespeichert werden. Überprüfe deine Eingaben.
welcome_email:
subject: Besten Dank für deine Unterstützung!
+2
View File
@@ -1,4 +1,6 @@
fr:
input_error: Vos entrées ne peuvent pas être enregistrées. Vérifiez les entrées.
welcome_email:
subject: Merci beaucoup pour ton soutien!
+2
View File
@@ -1,4 +1,6 @@
it:
input_error: I dati immessi non potevano essere salvati. Verificare i dati immessi.
welcome_email:
subject: Grazie mille per il tuo sostegno!