make form accessible
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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!
|
||||
|
||||
|
||||
@@ -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!
|
||||
|
||||
|
||||
@@ -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!
|
||||
|
||||
|
||||
Reference in New Issue
Block a user