<%=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_tag 'password', nil, :size => 25 %>
<%= l(:text_caracters_minimum, :count => Setting.password_min_length) %>

<%= 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) %>

<% 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 %> <%= call_hook(:view_account_register, {:user => @user}) %>
<%= hidden_field_tag('user[mail_notification]', Setting.default_notification_option) if Setting.respond_to?(:default_notification_option) %> <%= submit_tag l(:button_submit) %> <% end %>