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 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
+4 -1
View File
@@ -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
+2
View File
@@ -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!
+2
View File
@@ -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!
+2
View File
@@ -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!