<%= form_for(resource, as: resource_name, url: registration_path(resource_name, format: :json), remote: true, html: { method: :put, "data-for" => "email", class: 'settings-page-email', id: 'user-email-field' }) do |f| %>
<%= f.label t("users.registrations.edit.email_label") %>
<%= @user.email %> <%=t "general.edit" %>
<% if devise_mapping.confirmable? && resource.pending_reconfirmation? %> <% end %>

<%=t "users.registrations.edit.email_title" %>

<%= f.label :email, t("users.registrations.edit.new_email_label") %> <%= f.email_field :email, class: "form-control sci-input-field", "data-role" => "edit" %>
<%= f.label :current_password, t("users.registrations.edit.current_password_label") %> <%=t "users.registrations.edit.password_explanation" %> <%= f.password_field :current_password, autocomplete: "off", class: "form-control sci-input-field", "data-role" => "clear", id: 'edit-email-current-password' %>
<%=t "general.cancel" %> <%= f.button t("general.save"), class: "btn btn-success" %>
<% end %>