<%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |form| %>
<%= render "devise/shared/error_messages", resource: resource %>
<%= form.label :firstname, "First Name" %>
<%= form.text_field :firstname, class: "form-control", placeholder: "First Name" %>
<%= form.label :lastname, "Last Name" %>
<%= form.text_field :lastname, class: "form-control", placeholder: "Last Name" %>
<%= form.label :username, "User Name" %>
<%= form.text_field :username, class: "form-control", placeholder: "User Name" %>
<%= form.label :email %>
<%= form.email_field :email, class: "form-control", placeholder: "Email Address", autofocus: true %>
<% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
Currently waiting confirmation for: <%= resource.unconfirmed_email %>
<% end %>
<%= form.label :password, "New Password" %> (leave blank if you don"t want to change it)
<%= form.password_field :password, class: "form-control", placeholder: "New Password", autocomplete: "off" %>
<%= form.password_field :password_confirmation, class: "form-control", placeholder: "Confirm New Password", autocomplete: "off" %>
<% if @minimum_password_length %>
Password (minimum <%= @minimum_password_length %> characters.)
<% end %>
<%= form.label :current_password %> (we need your current password to confirm your changes)
<%= form.password_field :current_password, class: "form-control", placeholder: "Password" , autocomplete: "off" %>
<%= form.submit "Update", class: "btn btn-w-m btn-primary" %>
<% end %>