%= 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 %>
<% for @custom_value in @custom_values %><%= custom_field_tag_with_label @custom_value %>
<% end %><%= f.check_box :admin %>
<%= f.check_box :mail_notification %>
<%= f.select :auth_source_id, [[l(:label_internal), ""]] + @auth_sources.collect { |a| [a.name, a.id] } %>
<% end %><%= password_field_tag 'password', nil, :size => 25 %>
<%= password_field_tag 'password_confirmation', nil, :size => 25 %>