<%=l(:label_register)%>

<% form_tag({:action => 'register'}, :class => "tabular") do %> <%= error_messages_for 'user' %>
<% if @user.auth_source_id.nil? %>

<%= text_field 'user', 'login', :size => 25 %>

<%= password_field_tag 'password', nil, :size => 25 %>
<%= l(:text_caracters_minimum, 4) %>

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

<% end %>

<%= text_field 'user', 'firstname' %>

<%= text_field 'user', 'lastname' %>

<%= text_field 'user', 'mail' %>

<%= select("user", "language", lang_options_for_select) %>

<% @user.custom_field_values.each do |value| %>

<%= custom_field_tag_with_label :user, value %>

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