clearer login field name

This commit is contained in:
wvengen 2013-10-30 21:28:35 +01:00
parent c37ed74942
commit f7a0103553
5 changed files with 4 additions and 10 deletions

View file

@ -12,12 +12,14 @@
= form_tag sessions_path, class: 'form-horizontal' do = form_tag sessions_path, class: 'form-horizontal' do
.control-group .control-group
%label(for='nick' class='control-label')= t '.user' %label(for='nick' class='control-label')
= User.human_attribute_name (FoodsoftConfig[:use_nick] ? :user : :email)
.controls .controls
= text_field_tag 'nick', nil, autocapitalize: 'off', autocorrect: 'off' = text_field_tag 'nick', nil, autocapitalize: 'off', autocorrect: 'off'
.control-group .control-group
%label(for='password' class='control-label')= t '.password' %label(for='password' class='control-label')
= User.human_attribute_name :password
.controls .controls
= password_field_tag 'password', nil, autocapitalize: 'off', autocorrect: 'off' = password_field_tag 'password', nil, autocapitalize: 'off', autocorrect: 'off'

View file

@ -1333,9 +1333,7 @@ de:
login: Anmelden login: Anmelden
nojs: Achtung, Cookies und Javascript müssen aktiviert sein! %{link} bitte abschalten. nojs: Achtung, Cookies und Javascript müssen aktiviert sein! %{link} bitte abschalten.
noscript: NoScript noscript: NoScript
password: Passwort
title: Foodsoft anmelden title: Foodsoft anmelden
user: Benutzerin
shared: shared:
articles: articles:
ordered: Bestellt ordered: Bestellt

View file

@ -1338,9 +1338,7 @@ en:
login: Login login: Login
nojs: Attention, cookies and javascript have to be activated! Please switch off %{link}. nojs: Attention, cookies and javascript have to be activated! Please switch off %{link}.
noscript: NoScript noscript: NoScript
password: Password
title: Foodsoft login title: Foodsoft login
user: User
shared: shared:
articles: articles:
ordered: Ordered ordered: Ordered

View file

@ -1340,9 +1340,7 @@ fr:
login: Te connecter login: Te connecter
nojs: Attention, les cookies et le javascript doivent être activés! Merci de désactiver %{link}. nojs: Attention, les cookies et le javascript doivent être activés! Merci de désactiver %{link}.
noscript: NoScript noscript: NoScript
password: Mot de passe
title: Te connecter à Foodsoft title: Te connecter à Foodsoft
user: Identifiant
shared: shared:
articles: articles:
ordered: Commandé ordered: Commandé

View file

@ -1267,9 +1267,7 @@ nl:
login: Aanmelden login: Aanmelden
nojs: Opgelet, cookies en javascript moeten toegelaten worden! %{link} uitzetten, alsjeblieft. nojs: Opgelet, cookies en javascript moeten toegelaten worden! %{link} uitzetten, alsjeblieft.
noscript: NoScript noscript: NoScript
password: Wachtwoord
title: Foodsoft aanmelden title: Foodsoft aanmelden
user: Gebruiker
shared: shared:
articles: articles:
ordered: Besteld ordered: Besteld