<% if user.errors.any? %>

<%= pluralize(user.errors.count, 'error') %> prohibited this user from being saved:

<% end %>
<%= t('.account_settings') %>
<%= f.text_field :login, class: 'form-control' %>
<%= f.password_field :password, class: 'form-control' %>
<%= f.password_field :password_confirmation, class: 'form-control' %>
<%= f.text_field :email, class: 'form-control' %>
<% if controller.controller_name == 'users' %>
<%= f.select :profile, [:admin, :publisher, :contributor], { include_blank: false }, { class: 'form-control' } %>
<% end %>
<%= t('.profile_settings') %>
<%= f.text_field :firstname, class: 'form-control' %>
<%= f.text_field :lastname, class: 'form-control' %>
<%= f.text_field :nickname, class: 'form-control' %>
<% unless user.login.nil? %>
<% end %>
<% unless controller.controller_name == 'users' %>
<%= t('.avatar') %>

<%= display_user_avatar(current_user, 'thumb') %> <%= t('.avatar_current') %>

<%= f.file_field :filename, class: 'input-file' %>

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

<% end %>
<%= t('.notification_settings') %>
<% unless controller.controller_name == 'users' %>
<%= t('.twitter') %> <% unless twitter_available?(this_blog, current_user) %> <%= render 'admin/shared/twitter_alert' %> <% end %>
<%= f.text_field :twitter_account, class: 'form-control', disabled: twitter_available?(this_blog, current_user) %>

The Twitter account you want to post with

<%= f.text_field :twitter_oauth_token, class: 'form-control', disabled: twitter_available?(this_blog, current_user) %>
<%= f.text_field :twitter_oauth_token_secret, class: 'form-control', disabled: twitter_available?(this_blog, current_user) %>
<%= t('.contact_settings') %>
<%= t('.contact_explain_html', link: link_to(t('.author_page'), author_path(id: current_user.login))) %>
<%= f.text_area :description, class: 'form-control', rows: 5 %>
<%= f.text_field :url, class: 'form-control' %>
<%= f.text_field :msn, class: 'form-control' %>
<%= f.text_field :yahoo, class: 'form-control' %>
<%= f.text_field :jabber, class: 'form-control' %>
<%= f.text_field :aim, class: 'form-control' %>
<%= f.text_field :twitter, class: 'form-control' %>
<% end %>

<%= link_to(t('.cancel'), action: 'index') %> <%= t('.or') %> <%= submit_tag(t('.save'), class: 'btn btn-success') %>