Skip to content

Commit 0a6e08b

Browse files
committed
Merge pull request activeadmin#1396 from doabit/devise_views_translate
Fix devise views translate
2 parents 8e997ac + 35f1656 commit 0a6e08b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

app/views/active_admin/devise/passwords/edit.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<div id="login">
22
<%= content_tag :h2, t('active_admin.devise.change_password.title') %>
33

4-
<%= active_admin_form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :put }) do |f|
4+
<%= active_admin_form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :put }) do |f|
55
f.inputs do
66
f.input :password
77
f.input :password_confirmation
88
end
99
f.actions do
10-
f.action :submit, :label => t('active_admin.devise.change_password.submit'), :button_html => { :value => "Change my password" }
10+
f.action :submit, :label => t('active_admin.devise.change_password.submit'), :button_html => { :value => t('active_admin.devise.change_password.submit') }
1111
f.input :reset_password_token, :as => :hidden, :value => resource.reset_password_token
1212
end
1313
end %>

app/views/active_admin/devise/passwords/new.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<div id="login">
22
<%= content_tag :h2, t('active_admin.devise.reset_password.title') %>
33

4-
<%= active_admin_form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :post }) do |f|
4+
<%= active_admin_form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :post }) do |f|
55
f.inputs do
66
f.input :email
77
end
88
f.actions do
9-
f.action :submit, :label => t('active_admin.devise.reset_password.submit'), :button_html => { :value => "Reset My Password" }
9+
f.action :submit, :label => t('active_admin.devise.reset_password.submit'), :button_html => { :value => t('active_admin.devise.reset_password.submit') }
1010
end
1111
end %>
1212

app/views/active_admin/devise/sessions/new.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
<h2><%= title "#{active_admin_application.site_title} #{t('active_admin.devise.login.title')}" %></h2>
33

44
<% scope = Devise::Mapping.find_scope!(resource_name) %>
5-
<%= active_admin_form_for(resource, :as => resource_name, :url => send(:"#{scope}_session_path"), :html => { :id => "session_new" }) do |f|
5+
<%= active_admin_form_for(resource, :as => resource_name, :url => send(:"#{scope}_session_path"), :html => { :id => "session_new" }) do |f|
66
f.inputs do
77
resource.class.authentication_keys.each { |key| f.input key, :input_html => {:autofocus => true}}
88
f.input :password
99
f.input :remember_me, :label => t('active_admin.devise.login.remember_me'), :as => :boolean, :if => false #devise_mapping.rememberable? }
1010
end
1111
f.actions do
12-
f.action :submit, :label => t('active_admin.devise.login.submit'), :button_html => { :value => "Login" }
12+
f.action :submit, :label => t('active_admin.devise.login.submit'), :button_html => { :value => t('active_admin.devise.login.submit') }
1313
end
1414
end
1515
%>

0 commit comments

Comments
 (0)