<%= form_for @user, :url => account_path, :html => {:class => 'form-horizontal'} do |f| %> <%= error_messages_for 'user', :header_message => t(:try_again), :message => t(:account_error_edit) %>
<%= f.text_field :login, :class => 'form-control' %>
<%= f.text_field :email, :class => 'form-control' %>

<%= time_zone_select 'user', 'time_zone', nil, {:default => 'Eastern Time (US & Canada)'}, {:class => 'form-control'} %>

<%= f.password_field :password, :class => 'form-control' %>
<%= f.password_field :password_current, :class => 'form-control' %>

<%= f.submit t(:account_update), :class => 'btn btn-primary' %>

<% end %>


<%= t(:account_delete_message) %>

<%= button_to t(:account_delete), user_path(@user.id), :method => 'delete', :data => { :confirm => t(:confirm_account_delete) }, :class => 'btn btn-danger' %>