%= error_messages_for 'user' %>
<%= f.text_field :login, :required => true, :size => 25 %>
<%= f.text_field :firstname, :required => true %>
<%= f.text_field :lastname, :required => true %>
<%= f.text_field :mail, :required => true %>
<%= f.select :language, lang_options_for_select %>
<%= f.text_field :identity_url %>
<%= custom_field_tag_with_label :user, value %>
<%= f.check_box :admin, :disabled => (@user == User.current) %>
<%= f.select :auth_source_id, ([[l(:label_internal), ""]] + @auth_sources.collect { |a| [a.name, a.id] }), {}, :onchange => "if (this.value=='') {$('#password_fields').show();} else {$('#password_fields').hide();}" %>
<%= f.check_box :generate_password %>
<%= f.password_field :password, :required => true, :size => 25 %> <%= l(:text_caracters_minimum, :count => Setting.password_min_length) %>
<%= f.password_field :password_confirmation, :required => true, :size => 25 %>