app/views/active_admin/devise/passwords/edit.html.erb in activeadmin-0.4.4 vs app/views/active_admin/devise/passwords/edit.html.erb in activeadmin-0.5.0.pre
- old
+ new
@@ -1,16 +1,19 @@
-<h2>Change your password</h2>
+<div id="login">
+ <%= content_tag :h2, t('active_admin.devise.change_password.title') %>
-<%= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :put }) do |f| %>
- <%= devise_error_messages! %>
- <%= f.hidden_field :reset_password_token %>
+ <%= active_admin_form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :put }) do |f| %>
+ <%= devise_error_messages! %>
+ <%
+ f.inputs do
+ f.input :password
+ f.input :password_confirmation
+ end %>
+ <%=
+ f.actions do
+ f.action :submit, :label => t('active_admin.devise.change_password.submit'), :button_html => { :value => t('active_admin.devise.change_password.submit') }
+ f.input :reset_password_token, :as => :hidden, :input_html => { :value => resource.reset_password_token }
+ end %>
+ <% end %>
- <p><%= f.label :password %><br />
- <%= f.password_field :password %></p>
-
- <p><%= f.label :password_confirmation %><br />
- <%= f.password_field :password_confirmation %></p>
-
- <p><%= f.submit "Change my password" %></p>
-<% end %>
-
-<%= render :partial => "active_admin/devise/shared/links" %>
+ <%= render 'active_admin/devise/shared/links' %>
+</div>
\ No newline at end of file