<% disable_accessibility_css! %>

<%=l(:label_register)%> <%=link_to l(:label_login_with_open_id_option), signin_url if Setting.openid? %>

<%= 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 'user', 'password', :size => 25 %>
<%= password_complexity_requirements %>

<%= password_field 'user', 'password_confirmation', :size => 25 %>

<% end %>

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

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

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

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

<% if Setting.openid? %>

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

<% end %> <% @user.custom_field_values.select {|v| v.editable? || v.required?}.each do |value| %>

<%= custom_field_tag_with_label :user, value %>

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