<h1>Edit <%= resource_name.to_s.humanize %></h1>

<%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %>
  <div><%= f.label :name, class: 'required' %><br />
  <%= f.text_field :name, autofocus: true, placeholder: 'This will be used in your commits' %></div>

  <div><%= f.label :email, class: 'required' %><br />
  <%= f.email_field :email, autofocus: true %></div>

  <% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
    <div>Currently waiting confirmation for: <%= resource.unconfirmed_email %></div>
  <% end %>

  <div><%= f.label :password %> <i>(leave blank if you don't want to change it)</i><br />
    <%= f.password_field :password, autocomplete: "off" %></div>

  <div><%= f.label :password_confirmation %><br />
    <%= f.password_field :password_confirmation, autocomplete: "off" %></div>

  <div><%= f.label :current_password %> <i>(we need your current password to confirm your changes)</i><br />
    <%= f.password_field :current_password, autocomplete: "off" %></div>

  <div><%= f.submit "Update" %></div>
<% end %>

<%= print_errors :user %>

<h1>Edit <%= resource_name.to_s.humanize %></h1>

<%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %>
  <div><%= f.label(:name, class: 'required') %><br>
  <%= f.text_field(:name, autofocus: true, placeholder: 'This will be used in your commits') %></div>

  <div><%= f.label(:email, class: 'required') %><br>
  <%= f.email_field(:email, autofocus: true) %></div>

  <% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
    <div>Currently waiting confirmation for: <%= resource.unconfirmed_email %></div>
  <% end %>

  <div><%= f.label(:password) %> <i>(leave blank if you don't want to change it)</i><br>
    <%= f.password_field :password, autocomplete: "off" %></div>

  <div><%= f.label(:password_confirmation) %><br>
    <%= f.password_field :password_confirmation, autocomplete: 'off' %></div>

  <div><%= f.label(:current_password) %> <i>(we need your current password to confirm your changes)</i><br>
    <%= f.password_field(:current_password, autocomplete: 'off') %></div>

  <div><%= f.submit "Update" %></div>
<% end %>

<%= print_errors :user %>

Fix code style on devise template.
Fix code style on devise template.
