<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put, :class => "form-inline" }) do |f| %> <%= devise_error_messages! %>
<%= f.label :name, class: 'control-label' %>
<%= f.text_field :name, :autofocus => true, class: 'text-field form-control' %>

<%= t('.your_full_name')%>

<%= f.label :email, class: 'control-label' %>
<%= f.email_field :email, class: 'text-field form-control' %> <%- if devise_mapping.confirmable? && resource.pending_reconfirmation? -%>

<%= t('.currently_waiting_confirmation_for_email', :email => resource.unconfirmed_email, :default => "Currently waiting confirmation for: %{email}") %>

<%- end -%>

<%= t('.your_email_is_our_communication_channel')%>

<% if current_user && current_user.provider.nil? %>
<%= f.label :password, class: 'control-label' %> (<%= t('.leave_blank_if_you_don_t_want_to_change_it', :default => "leave blank if you don't want to change it") %>)
<%= f.password_field :password, :autocomplete => "off", class: 'text-field form-control' %>

<%= t('.password_instructions')%>

<%= f.label :password_confirmation, class: 'control-label' %>
<%= f.password_field :password_confirmation, class: 'text-field form-control' %>

<%= t('.confirm_your_password')%>

<%= f.label :current_password, class: 'control-label' %> (<%= t('.we_need_your_current_password_to_confirm_your_changes', :default => 'we need your current password to confirm your changes') %>)
<%= f.password_field :current_password, class: 'text-field form-control' %>

<%= t('.current_password_required')%>

<% end %>
<%= f.submit t('.update', :default => "Update"), class: 'btn btn-primary col-md-2' %>
<% end %>

<%= t('.cancel_my_account', :default => 'Cancel my account') %>

<%= t('.unhappy', :default => 'Unhappy') %>? <%= link_to t('.cancel_my_account', :default => "Cancel my account"), registration_path(resource_name), :data => { :confirm => t('.are_you_sure', :default => "Are you sure?") }, :method => :delete, class: 'btn btn-warning' %>.

<%= link_to t('devise.shared.links.back', :default => "Back"), :back, class: 'btn btn-default' %>