<%=l(:label_my_account)%>

<%=l(:field_login)%>: <%= @user.login %>
<%=l(:field_created_on)%>: <%= format_time(@user.created_on) %>

<%= error_messages_for 'user' %>

<%=l(:label_information_plural)%>

<% labelled_tabular_form_for :user, @user, :url => { :action => "account" } do |f| %>

<%= f.text_field :firstname, :required => true %>

<%= f.text_field :lastname, :required => true %>

<%= f.text_field :mail, :required => true, :size => 40 %>

<%= f.select :language, lang_options_for_select %>

<%= f.check_box :mail_notification %>

<% fields_for :pref, @user.pref, :builder => TabularFormBuilder, :lang => current_language do |pref_fields| %>

<%= pref_fields.check_box :hide_mail %>

<% end %>
<%= submit_tag l(:button_save) %>
<% end %>
<% unless @user.auth_source_id %>

<%=l(:field_password)%>

<% form_tag({:action => 'change_password'}, :class => "tabular") do %>

<%= password_field_tag 'password', nil, :size => 25 %>

<%= password_field_tag 'new_password', nil, :size => 25 %>
<%= l(:text_length_between, 4, 12) %>

<%= password_field_tag 'new_password_confirmation', nil, :size => 25 %>

<%= submit_tag l(:button_save) %>
<% end %>
<% end %>