<%= bootstrap_form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %>

<%= t 'registration.edit_profile'%>

<%= f.alert_message "Please fix the errors below."%> <% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>

Currently waiting confirmation for: <%= resource.unconfirmed_email %>

<% end %>
<%= image_tag @user.avatar.to_s if @user.avatar? %>

<%= f.file_field :avatar, class: 'hidden', label: (t 'blog.select_image') %>
<%= f.text_field :first_name, label: (t 'registration.first_name'), required: true, autofocus: true, class: 'span4' %> <%= f.text_field :last_name, label: (t 'registration.last_name'), required: false, class: 'span4' %> <%= f.email_field :email, required: true, class: 'span4' %>

<%= f.form_group :title, class: "pull-left", style: 'margin-left: 0px; width: 30%;' do %> <%= f.password_field :password, label: (t 'registration.password'), required: false, class: 'input-block-level' %> <% end %> <%= f.form_group :slug, class: "pull-left", style: 'margin-left: 27px; width: 30%;' do %> <%= f.password_field :password_confirmation, label: (t 'registration.password_confirmation'), required: false, class: 'input-block-level' %> <% end %> <%= f.form_group :slug, class: "pull-left", style: 'margin-left: 27px; width: 30%;' do %> <%= f.password_field :current_password, label: (t 'registration.current_password'), required: false, class: 'input-block-level' %> <% end %>
<%= f.submit (t 'registration.update') %> <%= link_to (t 'nav.back'), :back, class: 'btn btn-link' %> <%= link_to (' '+(t 'registration.cancel_account')).html_safe, registration_path(resource_name), data: { confirm: (t 'registration.cancel_confirmation') }, method: :delete, class: 'btn btn-danger pull-right' %>
<% end %>